:root{
  --appbar-h:60px;
  --brand:#2732d9;
  --brand-ink:#ffffff;
  --brand-soft:rgba(39,50,217,.92);
  --ink:#0f172a;
  --muted:#6b7280;
  --bg:#f3f5f9;
  --line:#e5e7eb;
  --surface:#fff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--ink);
  background:var(--bg);
}

/* Açılış splash */
.launch{
  position:fixed;
  inset:0;
  background:radial-gradient(circle at top, rgba(15,23,42,.96), rgba(15,23,42,.98));
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:200;
}
.launch-inner{color:#fff;text-align:center}
.launch .logo{font-weight:900;font-size:28px;letter-spacing:.1em}
.launch .tag{opacity:.9;margin-top:6px}
.launch .slogan{margin:6px 0 14px}
.spinner{
  width:34px;height:34px;
  border:3px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  border-radius:50%;
  animation:sp .9s linear infinite;
  margin:0 auto;
}
@keyframes sp{to{transform:rotate(360deg)}}

/* Transparan geçiş loader (400ms fade, hafif transparan) */
.page-loader{
  position:fixed;
  inset:0;
  z-index:190;
  display:flex;
  align-items:center;
  justify-content:center;
  background:radial-gradient(circle at top, rgba(15,23,42,.45), rgba(15,23,42,.7));
  backdrop-filter:blur(18px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .4s ease;
}
.page-loader.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.page-loader-inner{text-align:center;color:#fff}
.page-loader-logo{
  font-weight:900;
  letter-spacing:.14em;
  font-size:20px;
}
.page-loader-tag{
  margin-top:4px;
  opacity:.85;
  font-size:13px;
}
.page-loader-spinner{
  width:32px;height:32px;
  border-radius:999px;
  border:3px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  margin:12px auto 0;
  animation:sp .85s linear infinite;
}



/* Üst bar */
.appbar{
  position:fixed;           /* eskiden sticky idi */
  top:0;
  left:0;
  right:0;
  z-index:60;

  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;

  background:var(--brand-soft);
  color:var(--brand-ink);
  border-bottom-left-radius:20px;
  border-bottom-right-radius:20px;
  box-shadow:0 8px 26px rgba(15,23,42,.35);
  backdrop-filter:blur(18px);
}

.top-stack {
  position: fixed;
  top: var(--appbar-h);
  left: 0;
  right: 0;
  z-index: 55;
  background: linear-gradient(#f5f7ff, #ffffff);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.icon-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;height:36px;
  border-radius:12px;
  border:none;
  background:rgba(255,255,255,.12);
  color:var(--brand-ink);
  cursor:pointer;
}
.brand-wrap{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  flex:1;
  text-align:left;
}
.brand{font-weight:800;font-size:20px;letter-spacing:.5px}
.subtitle{font-size:12px;opacity:.9}
.actions{display:flex;gap:8px;align-items:center}
.icon-btn.has-badge .badge{
  position:absolute;
  top:-6px;right:-6px;
  background:#10b981;
  color:#fff;
  border-radius:999px;
  min-width:18px;height:18px;
  padding:0 4px;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid var(--brand-soft);
}

/* Arama barı */
.searchbar{
  padding:10px;
  background:linear-gradient(#f5f7ff,#fff);
  border-bottom:1px solid var(--line);
  animation:slide .2s ease-out;
}
@keyframes slide{from{transform:translateY(-8px);opacity:0}to{transform:none;opacity:1}}
.search-inner{
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:8px 10px;
}
.search-inner input{
  flex:1;
  border:none;
  outline:none;
  font-size:15px;
}
.search-inner .clear{
  border:none;
  background:#fff;
  border-left:1px solid var(--line);
  border-radius:0 12px 12px 0;
  padding:6px 10px;
  cursor:pointer;
}

/* Grup hero: sticky + blur */

.group-hero{
  /* sticky DEĞİL artık – top-stack zaten sticky */
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:10px 12px 8px;
  background:linear-gradient(#ffffffee,#ffffffee);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.group-hero .tile{
  flex:0 0 auto;
  width:160px;height:96px;
  border-radius:16px;
  overflow:hidden;
  background:#eef2ff;
  position:relative;
  border:1px solid var(--line);
  box-shadow:0 4px 14px rgba(0,0,0,.06);
  cursor:pointer;
  transition:transform .12s, box-shadow .12s, border-color .12s;
}
.group-hero .tile img{
  width:100%;height:100%;object-fit:cover;
}
.group-hero .tile .label{
  position:absolute;
  left:8px;bottom:8px;
  background:rgba(0,0,0,.55);
  color:#fff;
  padding:4px 8px;
  border-radius:999px;
  font-weight:700;
  font-size:12px;
  z-index:2;
}

/* Seçili grup efekti (daha belirgin) */
.group-hero .tile::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 20% 0%, rgba(255,255,255,.16), transparent 60%);
  opacity:0;
  transition:opacity .18s ease;
  pointer-events:none;
}
.group-hero .tile.active{
  transform:translateY(-2px);
  border-color:var(--brand);
  box-shadow:
    0 10px 24px rgba(15,23,42,.4),
    0 0 0 2px rgba(255,255,255,.9);
}
.group-hero .tile.active::after{
  opacity:1;
}
.group-hero .tile:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(0,0,0,.16);
}

/* Text chips gizli */
.group-chips{
  display:none; /* sadece JS için var, görünmüyor */
}

/* Grup başlığı */
.group-title{
  margin:4px 12px 0;
  font-size:18px;
  text-align:center;
}

/* İçerik */
#content{
  padding:12px 12px 110px; /* en alttaki ürün sepete gizlenmesin */
  padding-top: 220px;
  transition:padding-top .18s ease;
}

/* Sadece arama AÇIKKEN biraz daha aşağı insin */
body.search-open #content{
  padding-top:290px; /* 220 → 260, istersen 250 yapabilirsin */
}

.product-list{
  list-style:none;
  margin:0;padding:0;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.product{
  display:grid;
  grid-template-columns:96px 1fr auto;
  gap:10px;
  background:var(--surface);
  border-radius:16px;
  border:1px solid var(--line);
  padding:10px;
  box-shadow:0 4px 16px rgba(15,23,42,.04);
  align-items:center;
}
.product .media{
  width:96px;height:96px;
  border-radius:14px;
  overflow:hidden;
  background:#eef2ff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.product .media img{
  max-width:100%;max-height:100%;object-fit:cover;
}
.product .body{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:4px;
}
.product .title{
  margin:0;
  font-weight:800;
  font-size:15px;
}
.product .desc{
  margin:2px 0 0;
  font-size:13px;
  color:var(--muted);
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  word-break:break-word; /* uzun açıklamalar karta taşmasın */
}

/* Ürün fiyat butonu */
.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-weight:800;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  cursor:pointer;
}
.pill .plus{
  display:inline-grid;
  place-items:center;
  width:26px;height:26px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-weight:900;
}
.pill .price{color:var(--brand)}

/* Alt mini sepet */
.mini-cart{
  position:fixed;
  right:16px;
  bottom:16px;
  border:none;
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 14px;
  box-shadow:0 10px 20px rgba(0,0,0,.18);
  font-weight:800;
  cursor:pointer;
  z-index:92;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.mini-cart .badge.mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:999px;
  background:#10b981;
  color:#fff;
  font-size:12px;
  font-weight:800;
  border:2px solid #fff;
}

/* Yukarı çık butonu (modern) */
.scroll-top{
  position:fixed;
  right:16px;
  bottom:120px;
  z-index:94;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.7);
  background:linear-gradient(135deg,#0f172a,#111827);
  color:#e5e7eb;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 18px 40px rgba(15,23,42,.55);
  cursor:pointer;
  font-size:20px;
  opacity:0;
  pointer-events:none;
  transform:translateY(16px);
  transition:opacity .22s ease, transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.scroll-top.show{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}
.scroll-top::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  border:1px solid rgba(248,250,252,.25);
  pointer-events:none;
}
.scroll-top:active{
  transform:translateY(2px);
  box-shadow:0 10px 22px rgba(15,23,42,.45);
}

/* Sheet / modal ortak */
.sheet{display:none}
.sheet[aria-hidden="false"]{display:block}
.sheet-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:98;
}
.sheet-panel{
  position:fixed;
  left:0;right:0;bottom:0;
  background:#fff;
  border-top-left-radius:24px;
  border-top-right-radius:24px;
  max-height:90vh;
  overflow:auto;
  box-shadow:0 -8px 24px rgba(0,0,0,.24);
  padding-bottom:14px;
  z-index:99;
}

