/* ==========================================================================
   Çikolata Merkezi — Bileşenler
   ========================================================================== */

/* ---------- Üst duyuru ---------- */
/* fixed + spacer: arama/announce kaybolunca doküman boyu değişmesin diye scroll telafisi JS’te */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  background: var(--cm-dark);
  color: var(--cm-cream);
  box-shadow: 0 1px 0 rgba(213, 180, 122, .22);
  overflow: visible;
  overflow-anchor: none;
}
.site-header-spacer {
  /* Compact olsa bile full yükseklik — sayfa layout’u değişmesin (in/çık sıçrama yok) */
  height: var(--header-full, 160px);
  flex: none;
  pointer-events: none;
  overflow-anchor: none;
  background: var(--cm-dark);
}
.announce {
  background: var(--cm-espresso);
  font-size: .8125rem;
  max-height: 40px;
  overflow: hidden;
  transition:
    max-height .48s cubic-bezier(.33, 0, .2, 1),
    opacity .36s cubic-bezier(.33, 0, .2, 1),
    border-width .36s ease,
    padding .36s ease;
  border-bottom: 1px solid rgba(213, 180, 122, .14);
}
.announce-inner { display: flex; align-items: center; justify-content: center; min-height: 38px; position: relative; }
.announce-msg { margin: 0; color: var(--cm-gold-light); font-weight: 500; text-align: center; padding-inline: .5rem; }
.announce-links { position: absolute; right: calc(var(--bs-gutter-x, 1.5rem) * .5); list-style: none; margin: 0; padding: 0; gap: 1.25rem; }
.announce-links a { color: rgba(241, 229, 207, .82); text-decoration: none; font-size: .78rem; }
.announce-links a:hover { color: var(--cm-gold); text-decoration: underline; }
.announce-contact {
  position: absolute;
  right: calc(var(--bs-gutter-x, 1.5rem) * .5);
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  gap: .85rem;
  margin: 0;
  padding: 0;
}
.announce-contact__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(241, 229, 207, .88);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.announce-contact__item i { font-size: .85em; opacity: .85; color: var(--cm-gold); }
.announce-contact__item:hover { color: var(--cm-gold); }
.announce-contact__sep {
  width: 1px;
  height: 14px;
  background: #d5b47a2e;
  flex: none;
}
body[data-member="1"] .cm-account-guest { display: none !important; }
body:not([data-member="1"]) .cm-account-member { display: none !important; }
.is-compact .announce { max-height: 0; opacity: 0; border-width: 0; }

/* ---------- Ana başlık ---------- */
.header-main {
  padding-block: .5rem;
  max-height: 220px;
  overflow: visible;
  transition:
    max-height .48s cubic-bezier(.33, 0, .2, 1),
    opacity .36s cubic-bezier(.33, 0, .2, 1),
    padding .48s cubic-bezier(.33, 0, .2, 1);
}
/* Ölçüm sırasında animasyon kapalı — doğru full/compact yükseklik */
.site-header.is-measuring,
.site-header.is-measuring .announce,
.site-header.is-measuring .header-main,
.site-header.is-measuring ~ .site-header-spacer {
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .announce,
  .header-main,
  .site-header-spacer {
    transition: none !important;
  }
}
.header-grid { display: grid; align-items: center; gap: .5rem 1rem; grid-template-columns: 1fr auto 1fr; grid-template-areas: "menu brand actions" "search search search"; }
.menu-btn { grid-area: menu; justify-self: start; }
.brand { grid-area: brand; display: block; line-height: 0; position: relative; z-index: 6; }
.brand img {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 0; box-shadow: none;
  display: block;
  object-fit: cover;
  object-position: center;
  background: none;
  transition: width .35s var(--ease), height .35s var(--ease), transform .35s var(--ease), top .35s var(--ease);
}
.header-actions { grid-area: actions; justify-self: end; display: flex; align-items: center; gap: .25rem; }
.site-search { grid-area: search; position: relative; display: none; padding-bottom: .5rem; }
.search-open .site-search { display: block; }
.hbtn { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 48px; min-height: 48px; padding: .25rem .5rem; color: var(--cm-cream); background: none; border: 0; text-decoration: none; border-radius: 12px; font-size: .72rem; font-weight: 600; transition: color .2s, background-color .2s; }
.hbtn i { font-size: 1.4rem; line-height: 1; }
.hbtn:hover { color: var(--cm-gold); }
.hbtn .lbl { display: none; }
.cart-badge { position: absolute; top: 2px; right: 4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--cm-gold); color: var(--cm-espresso); font-size: .7rem; font-weight: 800; display: grid; place-items: center; transition: transform .3s var(--ease); }
.cart-badge[data-count="0"] { display: none; }
.cart-badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.search-toggle { }

