/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #080810;
  --bg-card: #10101a;
  --bg-input: #0d0d18;
  --border: #1e1e35;
  --border-hover: #2e2e55;
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --cyan: #22d3ee;
  --cyan-glow: rgba(34, 211, 238, 0.25);
  --cta: #f59e0b;
  --cta-dark: #d97706;
  --danger: #ef4444;
  --success: #22c55e;
  --text: #f1f5f9;
  --subtext: #94a3b8;
  --muted: #475569;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 24px var(--primary-glow);
  --transition: 0.2s ease;
  --nav-h: 72px;
  --font: 'Space Grotesk', sans-serif;
  --nav-bg: rgba(8, 8, 16, 0.85);
}

[data-theme="light"] {
  --bg: #f0f2f9;
  --bg-card: #ffffff;
  --bg-input: #e8eaf4;
  --border: #d0d4e8;
  --border-hover: #a8afd4;
  --primary-glow: rgba(99, 102, 241, 0.18);
  --cyan: #0891b2;
  --cyan-glow: rgba(8, 145, 178, 0.14);
  --cta-dark: #b45309;
  --text: #0f172a;
  --subtext: #334155;
  --muted: #64748b;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 24px var(--primary-glow);
  --nav-bg: rgba(240, 242, 249, 0.88);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.page { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 4rem; min-height: 100vh; }
.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 0.75rem; }
.nav__logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; flex-shrink: 0; margin-right: 0.25rem; }
.nav__logo span { color: var(--cyan); }
.nav__logo-ua {
  background: linear-gradient(to bottom, #005BBB 50%, #FFD700 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav__actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }

/* Nav search */
.nav__search-wrap { flex: 1; position: relative; }
.nav__search-input {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 0.625rem 1.25rem; color: var(--text); font-size: 0.9rem;
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font);
}
.nav__search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.nav__search-ph {
  position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 0.9rem; pointer-events: none;
  font-family: var(--font);
}
.nav__search-input:not(:placeholder-shown) ~ .nav__search-ph,
.nav__search-input:focus ~ .nav__search-ph { opacity: 0; }
.nav__search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  z-index: 200; overflow: hidden;
}
.search-result-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; cursor: pointer;
  transition: background var(--transition);
  text-decoration: none; color: var(--text);
}
.search-result-item:hover { background: var(--bg-input); }
.search-result-item__img {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0; background: var(--bg-input);
}
.search-result-item__img img { width: 100%; height: 100%; object-fit: cover; }
.search-result-item__name { font-size: 0.9rem; font-weight: 600; flex: 1; }
.search-result-item__price { font-size: 0.85rem; color: var(--subtext); white-space: nowrap; }
.search-result-all {
  display: block; text-align: center; padding: 0.65rem 1rem;
  font-size: 0.82rem; color: var(--primary); font-weight: 600;
  border-top: 1px solid var(--border); transition: background var(--transition);
  text-decoration: none;
}
.search-result-all:hover { background: var(--bg-input); }

/* Nav favorites */
.nav__fav {
  position: relative; display: flex; align-items: center;
  padding: 0.5rem; border-radius: var(--radius-sm);
  border: none; background: none; cursor: pointer;
  color: var(--subtext); transition: color var(--transition);
  flex-shrink: 0;
}
.nav__fav:hover { color: var(--danger); }
.fav-badge {
  position: absolute; top: -2px; right: -4px;
  background: var(--danger); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.nav__cart {
  position: relative; display: flex; align-items: center;
  padding: 0.5rem; border-radius: var(--radius-sm);
  border: none; background: none; cursor: pointer;
  color: var(--subtext); transition: color var(--transition);
  flex-shrink: 0;
}
.nav__cart:hover { color: var(--text); }
.cart-badge {
  position: absolute; top: -2px; right: -4px;
  background: var(--primary); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
@keyframes cartPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.6); }
  100% { transform: scale(1); }
}
.cart-badge--pop { animation: cartPop 0.35s ease; }
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem; border-radius: var(--radius-sm);
  background: none; border: none; color: var(--subtext);
  transition: color var(--transition), background var(--transition);
}
.theme-toggle:hover { color: var(--text); background: var(--bg-card); }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ===== HERO ===== */
.hero {
  min-height: 440px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--bg);
  padding: calc(var(--nav-h) + 2.5rem) 0 3.5rem;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 90% at 78% 50%, rgba(99,102,241,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 35% 50% at 15% 65%, rgba(34,211,238,0.08) 0%, transparent 60%);
}
.hero__row { display: flex; align-items: center; gap: 4rem; width: 100%; position: relative; z-index: 1; }
.hero__content { flex: 1; min-width: 0; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3);
  color: var(--cyan); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.3rem 0.85rem; border-radius: 100px; margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 1rem;
}
.hero__title span { color: var(--primary); }
.hero__sub { font-size: 1.05rem; color: var(--subtext); max-width: 420px; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__image {
  flex: 0 0 440px; height: 320px;
  border-radius: 16px; overflow: hidden;
  position: relative;
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(99,102,241,0.3) 0%, rgba(34,211,238,0.2) 60%, rgba(245,158,11,0.1) 100%);
}

