/* ============================================================
   MISHAAL FABRIC — Brand Design System
   Elegant Pakistani fashion brand inspired by the homepage:
   rich emerald/forest greens, warm ivory, antique gold accents
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');
/* ── Design Tokens ── */
:root {
  /* Palette */
  --color-forest:    #000000;   /* black — hero, headers */
  --color-emerald:   #FFFFFF;   /* white — hover states, accents */
  --color-gold:      #000000;   /* black — badges, highlights */
  --color-gold-light:#E5E5E5;   /* light gray — borders, dividers */
  --color-ivory:     #FAF7F2;   /* warm ivory — page background */
  --color-cream:     #F2EDE4;   /* slightly darker cream — cards */
  --color-ink:       #1A1A1A;   /* near-black text */
  --color-stone:     #6B6560;   /* muted body text */
  --color-dust:      #B8B0A6;   /* placeholder / disabled */
  --color-white:     #FFFFFF;
  --color-red:       #B84040;   /* error / out-of-stock */
  --color-sale:      #8B1A1A;   /* sale price */

/* Typography */
--font-display: 'Montserrat', sans-serif;
--font-body: 'Montserrat', sans-serif;
--font-accent: 'Cormorant Garamond', serif;
  /* Type Scale */
  --text-xs:   0.72rem;
  --text-sm:   0.85rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.35rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-3xl:  3rem;
  --text-4xl:  4rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-14: 6rem;

  /* Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Shadows */
  --shadow-card: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-hover: 0 6px 28px rgba(0,0,0,0.14);
  --shadow-nav:  0 2px 12px rgba(0,0,0,0.08);

  /* Transitions */
  --transition: 0.28s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-ivory);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-emerald); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-forest);
  letter-spacing: 0.01em;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

p { color: var(--color-stone); }

/* Section heading style used site-wide */
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-forest);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-8);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 1px;
  background: var(--color-gold);
}
.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-stone);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--space-2);
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: var(--text-xs);
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dust);
  background: none;
  padding: 0;
  margin-bottom: var(--space-5);
}
.breadcrumb-item a {
  color: var(--color-stone);
}
.breadcrumb-item a:hover { color: var(--color-forest); }
.breadcrumb-item.active { color: var(--color-forest); font-weight: 500; }
.breadcrumb-item + .breadcrumb-item::before {
  content: '—';
  color: var(--color-gold);
  font-size: 0.65rem;
  padding: 0 var(--space-2);
}

/* ── Buttons ── */
.btn {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.75rem;
  transition: all var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1.5px solid transparent;
}

.btn-primary {
  background-color: var(--color-forest);
  border-color: var(--color-forest);
  color: var(--color-white);
}
.btn-primary:hover {
  background-color: var(--color-emerald);
  border-color: var(--color-emerald);
  color: var(--color-white);
}

.btn-outline-primary {
  background: transparent;
  border-color: var(--color-forest);
  color: var(--color-forest);
}
.btn-outline-primary:hover {
  background: var(--color-forest);
  color: var(--color-white);
}

.btn-gold {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}
.btn-gold:hover {
  background-color: #000000;
  border-color: #000000;
  color: var(--color-white);
}

.btn-outline-secondary {
  background: transparent;
  border-color: #000000;
  color: var(--color-stone);
}
.btn-outline-secondary:hover {
  border-color: var(--color-forest);
  color: var(--color-forest);
}

.btn-outline-danger {
  background: transparent;
  border-color: #d9b3b3;
  color: var(--color-red);
}
.btn-outline-danger:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.btn-sm {
  font-size: 0.65rem;
  padding: 0.45rem 1.1rem;
}
.btn-lg {
  padding: 0.85rem 2.5rem;
  font-size: var(--text-sm);
}

/* ── Form Controls ── */
.form-control, .form-select {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  border: 1px solid var(--color-gold-light);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  color: var(--color-ink);
  padding: 0.6rem 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(198,169,106,0.15);
  outline: none;
}
.form-control::placeholder { color: var(--color-dust); }

.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-forest);
  margin-bottom: var(--space-2);
  display: block;
}

.form-control-sm, .form-select-sm {
  font-size: var(--text-xs);
  padding: 0.45rem 0.75rem;
}

/* ── Badges ── */
.badge {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 0.3em 0.7em;
}
.badge-sale {
  background: var(--color-sale);
  color: var(--color-white);
}
.badge-new {
  background: var(--color-forest);
  color: var(--color-gold-light);
}
.badge-oos {
  background: var(--color-dust);
  color: var(--color-white);
}
/* Bootstrap compat */
.bg-success { background-color: var(--color-forest) !important; }
.bg-danger  { background-color: var(--color-sale) !important; }

/* ── Product Card ── */
.product-card {
  background: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--color-cream);
}
.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.product-card:hover .product-card__image-wrap img {
  transform: scale(1.06);
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
}

