@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Outfit:wght@300;400;500;600&display=swap");

:root {
  /* Brown & Gold Palette — drawn from the brand logo (deep coffee-brown
     wordmark, warm mustard-gold dividers, terracotta/cream backdrop) */
  --gold: #a97a3a;
  --gold-light: #e8d3ad;
  --gold-dark: #8a5f28;
  --brown: #6b4022;
  --brown-deep: #3a2110;
  --cream: #f7f0e4;
  --cream-dark: #efe4d0;
  --ink: #241a10;
  --ink-light: #6b5c4a;
  --paper: #ffffff;
  --line: #e8ddc8;
  --brass: #a87c4f;

  /* Fixed tokens — always white/near-black regardless of theme.
     Used for text/icons on surfaces that stay colored in both themes
     (headers, buttons, badges, toasts) so they never go dark-on-dark. */
  --paper-fixed: #ffffff;
  --ink-fixed: #1a1a1a;

  /* Translucent "glass" surface for sticky/floating bars over page content */
  --glass-bg: rgba(255, 255, 255, 0.95);

  /* Spacing System (8px grid) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

/* ========== DARK THEME ========== */
/* Applies when the OS/browser prefers dark and the visitor hasn't explicitly chosen light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gold: #d1a256;
    --gold-dark: #a97a3a;
    --brown: #a9754a;
    --brown-deep: #6b4022;
    --cream: #16110b;
    --cream-dark: #201a12;
    --ink: #f0e6d4;
    --ink-light: #b8a890;
    --paper: #241c14;
    --line: #3a2f22;
    --brass: #d4a96a;
    --glass-bg: rgba(22, 17, 11, 0.92);
  }
}

/* Applies when the visitor has explicitly picked dark via the toggle, regardless of OS setting */
:root[data-theme="dark"] {
  --gold: #d1a256;
  --gold-dark: #a97a3a;
  --brown: #a9754a;
  --brown-deep: #6b4022;
  --cream: #16110b;
  --cream-dark: #201a12;
  --ink: #f0e6d4;
  --ink-light: #b8a890;
  --paper: #241c14;
  --line: #3a2f22;
  --brass: #d4a96a;
  --glass-bg: rgba(22, 17, 11, 0.92);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: pageFadeIn 0.4s ease;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========== HEADER ========== */
header {
  position: relative;
  background: linear-gradient(
    165deg,
    var(--brown-deep) 0%,
    var(--brown) 100%
  );
  color: var(--paper-fixed);
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L50 10L40 20L30 10L40 0zM0 40L10 30L20 40L10 50L0 40zM80 40L70 50L60 40L70 30L80 40zM40 80L30 70L40 60L50 70L40 80zM40 40L50 30L60 40L50 50L40 40z' fill='%23A97A3A' fill-opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.8;
}

header > * {
  position: relative;
  z-index: 1;
}

.logo-mark {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 6px rgba(201, 162, 39, 0.2),
    var(--shadow-lg);
  margin-bottom: var(--space-lg);
  transition: transform 0.4s var(--ease-spring);
}

.logo-mark:hover {
  transform: scale(1.05) rotate(2deg);
}

.logo-mark-sm {
  width: 44px;
  height: 44px;
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
  margin-bottom: 0;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-xs);
}

header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: var(--space-md) auto;
}

header > p:last-of-type {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Compact Header (Product/Contact pages) */
.header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s var(--ease-out);
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}

.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--brown);
  transform: rotate(15deg);
}

/* Modifier: placed on a surface that stays colored in both themes (hero header, admin header) */
.theme-toggle--on-color {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: var(--paper-fixed);
}

.theme-toggle--on-color:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--paper-fixed);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.2s;
}

.brand-link:hover {
  opacity: 0.7;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--brown);
}

/* ========== CATEGORY NAV ========== */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
}

.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-light);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  min-height: 40px;
}

.category-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
}

.category-btn:hover {
  border-color: var(--brown);
  color: var(--brown);
  background: rgba(107, 45, 58, 0.04);
}

.category-btn.active {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--paper-fixed);
  box-shadow: var(--shadow-sm);
}

