:root {
  /* Slate-navy + warm gold — matches config.js theme so the page never
     flashes an unstyled/wrong-brand palette before JS repaints it. */
  --primary-h: 220;
  --primary-s: 35%;
  --primary-l: 18%;
  --accent-h: 36;
  --accent-s: 74%;
  --accent-l: 54%;
  --primary-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-hover: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 6%));
  --primary-soft: hsl(var(--primary-h), 30%, 95%);
  --accent-color: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --accent-hover: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 8%));
  --border-radius: 10px;
  --transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
  --bg-primary: #f7f5f0;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0ede5;
  --text-primary: #171f26;
  --text-secondary: #3c4652;
  --text-muted: #6c7684;
  --border-color: #e1ddd2;
  --shadow-sm: 0 1px 3px rgba(23,31,38,.07);
  --shadow-md: 0 6px 16px rgba(23,31,38,.08);
  --shadow-lg: 0 18px 34px rgba(23,31,38,.12);
  --glass-bg: rgba(255,255,255,.86);
  --glass-border: rgba(255,255,255,.55);
  --color-success: #16a34a;
  --color-danger: #dc2626;
}

body.dark-theme {
  --bg-primary: #0a120e;
  --bg-secondary: #121e16;
  --bg-tertiary: #1a2e22;
  --text-primary: #eaf2ec;
  --text-secondary: #b8ccbf;
  --text-muted: #89a693;
  --border-color: #254332;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.25);
  --shadow-md: 0 4px 10px rgba(0,0,0,.24);
  --shadow-lg: 0 14px 28px rgba(0,0,0,.34);
  --glass-bg: rgba(18,30,22,.86);
  --glass-border: rgba(45,75,56,.68);
  --primary-soft: hsl(var(--primary-h), var(--primary-s), 14%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .2s ease, color .2s ease, padding-bottom .2s ease;
  overscroll-behavior-x: none;
}
body.no-zoom, body.no-zoom * { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-140%);
  z-index: 999;
  background: var(--text-primary);
  color: var(--bg-secondary);
  padding: 10px 12px;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.announcement-bar {
  position: relative;
  z-index: 100;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 10%)));
  color: #fff;
  font-size: .86rem;
  font-weight: 650;
  padding: 8px 0;
}
.marquee-container { display: flex; white-space: nowrap; }
.marquee-content { display: inline-block; padding-left: 100%; animation: marquee 42s linear infinite; }
.marquee-content span { display: inline-block; padding-right: 2.7rem; }
@keyframes marquee { to { transform: translate3d(-100%,0,0); } }