/* Category grid */
.cat-strip-section { background: var(--bg-card); padding: 0.75rem 0; overflow-x: hidden; }
.cat-strip {
  display: flex; overflow-x: scroll; flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  gap: 0.5rem; padding: 0 1.25rem;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip__tile { flex-shrink: 0; width: 150px; }
@media (min-width: 768px) {
  .cat-strip {
    display: grid; overflow-x: unset;
    grid-template-columns: repeat(auto-fill, 196px);
    flex-wrap: unset; padding: 0 1.5rem;
  }
  .cat-strip__tile { width: auto; }
}
.cat-strip__tile {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  padding: 0 0 0 0.9rem;
  height: 80px;
  text-decoration: none; color: var(--text);
  background: rgba(99, 102, 241, 0.08);
  border-radius: 14px; overflow: hidden;
  transition: filter var(--transition);
}
.cat-strip__tile:hover { filter: brightness(0.93); }
.cat-strip__img {
  width: 80px; height: 100%; flex-shrink: 0;
  overflow: hidden; background: transparent; border: none; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
}
.cat-strip__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-strip__name { font-size: 0.82rem; font-weight: 500; text-align: left; flex: 1; line-height: 1.3; padding-right: 0.4rem; }

/* Promo row section */
.promo-row-section { padding: 1rem 0; }
.promo-row-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0 1.5rem;
}

/* Promo Carousel */
.promo-carousel-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.promo-carousel-stage {
  position: relative;
  height: 437px;
  overflow: visible;
}
.promo-carousel-track {
  position: relative;
  width: 100%;
  height: 437px;
}

/* Individual banner card */
.promo-banner-card {
  display: block;
  position: absolute;
  left: 50%;
  top: 0;
  width: 246px;
  height: 437px;
  margin-left: -123px;
  border-radius: 1rem;
  background: var(--bg-input);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.5s ease, box-shadow 0.5s ease;
  user-select: none;
}
.promo-banner-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; border-radius: inherit; }
.promo-banner-card::after {
  content: '';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C%2Fsvg%3E") no-repeat center/16px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

/* Carousel nav buttons */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 20; background: rgba(255,255,255,0.9); border: 1px solid var(--border);
  border-radius: 50%; width: 44px; height: 44px;
  font-size: 1.6rem; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), box-shadow var(--transition);
  cursor: pointer; line-height: 1; backdrop-filter: blur(4px);
}
.carousel-btn:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow-glow); }
.promo-banner-card:hover::after { opacity: 1; transform: scale(1); }
.carousel-btn svg { display: block; }
.carousel-btn--prev { left: 0.75rem; }
.carousel-btn--next { right: 0.75rem; }

/* Mobile: carousel becomes horizontal scroll container */
@media (max-width: 767px) {
  .promo-carousel-wrap { overflow: visible; }
  .promo-carousel-stage {
    height: auto;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100vw;
  }
  .promo-carousel-stage::-webkit-scrollbar { display: none; }
  .promo-carousel-track {
    position: static;
    display: flex;
    height: auto;
    gap: 0.75rem;
    padding: 1rem 0.5rem 1.5rem;
    width: max-content;
  }
  .promo-banner-card {
    position: static;
    left: auto;
    top: auto;
    margin-left: 0;
    flex-shrink: 0;
    width: 200px;
    height: 356px;
    scroll-snap-align: center;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
  }
  .carousel-btn { display: none; }
}

/* Product of Day card */
.promo-pod-card {
  width: 246px;
  min-width: 246px;
  height: 437px;
  border-radius: 1rem;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}
.promo-pod__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.promo-pod__label { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pod-countdown { font-size: 0.9rem; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--cta); }
.promo-pod__img {
  display: block;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.promo-pod__img img { width: 100%; height: 100%; object-fit: cover; }
.promo-pod__body { padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; flex-shrink: 0; }
.promo-pod__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-pod__name:hover { color: var(--primary); }
.promo-pod__price { font-size: 1.05rem; font-weight: 700; }
.promo-pod__price .old { text-decoration: line-through; color: var(--muted); font-size: 0.8rem; margin-right: 0.3rem; }
.promo-pod__price .sale { color: var(--cta); }

@media (max-width: 768px) {
  .promo-row-inner { align-items: stretch; }
}

@media (max-width: 700px) {
  .promo-row-inner { flex-direction: column; padding: 0 1rem; }
  .promo-pod-card { width: 100%; min-width: unset; height: auto; }
  .promo-pod__img { height: 200px; flex: none; }
}

/* Favorites button */
.fav-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.15rem; line-height: 1;
  transition: color var(--transition), transform var(--transition);
  padding: 0; color: var(--subtext);
}
.fav-btn:hover, .fav-btn--active { color: var(--danger); }
.fav-btn--active { transform: scale(1.15); }
.product-card__img .fav-btn {
  position: absolute; top: 0.5rem; right: 0.5rem; z-index: 3;
  background: rgba(0,0,0,0.45); border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
}
.product-card__img .fav-btn:hover,
.product-card__img .fav-btn.fav-btn--active { background: var(--danger); color: #fff; }
.fav-btn--gallery {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 4;
  background: rgba(0,0,0,0.45); border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
  transition: background var(--transition), color var(--transition);
}
.fav-btn--gallery:hover,
.fav-btn--gallery.fav-btn--active { background: var(--danger); color: #fff; }

/* Admin form helpers */
.admin-page-header { margin-bottom: 2rem; }
.admin-page-title { font-size: 1.5rem; font-weight: 700; }
.admin-grid { display: grid; gap: 1.5rem; }
.form-input {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.7rem 1rem;
  color: var(--text); font-size: 0.95rem; font-family: var(--font);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--subtext); margin-bottom: 0.5rem; }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-bottom: 2.5rem; }
  .hero__row { flex-direction: column; gap: 2rem; }
  .hero .container { padding-left: 0; padding-right: 0; margin: 0; display: flex; justify-content: center; width: 100%; }
  .hero__content { padding: 0 1.5rem; width: 100%; display: flex; flex-direction: column; }
  .hero__actions { justify-content: center; }
  .hero__image { flex: none; width: 100%; height: 220px; border-radius: 0; overflow: visible; padding: 0 14px; }
  .hero__image img { border-radius: 16px; }
  .hero .btn--ghost { background: #fff; border-color: #fff; color: #000; }
  .pod-card { flex-direction: column; gap: 0; }
  .pod-card__img { flex: none; width: 100%; height: 200px; }
  .pod-card__body { padding: 1.5rem; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { opacity: 0.88; }
.btn:active { opacity: 0.75; }
.btn--added { background: #22c55e !important; color: #fff !important; pointer-events: none; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); opacity: 1; }
.btn--cta { background: var(--primary); color: #fff; }
.btn--cta:hover { background: var(--primary-dark); opacity: 1; }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--border-hover); background: var(--bg-card); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { opacity: 0.85; }
.btn--sm { padding: 0 1rem; font-size: 0.85rem; height: 40px; }
.btn--full { width: 100%; text-align: center; }
.btn--icon { padding: 0.5rem; }

/* ===== SECTION HEADER ===== */
.section-header { margin-bottom: 2.5rem; }
.section-header__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.5px; }
.section-header__sub { color: var(--subtext); margin-top: 0.5rem; font-size: 1rem; }
.section-header--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ===== PRODUCT GRID ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
@media (max-width: 767px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}
@media (max-width: 575px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card__img { aspect-ratio: 16/9; max-height: 160px; }
}
.product-card__cart-form { display: flex; position: relative; z-index: 1; margin-top: 0.75rem; }
.product-card__cart-form .btn { width: 100%; }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
  position: relative;
}
.product-card__overlay {
  position: absolute; inset: 0; z-index: 0;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-hover);
}
.product-card__img {
  aspect-ratio: 4/3; overflow: hidden; background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__img img { transform: scale(1.04); }
.product-card__img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 3rem;
}
.product-card__body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-card__cat { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.3rem; }
.product-card__name { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; line-height: 1.3; }
.product-card__desc { font-size: 0.8rem; color: var(--subtext); margin-bottom: 0.75rem; flex: 1; line-height: 1.5; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; }
.product-card__price { font-weight: 700; font-size: 1.05rem; }
.product-card__price .old { text-decoration: line-through; color: var(--muted); font-size: 0.85rem; font-weight: 400; margin-right: 0.4rem; }
.product-card__price .sale { color: var(--cta); }