/* ========== FILTER BAR ========== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.search-input,
.price-filter {
  flex: 1;
  min-width: 200px;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: all 0.3s var(--ease-out);
}

.search-input:focus,
.price-filter:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
}

.search-input::placeholder {
  color: #999;
}

.price-filter {
  cursor: pointer;
  appearance: none;
  background-image: 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='%234A4A4A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  padding-right: var(--space-2xl);
}

/* ========== FEATURED SECTION ========== */
.featured-section {
  padding: var(--space-2xl) var(--space-lg) 0;
  max-width: 1400px;
  margin: 0 auto;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.section-heading::before {
  content: "";
  width: 4px;
  height: 28px;
  background: var(--gold);
  border-radius: 2px;
}

/* ========== PRODUCT GRID ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
  padding: var(--space-xl) var(--space-lg) var(--space-3xl);
  max-width: 1400px;
  margin: 0 auto;
}

/* ========== PRODUCT CARD ========== */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease-out);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.product-card .image-container {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-dark);
}

.product-card .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-card .no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--brown);
  opacity: 0.3;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.featured-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-xs) var(--space-md);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-fixed);
  background: var(--gold-dark);
  border-radius: 100px;
  box-shadow: var(--shadow-md);
}

/* Quick-view overlay (desktop hover only) */
.quick-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}

@media (hover: hover) {
  .product-card:hover .quick-view-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

.quick-view-btn {
  padding: var(--space-sm) var(--space-lg);
  background: var(--paper);
  color: var(--ink);
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transform: translateY(10px);
  transition: transform 0.3s var(--ease-out);
}

.product-card:hover .quick-view-btn {
  transform: translateY(0);
}

.product-info {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-xs);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.product-description {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown);
  background: var(--cream-dark);
  border: 1px solid var(--gold-light);
  padding: 4px 16px;
  border-radius: 100px;
  margin-top: auto;
}

/* ========== PRODUCT DETAIL PAGE ========== */
.product-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-lg);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-bottom: var(--space-xl);
}

.breadcrumbs a {
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--brown);
}

.breadcrumbs .breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

.breadcrumbs .sep {
  opacity: 0.5;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  align-items: start;
}

/* Image Gallery Grid Layout */
.detail-gallery {
  display: grid;
  gap: var(--space-md);
}

/* Layout: 1 image */
.detail-gallery.images-1 {
  grid-template-columns: 1fr;
}

/* Layout: 2 images - side by side */
.detail-gallery.images-2 {
  grid-template-columns: 1fr 1fr;
}

/* Layout: 3+ images - 1 large + 2 small stacked */
.detail-gallery.images-3,
.detail-gallery.images-many {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.detail-gallery.images-3 .gallery-item:first-child,
.detail-gallery.images-many .gallery-item:first-child {
  grid-row: 1 / 3;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream-dark);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item.main-image {
  aspect-ratio: 1;
}

.gallery-item.secondary-image {
  aspect-ratio: 4/3;
}

/* More images overlay */
.more-images-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper-fixed);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  transition: background 0.3s;
}

.gallery-item:hover .more-images-overlay {
  background: rgba(0, 0, 0, 0.6);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--paper-fixed);
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--paper-fixed);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

.lightbox-counter {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--paper-fixed);
  font-size: 0.9rem;
  opacity: 0.8;
}

.lightbox-thumbnails {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  max-width: 80vw;
  overflow-x: auto;
  padding: var(--space-sm);
}

.lightbox-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.lightbox-thumb:hover {
  opacity: 0.8;
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--gold);
}

/* Quick-view modal */
.qv-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
  padding: var(--space-lg);
}

.qv-modal.qv-visible {
  opacity: 1;
  visibility: visible;
}

.qv-box {
  background: var(--paper);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.qv-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  display: block;
}

.qv-no-image {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brown);
  opacity: 0.3;
}

.qv-info {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}

.qv-info .product-category {
  font-size: 0.7rem;
  margin-bottom: var(--space-xs);
}

