/* ════════════════════════════════════════════
   TANIDIK Mağaza v2 — noir / gold premium
   ════════════════════════════════════════════ */

/* ── Page base ─────────────────────────────── */
.sp-body { background: #050505; }

.sp-page {
  min-height: 100vh;
  padding: 0;
  padding-bottom: 0;
  max-width: 100%;
  margin: 0;
}

/* ── Topbar ────────────────────────────────── */
.sp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 1rem 0.45rem;
}

.sp-topbar__brand { display: flex; align-items: baseline; gap: 0.4rem; }

.sp-topbar__name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}

.sp-topbar__tag {
  font-size: 0.66rem;
  color: #c9a227;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Cart icon in topbar */
.sp-topbar__cart {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.22);
  color: #c9a227;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.sp-topbar__cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8d36b, #c99422);
  color: #0a0700;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #050505;
  padding: 0 3px;
  pointer-events: none;
}

/* ── Search row ────────────────────────────── */
.sp-search-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.75rem 0.6rem;
}

.sp-search {
  position: relative;
  flex: 1;
  min-width: 0;
}

.sp-search__ico {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.sp-search__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.78rem 1rem 0.78rem 2.75rem;
  border-radius: 12px;
  border: 1.5px solid rgba(201, 162, 39, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.sp-search__input::placeholder { color: rgba(255, 255, 255, 0.3); }

.sp-search__input:focus {
  outline: none;
  border-color: #c9a227;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

/* Filter button */
.sp-filter-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(201, 162, 39, 0.06);
  border: 1.5px solid rgba(201, 162, 39, 0.4);
  color: #c9a227;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.sp-filter-btn:hover,
.sp-filter-btn:active { background: rgba(201, 162, 39, 0.16); }

/* ── Category icons ────────────────────────── */
.sp-cats-wrap { overflow: hidden; }

.sp-cats {
  display: flex;
  overflow-x: auto;
  padding: 0.1rem 0.5rem 0.55rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 0.05rem;
}

.sp-cats::-webkit-scrollbar { display: none; }

.sp-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  min-width: 60px;
  padding: 0.25rem 0.15rem;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.sp-cat:active { opacity: 0.7; }

.sp-cat__ico {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.sp-cat.is-active .sp-cat__ico {
  background: rgba(201, 162, 39, 0.13);
  border-color: rgba(201, 162, 39, 0.42);
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.14);
}

.sp-cat__lbl {
  font-size: 0.59rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.02em;
}

.sp-cat.is-active .sp-cat__lbl { color: #c9a227; font-weight: 600; }

/* ── Campaign banners ──────────────────────── */
.sp-banners { padding: 0.3rem 0 0.5rem; }

.sp-banners__track {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.1rem 0.75rem 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.sp-banners__track::-webkit-scrollbar { display: none; }

.sp-banner {
  min-width: 260px;
  height: 110px;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  scroll-snap-align: start;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-banner--gold {
  background: linear-gradient(135deg, #1a1200 0%, #2e2000 40%, #1a1200 100%);
  border-color: rgba(201, 162, 39, 0.3);
}

.sp-banner--gold::before {
  content: "✦";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  color: rgba(201, 162, 39, 0.12);
}

.sp-banner--dark {
  background: linear-gradient(135deg, #0a0015 0%, #160025 40%, #0a0015 100%);
  border-color: rgba(160, 100, 240, 0.25);
}

.sp-banner--dark::before {
  content: "◈";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  color: rgba(160, 100, 240, 0.1);
}

.sp-banner--green {
  background: linear-gradient(135deg, #001a0a 0%, #002a12 40%, #001a0a 100%);
  border-color: rgba(80, 200, 120, 0.2);
}

.sp-banner--green::before {
  content: "⬡";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  color: rgba(80, 200, 120, 0.1);
}

.sp-banner__badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
  width: fit-content;
}

.sp-banner--gold .sp-banner__badge {
  background: rgba(201, 162, 39, 0.2);
  color: #f5d060;
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.sp-banner--dark .sp-banner__badge {
  background: rgba(160, 100, 240, 0.15);
  color: #c090f0;
  border: 1px solid rgba(160, 100, 240, 0.3);
}

.sp-banner--green .sp-banner__badge {
  background: rgba(80, 200, 120, 0.12);
  color: #6ee89a;
  border: 1px solid rgba(80, 200, 120, 0.28);
}

.sp-banner__title {
  display: block;
  font-size: 0.97rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.12rem;
}

.sp-banner__sub {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.52);
}

/* ── Section titles ────────────────────────── */
.sp-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 0.5rem;
  padding: 0 0.75rem;
}

/* ── Featured stores ───────────────────────── */
.sp-featured { padding: 0.5rem 0 0.55rem; }

.sp-stores-row {
  display: flex;
  overflow-x: auto;
  gap: 0.55rem;
  padding: 0.1rem 0.75rem 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sp-stores-row::-webkit-scrollbar { display: none; }

.sp-store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 68px;
  padding: 0.3rem 0.2rem;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.sp-store-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.18s, border-color 0.18s;
}

.sp-store-card.is-active .sp-store-logo {
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.4);
  color: #f5d060;
}

.sp-store-name {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  line-height: 1;
}

.sp-store-card.is-active .sp-store-name { color: #c9a227; font-weight: 600; }

/* ── Products section ──────────────────────── */
.sp-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem 0.45rem;
}

/* Hidden storeFilters pills (JS needs DOM element) */
.sp-pills-hidden { display: none !important; }

/* ── Product grid — 2 columns ──────────────── */
.sp-grid.store-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.65rem !important;
  padding: 0 0.75rem 1.5rem !important;
}

/* ── Product card redesign ─────────────────── */
.sp-grid .store-card {
  background: #0d0d10 !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s !important;
}

.sp-grid .store-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(201, 162, 39, 0.3) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5) !important;
}

/* Image area — square aspect ratio */
.sp-grid .store-card-img {
  position: relative !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(201, 162, 39, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.08) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.sp-grid .store-card-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

.sp-grid .store-card:hover .store-card-img img {
  transform: scale(1.05) !important;
}

/* Discount badge — top left */
.store-card-discount {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  background: linear-gradient(135deg, #c0252a, #e04040);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.4rem;
  border-radius: 6px;
  z-index: 2;
}

/* Favorite button — top right */
.store-card-fav {
  position: absolute;
  top: 0.42rem;
  right: 0.42rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  color: rgba(255, 255, 255, 0.65);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.store-card-fav:hover,
.store-card-fav.is-faved {
  background: rgba(201, 162, 39, 0.2);
  border-color: rgba(201, 162, 39, 0.5);
  color: #c9a227;
}

.store-card-fav.is-faved svg {
  fill: #c9a227;
  stroke: #c9a227;
}

/* Stock badge */
.sp-grid .store-card-badge {
  position: absolute !important;
  top: 0.45rem !important;
  left: 0.45rem !important;
  height: auto !important;
  padding: 0.2rem 0.45rem !important;
  font-size: 0.58rem !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, rgba(240,192,96,0.9), rgba(210,160,55,0.9)) !important;
  color: #0a0800 !important;
  z-index: 2 !important;
}

/* Card body */
.sp-grid .store-card-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0.55rem 0.6rem 0.65rem !important;
  gap: 2px !important;
}

/* Venue name */
.store-card-venue {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* Product name */
.sp-grid .store-card-name {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0 0 0.12rem !important;
  line-height: 1.3 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Rating */
.store-card-rating {
  font-size: 0.65rem;
  color: #c9a227;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.18rem;
}

.store-card-rcount {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.62rem;
}

/* Footer — price + add btn */
.sp-grid .store-card-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px !important;
  margin-top: auto !important;
  padding-top: 0.3rem !important;
}

.sp-grid .store-card-price {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: rgba(240, 192, 96, 0.9) !important;
}

/* Add to cart button — small + icon */
.sp-grid .store-add-btn {
  height: 26px !important;
  width: 26px !important;
  min-width: 26px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(201, 162, 39, 0.4) !important;
  background: rgba(201, 162, 39, 0.1) !important;
  color: #c9a227 !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: background 0.15s, transform 0.1s !important;
}

.sp-grid .store-add-btn:hover {
  background: rgba(201, 162, 39, 0.22) !important;
  border-color: #c9a227 !important;
}

.sp-grid .store-add-btn--added {
  background: rgba(201, 162, 39, 0.28) !important;
  transform: scale(0.9) !important;
}

/* Hide category from card (use venue instead) */
.sp-grid .store-card-cat { display: none !important; }
.sp-grid .store-card-desc { display: none !important; }

/* ── Filter modal ──────────────────────────── */
.sp-fmodal {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.sp-fmodal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.sp-fmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.sp-fmodal__sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0e0e13;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(201, 162, 39, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: env(safe-area-inset-bottom, 16px);
}

.sp-fmodal.is-open .sp-fmodal__sheet { transform: translateY(0); }

.sp-fmodal__sheet::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  margin: 10px auto 0;
}

.sp-fmodal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-fmodal__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0;
}

.sp-fmodal__close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
  flex-shrink: 0;
}

.sp-fmodal__close:hover { background: rgba(255, 255, 255, 0.14); }

.sp-fmodal__section {
  padding: 0.85rem 1rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sp-fmodal__section-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.sp-fmodal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

/* Category pills inside modal — override store-pill */
.sp-fmodal__section .store-pill {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-radius: 999px !important;
  padding: 0.36rem 0.85rem !important;
  font-size: 0.78rem !important;
  height: auto !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: border-color 0.15s, background 0.15s, color 0.15s !important;
}

.sp-fmodal__section .store-pill:hover {
  border-color: rgba(201, 162, 39, 0.35) !important;
}

.sp-fmodal__section .store-pill.store-pill--active,
.sp-fmodal__section .store-pill--active {
  border-color: #c9a227 !important;
  background: rgba(201, 162, 39, 0.13) !important;
  color: #f5e6b8 !important;
}

/* Filter chips (static) */
.sp-fchip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.36rem 0.85rem;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.sp-fchip:hover { border-color: rgba(201, 162, 39, 0.3); }

.sp-fchip.is-active {
  border-color: #c9a227;
  background: rgba(201, 162, 39, 0.13);
  color: #f5e6b8;
}

/* Modal footer */
.sp-fmodal__footer {
  padding: 0.9rem 1rem;
  position: sticky;
  bottom: 0;
  background: #0e0e13;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-fmodal__apply {
  display: block;
  width: 100%;
  padding: 0.88rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #b8911f 0%, #f0c84a 50%, #c9a227 100%);
  color: #0a0600;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.sp-fmodal__apply:hover { opacity: 0.9; }
.sp-fmodal__apply:active { opacity: 0.75; }

/* ── Cart drawer premium reskin ────────────── */
.store-cart-drawer {
  background: #0e0e13 !important;
  border-left: 1px solid rgba(201, 162, 39, 0.18) !important;
  border-top: 1px solid rgba(201, 162, 39, 0.18) !important;
}

.store-cart-head h2 {
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

.store-kicker { color: rgba(201, 162, 39, 0.6) !important; }

.store-checkout-btn {
  background: linear-gradient(135deg, #b8911f 0%, #f0c84a 50%, #c9a227 100%) !important;
  color: #0a0600 !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(201, 162, 39, 0.3) !important;
}

/* Product detail modal reskin */
.store-modal {
  background: #0e0e13 !important;
  border: 1px solid rgba(201, 162, 39, 0.18) !important;
}

.store-modal-cta {
  background: linear-gradient(135deg, #b8911f 0%, #f0c84a 50%, #c9a227 100%) !important;
  color: #0a0600 !important;
  font-weight: 800 !important;
  border: none !important;
}