.site-header {
  position: sticky;
  cursor: pointer;
  top: 0;
  z-index: 99;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px max(14px, env(safe-area-inset-left)) 10px max(14px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo-area {
  min-width: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(1.18rem, 4.2vw, 1.55rem);
  font-weight: 850;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--primary-color), hsl(var(--primary-h), calc(var(--primary-s) - 8%), calc(var(--primary-l) + 15%)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-area img { max-height: 38px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.header-action-btn:active { transform: scale(.96); }
.btn-call-icon:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.btn-whatsapp-icon:hover { background: var(--color-success); border-color: var(--color-success); color: #fff; }

.store-intro {
  max-width: 1400px;
  margin: 16px auto 0;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.eyebrow {
  color: var(--primary-color);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  margin-bottom: 4px;
  position: relative;
  padding-left: 18px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 2px;
  background: var(--accent-color);
}
.store-intro h1 {
  font-size: clamp(1.65rem, 6vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 6px;
}
.store-intro p:not(.eyebrow) {
  max-width: 680px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: clamp(.94rem, 2.8vw, 1.05rem);
}
.intro-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.intro-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 750;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.intro-btn.primary { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.intro-btn.primary:hover { box-shadow: 0 0 0 3px hsl(var(--accent-h), var(--accent-s), var(--accent-l), .35); }
.intro-btn:active { transform: scale(.98); }

.offers-slider-section { max-width: 1400px; margin: 12px auto 24px; padding: 0 24px; }
.slider-wrapper {
  position: relative;
  height: clamp(210px, 44vw, 340px);
  overflow: hidden;
  border-radius: calc(var(--border-radius) + 6px);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
  touch-action: pan-y;
  user-select: none;
}
.slides-container { height: 100%; display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); will-change: transform; }
.slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: linear-gradient(135deg, hsl(var(--primary-h), 46%, 34%), hsl(var(--primary-h), 48%, 16%));
  background-size: cover;
  background-position: center;
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 78% 20%, rgba(255,255,255,.24), transparent 26%), radial-gradient(circle at 18% 30%, rgba(255,255,255,.12), transparent 20%), linear-gradient(to top, rgba(0,0,0,.76), rgba(0,0,0,.20));
}
.slide-placeholder-art {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  font-size: clamp(5rem, 18vw, 10rem);
  opacity: .22;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.24));
}
.slide-content-card { position: relative; z-index: 2; max-width: 640px; margin: clamp(18px, 5vw, 38px); color: #fff; }
.slide-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--accent-color);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.slide-title { font-size: clamp(1.35rem, 6vw, 2.25rem); line-height: 1.12; font-weight: 900; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.slide-desc { margin-top: 8px; max-width: 540px; font-size: clamp(.9rem, 3vw, 1.05rem); line-height: 1.45; opacity: .94; text-shadow: 0 1px 4px rgba(0,0,0,.45); }

.catalog-section { max-width: 1400px; margin: 0 auto; padding: 0 24px 96px; }
.catalog-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.section-title { font-size: clamp(1.35rem, 4vw, 1.85rem); font-weight: 900; letter-spacing: -.03em; position: relative; padding-bottom: 8px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); }
.controls-wrapper { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.search-box { position: relative; display: flex; align-items: center; min-width: min(100%, 260px); }
.search-box input {
  width: min(280px, 100%);
  min-height: 44px;
  padding: 10px 42px 10px 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-box input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px hsla(var(--primary-h), var(--primary-s), var(--primary-l), .14); }
.search-icon { position: absolute; left: 14px; color: var(--text-muted); pointer-events: none; }
.search-clear-btn { position: absolute; right: 8px; display: none; width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--text-muted); font-size: 1.2rem; line-height: 1; }
.search-clear-btn.visible { display: inline-flex; align-items: center; justify-content: center; }
.search-clear-btn:active { background: var(--bg-tertiary); }
.category-box, .sort-box { display: flex; align-items: center; gap: 6px; }
.category-box label, .sort-box label { color: var(--text-secondary); font-size: .86rem; font-weight: 700; }
.category-box select, .sort-box select {
  min-height: 44px;
  min-width: 150px;
  max-width: min(280px, 100%);
  padding: 9px 34px 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  box-shadow: var(--shadow-sm);
}
.category-box select { min-width: 220px; }
.filter-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--text-muted); font-size: .9rem; flex-wrap: wrap; }
.reset-link { border: 0; background: none; color: var(--primary-color); font-weight: 800; text-decoration: underline; }

.products-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
  animation: fadeInUp .32s ease both;
  transition: var(--transition);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: hsla(var(--primary-h), var(--primary-s), var(--primary-l), .28); }
.product-card:active { transform: scale(.985); }
.product-card.out-of-stock { opacity: .66; }
.card-image-wrapper { position: relative; padding-top: 100%; overflow: hidden; background: var(--bg-tertiary); }
.card-image-wrapper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
  color: var(--text-muted);
  background: radial-gradient(circle at 70% 18%, hsla(var(--primary-h), var(--primary-s), var(--primary-l), .15), transparent 28%), linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}