.qv-info .detail-name {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.qv-info .product-price {
  margin-bottom: var(--space-md);
}

.qv-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: var(--paper-fixed);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.qv-link {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  padding: var(--space-sm) var(--space-lg);
  background: var(--brown);
  color: var(--paper-fixed);
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.qv-link:hover {
  background: var(--brown-deep);
}

@media (max-width: 600px) {
  .qv-box {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .qv-image,
  .qv-no-image {
    aspect-ratio: 4/3;
  }
}

/* Skeleton loading */
.skeleton-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.skeleton-image {
  aspect-ratio: 4/3;
  background: linear-gradient(
    90deg,
    var(--cream-dark) 25%,
    var(--cream) 50%,
    var(--cream-dark) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line {
  height: 14px;
  margin: var(--space-md) var(--space-lg) 0;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--cream-dark) 25%,
    var(--cream) 50%,
    var(--cream-dark) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line.short {
  width: 40%;
  margin-bottom: var(--space-lg);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* No image placeholder */
.detail-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--brown);
  opacity: 0.2;
  background: var(--cream-dark);
  border-radius: 16px;
}

@media (max-width: 600px) {
  .detail-gallery.images-3,
  .detail-gallery.images-many {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .detail-gallery.images-3 .gallery-item:first-child,
  .detail-gallery.images-many .gallery-item:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-thumbnails {
    display: none;
  }
}

.detail-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--brown);
  opacity: 0.2;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg) 0;
}

.detail-info .product-category {
  font-size: 0.8rem;
  margin-bottom: var(--space-sm);
}

.detail-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.detail-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--line);
}

.detail-description {
  font-size: 1.05rem;
  color: var(--ink-light);
  line-height: 1.8;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm) var(--space-md);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--ink-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  min-height: 40px;
}

.share-btn:hover {
  border-color: var(--brown);
  color: var(--brown);
}

.share-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.scroll-to-similar {
  display: inline-block;
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--ink-light);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  padding: 0;
}

.scroll-to-similar:hover {
  color: var(--brown);
}

.similar-section {
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--line);
}

.similar-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: var(--space-xl);
}

/* ========== CONTACT PAGE ========== */
.contact-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.contact-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--brown);
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* Minimal text switch — no pill fills, just weight/color to mark the active language */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle .lang-btn {
  position: relative;
  padding: 4px 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-light);
  background: none;
  border: none;
  border-radius: 0;
  width: auto;
  height: auto;
  cursor: pointer;
  transition: color 0.2s var(--ease-out);
}

.lang-toggle .lang-btn + .lang-btn::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 10px;
  background: var(--line);
}

.lang-toggle .lang-btn:hover {
  color: var(--brown);
}

.lang-toggle .lang-btn.active {
  color: var(--brown);
  font-weight: 700;
}

/* Header placements */
.header-compact-actions,
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Modifier: placed on a surface that stays colored in both themes (hero header) */
.lang-toggle--on-color {
  position: absolute;
  top: calc(var(--space-lg) + 10px);
  right: calc(var(--space-lg) + 52px);
  z-index: 2;
}

.lang-toggle--on-color .lang-btn {
  color: rgba(255, 255, 255, 0.6);
}

.lang-toggle--on-color .lang-btn + .lang-btn::before {
  background: rgba(255, 255, 255, 0.3);
}

.lang-toggle--on-color .lang-btn:hover {
  color: var(--paper-fixed);
}

.lang-toggle--on-color .lang-btn.active {
  color: var(--paper-fixed);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-info-col .contact-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: 0;
}

.contact-info-col .contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-align: left;
  padding: var(--space-lg);
}

.contact-info-col .contact-icon {
  margin: 0;
  flex-shrink: 0;
}

.contact-layout .map-container {
  height: 100%;
  min-height: 320px;
  aspect-ratio: auto;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: #25d366;
  color: var(--paper-fixed);
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-out);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.whatsapp-btn svg {
  width: 20px;
  height: 20px;
}

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

.contact-layout--no-map {
  grid-template-columns: 1fr;
}

.branch-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: var(--space-lg);
}