.product-card__wishlist {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-stone);
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition);
}
.product-card:hover .product-card__wishlist { opacity: 1; transform: translateY(0); }
.product-card__wishlist:hover { color: var(--color-red); background: var(--color-white); }

.product-card__body {
  padding: var(--space-4) var(--space-4) var(--space-5);
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-forest);
  margin-bottom: var(--space-1);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__brand {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-dust);
  margin-bottom: var(--space-2);
}
.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.product-card__price-sale {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-sale);
}
.product-card__price-regular {
  font-size: var(--text-sm);
  color: var(--color-dust);
  text-decoration: line-through;
}
.product-card__stars {
  font-size: 0.6rem;
  color: var(--color-gold);
  margin-top: var(--space-1);
}

/* ── Product Show Page ── */
.product-show__main-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.product-show__thumbnails {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}
.product-show__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition), opacity var(--transition);
  opacity: 0.75;
}
.product-show__thumb:hover,
.product-show__thumb.active {
  border-color: var(--color-gold);
  opacity: 1;
}

.product-show__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-forest);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.product-show__brand {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
  display: block;
}

.product-show__price-sale {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-sale);
}
.product-show__price-regular {
  font-size: var(--text-lg);
  color: var(--color-dust);
  text-decoration: line-through;
  margin-left: var(--space-3);
}
.product-show__price-badge {
  display: inline-block;
  background: var(--color-forest);
  color: var(--color-gold-light);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28em 0.75em;
  border-radius: var(--radius-sm);
  margin-left: var(--space-2);
  vertical-align: middle;
}

.product-show__short-desc {
  font-size: var(--text-md);
  color: var(--color-stone);
  line-height: 1.7;
  margin: var(--space-4) 0;
}

.product-show__divider {
  border: none;
  border-top: 1px solid var(--color-gold-light);
  margin: var(--space-5) 0;
}

.product-show__meta {
  list-style: none;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-stone);
}
.product-show__meta li {
  padding: var(--space-2) 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid var(--color-cream);
}
.product-show__meta li:last-child { border-bottom: none; }
.product-show__meta i {
  color: var(--color-gold);
  width: 14px;
  text-align: center;
}

/* ── Stars ── */
.stars-display i { font-size: 0.85rem; }
.stars-display .filled { color: var(--color-gold); }
.stars-display .empty  { color: var(--color-gold-light); }

/* ── Reviews ── */
.review-card {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-cream);
}
.review-card:last-child { border-bottom: none; }

.review-write {
  background: var(--color-white);
  border: 1px solid var(--color-gold-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
}

/* ── Category Page ── */
.category-hero {
  background: var(--color-forest);
  color: var(--color-white);
  padding: var(--space-10) 0 var(--space-8);
  margin-bottom: var(--space-8);
  text-align: center;
}
.category-hero h1 {
  color: var(--color-white);
  font-size: var(--text-3xl);
  letter-spacing: 0.06em;
}
.category-hero__subtitle {
  color: var(--color-gold-light);
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: var(--space-2);
}

.subcategory-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.subcategory-pill {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1.25rem;
  border: 1px solid var(--color-gold-light);
  border-radius: 0;
  color: var(--color-stone);
  background: transparent;
  transition: all var(--transition);
  display: inline-block;
}
.subcategory-pill:hover,
.subcategory-pill.active {
  border-color: var(--color-forest);
  background: var(--color-forest);
  color: var(--color-white);
}

/* ── Filter Sidebar ── */
.filter-sidebar {
  background: var(--color-white);
  border: 1px solid var(--color-gold-light);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.filter-sidebar__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-forest);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-gold-light);
}
.filter-sidebar__section {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-cream);
}
.filter-sidebar__section:last-of-type { border-bottom: none; }
.filter-sidebar__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-forest);
  margin-bottom: var(--space-3);
}

.filter-category-link {
  font-size: var(--text-sm);
  color: var(--color-stone);
  display: block;
  padding: var(--space-1) 0;
  transition: color var(--transition);
}
.filter-category-link:hover { color: var(--color-forest); }
.filter-category-link.active {
  color: var(--color-forest);
  font-weight: 600;
}
.filter-category-child {
  padding-left: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-stone);
  display: block;
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
}
.filter-category-child:hover { color: var(--color-forest); }
.filter-category-child.active {
  color: var(--color-emerald);
  font-weight: 600;
}