.search-field { position: relative; display: flex; align-items: center; background: rgba(251, 245, 233, .08); border: 1px solid rgba(213, 180, 122, .4); border-radius: 999px; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.search-field:focus-within { border-color: var(--cm-gold); background: rgba(251, 245, 233, .13); box-shadow: 0 0 0 3px rgba(213, 180, 122, .25); }
.search-field input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--cm-cream); padding: .8rem 1.2rem; font-size: .95rem; outline: 0; }
.search-field input::placeholder { color: rgba(241, 229, 207, .72); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field button { background: none; border: 0; color: var(--cm-gold); width: 48px; height: 44px; font-size: 1.1rem; border-radius: 50%; }
.search-field button:hover { color: #fff; }
.search-suggest {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  right: 0;
  background: var(--cm-ivory);
  color: var(--cm-text);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  z-index: 40;
  overflow: hidden;
  border: 1px solid var(--cm-line-gold);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  padding: .35rem 0;
}
.search-suggest[hidden] { display: none !important; }
.search-box.is-open .search-suggest,
.site-search.is-open .search-suggest { display: block; }
.search-suggest-hint,
.search-suggest-empty {
  padding: .9rem 1.15rem;
  font-size: .875rem;
  color: var(--cm-muted);
}
.search-suggest-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .65rem 1.15rem;
  text-decoration: none;
  color: var(--cm-text);
  transition: background-color .15s;
}
.search-suggest-item:hover,
.search-suggest-item.is-active {
  background: var(--cm-cream);
  color: var(--cm-text);
}
.search-suggest-item img,
.search-suggest-item-ph {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--cm-cream);
  border: 1px solid var(--cm-line-gold);
}
.search-suggest-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-suggest-item-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--cm-cocoa);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.search-suggest-item-meta {
  font-size: .78rem;
  color: var(--cm-muted);
  font-weight: 600;
}
.search-suggest-item-price {
  font-size: .875rem;
  font-weight: 800;
  color: var(--cm-espresso);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.search-suggest-footer {
  border-top: 1px solid var(--cm-line-gold);
  padding: .7rem 1.15rem;
  text-align: center;
}
.search-suggest-footer a {
  font-size: .8125rem;
  font-weight: 800;
  color: var(--cm-cocoa);
  text-decoration: none;
  border-bottom: 1px solid var(--cm-caramel);
}
.search-suggest-footer a:hover { color: var(--cm-espresso); }
/* Eski demo sınıf adları */
.suggest-group { padding: .5rem 0; }
.suggest-group + .suggest-group { border-top: 1px solid var(--cm-line); }
.suggest-title { font-size: .75rem; font-weight: 700; color: var(--cm-milk); padding: .25rem 1.1rem; }
.suggest-item { display: flex; gap: .85rem; align-items: center; padding: .55rem 1.1rem; color: var(--cm-text); text-decoration: none; }
.suggest-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--cm-cream); flex: 0 0 44px; }
.suggest-item .t { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.suggest-item .s { font-size: .8rem; color: var(--cm-muted); }
.suggest-item:hover, .suggest-item.is-active { background: var(--cm-cream); }
.suggest-item mark { background: rgba(213, 180, 122, .45); color: inherit; padding: 0; border-radius: 2px; }
.suggest-empty { padding: 1.25rem 1.1rem; color: var(--cm-muted); font-size: .92rem; }

@media (min-width: 992px) {
  .header-main { padding-block: .65rem; position: relative; z-index: 2; overflow: visible; }
  .header-grid { grid-template-columns: 168px minmax(0, 1fr) auto; grid-template-areas: "brand search actions"; gap: 1rem 2.5rem; align-items: center; }
  .menu-btn, .search-toggle { display: none !important; }
  /* Yuvarlak logo — header-main dışında, navbarın üstünde */
  .brand-float-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 48px;
    z-index: 1040;
    pointer-events: none;
    transition: top .35s var(--ease);
  }
  .brand-float {
    position: absolute;
    left: calc(var(--bs-gutter-x, .75rem) * .5);
    top: -20px;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    grid-area: unset;
  }
  .brand-float img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
  }
  .site-search { display: block; padding: 0; max-width: 620px; width: 100%; justify-self: center; }
  .hbtn .lbl { display: block; }
  .header-actions { gap: .6rem; }
  /* Scroll: announce + header-main gider; logo + primary-nav kalır */
  .is-compact .header-main {
    max-height: 0;
    opacity: 0;
    padding: 0 !important;
    overflow: hidden;
    pointer-events: none;
    border: 0;
  }
  .is-compact .brand-float-wrap {
    top: 0px;
  }
  .is-compact .brand-float img {
    width: 118px;
    height: 118px;
    /* üstten ~%30 gizlenir, geri kalan navbar üzerinde */
    transform: translateY(-25%);
  }
}
@media (max-width: 991.98px) {
  .is-compact .brand img { width: 64px; height: 64px; }
}