.sheet-close,
.modal-close{
  position:absolute;
  right:10px;
  top:10px;
  width:32px;
  height:32px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:rgba(255,255,255,.96);
  display:grid;
  place-items:center;
  font-size:20px;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(15,23,42,.18);
  z-index:120;              /* BURASI YENİ: resmin üstüne çıktık */
}
.sheet-close:hover,
.modal-close:hover{
  background:#f9fafb;
}

/* Modal sheet */
.modal{display:none}
.modal[aria-hidden="false"]{display:block}
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:103;
}
.modal-sheet{
  position:fixed;
  left:0;right:0;bottom:0;
  background:#fff;
  border-top-left-radius:24px;
  border-top-right-radius:24px;
  max-width:520px;
  margin:0 auto;
  transform:translateY(0);
  padding:14px;
  box-shadow:0 -8px 24px rgba(0,0,0,.24);
  z-index:104;
}
.modal-sheet.small{max-width:420px}

/* Ürün modal resmi: blur -> net animasyonu */
.sheet-media{
  position:relative;
  overflow:hidden;
  border-top-left-radius:24px;
  border-top-right-radius:24px;
  background:#020617;
}
.sheet-media img{
  width:100%;height:220px;
  object-fit:cover;
  transform:scale(1.04);
  filter:blur(4px);
  opacity:0;
  transition:transform .45s ease, filter .45s ease, opacity .3s ease;
  image-rendering:-webkit-optimize-contrast;
  image-rendering:crisp-edges;
}
.sheet-media img.is-loaded{
  transform:scale(1);
  filter:blur(0) contrast(1.05) saturate(1.03);
  opacity:1;
}

