:root {
  --yc-action: #a9202d;
  --yc-action-hover: #861722;
  --yc-ink: #152c22;
  --yc-line: #e1e9e3;
}

body.yccs-commerce-ui .yccs-category-trigger,
body.yccs-commerce-ui :is(.yccs-product-search button[type="submit"], .yc-category-showcase a.button) {
  background-color: var(--yc-action) !important;
  border-color: var(--yc-action) !important;
  color: #fff !important;
}
body.yccs-commerce-ui .yccs-category-trigger:hover,
body.yccs-commerce-ui :is(.yccs-product-search button[type="submit"], .yc-category-showcase a.button):hover {
  background-color: var(--yc-action-hover) !important;
  border-color: var(--yc-action-hover) !important;
}
.yccs-commerce-ui .yccs-category-trigger svg { color: inherit !important; }

body.home.yccs-commerce-ui .yccs-category-trigger {
  background: #145338 !important;
  border-color: #145338 !important;
  color: #fff !important;
  font-weight: 700;
}
body.home.yccs-commerce-ui .yccs-category-trigger:is(:hover, [aria-expanded="true"]) {
  background: #0d412b !important;
  border-color: #0d412b !important;
}
body.home.yccs-commerce-ui .yccs-category-trigger > :is(span, svg) { color: inherit !important; }
body.home.yccs-commerce-ui .yccs-category-trigger:focus-visible { outline: 2px solid #0d412b; outline-offset: 3px; }

.yccs-commerce-ui .yc-category-showcase {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
}
.yc-category-showcase .yccs-premium-section-head h2 a { color: inherit; }
.yccs-commerce-ui .yc-category-showcase ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.yc-category-showcase ul.products::before, .yc-category-showcase ul.products::after { display: none; }
.yccs-commerce-ui .yc-category-showcase ul.products li.product {
  width: auto;
  min-width: 0;
  margin: 0;
  border: 1px solid #e5eae6;
  border-radius: 14px;
  overflow: hidden;
}
.yc-category-showcase .product figure { margin: 0; }
.yc-category-showcase .ct-media-container { aspect-ratio: 1; }
.yc-category-showcase .product figure img { aspect-ratio: 1 !important; width: 100%; height: 100%; object-fit: cover; }
.yc-category-showcase .product .woocommerce-loop-product__title {
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
  margin: 10px 10px 4px;
}
.yc-category-showcase .product .price { margin-inline: 10px; }

.yccs-mobile-drawer .yccs-mobile-drawer__panel { background: #fff; border-radius: 0 18px 18px 0; }
.yccs-mobile-drawer .yccs-mobile-drawer__brand { padding: 14px 16px; }
.yccs-mobile-drawer .yccs-mobile-drawer__close { background: #fff; border: 1px solid var(--yc-line); color: var(--yc-ink); }
.yccs-mobile-drawer .yccs-mobile-drawer__tabs button { min-height: 44px; }
.yccs-mobile-drawer .yccs-mobile-drawer__tabs button.is-active { color: var(--yc-action); border-color: var(--yc-action); }
.yccs-mobile-drawer .yccs-mobile-drawer__category-list > li > a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  padding: 7px 14px;
  color: var(--yc-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.yc-drawer-icon, .yc-shop-trust__icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eff5ef;
  color: #246041;
}
.yc-drawer-icon { width: 28px; height: 28px; }
.yc-drawer-icon svg { width: 16px; height: 16px; }
.yccs-mobile-drawer__category-list > li > a > .yccs-icon { width: 15px; height: 15px; }
.yccs-mobile-drawer .yccs-mobile-drawer__category-list > .yc-mobile-campaign > a { background: #fff2f3; color: #841823; }
.yc-mobile-campaign .yc-drawer-icon { color: #841823; background: #f9dfe3; }
.yccs-mobile-drawer a:focus-visible, .yccs-prefooter summary:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }

.yccs-commerce-ui .yccs-prefooter {
  background: #f7faf7 !important;
  color: #35473d !important;
  border-top: 1px solid var(--yc-line);
  padding: 18px 0 12px;
}
.yccs-commerce-ui .yccs-prefooter > .yccs-container { width: min(1120px, calc(100% - 40px)); }
body.yccs-commerce-ui .yccs-prefooter :is(a,h2,h3,strong,summary,.yccs-footer-slogan) { color: var(--yc-ink) !important; }
body.yccs-commerce-ui .yccs-prefooter :is(.yccs-footer-description,.yccs-footer-payments,.yccs-prefooter-bottom) { color: #405547 !important; }
body.yccs-commerce-ui .yccs-prefooter .yccs-footer-brand > a:first-child { background: transparent; padding: 0; }
.yccs-commerce-ui .yccs-prefooter-grid { grid-template-columns: minmax(140px, .9fr) minmax(0, 3fr); gap: 20px; align-items: start; }
.yccs-commerce-ui .yccs-footer-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.yccs-commerce-ui .yccs-prefooter .yccs-footer-column { border: 0; padding: 0; }
.yccs-commerce-ui .yccs-footer-column h2 { margin: 0 0 5px; font-size: 13px; }
.yccs-commerce-ui .yccs-footer-column ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.yccs-commerce-ui .yccs-footer-column li { line-height: 1.4; }
.yccs-commerce-ui .yccs-footer-column a { display: block; min-height: 0; padding: 4px 0; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.yccs-prefooter .yc-footer-group { font-size: 13px; margin: 0; }
.yccs-prefooter .yc-footer-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid var(--yc-line);
  border-radius: 6px;
  background: #fff;
}
.yccs-prefooter .yc-footer-group > summary::marker { content: ''; }
.yccs-prefooter .yc-footer-group > summary::-webkit-details-marker { display: none; }
.yccs-prefooter .yc-footer-group > summary::after {
  content: '';
  flex: 0 0 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.yccs-prefooter .yc-footer-group[open] > summary::after { transform: rotate(225deg); }
.yccs-prefooter .yc-footer-group h2 { margin: 0; }
.yccs-prefooter .yc-footer-group ul { margin: 6px 8px; }
.yccs-commerce-ui .yccs-prefooter-logo { width: 125px; height: auto; margin: 0 0 4px; }
.yccs-commerce-ui .yccs-footer-slogan { font-size: 13px; color: var(--yc-ink); margin: 0 0 4px; }
.yccs-commerce-ui .yccs-footer-description { font-size: 12px; line-height: 1.45; margin: 0 0 8px; }
.yccs-commerce-ui .yccs-prefooter .yccs-social-links a { width: 32px; height: 32px; min-width: 32px; min-height: 32px; border-color: #cbd9ce; }
.yccs-commerce-ui .yccs-prefooter .yccs-footer-payments { margin: 10px 0 0; padding: 8px 0 0; border-color: var(--yc-line); font-size: 12px; }
.yccs-commerce-ui .yccs-prefooter-bottom { margin-top: 10px; padding: 8px 0 0; border-color: var(--yc-line); color: #475a4e; gap: 4px 14px; font-size: 12px; }
.yc-shop-trust { width: min(1120px, calc(100% - 40px)); margin: 0 auto 13px; }
.yccs-prefooter .yc-shop-trust { width: 100%; }
.yc-shop-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--yc-line);
  border-radius: 10px;
  list-style: none;
}
.yc-shop-trust__grid li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: var(--yc-ink);
}
.yc-shop-trust__grid li + li { border-inline-start: 1px solid var(--yc-line); }
.yc-shop-trust__icon { flex: 0 0 28px; width: 28px; height: 28px; }
.yc-shop-trust__icon svg { width: 17px; height: 17px; }
.yc-shop-trust strong { display: block; font-size: 13px; line-height: 1.3; color: var(--yc-ink) !important; }

.yccs-category-page .yccs-category-banner {
  height: clamp(128px, 18vw, 235px);
  min-height: 0;
  border-radius: 16px 16px 0 0;
  background-image: var(--yc-category-image, var(--yccs-category-banner));
  background-position: center;
  background-size: cover;
}
.yccs-category-page .yccs-category-intro {
  margin-top: 0;
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid var(--yc-line);
  border-radius: 0 0 16px 16px;
  background: #f4f8f4;
  color: var(--yc-ink);
}
.yccs-category-page .yccs-category-intro h1 { color: #11482f; }
.yccs-category-page .yccs-category-intro p { color: #344c3e; }
.page-id-47 .yccs-category-banner { --yc-category-image: url('/wp-content/uploads/2026/09/bolci-mavi-190g-cikolata-kutusu-300x300.webp'); }
.page-id-49 .yccs-category-banner { --yc-category-image: url('/wp-content/uploads/2026/09/rustik_kayisi_satis_odakli_1200x1200-300x300.webp'); }
.page-id-54 .yccs-category-banner { --yc-category-image: url('/wp-content/uploads/2026/07/ChatGPT-Image-23-Tem-2026-00_44_02-5-300x300.png'); }
.page-id-55 .yccs-category-banner { --yc-category-image: url('/wp-content/plugins/yoresel-cepte-commerce-suite/assets/images/cat-tatlilar.webp'); }
.tax-product_cat :is(.hero-section[data-type="type-2"]) {
  isolation: isolate;
  background-color: #163d2c;
  background-size: cover;
  background-position: center;
  min-height: 0;
}
.tax-product_cat .hero-section[data-type="type-2"] > figure::after { background: linear-gradient(90deg, rgba(8,25,17,.88), rgba(8,25,17,.65)); }
.tax-product_cat .hero-section[data-type="type-2"] .entry-header { padding-block: clamp(24px, 4.5vw, 66px); }
.tax-product_cat .hero-section[data-type="type-2"] .entry-header :is(h1,p,a) { color: #fff !important; }
.tax-product_cat .hero-section[data-type="type-2"] .entry-header a { text-decoration: underline; text-underline-offset: 3px; }
.term-dogal-bakim-urunleri .hero-section[data-type="type-2"] {
  background-image: linear-gradient(90deg, #163d2c 35%, rgba(22,61,44,.60)), url('/wp-content/uploads/2026/09/paksa-ardic-katrani-sabunu-500x500.webp');
  background-repeat: no-repeat;
  background-size: cover, min(60%, 620px) auto;
  background-position: center, right center;
}
.term-kampanyali-paketler .hero-section[data-type="type-2"] {
  background-image: linear-gradient(90deg, #44272a 18%, rgba(68,39,42,.76)), url('/wp-content/uploads/2026/09/karisik-lokum-kayisi-cezerye-hediye-tepsisi-hd-v2-500x500.webp');
  background-repeat: no-repeat;
  background-size: cover, min(65%, 760px) auto;
  background-position: center, right center;
}
.tax-product_cat:is(.term-cay-ve-kahve, .term-sizin-icin-sectiklerimiz) .hero-section[data-type="type-2"] {
  background-image: linear-gradient(90deg, #163d2c 24%, rgba(22,61,44,.74)), var(--yc-archive-image);
  background-repeat: no-repeat;
  background-size: cover, min(65%, 640px) auto;
  background-position: center, right center;
}
.term-cay-ve-kahve { --yc-archive-image: url('/wp-content/uploads/2026/08/ChatGPT-Image-11-Agu-2026-23_40_00-6-500x500.png'); }
.term-sizin-icin-sectiklerimiz { --yc-archive-image: url('/wp-content/uploads/2026/09/kayisi-cezerye-lokum-kuruyemis-tepsisi-hd-500x500.webp'); }
.term-kampanyali-paketler .products > .yc-campaign-product {
  display: block;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.term-kampanyali-paketler .yc-campaign-product > .yccs-product-card { height: 100%; }

@media (max-width: 900px) {
  .yccs-commerce-ui .yccs-prefooter-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .yccs-commerce-ui .yccs-footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding-top: 10px; border-top: 1px solid var(--yc-line); }
  .yc-shop-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yc-shop-trust__grid li:nth-child(3) { border-inline-start: 0; }
  .yc-shop-trust__grid li:nth-child(n+3) { border-top: 1px solid var(--yc-line); }
}
@media (max-width: 689px) {
  .yccs-commerce-ui .yc-category-showcase { width: min(100% - 24px, 1320px); padding: 18px 0; }
  .yccs-commerce-ui .yc-category-showcase ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .yccs-commerce-ui .yccs-prefooter { padding: 14px 0 10px; }
  .yccs-commerce-ui .yccs-prefooter > .yccs-container { width: calc(100% - 28px); }
  .yccs-commerce-ui .yccs-prefooter .yccs-footer-brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 10px;
    margin: 0;
  }
  .yccs-prefooter .yccs-footer-brand .yccs-social-links { grid-area: 1 / 2; margin: 0; }
  .yccs-prefooter .yccs-footer-brand :is(.yccs-footer-slogan,.yccs-footer-description) { grid-column: 1 / -1; margin: 0; }
  .yc-shop-trust__grid li { padding: 6px 8px; gap: 6px; }
  .yc-shop-trust__icon svg { width: 16px; height: 16px; }
  .yc-shop-trust strong { font-size: 12px; }
  .yccs-commerce-ui .yccs-footer-column a { padding: 5px 0; }
  .yccs-commerce-ui .yccs-prefooter-bottom { flex-wrap: wrap; }
}