/* ===== PRODUCT BADGES ===== */
.product-gallery__main { position: relative; }
.prod-badges {
  position: absolute; top: 0.6rem; left: 0.6rem;
  display: flex; flex-direction: column; gap: 0.35rem; z-index: 2;
  pointer-events: none;
}
.prod-badge {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.65rem; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1; white-space: nowrap; width: fit-content;
}
.prod-badge--new {
  background: rgba(34, 211, 238, 0.18);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
}
.prod-badge--sale {
  background: rgba(245, 158, 11, 0.18);
  color: var(--cta);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.prod-badge--top-sales {
  background: rgba(234, 179, 8, 0.18);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

/* ===== CATEGORY TILES ===== */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.category-tile {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; display: flex; align-items: center; gap: 1rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.category-tile:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 0 20px var(--cyan-glow); }
.category-tile__icon { font-size: 2rem; }
.category-tile__name { font-weight: 600; }
.category-tile__desc { font-size: 0.8rem; color: var(--subtext); margin-top: 0.2rem; }

/* ===== FILTERS (legacy pills — kept for other uses) ===== */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: 0.45rem 1.1rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500; border: 1px solid var(--border);
  background: transparent; color: var(--subtext);
  transition: var(--transition); cursor: pointer;
}
.filter-btn:hover, .filter-btn--active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-btn--sub { font-size: 0.78rem; padding: 0.35rem 0.9rem; border-style: dashed; opacity: 0.85; }
.filter-btn--sub:hover, .filter-btn--sub.filter-btn--active { opacity: 1; }
.search-bar { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.search-bar input { flex: 1; }

/* ===== CATALOG LAYOUT ===== */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.catalog-main { min-width: 0; }

/* Left column wrapper (filter-bar + sidebar) */
.catalog-sidebar-col {
  display: flex; flex-direction: column; gap: 0.6rem;
  position: sticky; top: calc(var(--nav-h) + 1rem);
  max-height: calc(100vh - var(--nav-h) - 2rem);
}

/* Sidebar */
.catalog-sidebar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  overflow-y: auto; flex: 1;
}
.catalog-sidebar__header { display: none; }

/* Filter sections */
.filter-section { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.filter-section:first-child { padding-top: 0; }
.filter-section--reset { border-bottom: none; padding-bottom: 0; }
.filter-section__title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtext); margin-bottom: 0.6rem; margin-top: 0.35rem; }

/* Radio / checkbox rows */
.filter-radio, .filter-check {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.4rem; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 0.9rem; transition: color var(--transition);
  user-select: none;
}
.filter-radio:hover, .filter-check:hover { color: var(--primary); }
.filter-radio input, .filter-check input { accent-color: var(--primary); flex-shrink: 0; cursor: pointer; }
.filter-radio--active, .filter-check--active { color: var(--primary); font-weight: 600; }
.filter-count { margin-left: auto; font-size: 0.72rem; color: var(--muted); font-weight: 500; flex-shrink: 0; }