.branch-divider {
  height: 1px;
  background: var(--line);
  margin: var(--space-2xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.contact-card {
  background: var(--paper);
  border-radius: 16px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s var(--ease-out);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brown) 0%,
    var(--brown-deep) 100%
  );
  border-radius: 50%;
  color: var(--paper-fixed);
  font-size: 1.5rem;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-sm);
}

.contact-card p,
.contact-card a {
  font-size: 0.95rem;
  color: var(--ink-light);
  text-decoration: none;
  line-height: 1.6;
}

.contact-card a:hover {
  color: var(--brown);
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 21/9;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--cream-dark);
  color: var(--brown);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.map-link-btn:hover {
  background: var(--gold-light);
}

/* ========== SKELETON LOADING ========== */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
  padding: var(--space-xl) var(--space-lg) var(--space-3xl);
  max-width: 1400px;
  margin: 0 auto;
}

.skeleton-card {
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skeleton-image {
  aspect-ratio: 4/3;
  background: linear-gradient(
    90deg,
    var(--cream-dark) 25%,
    var(--cream) 50%,
    var(--cream-dark) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-info {
  padding: var(--space-lg);
}

.skeleton-line {
  height: 14px;
  background: linear-gradient(
    90deg,
    var(--cream-dark) 25%,
    var(--cream) 50%,
    var(--cream-dark) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}

.skeleton-line.short {
  width: 40%;
}
.skeleton-line.medium {
  width: 70%;
}
.skeleton-line.price {
  width: 30%;
  height: 20px;
  margin-top: var(--space-md);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ========== LOADING & EMPTY STATES ========== */
.loading,
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl);
  color: var(--ink-light);
}

.loading::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-lg);
  border: 3px solid var(--line);
  border-top-color: var(--brown);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  opacity: 0.3;
}

.empty-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.empty-text {
  font-size: 0.9rem;
  color: var(--ink-light);
}

.empty::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23705A3E' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M3 7l2-4h14l2 4'/%3E%3Cpath d='M9 11h6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.4;
}

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(135deg, #4a2c17 0%, #2a1608 100%);
  color: #f8f6f2;
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  margin-top: var(--space-2xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(248, 246, 242, 0.7);
  margin-top: var(--space-xs);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
  margin: var(--space-md) 0;
}

.footer-link {
  color: rgba(248, 246, 242, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

.footer-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: var(--space-sm) 0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

/* The social row is injected as a direct child of <footer> (after .footer-content,
   which already has its own copyright block) — give it breathing room from that. */
footer > .footer-social {
  margin-top: var(--space-lg);
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f8f6f2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s var(--ease-out);
}

.footer-social a:hover {
  background: var(--gold);
  color: #2a1608;
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(184, 151, 89, 0.3);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  text-align: center;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(248, 246, 242, 0.5);
}

.footer-copyright a {
  color: var(--gold-light);
  text-decoration: none;
}

.footer-copyright a:hover {
  color: var(--gold);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .detail-image-container {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 600px) {
  header {
    padding: var(--space-2xl) var(--space-md);
  }

  .logo-mark {
    width: 70px;
    height: 70px;
  }

  .category-nav {
    padding: var(--space-md);
    gap: var(--space-xs);
  }

  .category-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
    min-height: 44px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    padding: var(--space-md);
    gap: var(--space-lg);
  }

  .filter-bar {
    padding: var(--space-md);
  }

  .search-input,
  .price-filter {
    min-width: 100%;
  }

  .detail-name {
    font-size: 1.6rem;
  }

  .detail-price {
    font-size: 1.5rem;
  }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--brown);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brown-deep);
}

/* ========== SELECTION ========== */
::selection {
  background: var(--gold);
  color: var(--ink);
}

/* ========== TOAST ========== */
.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  pointer-events: none;
}