.sheet-body{padding:14px}
.p-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.p-price{
  color:var(--brand);
  font-weight:900;
}
.muted{color:var(--muted);font-size:14px}

/* Ürün modal açıklaması taşmasın */
#p-desc{
  margin-top:6px;
  max-height:110px;
  overflow:auto;
}
#p-desc::-webkit-scrollbar{width:4px}
#p-desc::-webkit-scrollbar-thumb{
  background:#d1d5db;
  border-radius:999px;
}
.sheet-actions{
  display:grid;
  gap:8px;
  margin-top:8px;
  position:relative;
  z-index:2;
}
.badges{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin:6px 0;
}
.badges .badge{
  background:#eef2ff;
  border:1px solid var(--line);
  border-radius:999px;
  padding:4px 8px;
  font-weight:700;
  font-size:12px;
}
.qty-row{
  display:flex;
  align-items:center;
  justify-content:center; /* - 1 + ortalı */
  gap:10px;
  margin:14px 0;
}
.qty-btn{
  width:40px;height:40px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  font-size:20px;
  font-weight:900;
}
.qty-input{
  width:90px;height:40px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 10px;
  font-size:16px;
  text-align:center;
}

.primary{
  width:100%;
  padding:12px 16px;
  border-radius:12px;
  border:none;
  background:var(--brand);
  color:var(--brand-ink);
  font-weight:800;
  box-shadow:0 6px 16px rgba(39,50,217,.25);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  z-index:5;            /* olası overlay'lerin üstünde olsun */
}