/* Subcategory chips (below search bar) */
.subcat-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.subcat-chip {
  padding: 0.3rem 0.85rem; border-radius: 100px;
  font-size: 0.82rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--subtext);
  background: transparent; transition: var(--transition);
  white-space: nowrap;
}
.subcat-chip:hover { border-color: var(--primary); color: var(--primary); }
.subcat-chip--active { background: var(--primary); color: #fff; border-color: var(--primary); }
.subcat-count { font-size: 0.7rem; opacity: 0.7; }

/* Price range */
.filter-price { display: flex; align-items: center; gap: 0.5rem; }
.filter-price__input { width: 0; flex: 1; min-width: 0; padding: 0.4rem 0.6rem; font-size: 0.9rem; }
.filter-price__sep { color: var(--muted); flex-shrink: 0; }

/* Reset button */
.filter-reset-btn { width: 100%; text-align: center; justify-content: center; }

/* Search row (top of catalog-main) */
.catalog-search-row {
  display: flex; align-items: stretch; gap: 0.5rem; margin-bottom: 0.75rem;
  flex-wrap: nowrap; width: 100%;
}
.search-bar--catalog {
  flex: 1 1 0%; min-width: 0; margin-bottom: 0;
  display: flex; flex-wrap: nowrap; gap: 0.5rem;
}
.search-bar--catalog input { flex: 1 1 0%; min-width: 0; width: 0; }
.search-bar--catalog .btn { flex: 0 0 auto; white-space: nowrap; }

.filter-section--search { display: none; }
.search-bar--filter { display: flex; flex-direction: column; gap: 0.5rem; }
.search-bar--filter input { width: 100%; }
.search-bar--filter .btn { width: 100%; }

@media (max-width: 768px) {
  .catalog-search-row { flex-direction: row; align-items: center; }
  .search-bar--catalog { display: none; }
  .filter-section--search { display: block; }
}

/* Filter status bar (inside sidebar, above form) */
.catalog-filter-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding-bottom: 0.75rem; margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}
.catalog-filter-bar__status { display: flex; align-items: center; gap: 0.5rem; }
.filter-status-text { font-size: 0.85rem; color: var(--subtext); }
.filter-status-text--empty { font-style: italic; }
.filter-status-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  border-radius: 99px; font-size: 0.72rem; font-weight: 700;
  min-width: 1.35rem; height: 1.35rem; padding: 0 0.4rem;
}

/* Reset button (top bar) */
.filter-reset-btn-top {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.75rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  color: var(--subtext); font-size: 0.8rem; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.filter-reset-btn-top:hover {
  border-color: var(--danger); color: var(--danger); background: rgba(239,68,68,0.06);
}

/* Active filter badge on mobile button */
.filter-active-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  border-radius: 99px; font-size: 0.7rem; font-weight: 700;
  min-width: 1.25rem; height: 1.25rem; padding: 0 0.35rem; line-height: 1;
}

/* Mobile filter button */
.filter-mobile-btn {
  display: none; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: border-color var(--transition);
  flex-shrink: 0; white-space: nowrap;
}
@media (max-width: 380px) {
  .filter-mobile-btn { padding: 0.5rem 0.6rem; font-size: 0; gap: 0; }
  .filter-mobile-btn svg { display: block; }
  .filter-mobile-btn .filter-active-badge { font-size: 0.65rem; }
}
.filter-mobile-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Filter overlay */
.filter-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 199;
}
.filter-overlay--visible { display: block; }

/* ===== RESPONSIVE: catalog ===== */
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 220px 1fr; gap: 1.25rem; }
}

@media (max-width: 768px) {
  .catalog-layout { grid-template-columns: 1fr; }

  .catalog-sidebar-col { position: static; max-height: none; }

  .catalog-sidebar {
    position: fixed; bottom: 0; left: 0; right: 0;
    max-height: 85vh; overflow-y: auto;
    background: var(--bg-card); border-radius: 1rem 1rem 0 0;
    border: none; border-top: 1px solid var(--border);
    z-index: 200; padding: 0 1.25rem 1.5rem;
    transform: translateY(100%); transition: transform 0.3s ease;
  }
  .catalog-sidebar--open { transform: translateY(0); }

  .catalog-sidebar__header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 0 0.75rem; position: sticky; top: 0;
    background: var(--bg-card); z-index: 1;
  }
  .catalog-sidebar__title { font-size: 1.1rem; font-weight: 700; }
  .catalog-sidebar__close {
    background: none; border: none; color: var(--text);
    font-size: 1.3rem; cursor: pointer; padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm); transition: background var(--transition);
  }
  .catalog-sidebar__close:hover { background: var(--border); }

  .filter-mobile-btn { display: flex; }
  .filter-status-text--empty { display: none; }
}