/* ── Toolbar (sort / count) ── */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-cream);
}
.products-count {
  font-size: var(--text-sm);
  color: var(--color-stone);
}
.products-count strong { color: var(--color-forest); }

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: var(--space-14) var(--space-4);
  color: var(--color-stone);
}
.empty-state i {
  font-size: 2.5rem;
  color: var(--color-gold-light);
  margin-bottom: var(--space-4);
}
.empty-state h4 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-forest);
  margin-bottom: var(--space-3);
}
.empty-state p {
  font-size: var(--text-sm);
  max-width: 340px;
  margin: 0 auto var(--space-6);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  gap: var(--space-1);
  justify-content: center;
  margin-top: var(--space-8);
}
.page-link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-stone);
  border: 1px solid var(--color-gold-light);
  border-radius: var(--radius-sm) !important;
  padding: 0.5rem 0.85rem;
  background: var(--color-white);
  transition: all var(--transition);
}
.page-link:hover {
  border-color: var(--color-forest);
  color: var(--color-forest);
  background: var(--color-cream);
}
.page-item.active .page-link {
  background: var(--color-forest);
  border-color: var(--color-forest);
  color: var(--color-white);
}
.page-item.disabled .page-link { opacity: 0.35; }

/* ── Quantity input ── */
.qty-input {
  width: 50px;
  text-align: center;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
  padding: 0.45rem 0.5rem;
  height: 38px;
  line-height: 1.5;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-selector {
  display: inline-flex;
  align-items: center;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-gold-light);
  background: var(--color-white);
  color: var(--color-forest);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.qty-btn:hover {
  background: var(--color-cream);
  color: var(--color-emerald);
}

.qty-btn:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.qty-btn:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.qty-btn:active {
  background: var(--color-gold-light);
}

/* ── Toast / Alert ── */
.mishaal-alert {
  font-size: var(--text-sm);
  border: none;
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  color: var(--color-forest);
  padding: var(--space-4) var(--space-5);
}

/* ── Utility ── */
.text-forest  { color: var(--color-forest) !important; }
.text-gold    { color: var(--color-gold) !important; }
.text-sale    { color: var(--color-sale) !important; }
.text-stone   { color: var(--color-stone) !important; }
.bg-forest    { background-color: var(--color-forest) !important; }
.bg-cream     { background-color: var(--color-cream) !important; }
.bg-ivory     { background-color: var(--color-ivory) !important; }
.border-gold  { border-color: var(--color-gold-light) !important; }
.divider-gold { border: none; border-top: 1px solid var(--color-gold-light); }

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .filter-sidebar { margin-bottom: var(--space-6); }
  h1 { font-size: var(--text-2xl); }
  .category-hero h1 { font-size: var(--text-2xl); }
  .product-show__name { font-size: var(--text-xl); }
}

@media (max-width: 767.98px) {
  .section-title { font-size: var(--text-xl); }
  .product-show__main-image { aspect-ratio: 1/1; }
  .products-toolbar { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  h1 { font-size: var(--text-xl); }
  .product-show__price-sale { font-size: var(--text-xl); }
  .product-show__nav {
    opacity: 1;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
  .product-show__nav--prev { left: 8px; }
  .product-show__nav--next { right: 8px; }
  .product-show__zoom { opacity: 1; bottom: 10px; right: 10px; width: 34px; height: 34px; font-size: 0.75rem; }
  .product-show__counter { bottom: 10px; left: 10px; font-size: 0.65rem; }
  .product-show__thumb { width: 56px; height: 56px; }
}

@media (max-width: 575.98px) {
  .product-card__body { padding: var(--space-3); }
  .review-write { padding: var(--space-4); }
  .variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: var(--space-2);
  }
  .variant-option {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    height: 42px;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
  }
  .variant-size {
    font-size: 0.72rem;
    line-height: 1.05;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Variant Options ── */
.variant-options {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-2);
}
.variant-option {
    min-width: 72px;
    height: 46px;
    padding: 0.35rem 0.7rem;
    border: 2px solid var(--color-gold-light);
    background: var(--color-white);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex: 0 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.variant-option:hover:not(:disabled) {
    border-color: var(--color-forest);
    background: var(--color-white);
}
.variant-option.selected {
    border-color: var(--color-forest);
    background: var(--color-white);
    color: var(--color-forest);
}
.variant-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.variant-option.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}
.variant-size {
    display: block;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-forest);
}
.variant-price {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-stone);
}