.placeholder-icon { font-size: clamp(2.35rem, 11vw, 4.1rem); line-height: 1; filter: saturate(.95); }
.placeholder-text { max-width: 92%; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .74; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-oos-stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-12deg); z-index: 3; padding: 6px 16px; border: 2px solid #fff; border-radius: 8px; background: var(--color-danger); color: #fff; font-size: .75rem; font-weight: 900; letter-spacing: .08em; white-space: nowrap; box-shadow: var(--shadow-md); }
.card-content { display: flex; flex-direction: column; flex: 1; padding: 12px; }
.card-id { align-self: flex-start; margin-bottom: 5px; padding: 2px 7px; border-radius: 6px; background: var(--bg-tertiary); color: var(--text-muted); font-size: .68rem; font-weight: 800; }
.card-name { min-height: 2.42rem; margin-bottom: 4px; color: var(--text-primary); font-size: .93rem; font-weight: 850; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { min-height: 1.1rem; margin-bottom: 9px; color: var(--text-muted); font-size: .78rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { margin: auto 0 10px; color: var(--primary-color); font-size: 1.15rem; font-weight: 900; }
.product-card.out-of-stock .card-price { color: var(--color-danger); text-decoration: line-through; }
.qty-stepper { display: flex; align-items: center; justify-content: center; min-height: 40px; overflow: hidden; border: 2px solid var(--border-color); border-radius: 10px; background: var(--bg-secondary); transition: border-color .2s ease, background .2s ease; }
.qty-stepper.active { border-color: var(--primary-color); background: var(--primary-soft); }
.stepper-btn { min-width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-primary); font-size: 1.15rem; font-weight: 900; }
.stepper-plus { flex: 1; }
.stepper-minus, .stepper-value { width: 0; opacity: 0; overflow: hidden; transition: width .2s ease, opacity .18s ease; }
.stepper-value { text-align: center; color: var(--primary-color); font-size: .95rem; font-weight: 900; }
.qty-stepper.active .stepper-minus { width: 42px; opacity: 1; }
.qty-stepper.active .stepper-value { width: 38px; opacity: 1; }
.qty-stepper.active .stepper-plus { flex: 0 0 42px; }
.stepper-btn:active { background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), .18); }
.qty-stepper.disabled { min-height: 40px; opacity: .35; pointer-events: none; }

.skeleton-card { overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--border-radius); background: var(--bg-secondary); }
.skeleton-img { position: relative; width: 100%; padding-top: 100%; background: var(--bg-tertiary); }
.skeleton-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.skeleton-line { position: relative; height: 12px; overflow: hidden; border-radius: 999px; background: var(--bg-tertiary); }
.skeleton-line.short { width: 36%; }
.skeleton-line.medium { width: 72%; }
.skeleton-line.long { width: 96%; }
.skeleton-line.price { width: 44%; height: 20px; margin-top: 4px; }
.skeleton-line.stepper { height: 38px; border-radius: 10px; }
.skeleton-img::after, .skeleton-line::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent); animation: shimmer 1.4s infinite; }
body.dark-theme .skeleton-img::after, body.dark-theme .skeleton-line::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.no-results { display: none; padding: 56px 18px; text-align: center; border: 1px solid var(--border-color); border-radius: var(--border-radius); background: var(--bg-secondary); }
.no-results svg { color: var(--text-muted); margin-bottom: 12px; }
.no-results h3 { margin-bottom: 6px; }
.no-results p { color: var(--text-muted); }