/* ===== PRODUCT DETAIL ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.product-gallery__main {
  aspect-ratio: 1; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.product-gallery__thumb {
  width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid var(--border); cursor: pointer;
  transition: border-color var(--transition);
}
.product-gallery__thumb:hover, .product-gallery__thumb--active { border-color: var(--primary); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.product-info__cat { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.75rem; color: var(--subtext); }
.product-info__cat a { color: var(--subtext); }
.product-info__cat--active, .product-info__cat a:last-child { color: var(--accent); }
.product-info__name { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 0.75rem; line-height: 1.2; }
.product-info__short-desc { font-size: 0.95rem; color: var(--subtext); line-height: 1.6; margin-bottom: 1.1rem; }
.product-info__price { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.25rem; }
.product-info__price .old { text-decoration: line-through; color: var(--muted); font-size: 1.1rem; margin-right: 0.5rem; }
.product-info__price .sale { color: var(--cta); }
.product-info__desc { color: var(--subtext); margin-bottom: 1.75rem; line-height: 1.7; }
.product-info__meta { display: flex; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.85rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600; }
.badge--success { background: rgba(34,197,94,0.15); color: var(--success); }
.badge--danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge--primary { background: rgba(99,102,241,0.15); color: var(--primary); }
.qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.qty-input { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-input button { background: var(--bg-card); border: none; color: var(--text); padding: 0.6rem 1rem; font-size: 1.1rem; transition: background var(--transition); }
.qty-input button:hover { background: var(--border); }
.qty-input input { width: 52px; text-align: center; border: none; background: var(--bg-input); color: var(--text); font-size: 1rem; font-weight: 600; padding: 0.6rem 0; -moz-appearance: textfield; }
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* PRICE CARD */
.price-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  margin-bottom: 0.85rem; display: flex;
  flex-direction: column; gap: 0.45rem; width: 100%;
}
.price-card__main { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.price-card__sale { font-size: 1.7rem; font-weight: 700; color: var(--text); }
.price-card__old { font-size: 1rem; font-weight: 400; color: var(--muted); text-decoration: line-through; }
.price-card__savings {
  display: inline-flex; align-items: center;
  background: rgba(34,197,94,0.12); color: var(--success);
  border: 1px solid rgba(34,197,94,0.25); border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.7rem; width: fit-content;
}

/* STOCK INLINE */
.stock-inline { font-size: 0.88rem; font-weight: 500; margin-bottom: 1rem; }
.stock-inline--available { color: var(--success); }
.stock-inline--unavailable { color: var(--danger); }

/* FAV BUTTON IN QTY ROW */
.qty-row--with-fav { gap: 0.6rem; }
.btn--fav-action {
  flex-shrink: 0; width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--subtext); cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.btn--fav-action:hover, .btn--fav-action.fav-btn--active {
  color: var(--danger); border-color: var(--danger); background: rgba(239,68,68,0.08);
}

/* GALLERY ZOOM */
.product-gallery__main { cursor: zoom-in; overflow: hidden; }
.product-gallery__main img#mainGalleryImg {
  transition: transform 0.1s ease;
  transform-origin: 50% 50%;
  will-change: transform;
}
.product-gallery__main--zoomed { cursor: crosshair; }

/* ===== PRODUCT TABS ===== */
.prod-tabs {
  margin-top: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.prod-tabs__nav {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
  padding: 0 0.5rem;
}
.prod-tabs__nav::-webkit-scrollbar { display: none; }
.prod-tabs__tab {
  padding: 1rem 1.5rem; font-size: 0.95rem; font-weight: 500;
  color: var(--subtext); background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.prod-tabs__tab:hover { color: var(--text); }
.prod-tabs__tab--active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.prod-tabs__body { padding: 2rem 2.25rem; }
.prod-tabs__panel { display: none; }
.prod-tabs__panel--active { display: block; }
.prod-tabs__desc {
  font-size: 0.95rem; color: var(--subtext); line-height: 1.8;
  white-space: pre-wrap; max-width: 800px;
}

/* Specs table */
.prod-specs { max-width: 700px; border-top: 1px solid var(--border); }
.prod-specs__row {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border);
}
.prod-specs__label {
  min-width: 200px; font-size: 0.8rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0;
}
.prod-specs__value { font-size: 1rem; font-weight: 500; color: var(--text); }
.prod-specs__value a { color: var(--primary); }
.prod-specs__value--green { color: var(--success); }
.prod-specs__value--red { color: var(--danger); }

/* ===== STICKY BOTTOM BAR ===== */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--bg-card); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  transform: translateY(100%); transition: transform 0.3s ease;
  padding: 0.75rem 0;
}
.sticky-bar--visible { transform: translateY(0); }
.sticky-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sticky-bar__product { display: flex; align-items: center; gap: 0.85rem; min-width: 0; flex: 1; }
.sticky-bar__img { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.sticky-bar__meta { min-width: 0; }
.sticky-bar__name { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-bar__price { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.1rem; }
.sticky-bar__price--sale { font-size: 1rem; font-weight: 700; }
.sticky-bar__price--old { font-size: 0.8rem; color: var(--muted); text-decoration: line-through; }
.sticky-bar__actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.sticky-bar__fav {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--subtext); font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color var(--transition), border-color var(--transition);
}
.sticky-bar__fav:hover, .sticky-bar__fav.fav-btn--active { color: var(--danger); border-color: var(--danger); }

/* ===== RELATED ===== */
.related { margin-top: 5rem; }

/* ===== CART ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 0.75rem 1rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.cart-table td { padding: 1.25rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item__img { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-card); flex-shrink: 0; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { display: flex; align-items: center; gap: 1rem; }
.cart-item__name { font-weight: 600; }
.cart-item__price { color: var(--subtext); font-size: 0.9rem; margin-top: 0.2rem; }
.order-summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; position: sticky; top: calc(var(--nav-h) + 1rem);
}
.order-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--subtext); }
.summary-row--total { border-bottom: none; font-size: 1.1rem; font-weight: 700; color: var(--text); margin-top: 0.5rem; }
.empty-cart { text-align: center; padding: 5rem 0; }
.empty-cart__icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-cart h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.empty-cart p { color: var(--subtext); margin-bottom: 2rem; }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.form-card h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--subtext); margin-bottom: 0.5rem; }
.form-group label .req { color: var(--danger); }
.form-control {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.7rem 1rem;
  color: var(--text); font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.form-control::placeholder { color: var(--muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert { padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-size: 0.9rem; font-weight: 500; }
.alert--error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert--success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.field-error { display: none; font-size: 0.8rem; color: var(--danger); margin-top: 0.35rem; }
.field-error--visible { display: block; }

/* ===== SUCCESS PAGE ===== */
.success-page { text-align: center; padding: 1.5rem 0; }
.success-page__icon { font-size: 5rem; margin-bottom: 1.5rem; }
.success-page h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; }
.success-page p { color: var(--subtext); margin-bottom: 2rem; }
.order-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; max-width: 480px; margin: 2rem auto; text-align: left; }
.order-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.order-items { display: flex; flex-direction: column; gap: 0.75rem; }
.order-item { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--subtext); }
.order-item span:last-child { font-weight: 600; color: var(--text); }