/* ---------- Birincil gezinme (header-main altı bar) ---------- */
.primary-nav {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(213, 180, 122, .18);
  background: var(--cm-dark);
}
@media (min-width: 992px) {
  .site-header .primary-nav.d-lg-block { display: block !important; }
}
.primary-nav > ul { display: flex; justify-content: center; gap: clamp(1rem, 2.4vw, 2.5rem); list-style: none; margin: 0 auto; padding: 0; }
.nav-link-cm { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .85rem .1rem; color: var(--cm-cream); font-size: .9375rem; font-weight: 600; text-decoration: none; background: none; border: 0; transition: color .2s, padding .3s var(--ease); white-space: nowrap; }
.nav-link-cm::after { content: ""; position: absolute; left: 0; right: 0; bottom: .55rem; height: 1px; background: var(--cm-gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-link-cm:hover, .nav-link-cm[aria-expanded="true"], .nav-link-cm[aria-current="page"] { color: var(--cm-gold-light); }
.nav-link-cm:hover::after, .nav-link-cm[aria-expanded="true"]::after, .nav-link-cm[aria-current="page"]::after { transform: scaleX(1); }
.nav-link-cm .bi-chevron-down { font-size: .65rem; transition: transform .3s var(--ease); }
.nav-link-cm[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.nav-link-cm .nav-ico,
.nav-link-cm > i:not(.bi-chevron-down),
.nav-link-cm .fa-solid,
.nav-link-cm .fa-regular,
.nav-link-cm .fa-brands,
.nav-link-cm .fas,
.nav-link-cm .far,
.nav-link-cm .fab {
  font-size: .95em;
  line-height: 1;
  opacity: .92;
}
.mnav-link > i,
.mnav-toggle .nav-ico,
.mnav-link .fa-solid,
.mnav-link .fa-regular,
.mnav-link .fas,
.mnav-link .far {
  margin-right: .55rem;
  font-size: 1rem;
  color: var(--cm-milk);
  width: 1.15em;
  text-align: center;
}
.nav-home-li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(clamp(1rem, 2.4vw, 2.5rem) / -2);
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: #d5b47a2e;
  pointer-events: none;
}
.nav-home {
  padding-inline: .35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  font-size: 1.2em;
}
.nav-home .bi {
  font-size: 1.125rem;
  line-height: 15px; /* nav yazı kutusuyla aynı; BI glifi optik olarak hizalanır */
  display: block;
}
.nav-featured { color: var(--cm-gold); }
.nav-featured::before { content: ""; width: 7px; height: 11px; border-radius: 50%; background: var(--cm-gold); transform: rotate(35deg); display: inline-block; margin-right: .1rem; }
.is-compact .nav-link-cm { padding-block: .6rem; }
.is-compact .nav-link-cm::after { bottom: .3rem; }

/* ---------- Mega menü ---------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--cm-ivory); color: var(--cm-text); border-top: 1px solid var(--cm-gold); border-bottom: 1px solid var(--cm-line-gold); box-shadow: 0 40px 60px -30px rgba(36, 18, 12, .55); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s linear .35s; z-index: 10; text-align: left; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; padding-block: 2rem 2.25rem; max-height: calc(100vh - 190px); overflow: auto; }
.mega-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem 1.75rem; align-content: start; }
.mega-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--cm-line-gold); padding-bottom: .75rem; margin-bottom: .5rem; }
.mega-head h2 { font-size: 1.6rem; margin: 0; }
.mega-head a { font-size: .875rem; font-weight: 700; color: var(--cm-cocoa); }
.mega-item { display: flex; gap: 1rem; align-items: center; padding: .7rem .6rem; border-radius: 14px; text-decoration: none; color: var(--cm-text); transition: background-color .25s, transform .3s var(--ease); }
.mega-item:hover { background: var(--cm-cream); transform: translateX(3px); }
.mega-item img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--cm-ivory), 0 0 0 3px var(--cm-line-gold); flex: none; background: var(--cm-cream); }
.mega-item strong { display: block; font-size: .96rem; color: var(--cm-cocoa); line-height: 1.25; }
.mega-item span { display: block; font-size: .8rem; color: var(--cm-muted); }
.mega-sub { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: 1rem; margin-top: .5rem; border-top: 1px solid var(--cm-line-gold); align-items: center; }
.mega-sub b { font-size: .8125rem; color: var(--cm-milk); }
.mega-sub a { font-size: .9rem; font-weight: 600; color: var(--cm-cocoa); text-decoration: none; padding: .25rem 0; border-bottom: 1px solid transparent; }
.mega-sub a:hover { border-color: var(--cm-caramel); }
.mega-editorial { position: relative; border-radius: 20px; overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; color: var(--cm-cream); isolation: isolate; }
.mega-editorial img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.mega-editorial:hover img { transform: scale(1.04); }
.mega-editorial::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 18, 12, .05) 25%, rgba(36, 18, 12, .88)); z-index: -1; }
.mega-editorial::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(232, 212, 170, .5); border-radius: 14px; pointer-events: none; }
.mega-editorial div { padding: 1.6rem; }
.mega-editorial p { font-family: var(--font-serif); font-size: 1.6rem; line-height: 1.15; margin: 0 0 1rem; font-weight: 600; color: #fff; }
.dropdown-lite { position: absolute; top: 100%; left: 50%; min-width: 260px; transform: translate(-50%, 10px); background: var(--cm-ivory); border-top: 1px solid var(--cm-gold); border-radius: 0 0 16px 16px; padding: .6rem; box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; list-style: none; margin: 0; z-index: 10; }
.dropdown-lite.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.dropdown-lite a { display: block; padding: .7rem 1rem; color: var(--cm-cocoa); font-weight: 600; text-decoration: none; border-radius: 10px; }
.dropdown-lite a:hover { background: var(--cm-cream); }
.primary-nav li { position: static; }
.primary-nav li.has-dd,
.primary-nav li.nav-home-li { position: relative; }
@media (max-width: 1199.98px) { .mega-inner { grid-template-columns: 1fr 260px; gap: 1.5rem; } .mega-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Mobil gezinme ---------- */
#mobileNav { --bs-offcanvas-width: min(92vw, 400px); background: var(--cm-ivory); }
#mobileNav .offcanvas-header { background: var(--cm-dark); color: var(--cm-cream); border: 0; padding: .75rem 1rem; }
#mobileNav .offcanvas-header img { width: 64px; height: 64px; border-radius: 50%; border: 0; box-shadow: none; object-fit: cover; object-position: center; }
#mobileNav .btn-close { filter: invert(1) sepia(.5); width: 44px; height: 44px; }
.mnav-list { list-style: none; margin: 0; padding: 0; }
.mnav-link, .mnav-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: .9rem 1.25rem; color: var(--cm-cocoa); font-weight: 700; font-size: 1.02rem; text-decoration: none; background: none; border: 0; border-bottom: 1px solid var(--cm-line); text-align: left; }
.mnav-toggle .bi { transition: transform .3s var(--ease); font-size: .85rem; }
.mnav-toggle[aria-expanded="true"] .bi { transform: rotate(180deg); }
.mnav-sub { background: var(--cm-cream); padding: .25rem 0; }
.mnav-sub a { display: flex; gap: .9rem; align-items: center; min-height: 56px; padding: .4rem 1.25rem; color: var(--cm-text); font-weight: 600; text-decoration: none; }
.mnav-sub img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.mnav-secondary { padding: 1rem 1.25rem 2rem; display: grid; gap: .1rem; }
.mnav-secondary a { display: flex; align-items: center; gap: .75rem; min-height: 48px; color: var(--cm-muted); font-weight: 600; text-decoration: none; }

/* ---------- Ürün kartı ---------- */
.pcard { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--cm-paper); border: 1px solid var(--cm-line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .3s; }
.pcard:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); border-color: var(--cm-line-gold); }
.pcard-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cm-cream); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-badge { position: absolute; top: .75rem; left: .75rem; z-index: 2; font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: var(--cm-dark); color: var(--cm-gold-light); }
.pcard-badge.is-new { background: var(--cm-gold-light); color: var(--cm-espresso); }
.pcard-fav, .pcard-quick { position: absolute; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 245, 233, .94); color: var(--cm-cocoa); border: 0; box-shadow: 0 4px 12px -4px rgba(36, 18, 12, .35); transition: transform .25s var(--ease), background-color .2s, color .2s; }
.pcard-fav { top: .65rem; right: .65rem; }
.pcard-quick { bottom: .65rem; right: .65rem; }
.pcard-fav:hover, .pcard-quick:hover { background: var(--cm-dark); color: var(--cm-gold-light); transform: scale(1.06); }
.pcard-fav[aria-pressed="true"] { color: #A3341F; }
.pcard-fav[aria-pressed="true"]:hover { color: #ff9f8e; }
.pcard-fav.pop i { animation: bump .45s var(--ease); display: inline-block; }
.pcard-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.pcard-cat { font-size: .78rem; color: var(--cm-milk); font-weight: 600; }
.pcard-name { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 0; color: var(--cm-cocoa); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard-name a { color: inherit; text-decoration: none; }
.pcard-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard-size { font-size: .875rem; color: var(--cm-muted); }
.pcard-foot { margin-top: auto; padding-top: .8rem; display: flex; flex-direction: column; gap: .75rem; }
.price { font-weight: 800; font-size: 1.2rem; color: var(--cm-espresso); font-variant-numeric: tabular-nums; }
.price small { font-size: .78rem; font-weight: 600; color: var(--cm-muted); margin-left: .25rem; }
.pcard .price .text-primary,
.pcard .text-primary,
.price .text-primary { color: var(--cm-espresso) !important; }
.pcard .text-danger,
.price .text-danger { color: var(--cm-danger) !important; }
.pcard .text-muted { color: var(--cm-muted) !important; }
.pcard .btn { position: relative; z-index: 3; width: 100%; }
.pcard-fav, .pcard-quick { z-index: 4; }
.pcard.is-soldout .pcard-media img { filter: saturate(.6); opacity: .85; }
.stock-flag { font-size: .8rem; font-weight: 700; color: var(--cm-danger); }
.grid-products { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; } }
@media (min-width: 1200px) { .grid-products.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .pcard-body { padding: .8rem .8rem 1rem; } .pcard .btn { --bs-btn-padding-x: .6rem; --bs-btn-font-size: .85rem; } .price { font-size: 1.05rem; } }

/* İskelet (yükleniyor durumu) */
.skeleton { background: linear-gradient(90deg, var(--cm-cream) 25%, #f7edd9 50%, var(--cm-cream) 75%); background-size: 200% 100%; animation: sk 1.6s linear infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.skeleton-card { aspect-ratio: 4 / 6; }

/* ---------- Adet kontrolü ---------- */
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(87, 51, 35, .35); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 40px; background: none; border: 0; color: var(--cm-cocoa); font-size: 1.1rem; border-radius: 50%; display: grid; place-items: center; }
.qty button:hover:not(:disabled) { background: var(--cm-cream); }
.qty button:disabled { opacity: .35; }
.qty output { min-width: 34px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.qty output.bump { animation: bump .35s var(--ease); }

/* ---------- Sepet çekmecesi ---------- */
#cartDrawer { --bs-offcanvas-width: min(100vw, 440px); }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--cm-line); }
.cart-line > a img, .cart-line > img { width: 84px; height: 105px; object-fit: cover; border-radius: 12px; background: var(--cm-cream); }
.cart-line h3, .cart-line .cl-name { font-family: var(--font-sans); font-size: .95rem; font-weight: 700; margin: 0 0 .15rem; line-height: 1.3; }
.cart-line .cl-name a { color: var(--cm-cocoa); text-decoration: none; }
.cart-line .cl-meta { font-size: .82rem; color: var(--cm-muted); }
.cl-row { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; gap: .5rem; flex-wrap: wrap; }
.cl-remove { background: none; border: 0; color: var(--cm-muted); font-size: .82rem; text-decoration: underline; padding: .4rem 0; }
.cl-remove:hover { color: var(--cm-danger); }
.cart-foot { border-top: 1px solid var(--cm-line-gold); padding: 1.1rem 1.25rem 1.25rem; background: var(--cm-paper); }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .95rem; }
.sum-row.total { font-size: 1.2rem; font-weight: 800; color: var(--cm-espresso); border-top: 1px solid var(--cm-line); margin-top: .5rem; padding-top: .8rem; }
.sum-row .disc { color: var(--cm-success); font-weight: 700; }

/* ---------- Boş / hata durumları ---------- */
.state-box { text-align: center; padding: clamp(2rem, 6vw, 4rem) 1.25rem; max-width: 560px; margin-inline: auto; }
.state-box .ico { width: 84px; height: 84px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--cm-cream); color: var(--cm-milk); font-size: 2rem; box-shadow: 0 0 0 8px rgba(241, 229, 207, .5); }
.state-box h2, .state-box h3 { margin-bottom: .6rem; }
.state-box p { color: var(--cm-muted); }

/* ---------- Toast ---------- */
.toast .toast-body { display: flex; gap: .75rem; align-items: center; padding: .9rem 1rem; }
.toast .toast-body > i { font-size: 1.25rem; color: var(--cm-gold); }
.toast a { color: var(--cm-gold-light); font-weight: 700; }

/* ---------- Altbilgi ---------- */
.site-footer { background: var(--cm-dark); color: rgba(241, 229, 207, .88); position: relative; }
.site-footer::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, transparent, var(--cm-gold), transparent); opacity: .7; }
.footer-top { padding-block: clamp(3rem, 5vw, 4.5rem) 2.5rem; }
.footer-brand img { width: 120px; height: 120px; border-radius: 50%; border: 0; box-shadow: none; margin-bottom: 1.25rem; object-fit: cover; object-position: center; }
.site-footer h2, .site-footer h3 { font-family: var(--font-sans); font-size: .9rem; font-weight: 800; color: var(--cm-gold); letter-spacing: .02em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.site-footer a { color: rgba(241, 229, 207, .88); text-decoration: none; display: inline-block; padding: .3rem 0; transition: color .2s; }
.site-footer a:hover { color: var(--cm-gold-light); text-decoration: underline; text-decoration-color: var(--cm-gold); }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; padding: .3rem 0; }
.footer-contact i { color: var(--cm-gold); margin-top: .2rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(213, 180, 122, .45); border-radius: 50%; padding: 0; color: var(--cm-gold-light); }
.footer-social a:hover { background: var(--cm-gold); color: var(--cm-espresso); }
.footer-news { background: rgba(0, 0, 0, .18); border: 1px solid rgba(213, 180, 122, .22); border-radius: 18px; padding: 1.4rem; }
.footer-news .form-control { background: rgba(251, 245, 233, .08); border-color: rgba(213, 180, 122, .45); color: var(--cm-cream); }
.footer-news .form-control::placeholder { color: rgba(241, 229, 207, .7); }
.footer-news .form-control:focus { background: rgba(251, 245, 233, .14); }
.footer-bottom { border-top: 1px solid rgba(213, 180, 122, .2); padding-block: 1.25rem; font-size: .85rem; color: rgba(241, 229, 207, .72); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-bottom a { color: rgba(241, 229, 207, .8); }
.demo-note { font-size: .8rem; color: rgba(241, 229, 207, .7); }

/* ---------- WhatsApp + yukarı çık ---------- */
.cm-float-stack {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px) + .75rem);
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px) + 1rem);
  z-index: 1045;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
}
.cm-whatsapp,
.cm-scroll-top {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 28px -14px rgba(36, 18, 12, .65);
  transition: transform .3s var(--ease), background-color .2s, color .2s, border-color .2s, opacity .3s var(--ease), visibility .3s;
}
.cm-whatsapp {
  background: #25d366;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
}
.cm-whatsapp:hover {
  background: #1ebe57;
  color: #fff;
  transform: translateY(-3px);
}
.cm-whatsapp:focus-visible {
  outline: 3px solid #25d366;
  outline-offset: 2px;
}
.cm-scroll-top {
  border: 1px solid rgba(213, 180, 122, .55);
  background: var(--cm-dark);
  color: var(--cm-gold-light);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s linear .35s, background-color .2s, color .2s, border-color .2s;
}
.cm-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.cm-scroll-top:hover {
  background: var(--cm-gold);
  color: var(--cm-espresso);
  border-color: var(--cm-gold);
  transform: translateY(-3px);
}
.cm-scroll-top:focus-visible {
  outline: 3px solid var(--cm-gold);
  outline-offset: 2px;
}
@media (max-width: 575.98px) {
  .cm-whatsapp,
  .cm-scroll-top { width: 44px; height: 44px; font-size: 1.2rem; }
}