.local-seo-block { max-width: 1400px; margin: 0 auto 32px; padding: 24px; color: var(--text-secondary); }
.local-seo-block h2 { margin-bottom: 8px; color: var(--text-primary); font-size: clamp(1.2rem, 4vw, 1.6rem); }
.local-seo-block p { line-height: 1.55; max-width: 860px; }
.local-address { margin-top: 8px; color: var(--text-muted); font-weight: 650; }
.store-map-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 560px; margin-top: 18px; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--border-radius); background: var(--bg-secondary); box-shadow: var(--shadow-sm); }
.store-map-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.store-map-copy strong { color: var(--text-primary); font-size: .96rem; }
.store-map-copy span { color: var(--text-muted); font-size: .84rem; line-height: 1.35; }
.store-map-square { position: relative; flex: 0 0 118px; width: 118px; height: 118px; overflow: hidden; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-tertiary); }
.store-map-square iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.store-map-open { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 7px; color: #fff; font-size: .72rem; font-weight: 850; background: linear-gradient(to top, rgba(0,0,0,.58), rgba(0,0,0,0) 55%); }

.floating-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px max(14px, env(safe-area-inset-right)) calc(11px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -6px 20px rgba(0,0,0,.11);
  transform: translateY(110%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.floating-bar.visible { transform: translateY(0); }
.floating-bar-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.floating-bar-count { color: var(--text-secondary); font-size: .93rem; font-weight: 750; white-space: nowrap; }
.floating-bar-divider { color: var(--border-color); }
.floating-bar-total { color: var(--primary-color); font-size: 1.16rem; font-weight: 900; white-space: nowrap; }
.floating-bar-actions { display: grid; grid-template-columns: minmax(132px, auto); gap: 8px; }
.fb-btn { min-height: 44px; min-width: 44px; padding: 9px 14px; border: 0; border-radius: 10px; color: #fff; font-size: .82rem; font-weight: 850; transition: var(--transition); }
.fb-bill { background: var(--primary-color); }
.fb-whatsapp { background: var(--color-success); }
.fb-btn:active { transform: scale(.96); }
.floating-reset-btn {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 201;
  min-width: 58px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--color-danger);
  box-shadow: var(--shadow-lg);
  font-size: .82rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: var(--transition);
}
.floating-reset-btn.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.floating-reset-btn:active { transform: scale(.96); }

.site-footer { padding: 30px 20px 24px; text-align: center; border-top: 1px solid var(--border-color); background: var(--bg-secondary); }
.footer-nav { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; font-size: .9rem; font-weight: 750; color: var(--primary-color); }
.footer-name { margin-bottom: 6px; font-size: 1.25rem; font-weight: 900; color: var(--primary-color); }
.footer-tagline, .footer-address, .footer-copy { color: var(--text-muted); font-size: .86rem; line-height: 1.45; }
.footer-address { max-width: 560px; margin: 8px auto; }
.footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.footer-link-item { display: inline-flex; align-items: center; gap: 4px; color: var(--text-secondary); font-size: .9rem; font-weight: 700; }
.footer-link-item:hover { color: var(--primary-color); }

.page-shell { max-width: 920px; margin: 0 auto; padding: 34px 20px 60px; }
.page-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: clamp(18px, 5vw, 34px); box-shadow: var(--shadow-sm); }
.page-card h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.1; margin-bottom: 12px; }
.page-card h2 { margin-top: 22px; margin-bottom: 8px; }
.page-card p, .page-card li { color: var(--text-secondary); line-height: 1.65; }
.page-card ul { margin: 10px 0 0 22px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.bill-page-body { min-height: 100vh; background: var(--bg-tertiary); padding: 18px 14px calc(92px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; }
.bill-actions-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; width: 100%; max-width: 720px; }
.bill-top-actions { justify-content: flex-start; max-width: 520px; }
.bill-bottom-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 220;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -6px 20px rgba(0,0,0,.11);
}
.bill-btn { min-height: 44px; padding: 11px 16px; border: 0; border-radius: 10px; color: #fff; font-weight: 800; }
.bill-btn-back { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); }
.bill-btn-share { background: var(--primary-color); }
.bill-btn-whatsapp { background: var(--color-success); }
.bill-buyer-box { width: 100%; max-width: 520px; margin-bottom: 14px; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--border-radius); background: var(--bg-secondary); box-shadow: var(--shadow-sm); }
.bill-buyer-box label { display: block; margin-bottom: 6px; font-size: .86rem; font-weight: 850; color: var(--text-secondary); }
.bill-buyer-box label span { color: var(--text-muted); font-weight: 700; }
.bill-buyer-row { display: flex; gap: 8px; }
.bill-buyer-box input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 10px; background: #fff; color: #111; outline: none; }
.bill-buyer-box input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px hsla(var(--primary-h), var(--primary-s), var(--primary-l), .15); }
.bill-buyer-help { display: block; margin-top: 6px; font-size: .78rem; line-height: 1.35; color: var(--text-muted); }
.bill-wrapper { width: 100%; max-width: 520px; }
.bill-paper { background: #fff; color: #111; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.14); padding: 30px 24px; }
.bill-header { text-align: center; margin-bottom: 16px; }
.bill-shop-name { color: #1a5c38; font-size: 1.55rem; font-weight: 900; }
.bill-address, .bill-phone, .bill-buyer-line { color: #555; font-size: .82rem; line-height: 1.45; }
.bill-meta { display: flex; justify-content: space-between; gap: 10px; color: #444; font-size: .84rem; margin: 12px 0; }
.bill-divider { border: 0; border-top: 2px dashed #bdbdbd; margin: 12px 0; }
.bill-table { width: 100%; border-collapse: collapse; font-size: .84rem; table-layout: auto; }
.bill-table th { color: var(--primary-color); text-align: left; padding: 10px 6px; border-bottom: 2px solid var(--primary-color); }
.bill-table td { padding: 10px 6px; border-bottom: 1px solid #e5e5e5; word-break: normal; }
.bill-table th:nth-child(1), .bill-table td:nth-child(1) { width: 28px; text-align: center; }
.bill-table th:nth-child(2), .bill-table td:nth-child(2) { width: 85px; text-align: left; font-weight: 600; }
.bill-table th:nth-child(3), .bill-table td:nth-child(3) { width: auto; text-align: left; }
.bill-table th:nth-child(4), .bill-table td:nth-child(4) { width: 36px; text-align: center; }
.bill-table th:nth-child(5), .bill-table td:nth-child(5) { width: 70px; text-align: right; }
.bill-table th:nth-child(6), .bill-table td:nth-child(6) { width: 75px; text-align: right; }
.bill-total-row { display: flex; justify-content: flex-end; gap: 20px; margin-top: 12px; color: #1a5c38; font-size: 1.12rem; font-weight: 900; }
.bill-footer { text-align: center; color: #555; font-size: .86rem; margin-top: 16px; }
.bill-empty { max-width: 520px; padding: 48px 22px; text-align: center; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); }

@media (max-width: 860px) {
  .store-intro { align-items: flex-start; flex-direction: column; padding: 18px 16px; }
  .intro-actions { width: 100%; justify-content: stretch; }
  .intro-btn { flex: 1; }
  .offers-slider-section, .catalog-section, .local-seo-block { padding-left: 16px; padding-right: 16px; }
  .catalog-header { align-items: stretch; flex-direction: column; }
  .controls-wrapper { flex-direction: column; align-items: stretch; }
  .search-box, .search-box input, .category-box, .sort-box, .category-box select, .sort-box select { width: 100%; max-width: 100%; }
  .category-box, .sort-box { flex-direction: column; align-items: stretch; gap: 5px; }
  .floating-bar { flex-direction: column; align-items: stretch; }
  .floating-bar-info { justify-content: center; }
  .floating-bar-actions { width: 100%; grid-template-columns: 1fr; }
  .floating-reset-btn { bottom: calc(104px + env(safe-area-inset-bottom)); }
  .store-map-card { align-items: stretch; }
  .store-map-square { flex-basis: 104px; width: 104px; height: 104px; }
}
@media (max-width: 380px) {
  .header-action-btn { width: 38px; height: 38px; }
  .header-actions { gap: 6px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-content { padding: 9px; }
  .card-name { font-size: .82rem; min-height: 2.15rem; }
  .card-desc { display: none; }
  .placeholder-text { display: none; }
  .floating-bar-count { font-size: .86rem; }
  .floating-bar-total { font-size: 1rem; }
  .fb-btn { padding: 8px 6px; font-size: .76rem; }
  .floating-reset-btn { bottom: calc(104px + env(safe-area-inset-bottom)); right: 10px; }
  .store-map-card { flex-direction: column; }
  .store-map-square { flex: none; width: 100%; height: 138px; }
}
@media (min-width: 1180px) { .products-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media print {
  .bill-actions-bar, .bill-bottom-actions, .bill-buyer-box { display: none !important; }
  .bill-page-body { background: #fff !important; padding: 0 !important; }
  .bill-wrapper { max-width: 100% !important; }
  .bill-paper { box-shadow: none !important; border-radius: 0 !important; }
  @page { margin: 10mm; }
}

/* ==========================================
   CLOTH STORE PREMIUM DEVELOPMENTS
   ========================================== */

/* Outfit Font Integration */
body {
  font-family: Outfit, Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* Two-Tier Navigation */
.navigation-wrapper {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: var(--fixed-header-height, 64px);
  z-index: 98;
}
.category-tabs-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  overflow-x: auto;
  scrollbar-width: none;
}
.category-tabs-container::-webkit-scrollbar { display: none; }
.category-tab {
  padding: 14px 20px;
  font-size: .95rem;
  font-weight: 800;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}
.category-tab:hover {
  color: var(--text-primary);
}
.category-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.subcategory-wrapper {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
}
.subcategory-scroll-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  padding: 0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  overflow-x: auto;
  scrollbar-width: none;
}
.subcategory-scroll-container::-webkit-scrollbar { display: none; }
.subcategory-pill {
  padding: 6px 16px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  white-space: nowrap;
  transition: var(--transition);
}
.subcategory-pill:hover {
  border-color: var(--text-muted);
}
.subcategory-pill.active {
  color: #fff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* Filter Button Adjustments */
.btn-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: .9rem;
  transition: var(--transition);
}
.btn-filter-toggle:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}
.btn-filter-toggle .filter-badge {
  background: var(--accent-color);
  color: var(--text-primary);
  font-size: .75rem;
  font-weight: 850;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Filter Drawer (Sidebar) */
.filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 1005;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.filter-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 88vw;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
  z-index: 1010;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.filter-drawer.open {
  transform: translateX(0);
}
.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}
.filter-drawer-title {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--text-primary);
}
.filter-drawer-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 4px;
}
.filter-drawer-close:hover { color: var(--text-primary); }

.filter-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.filter-group-title {
  font-size: .88rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.filter-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-options-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Chip Selectors (Sizes & Colors) */
.size-chip {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-size: .86rem;
  padding: 0 6px;
  transition: var(--transition);
}
.size-chip:hover { border-color: var(--text-muted); }
.size-chip.active {
  background: var(--text-primary);
  color: var(--bg-secondary);
  border-color: var(--text-primary);
}

.color-chip {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--border-color);
  background-color: #ccc;
  position: relative;
  transition: var(--transition);
}
.color-chip:hover { transform: scale(1.1); }
.color-chip.active {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--bg-secondary), 0 0 0 4px var(--primary-color);
}
.color-chip[data-color="white"] { border: 2px solid var(--border-color); }
.color-chip::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate3d(-50%, -6px, 0);
  background: #000;
  color: #fff;
  font-size: .7rem;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 10;
}
.color-chip:hover::after { opacity: 1; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 650;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-label input {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--primary-color);
}

.filter-drawer-footer {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--bg-secondary);
}
.filter-btn-reset {
  min-height: 46px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-weight: 800;
  color: var(--text-secondary);
  transition: var(--transition);
}
.filter-btn-reset:hover { background: #e2e8e2; }
.filter-btn-apply {
  min-height: 46px;
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  font-weight: 800;
  color: #fff;
  transition: var(--transition);
}
.filter-btn-apply:hover { background: var(--primary-hover); }

/* Variant Selector Modal / Bottom Sheet */
.variant-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 399;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.variant-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.variant-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 400;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  padding-bottom: env(safe-area-inset-bottom);
}
.variant-sheet.open {
  transform: translateY(0);
}
.variant-sheet-header {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.variant-sheet-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.variant-sheet-thumb img { width: 100%; height: 100%; object-fit: cover; }
.variant-sheet-thumb svg { color: var(--text-muted); }
.variant-sheet-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.variant-sheet-title {
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.variant-sheet-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-color);
}
.variant-sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
}
.variant-sheet-close:hover { color: var(--text-primary); }

.variant-sheet-body {
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.variant-options-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.variant-section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.size-guide-link {
  font-size: .82rem;
  font-weight: 800;
  color: var(--accent-color);
  text-decoration: underline;
  background: none;
  border: none;
}

.variant-sheet-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.qty-label-bold {
  font-size: .95rem;
  font-weight: 850;
  color: var(--text-secondary);
}

.variant-sheet-footer {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-variant-confirm {
  width: 100%;
  min-height: 48px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 850;
  font-size: 1rem;
  transition: var(--transition);
}
.btn-variant-confirm:hover { background: var(--primary-hover); }
.btn-variant-confirm:disabled {
  background: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-check-availability {
  width: 100%;
  min-height: 48px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 850;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-check-availability:hover { background: #20ba5a; }

/* Size Guide Modal */
.guide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.guide-overlay.open { opacity: 1; pointer-events: auto; }
.guide-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(.95);
  width: 90%;
  max-width: 480px;
  background: var(--bg-secondary);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 501;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.guide-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.guide-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}
.guide-modal-title { font-size: 1.15rem; font-weight: 850; }
.guide-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
}
.guide-modal-body {
  padding: 20px;
  overflow-x: auto;
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}
.guide-table th {
  background: var(--bg-tertiary);
  font-weight: 800;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--border-color);
}
.guide-table td {
  text-align: center;
  padding: 10px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Card Selection Indicators */
.product-card-options {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.product-card-options span {
  display: inline-block;
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
  font-weight: 650;
}

/* responsive refinements */
@media (max-width: 860px) {
  .navigation-wrapper {
    top: var(--fixed-header-height, 56px);
  }
}

/* Card elements overrides & additions (similar to reference image) */
.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}
.card-brand {
  font-size: 0.85rem;
  font-weight: 850;
  color: var(--text-primary);
  margin-bottom: 2px;
  text-transform: uppercase;
}
.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2rem;
}
.card-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.card-price-discount {
  font-size: 0.95rem;
  font-weight: 800;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 1px;
}
.card-price-original {
  font-size: 0.82rem;
  color: #888888;
  text-decoration: line-through;
}
.card-price-final {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-left: auto;
}
.card-offer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  margin-bottom: 8px;
}
.card-offer-badge {
  border: 1px solid #1a73e8;
  color: #1a73e8;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  background: rgba(26, 115, 232, 0.05);
}
.card-offer-text {
  font-size: 0.76rem;
  font-weight: 700;
  color: #1a73e8;
}
.card-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10;
  transition: transform 0.2s ease, background 0.2s ease;
}
.card-wishlist-btn:hover {
  transform: scale(1.08);
}
.card-wishlist-btn svg {
  fill: none;
  stroke: #888888;
  stroke-width: 2.2;
  width: 17px;
  height: 17px;
  transition: fill 0.2s ease, stroke 0.2s ease;
}
.card-wishlist-btn.active svg {
  fill: #e53935;
  stroke: #e53935;
}
.card-rating-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: #ffffff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 750;
  color: #111111;
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  z-index: 9;
}
.card-rating-star {
  color: #22c55e;
}
.card-rating-divider {
  color: #e5e7eb;
  font-weight: 300;
}
.card-rating-count {
  color: #666666;
  font-weight: 500;
}
.card-label-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-color);
  color: var(--text-primary);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