/* ===== ERROR PAGE ===== */
.error-page { text-align: center; padding: 6rem 0; }
.error-page h1 { font-size: 6rem; font-weight: 700; color: var(--border); }
.error-page h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.error-page p { color: var(--subtext); margin-bottom: 2rem; }

/* ===== ADMIN LAYOUT ===== */
.admin-body { background: #060609; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--bg-card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
}
.admin-sidebar__brand { padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid var(--border); }
.admin-sidebar__brand a { font-size: 1.3rem; font-weight: 700; }
.admin-sidebar__brand a span { color: var(--cyan); }
.admin-sidebar__brand small { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 0.2rem; }
.admin-nav { padding: 1rem 0.75rem; flex: 1; }
.admin-nav__item {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm); color: var(--subtext); font-weight: 500;
  font-size: 0.9rem; transition: var(--transition); margin-bottom: 0.2rem;
}
.admin-nav__item:hover, .admin-nav__item--active { background: rgba(99,102,241,0.12); color: var(--text); }
.admin-nav__item--active { color: var(--primary); }
.admin-nav__icon { font-size: 1.1rem; width: 22px; text-align: center; }
.admin-sidebar__footer { padding: 1rem 0.75rem; border-top: 1px solid var(--border); }
.admin-content { margin-left: 260px; flex: 1; padding: 2.5rem; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.5rem; font-weight: 700; }

/* ===== ADMIN STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.stat-card__label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.stat-card__value { font-size: 2rem; font-weight: 700; }
.stat-card__value--primary { color: var(--primary); }
.stat-card__value--cyan { color: var(--cyan); }
.stat-card__value--cta { color: var(--cta); }
.stat-card__value--danger { color: var(--danger); }

/* ===== ADMIN TABLE ===== */
.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.admin-card__header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card__title { font-weight: 700; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 0.85rem 1.25rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.data-table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(99,102,241,0.05); }
.table-img { width: 52px; height: 52px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); flex-shrink: 0; }
.table-img img { width: 100%; height: 100%; object-fit: cover; }
.table-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 1.25rem; }
.table-name { display: flex; align-items: center; gap: 0.85rem; }
.table-actions { display: flex; gap: 0.5rem; }

/* ===== STATUS BADGES ===== */
.status { display: inline-flex; align-items: center; padding: 0.3rem 0.75rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.status--active, .status--completed { background: rgba(34,197,94,0.15); color: var(--success); }
.status--draft, .status--cancelled { background: rgba(239,68,68,0.12); color: #fca5a5; }
.status--new { background: rgba(99,102,241,0.15); color: var(--primary); }
.status--processing, .status--shipped { background: rgba(245,158,11,0.15); color: var(--cta); }

/* ===== ADMIN PRODUCT FORM ===== */
.product-form { max-width: 840px; }
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 2rem;
  text-align: center; cursor: pointer; transition: border-color var(--transition);
  background: var(--bg-input); position: relative;
}
.upload-zone:hover { border-color: var(--primary); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-zone__icon { font-size: 2rem; color: var(--muted); margin-bottom: 0.5rem; }
.upload-zone__text { color: var(--subtext); font-size: 0.9rem; }
.upload-zone__text strong { color: var(--primary); }
.preview-main { margin-top: 1rem; position: relative; display: inline-block; }
.preview-main img { max-height: 200px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.preview-gallery { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.preview-gallery-item { position: relative; }
.preview-gallery-item img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.img-delete-check { position: absolute; top: 4px; right: 4px; }
.img-delete-check input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--danger); }
.img-label { font-size: 0.7rem; color: var(--muted); text-align: center; margin-top: 0.25rem; word-break: break-all; max-width: 90px; }

/* ===== ADMIN LOGIN ===== */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.login-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 400px; }
.login-card__logo { text-align: center; font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.login-card__logo span { color: var(--cyan); }
.login-card__sub { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3rem; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 5rem; }
.footer__inner { display: grid; grid-template-columns: 1fr auto auto; gap: 3rem; align-items: start; }
.footer__logo { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; display: block; }
.footer__logo span { color: var(--cyan); }
.footer__brand p { color: var(--subtext); font-size: 0.875rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__links-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.25rem; }
.footer__links a { color: var(--subtext); font-size: 0.875rem; white-space: nowrap; transition: color var(--transition); }
.footer__links a:hover { color: var(--text); }
.footer__collab-text { color: var(--subtext); font-size: 0.8rem; line-height: 1.4; white-space: normal; }
.footer__copy { color: var(--muted); font-size: 0.8rem; margin-top: 2rem; grid-column: 1/-1; }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); margin: 2rem 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .admin-sidebar { transform: translateX(-100%); transition: transform var(--transition); }
  .admin-sidebar--open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .prod-tabs__tab { padding: 0.75rem 1rem; font-size: 0.9rem; }
  .prod-specs__label { min-width: 120px; }
  .sticky-bar__name { max-width: 160px; }
}
@media (max-width: 640px) {
  .nav__search-wrap { max-width: 100%; }
  .hero__title { font-size: 2.2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: 1/-1; }
  .cart-table th:nth-child(n+3), .cart-table td:nth-child(n+3) { display: none; }
  .sticky-bar__img { display: none; }
  .sticky-bar__name { max-width: 120px; }
}