/* pulse animasyonu için */
.primary.pulse{
  animation:btnPulse .3s ease-out;
}
@keyframes btnPulse{
  0%{transform:scale(1);}
  40%{transform:scale(.96);}
  100%{transform:scale(1);}
}

/* pseudo overlay'ler tıklamayı engellemesin */
.primary::before,
.primary::after{
  pointer-events:none;
}

.secondary{
  width:100%;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:#111827;
  font-weight:800;
  cursor:pointer;
}
.secondary:hover{background:#f8fafc}
.danger{border-color:#ef4444!important;color:#b91c1c!important}

/* Sepet sheet */
.cart-body{padding:14px 14px 110px}
.cart-list{
  list-style:none;
  margin:0;padding:0;
  display:grid;
  gap:8px;
}
.cart-item{
  display:grid;
  grid-template-columns:64px 1fr auto;
  gap:8px;
  background:#f9fafb;
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
}
.cart-item img{
  width:64px;height:64px;
  border-radius:12px;
  object-fit:cover;
}
.cart-item .top{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.cart-item .note{
  grid-column:1/-1;
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:6px;
}
.cart-item .qty{
  display:flex;
  align-items:center;
  gap:6px;
}
.cart-sticky{
  position:sticky;
  bottom:0;
  background:#fff;
  border-top:1px solid var(--line);
  padding:10px 14px 14px;
  box-shadow:0 -8px 20px rgba(0,0,0,.08);
}
.cart-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:6px 0;
}
.cart-actions{display:grid;gap:8px}

/* Tema paleti */
.palette{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
  padding:4px 2px;
  overflow-x:auto;
}
.palette::-webkit-scrollbar{height:6px}
.palette::-webkit-scrollbar-thumb{
  background:#c7c9d3;
  border-radius:999px;
}
.palette button{
  min-width:48px;min-height:48px;
  border-radius:14px;
  border:2px solid #e5e7eb;
  cursor:pointer;
}
.palette button:focus{
  outline:3px solid rgba(39,50,217,.4);
  outline-offset:2px;
}

/* QR modal */
.qr-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:220px;
  background:#f9fafb;
  border:1px dashed var(--line);
  border-radius:12px;
  margin:8px 0;
}
.center{text-align:center}


/* Kampanyalar */
/* Kampanyalar (modern kart + yan oklar) */
.campaigns-grid{
  position:relative;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  overflow:hidden;
  min-height:240px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Resim kartı dolduruyor, okların altında kalacak */
.campaigns-grid img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(15,23,42,.20);
  opacity:0;
  transition:opacity .35s ease;
  z-index:1;              /* <-- ÖNEMLİ */
}
.campaigns-grid img.active{
  opacity:1;
}

#campaigns-text {
  font-size: 14px;
  text-align: center;
  margin: 6px 0 10px;
}

/* Slogan – üst satır, kalın */
#campaigns-text strong {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: #111827;
  margin-bottom: 4px;
}

/* Alt yazı – alt satır */
#campaigns-text span {
  display: block;
  font-weight: 500;
}

/* Yan oklar resmin üstünde */
.camp-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border-radius:999px;
  border:none;
  background:radial-gradient(circle at 30% 30%, #ffffff, #e5e7eb);
  color:#111827;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(15,23,42,.35);
  z-index:2;              /* <-- OKLAR RESMİN ÜSTÜNDE */
}
.camp-arrow span{
  font-size:20px;
  font-weight:900;
  line-height:1;
}
.camp-arrow.camp-prev{ left:14px; }
.camp-arrow.camp-next{ right:14px; }

.camp-arrow:active{
  transform:translateY(-50%) scale(.96);
  box-shadow:0 6px 16px rgba(15,23,42,.25);
}

/* Eski alt navigasyon varsa görünmesin */
.campaigns-nav{ display:none; }