/* Product Details Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 6, 12, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-container {
  background-color: var(--bg-secondary);
  border-radius: 16px;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.open .modal-container {
  transform: translateY(0);
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.modal-close-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}
.modal-share-btn {
  position: absolute;
  top: 16px;
  right: 72px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.modal-share-btn:hover {
  background-color: #22c55e;
  border-color: #22c55e;
  color: #ffffff;
  transform: scale(1.05);
}
.modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.modal-media-column {
  padding: 24px;
  background-color: var(--bg-tertiary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.viewer-main-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* square ratio */
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: #f3f4f6;
  border: 1px solid var(--border-color);
}
.media-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.media-item {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
}
.media-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.media-nav-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.media-nav-btn.prev { left: 12px; }
.media-nav-btn.next { right: 12px; }
.media-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.thumbnail-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}
.thumbnail-strip::-webkit-scrollbar { display: none; }
.thumb-item {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
  border: 2px solid var(--border-color);
  cursor: pointer;
  flex-shrink: 0;
}
.thumb-item.active {
  border-color: var(--primary-color);
}
.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info-column {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.modal-category {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: 0.05em;
}
.modal-badge {
  background: var(--accent-color);
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.modal-status-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.modal-status-badge.status-in { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.modal-status-badge.status-out { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.modal-title {
  font-size: 1.65rem;
  font-weight: 850;
  color: var(--text-primary);
  line-height: 1.25;
}
.modal-product-id {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}
.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}
.modal-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
}
.modal-price-original {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.modal-price-discount {
  font-size: 1.1rem;
  font-weight: 800;
  color: #22c55e;
}
.modal-details-section {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 14px;
}
.modal-details-section h3 {
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.details-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.details-row {
  display: flex;
  flex-direction: column;
}
.details-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}
.details-value {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 800;
}
.info-body h3 {
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.modal-description {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.modal-options-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.modal-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-modal-confirm {
  width: 100%;
  min-height: 50px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 850;
  font-size: 1rem;
  transition: var(--transition);
}
.btn-modal-confirm:hover { background: var(--primary-hover); }
.btn-modal-confirm:disabled {
  background: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Fullscreen dedicated image viewer overlay */
.fullscreen-viewer-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(2, 6, 12, 0.98);
  z-index: 1200; /* Higher than details modal */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  touch-action: none;
}
.fullscreen-viewer-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.fullscreen-viewer-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.fullscreen-media-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.3s ease-out;
  will-change: transform;
}
.fullscreen-media-item {
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.fullscreen-media-item img {
  max-width: 95%;
  max-height: 95%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
  transform-origin: center center;
  transition: transform 0.25s ease;
}
.fullscreen-media-item img.zoomed {
  cursor: grabbing;
}
.fullscreen-media-item video {
  max-width: 95%;
  max-height: 95%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.fullscreen-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1300;
  transition: all 0.2s ease;
}
.fullscreen-close-btn:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: scale(1.05);
}
.fullscreen-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1250;
}
.fullscreen-nav-btn:hover {
  background: var(--primary-color);
}
.fullscreen-nav-btn.prev { left: 24px; }
.fullscreen-nav-btn.next { right: 24px; }
.fullscreen-media-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1250;
}

/* Modal responsive refinements */
@media (max-width: 860px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-media-column {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .modal-overlay {
    padding: 12px;
  }
  .modal-container {
    max-height: 95vh;
  }
  .fullscreen-nav-btn {
    width: 40px;
    height: 40px;
  }
  .fullscreen-nav-btn.prev { left: 10px; }
  .fullscreen-nav-btn.next { right: 10px; }
}

/* Locked Header & Sticky Nav Support */
.site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
}
.navigation-wrapper {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: var(--fixed-header-height, 60px) !important;
  z-index: 998 !important;
}
@media (max-width: 860px) {
  .navigation-wrapper {
    top: var(--fixed-header-height, 54px) !important;
  }
}

/* Direct Clear Filters Button */
.btn-clear-filters-direct {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-clear-filters-direct:hover {
  color: #e53935;
  border-color: #e53935;
  background: rgba(229, 57, 53, 0.05);
}

/* Heart and Menu Button Styling */
.btn-heart-icon svg {
  transition: var(--transition);
}
.btn-heart-icon.active {
  color: #e53935 !important;
  background: rgba(229, 57, 53, 0.08) !important;
  border-color: rgba(229, 57, 53, 0.2) !important;
}
.btn-heart-icon.active svg {
  fill: #e53935;
  stroke: #e53935;
}

/* Menu Dropdown Container */
.menu-dropdown-wrapper {
  position: relative;
  display: inline-block;
}
.menu-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background-color: var(--bg-secondary);
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  z-index: 1050;
  padding: 6px 0;
  transform-origin: top right;
  animation: menuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-dropdown-content.open {
  display: block;
}
.menu-link-item {
  color: var(--text-primary);
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  transition: var(--transition);
}
.menu-link-item:hover {
  background-color: var(--bg-primary);
  color: var(--primary-color);
}

@keyframes menuFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}