@media (max-width: 768px) {
  .section { padding: 2.5rem 0; }
  .section--sm { padding: 1.5rem 0; }
  .section-header { margin-bottom: 1.25rem; }
  .footer { margin-top: 2rem; }

  .hero__image { height: 200px; }

  .promo-row-section {
    max-width: 100vw;
    overflow-x: auto;
  }

  .promo-banner-card::after { display: none; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ===== CART DRAWER ===== */

.cart-overlay {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay--visible { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(420px, 100vw);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow);
}
.cart-drawer--open { transform: translateX(0); }

.cart-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__title { font-size: 1.1rem; font-weight: 700; margin: 0; }
.cart-drawer__close {
  background: none; border: none; color: var(--subtext);
  font-size: 1.1rem; padding: 0.25rem 0.5rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: color var(--transition), background var(--transition);
}
.cart-drawer__close:hover { color: var(--text); background: var(--bg-input); }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }

.cart-drawer__footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.cart-drawer__total {
  display: flex; justify-content: space-between;
  font-size: 1rem; font-weight: 600;
}

.drawer-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 0; border-bottom: 1px solid var(--border);
}
.drawer-item:last-child { border-bottom: none; }
.drawer-item__img {
  width: 60px; height: 60px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-input);
}
.drawer-item__img img { width: 100%; height: 100%; object-fit: cover; }
.drawer-item__info { flex: 1; min-width: 0; }
.drawer-item__name {
  font-size: 0.9rem; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text); text-decoration: none; display: block;
}
.drawer-item__name:hover { color: var(--primary); }
.drawer-item__meta { font-size: 0.8rem; color: var(--subtext); margin-top: 0.2rem; }
.drawer-item__controls {
  display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem;
}
.drawer-qty-btn {
  width: 26px; height: 26px; border: 1px solid var(--border);
  background: var(--bg-input); border-radius: var(--radius-sm);
  font-size: 1rem; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.drawer-qty-btn:hover:not(:disabled) { background: var(--border); }
.drawer-qty-btn:disabled { opacity: 0.35; cursor: default; }
.drawer-qty-val { min-width: 1.5rem; text-align: center; font-size: 0.85rem; font-weight: 600; }
.drawer-item__remove {
  margin-left: auto; background: none; border: none;
  color: var(--subtext); font-size: 0.85rem; cursor: pointer;
  padding: 0.2rem 0.4rem; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.drawer-item__remove:hover { color: #e53e3e; background: var(--bg-input); }
.drawer-empty { text-align: center; padding: 3rem 0; color: var(--subtext); }
.drawer-empty__icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.drawer-loading { text-align: center; padding: 2rem; color: var(--subtext); font-size: 0.9rem; }

/* ===== NOVA POSHTA AUTOCOMPLETE ===== */
.np-autocomplete {
  position: relative;
}

.np-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 150;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.np-option {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.np-option:last-child { border-bottom: none; }
.np-option:hover { background: var(--bg-input); }

.np-option__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.np-option__sub {
  font-size: 0.78rem;
  color: var(--subtext);
  margin-top: 0.15rem;
}

/* ===== DELIVERY TYPE TABS ===== */
.delivery-type-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.delivery-tab {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--subtext);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.delivery-tab:hover {
  border-color: var(--border-hover, var(--border));
  color: var(--text);
}
.delivery-tab--active {
  background: rgba(99,102,241,0.15);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* ===== PAYMENT OPTIONS ===== */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.payment-option input[type="radio"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.payment-option--selected {
  border-color: var(--primary);
  background: rgba(99,102,241,0.07);
}
.payment-option--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.payment-option__label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.payment-option__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.payment-option__desc {
  font-size: 0.78rem;
  color: var(--subtext);
}
.payment-option__soon {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(245,158,11,0.15);
  color: var(--cta);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}

/* ===== PAYMENT METHOD BUTTONS ===== */
.payment-method-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.payment-method-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  width: 100%;
}
.payment-method-btn:hover {
  border-color: var(--primary);
}
.payment-method-btn--selected {
  border-color: var(--primary);
  background: rgba(99,102,241,0.08);
}
.payment-method-btn--apple.payment-method-btn--selected {
  background: #000;
  color: #fff;
  border-color: #000;
}
.payment-method-btn--google.payment-method-btn--selected {
  border-color: #4285f4;
  background: rgba(66,133,244,0.08);
}
.gpay-logo {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  animation: cookieSlideUp 0.35s ease;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  min-width: 200px;
  font-size: 0.88rem;
  color: var(--subtext);
  margin: 0;
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--primary);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .cookie-banner__actions {
    width: 100%;
  }
  .cookie-banner__actions .btn {
    flex: 1;
    text-align: center;
  }
}

/* ===== LEGAL PAGES (privacy / terms) ===== */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}
.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.legal-page .legal-date {
  font-size: 0.85rem;
  color: var(--subtext);
  margin-bottom: 2.5rem;
}
.legal-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  color: var(--text);
}
.legal-page p,
.legal-page li {
  font-size: 0.95rem;
  color: var(--subtext);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.legal-page ul,
.legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-page a {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== CONTACT MODAL ===== */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.contact-modal-overlay[hidden] { display: none; }
.contact-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
}
.contact-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--subtext);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color var(--transition);
}
.contact-modal__close:hover { color: var(--text); }
.contact-modal__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.contact-modal__subtitle {
  color: var(--subtext);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ===== Pagination ===== */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 0.375rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.pagination__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.pagination__btn:hover:not(.pagination__btn--active):not(.pagination__btn--disabled) {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
}
.pagination__btn--active {
  border-color: var(--primary); background: var(--primary);
  color: #fff; cursor: default; pointer-events: none;
}
.pagination__btn--disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.pagination__ellipsis {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; height: 2.25rem; color: var(--muted); font-size: 0.875rem;
}
.pagination__info {
  text-align: center; margin-top: 0.875rem;
  color: var(--subtext); font-size: 0.85rem;
}

/* ── REVIEWS ──────────────────────────────────────────────── */
.reviews-section { margin-top: 3rem; }

.reviews-section__header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem;
}
.reviews-section__title { font-size: 1.5rem; font-weight: 700; margin: 0; }
.reviews-section__meta { color: var(--subtext); font-size: 0.9rem; white-space: nowrap; }

/* Summary card */
.reviews-summary {
  display: flex; gap: 2.5rem; align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.reviews-summary__left {
  display: flex; flex-direction: column; gap: 0.45rem;
  min-width: 180px;
}
.reviews-summary__score {
  font-size: 3.75rem; font-weight: 800; line-height: 1; color: var(--text);
}
.reviews-summary__score-denom {
  font-size: 1.5rem; font-weight: 500; color: var(--subtext);
}
.reviews-summary__stars { display: flex; gap: 2px; font-size: 1.5rem; }
.reviews-summary__count { font-size: 0.82rem; color: var(--subtext); margin-bottom: 0.5rem; }
.btn--reviews-write {
  display: inline-block; padding: 0.65rem 1.25rem;
  background: var(--text); color: var(--bg);
  border: none; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: opacity 0.15s;
  align-self: flex-start; text-align: center;
}
.btn--reviews-write:hover { opacity: 0.8; }
.btn--reviews-write:disabled { opacity: 0.45; cursor: default; }

.reviews-summary__bars {
  flex: 1; min-width: 240px;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.reviews-bar { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
.reviews-bar__label { min-width: 2rem; color: var(--subtext); font-weight: 600; text-align: right; }
.reviews-bar__track {
  flex: 1; height: 8px; background: var(--border);
  border-radius: 100px; overflow: hidden;
}
.reviews-bar__fill { height: 100%; border-radius: 100px; transition: width 0.5s ease; }
.reviews-bar__fill--orange { background: #f59e0b; }
.reviews-bar__fill--red { background: #ef4444; }
.reviews-bar__stat { min-width: 72px; color: var(--subtext); font-size: 0.78rem; }

.rev-star { font-size: 1rem; line-height: 1; }
.rev-star--filled { color: #f59e0b; }
.rev-star--empty { color: var(--border); }

/* Review form card */
.review-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem 2.25rem;
  margin-bottom: 1.25rem;
}
.review-form__title { font-size: 1.1rem; font-weight: 700; margin: 0 0 1.25rem; }
.review-form__field { margin-bottom: 1.1rem; }
.review-form__label {
  display: block; font-size: 0.875rem; font-weight: 600;
  margin-bottom: 0.4rem; color: var(--subtext);
}
.review-form__actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.review-form__feedback {
  margin-top: 0.75rem; padding: 0.75rem 1rem;
  border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500;
}
.review-form__feedback--success { background: rgba(34,197,94,0.1); color: #22c55e; }
.review-form__feedback--error { background: rgba(239,68,68,0.08); color: var(--danger); }

/* Star input */
.star-input { display: inline-flex; gap: 4px; font-size: 2rem; cursor: pointer; user-select: none; }
.star-input__star { color: var(--border); transition: color 0.1s; }
.star-input__star--active { color: #f59e0b; }
.star-input__star--hover { color: #f59e0b; opacity: 0.7; }

/* Review cards */
.reviews-list { display: flex; flex-direction: column; gap: 0.75rem; }
.review-card {
  display: flex; gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
}
.review-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.review-card__body { flex: 1; min-width: 0; }
.review-card__top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.6rem; flex-wrap: wrap;
}
.review-card__info { display: flex; flex-direction: column; gap: 0.2rem; }
.review-card__name { font-weight: 600; font-size: 0.95rem; }
.review-card__stars { display: flex; gap: 2px; font-size: 0.9rem; }
.review-card__date { color: var(--subtext); font-size: 0.8rem; white-space: nowrap; }
.review-card__text { color: var(--text); font-size: 0.9rem; line-height: 1.65; margin: 0; }

.reviews-empty {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 2.5rem; text-align: center; color: var(--subtext); font-size: 0.95rem;
}

@media (max-width: 640px) {
  .reviews-summary { flex-direction: column; gap: 1.5rem; padding: 1.5rem; }
  .reviews-summary__score { font-size: 2.75rem; }
  .reviews-section__header { flex-direction: column; gap: 0.25rem; }
  .review-form-wrap { padding: 1.5rem; }
  .review-card { padding: 1.25rem; }
}

/* Payment badge (success page) */
.payment-badge {
  display: inline-block;
  margin: 0 auto 1.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
}
.payment-badge--paid {
  background: rgba(34,197,94,0.12);
  color: #16a34a;
  border: 1px solid rgba(34,197,94,0.3);
}
.payment-badge--pending {
  background: rgba(234,179,8,0.12);
  color: #ca8a04;
  border: 1px solid rgba(234,179,8,0.3);
}
.payment-badge--cod {
  background: rgba(148,163,184,0.1);
  color: var(--subtext);
  border: 1px solid var(--border);
}