.toast {
  padding: var(--space-md) var(--space-xl);
  background: var(--ink-fixed);
  color: var(--paper-fixed);
  border-radius: 100px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-error {
  background: #d32f2f;
}

/* ========== CONFIRM MODAL ========== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease-out);
  padding: var(--space-lg);
}

.confirm-overlay.confirm-visible {
  opacity: 1;
  visibility: visible;
}

.confirm-box {
  background: var(--paper);
  border-radius: 16px;
  padding: var(--space-xl);
  max-width: 360px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.25s var(--ease-out);
}

.confirm-overlay.confirm-visible .confirm-box {
  transform: scale(1);
}

.confirm-message {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

.confirm-buttons {
  display: flex;
  gap: var(--space-md);
}

.confirm-buttons button {
  flex: 1;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  min-height: 44px;
}

.btn-delete-confirm {
  background: #d32f2f;
  color: var(--paper-fixed);
}

.btn-delete-confirm:hover {
  background: #c62828;
}

/* ========== MOBILE BOTTOM UTILITY BAR ========== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.mobile-bottom-nav a,
.mobile-bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--ink-light);
  text-decoration: none;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 500;
  padding: var(--space-sm);
  min-width: 56px;
  min-height: 48px;
  justify-content: center;
  cursor: pointer;
}

.mobile-bottom-nav svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.mobile-bottom-nav a.mbn-active {
  color: var(--brown);
}

@media (max-width: 640px) {
  .mobile-bottom-nav {
    display: block;
  }

  body {
    padding-bottom: 64px;
  }
}

/* ========== WHATSAPP FAB ========== */
.whatsapp-fab {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--paper-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 800;
  transition: transform 0.25s var(--ease-spring);
  text-decoration: none;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 640px) {
  .whatsapp-fab {
    bottom: 76px;
    right: var(--space-md);
    width: 50px;
    height: 50px;
  }
}

/* ========== PULL TO REFRESH ========== */
.ptr-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 950;
  transition: transform 0.2s ease;
}

.ptr-indicator svg {
  width: 18px;
  height: 18px;
  color: var(--brown);
  transition: transform 0.2s ease;
}

.ptr-indicator.ptr-visible {
  transform: translate(-50%, 12px);
}

.ptr-indicator.ptr-ready svg {
  transform: rotate(180deg);
}

.ptr-indicator.ptr-loading svg {
  animation: spin 0.8s linear infinite;
}

/* ========== SHARE BUTTONS ========== */
.share-row {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
}

.share-btn:hover {
  border-color: var(--brown);
  color: var(--brown);
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.scroll-to-similar {
  display: block;
  width: 100%;
  margin-top: var(--space-lg);
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-light);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.scroll-to-similar:hover {
  color: var(--brown);
}

/* ========== CONTACT PAGE SPLIT LAYOUT ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--paper-fixed);
  background: #25d366;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
}

.whatsapp-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn svg {
  width: 22px;
  height: 22px;
}

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

/* ========== QUICK VIEW MODAL ========== */
.qv-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
}

.qv-modal.qv-visible {
  opacity: 1;
  visibility: visible;
}

.qv-box {
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-spring);
}

.qv-modal.qv-visible .qv-box {
  transform: scale(1);
}

.qv-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: transform 0.2s;
}

.qv-close:hover {
  transform: scale(1.1);
}

.qv-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qv-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brown);
  opacity: 0.3;
}

.qv-info {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}

.qv-link {
  display: inline-block;
  margin-top: auto;
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  color: var(--paper-fixed);
  background: var(--brown);
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.qv-link:hover {
  background: var(--brown-deep);
}

@media (max-width: 600px) {
  .qv-box {
    grid-template-columns: 1fr;
    max-height: 85vh;
    overflow-y: auto;
  }

  .qv-image {
    aspect-ratio: 4/3;
  }
}

/* Quick View Overlay on Product Cards */
.quick-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.product-card:hover .quick-view-overlay {
  opacity: 1;
}

.quick-view-btn {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border-radius: 8px;
  cursor: pointer;
  transform: translateY(10px);
  transition: all 0.3s var(--ease-out);
}

.product-card:hover .quick-view-btn {
  transform: translateY(0);
}

.quick-view-btn:hover {
  background: var(--gold);
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  padding: var(--space-md) var(--space-xl);
  background: var(--ink-fixed);
  color: var(--paper-fixed);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s var(--ease-out);
}

.toast.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: #2e7d32;
}