/* ── Theme cards for cart and checkout pages */
.theme-card {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.theme-card .card-body {
  padding: 1.75rem;
}
.theme-card .card-footer {
  background: transparent;
  border-top: 1px solid var(--color-cream);
}
.theme-card .form-check {
  border: 1px solid #000000;
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.theme-card .form-check:hover {
  border-color: var(--color-forest);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.theme-card .form-check-input {
  margin-top: 0.25rem;
}
.theme-order-summary {
  display: grid;
  gap: var(--space-3);
}
.theme-order-summary .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.theme-order-summary .summary-total {
  font-size: var(--text-lg);
  color: var(--color-forest);
}
.theme-cart-item {
  gap: 1rem;
  border-bottom: 1px solid var(--color-cream);
}
.theme-cart-item:last-child {
  border-bottom: none;
}
.theme-cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.theme-empty-cart {
  color: var(--color-stone);
}

.variant-price {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-stone);
    margin-top: var(--space-1);
}
.variant-stock-badge {
    display: block;
    font-size: 0.6rem;
    color: var(--color-sale);
    margin-top: var(--space-1);
    font-weight: 500;
}

/* ── Product Gallery ── */
.product-show__gallery {
  position: relative;
}

.product-show__main-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: default;
  box-shadow: var(--shadow-card);
}

.product-show__main-wrapper:hover .product-show__nav {
  opacity: 1;
  transform: translateX(0);
}

.product-show__main-wrapper:hover .product-show__zoom {
  opacity: 1;
}

.product-show__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-forest);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-show__nav:hover {
  background: var(--color-white);
  color: var(--color-emerald);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.product-show__nav--prev {
  left: 12px;
}

.product-show__nav--next {
  right: 12px;
}

.product-show__zoom {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-forest);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-show__zoom:hover {
  background: var(--color-white);
  color: var(--color-emerald);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.product-show__counter {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.85);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.25em 0.7em;
  border-radius: var(--radius-sm);
}

.product-show__main-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  cursor: default;
  display: block;
}

.product-show__thumbnails {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.product-show__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition), opacity var(--transition);
  opacity: 0.75;
}

.product-show__thumb:hover,
.product-show__thumb.active {
  border-color: var(--color-gold);
  opacity: 1;
}

/* ── Zoom Lightbox ── */
.product-show__lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: zoom-out;
}

.product-show__lightbox.active {
  display: flex;
}

.product-show__lightbox__close {
  position: absolute;
  top: 20px;
  right: 28px;
  z-index: 10001;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.8rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.product-show__lightbox__close:hover {
  opacity: 1;
}

.product-show__lightbox__img-wrap {
  overflow: hidden;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.product-show__lightbox__img-wrap:active {
  cursor: grabbing;
}

.product-show__lightbox__img {
  transition: transform 0.25s ease;
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  will-change: transform;
}

.product-show__lightbox__toolbar {
  position: absolute;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 10001;
}

.product-show__lightbox__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.product-show__lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

.product-show__lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.product-show__lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

.product-show__lightbox__nav--prev {
  left: 20px;
}

.product-show__lightbox__nav--next {
  right: 20px;
}

.product-show__lightbox__zoom-label {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  min-width: 42px;
  text-align: center;
}

.cart-panel .woocommerce-mini-cart__cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 400px;
  overflow-y: auto;
}

.cart-panel .woocommerce-mini-cart__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.cart-panel .woocommerce-mini-cart__item:last-child {
  border-bottom: none;
}

.cart-panel .woocommerce-mini-cart__item-image {
  flex-shrink: 0;
  display: block;
}

.cart-panel .woocommerce-mini-cart__item-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
}

.cart-panel .woocommerce-mini-cart__item-details {
  flex: 1;
  min-width: 0;
}

.cart-panel .woocommerce-mini-cart__item-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-panel .woocommerce-mini-cart__item-name:hover {
  color: #000;
}

.cart-panel .woocommerce-mini-cart__item-variant {
  font-size: 0.8rem;
  color: #6B6560;
  margin-bottom: 4px;
}

.cart-panel .woocommerce-mini-cart__item-qty {
  font-size: 0.85rem;
  color: #6B6560;
}

.cart-panel .woocommerce-mini-cart__item-subtotal {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
  margin-bottom: 4px;
}

.cart-panel .woocommerce-mini-cart__item-remove-form {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
}

.cart-panel .woocommerce-mini-cart__item-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 1rem;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 1;
  text-align: center;
  transition: all 0.2s ease;
}

.cart-panel .woocommerce-mini-cart__item-remove:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.cart-panel .woocommerce-mini-cart__total {
  padding: 16px 0;
  margin: 0;
  font-size: 1rem;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
}

.cart-panel .woocommerce-mini-cart__buttons {
  padding: 16px 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.cart-panel .widget_shopping_cart_content .woocommerce-mini-cart__buttons .button {
  display: block;
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  background: #000 !important;
  border: 1px solid #000 !important;
  color: #fff !important;
}

.cart-panel .widget_shopping_cart_content .woocommerce-mini-cart__buttons .button:hover {
  background: #333 !important;
  border-color: #333 !important;
  color: #fff !important;
}

.cart-panel .woocommerce-mini-cart__empty-message {
  padding: 40px 20px;
  text-align: center;
}

.cart-panel .woocommerce-mini-cart__empty-message h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.cart-panel .woocommerce-mini-cart__empty-message p {
  font-size: 0.9rem;
  color: #6B6560;
  margin-bottom: 16px;
}