/* Responsive */
@media(min-width:720px){
  .product-list{grid-template-columns:repeat(2,1fr)}
}

/* Scroll durumunda ufak kompakt efekt */
body[data-compact="1"] .appbar{
  box-shadow:0 10px 30px rgba(15,23,42,.45);
}
body[data-compact="1"] .group-hero{
  opacity:.98;
}

/* Kampanya butonu pulse */
@keyframes promoPulseStrong{
  0%{transform:scale(1);box-shadow:0 0 0 0 rgba(70,90,255,.45)}
  60%{transform:scale(1.04);box-shadow:0 0 0 16px rgba(70,90,255,0)}
  100%{transform:scale(1);box-shadow:0 0 0 0 rgba(70,90,255,0)}
}
@keyframes promoDotBlink{
  0%,100%{opacity:.25}
  50%{opacity:1}
}
.promo-blink-strong{
  position:relative;
  animation:promoPulseStrong 1.6s ease-in-out infinite;
}
.promo-blink-strong::after{
  content:"";
  position:absolute;
  top:-6px;right:-6px;
  width:10px;height:10px;
  border-radius:50%;
  background:#ff3b30;
  animation:promoDotBlink 1s linear infinite;
  box-shadow:0 0 0 3px rgba(255,59,48,.25);
}

#selected-filters{
  position:sticky;
  top:calc(var(--appbar-h) + 44px);
  background:linear-gradient(#ffffffee,#ffffffee);
  backdrop-filter:blur(6px);
  padding:10px 12px 8px;
  border-bottom:1px solid var(--line);
  z-index:48;
  border-radius:0 0 16px 16px;
  display:none;
}
.sf-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:6px 6px 0 0;
  padding:6px 10px;
  border:1.5px solid #e2e8f0;
  border-radius:999px;
  background:linear-gradient(#ffffff,#f8fafc);
  font-weight:800;
  font-size:13px;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
  transition:transform .12s, box-shadow .12s;
}
.sf-chip:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(0,0,0,.08);
}
.sf-chip .sf-x{
  width:22px;height:22px;
  border:0;background:#fff;
  border-radius:999px;
  cursor:pointer;
  line-height:1;
}
.sf-chip .sf-x:hover{background:#f3f4f6}
.sf-clear{
  margin:6px 0 0 4px;
  padding:6px 10px;
  border:1.5px solid #111827;
  background:#111827;
  color:#fff;
  border-radius:10px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(0,0,0,.12);
}

/* Filter fab */
.filter-fab{
  position:fixed;
  right:16px;
  bottom:65px;
  z-index:93;
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  background:#fff;
  color:#111827;
  padding:10px 14px;
  border-radius:999px;
  font-weight:800;
  box-shadow:0 10px 20px rgba(0,0,0,.18);
  cursor:pointer;
}
.filter-fab .i{
  display:inline-grid;
  place-items:center;
  width:22px;height:22px;
  border-radius:50%;
  background:#111827;
  color:#fff;
  font-size:12px;
}
.filters-grid{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:6px;
}
.filt-opt{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:1.5px solid #e5e7eb;
  border-radius:999px;
  background:#fff;
  font-weight:700;
  transition:transform .12s, box-shadow .12s, border-color .12s;
}
.filt-opt:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(0,0,0,.08);
}
.filt-opt input{display:none}
.filt-opt span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  font-weight:800;
}
.filt-opt input:checked + span{
  color:var(--brand);
  background:rgba(39,50,217,.08);
  border:1.5px solid var(--brand);
  box-shadow:0 0 0 3px rgba(39,50,217,.12);
}

/* Filter sheet başlık & sayaç */
#sheet-filter .sheet-title{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-start;
  padding-right:48px;
  overflow:visible;
}
#sheet-filter .filter-count{
  font-weight:800;
  font-size:13px;
  color:#111827;
  opacity:.8;
  padding:4px 8px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  background:#fff;
  margin-left:auto;
  margin-right:48px;
  pointer-events:none;
}
#sheet-filter [data-close="sheet-filter"],
#sheet-filter .sheet-close{
  position:absolute;
  right:10px;top:8px;
  z-index:5;
  width:28px;height:28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  cursor:pointer;
  pointer-events:auto;
}