/* ---------- Sepet / favori toast (store.js fm-toast) ---------- */
.fm-toast-stack {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 0px) + .75rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .5rem;
  pointer-events: none;
  width: min(400px, calc(100vw - 2rem));
}
.fm-toast {
  pointer-events: auto;
  background: var(--cm-ivory);
  color: var(--cm-text);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  padding: .85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  border: 1px solid var(--cm-line-gold);
  border-left: 4px solid var(--cm-gold);
  animation: cm-toast-in .25s var(--ease);
}
.fm-toast--success { border-left-color: #2f9e6e; }
.fm-toast--error { border-left-color: #c0392b; }
.fm-toast__icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1.2; }
.fm-toast--success .fm-toast__icon { color: #2f9e6e; }
.fm-toast--error .fm-toast__icon { color: #c0392b; }
.fm-toast__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.fm-toast__message { font-size: .9rem; font-weight: 700; line-height: 1.35; color: var(--cm-cocoa); }
.fm-toast__link { font-size: .8rem; font-weight: 800; color: var(--cm-caramel); text-decoration: none; width: fit-content; }
.fm-toast__link:hover { color: var(--cm-espresso); text-decoration: underline; }
.fm-toast__close { border: 0; background: transparent; color: var(--cm-muted); cursor: pointer; padding: 0; line-height: 1; font-size: .95rem; }
.fm-toast__close:hover { color: var(--cm-cocoa); }
@keyframes cm-toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.zp-list-add-cart.is-loading {
  pointer-events: none;
  opacity: .7;
}
.zp-list-add-cart[data-can-purchase="0"] {
  opacity: .55;
  cursor: not-allowed;
}
.pcard-media .product-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2;
  font-size: .72rem;
  font-weight: 800;
  padding: .3rem .7rem;
  border-radius: 999px;
  letter-spacing: .02em;
}
.pcard-media .pcard-badge.is-new + .product-badge,
.pcard-media .product-badge + .product-badge {
  top: 2.65rem;
}
.pcard-media .product-badge-stock-out {
  background: #c0392b;
  color: #fff;
}
.pcard-media .product-badge-stock-low {
  background: #d4a017;
  color: var(--cm-espresso);
}
.pcard-media .product-badge-stock-supply,
.pcard-media .product-badge-stock-preorder {
  background: var(--cm-cocoa);
  color: var(--cm-ivory);
}
.pcard-body .product-stock-line {
  font-size: .78rem;
  font-weight: 700;
  margin: .15rem 0 .35rem;
  color: var(--cm-muted);
}
.pcard-body .product-stock-line--out_of_stock {
  color: #c0392b;
}
.pcard-body .product-stock-line--supply_2_3,
.pcard-body .product-stock-line--preorder,
.pcard-body .product-stock-line--low_stock {
  color: var(--cm-caramel);
}