.toast-error {
  background: #c62828;
}

/* ========== CONFIRM MODAL ========== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s var(--ease-out);
}

.confirm-overlay.confirm-visible {
  opacity: 1;
  visibility: visible;
}

.confirm-box {
  background: var(--paper);
  border-radius: 16px;
  padding: var(--space-xl);
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.2s var(--ease-spring);
}

.confirm-overlay.confirm-visible .confirm-box {
  transform: scale(1);
}

.confirm-message {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.confirm-buttons {
  display: flex;
  gap: var(--space-md);
}

.confirm-buttons .btn-cancel {
  flex: 1;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink-light);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.btn-delete-confirm {
  flex: 1;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--paper-fixed);
  background: #d32f2f;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ========== MOBILE BOTTOM NAV ========== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: var(--space-sm) 0;
  padding-bottom: env(safe-area-inset-bottom, var(--space-sm));
  z-index: 500;
}

.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-sm);
  color: var(--ink-light);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-bottom-nav a svg {
  width: 22px;
  height: 22px;
}

.mobile-bottom-nav a.mbn-active {
  color: var(--brown);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: block;
  }

  footer {
    padding-bottom: 100px;
  }

  .footer-links {
    gap: var(--space-sm) var(--space-lg);
  }

  .footer-brand {
    font-size: 1.3rem;
  }

  main {
    padding-bottom: var(--space-xl);
  }
}

/* ========== WHATSAPP FAB ========== */
.whatsapp-fab {
  position: fixed;
  bottom: 90px;
  right: var(--space-lg);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: var(--paper-fixed);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 400;
  transition: all 0.3s var(--ease-out);
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

@media (min-width: 769px) {
  .whatsapp-fab {
    bottom: var(--space-xl);
  }
}

/* ========== PAGE TRANSITIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: fadeIn 0.4s var(--ease-out);
}

.product-card {
  animation: fadeIn 0.4s var(--ease-out) backwards;
}

.product-card:nth-child(1) {
  animation-delay: 0.05s;
}
.product-card:nth-child(2) {
  animation-delay: 0.1s;
}
.product-card:nth-child(3) {
  animation-delay: 0.15s;
}
.product-card:nth-child(4) {
  animation-delay: 0.2s;
}
.product-card:nth-child(5) {
  animation-delay: 0.25s;
}
.product-card:nth-child(6) {
  animation-delay: 0.3s;
}

/* ========== CATEGORY BUTTONS WITH ICONS ========== */
.category-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.category-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ========== PULL TO REFRESH ========== */
.ptr-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-60px);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: transform 0.3s var(--ease-out);
}

.ptr-indicator svg {
  width: 20px;
  height: 20px;
  color: var(--brown);
  transform: rotate(180deg);
  transition: transform 0.2s;
}

.ptr-indicator.ptr-visible {
  transform: translateX(-50%) translateY(20px);
}

.ptr-indicator.ptr-ready svg {
  transform: rotate(0deg);
}

.ptr-indicator.ptr-loading svg {
  animation: spin 0.8s linear infinite;
}

/* ========== SIZE FILTER (e.g. carpet sizes) ========== */
.size-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg) 0;
  max-width: 1400px;
  margin: 0 auto;
}

.size-nav[hidden] {
  display: none;
}

.size-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-right: var(--space-xs);
}

.size-btn {
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-light);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  min-height: 36px;
  transition: all 0.3s var(--ease-out);
}

.size-btn:hover {
  border-color: var(--brown);
  color: var(--brown);
}

.size-btn.active {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--paper-fixed);
}

.product-size {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-light);
  margin-bottom: var(--space-sm);
}

.detail-size {
  font-size: 1rem;
  color: var(--ink-light);
  margin-bottom: var(--space-md);
}

.detail-size strong {
  color: var(--ink);
}

@media (max-width: 600px) {
  .size-nav {
    padding: var(--space-md) var(--space-md) 0;
  }

  .size-btn {
    min-height: 44px;
  }
}