/* Filtre sheet içi arama */
.filter-search-wrap{
  margin:4px 0 8px;
}
#filter-search{
  width:100%;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  font-size:14px;
}

/* Filter sheet mobile uyum */
@media (max-width:420px){
  #sheet-filter .filter-count{
    margin-right:44px;
    font-size:12px;
    padding:3px 8px;
  }
  #sheet-filter [data-close="sheet-filter"],
  #sheet-filter .sheet-close{right:8px;top:6px}
}

/* Grup başlığı dekorasyonu */
#active-group-title{
  position:relative;
  margin:12px 12px 8px;
  padding:6px 0;
  text-align:center;
}

#active-group-title::before{
  content:"";
  display:block;
  height:1px;
  width:min(820px, calc(100% - 32px));
  margin:0 auto 6px;  /* başlıkla aradaki boşluk */
  border-radius:999px;
  background:linear-gradient(
    90deg,
    rgba(0,0,0,0) 0%,
    rgba(148,163,184,.4) 12%,
    rgba(148,163,184,.7) 50%,
    rgba(148,163,184,.4) 88%,
    rgba(0,0,0,0) 100%
  );
  opacity:.85;
}

/* Alt çizgi */
#active-group-title::after{
  content:"";
  display:block;
  height:2px;
  width:min(820px, calc(100% - 32px));
  margin:6px auto 0;  /* üsttekiyle aynı: 6px */
  border-radius:999px;
  background:linear-gradient(
    90deg,
    rgba(0,0,0,0) 0%,
    rgba(17,24,39,.12) 12%,
    rgba(17,24,39,.22) 50%,
    rgba(17,24,39,.12) 88%,
    rgba(0,0,0,0) 100%
  );
}
@media (max-width:480px){
  #active-group-title{padding-bottom:4px;margin-bottom:6px}
  #active-group-title::after{
    height:1.5px;
    width:calc(100% - 24px);
  }
}

/* Grup modu: resimli */
#active-group-title .title-banner{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  border-radius:16px;
  font-weight:900;
  letter-spacing:.2px;
  background:linear-gradient(180deg,#f8fafc 0%, #ffffff 100%);
  border:1.5px solid #e5e7eb;
  box-shadow:0 6px 16px rgba(15,23,42,.08);
}
#active-group-title .title-banner .i{
  width:22px;height:22px;
  display:grid;
  place-items:center;
  background:#111827;
  color:#fff;
  border-radius:999px;
  font-size:12px;
}
#active-group-title .title-banner.filtered{
  background:linear-gradient(180deg,#fff7ed 0%, #ffffff 100%);
  border-color:#fed7aa;
}

/* Grup modu: resimli */
#active-group-title .title-banner.group{
  background:linear-gradient(180deg,#f7fee7 0%, #ffffff 100%);
  border-color:#d9f99d;
}
.group-thumb{
  width:34px;height:34px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 4px 12px rgba(0,0,0,.12);
  background:#f3f4f6;
}
.group-thumb img{width:100%;height:100%;object-fit:cover}
.group-title-text{
  font-weight:900;
  font-size:15px;
  color:#111827;
}

/* Sheet açıkken mini-cart gizle */
.sheet-open .mini-cart{display:none}

#p-add {
  position: relative;
}

#p-add .p-add-label {
  display: inline-block;
  width: 100%;
  text-align: center;
  pointer-events: none; /* tıklama direkt butona gitsin */
}

/* (isteğe bağlı) pulse animasyonu */
#p-add.pulse {
  animation: pulseBtn .22s ease;
}

@keyframes pulseBtn {
  0%   { transform: scale(1); }
  45%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}
