@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Manrope:wght@400;500;600;700&display=swap');

/* ============================================================
   EL-NOVIK — Complete Stylesheet
   Built for Sound. Made for Creativity. Rooted in Nigeria.
   ============================================================ */

/* Suppress all transitions during initial load — prevents UI hang */
.preload *,
.preload *::before,
.preload *::after {
  transition: none !important;
  animation: none !important;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:            #FAF8F4;
  --bg-elevated:   #FFFFFF;
  --bg-card:       #FFFFFF;
  --bg-card-hover: #F5F1EA;

  --line:          #E8E2D6;
  --line-strong:   #D4CCB8;
  --line-soft:     #F0EBE0;

  --text:          #0E0C08;
  --text-muted:    #423D33;
  --text-dim:      #6E665A;
  --text-on-accent:#FFFFFF;

  --accent:        #1F6B4A;
  --accent-hover:  #18553B;
  --accent-soft:   rgba(31, 107, 74, 0.10);
  --accent-line:   rgba(31, 107, 74, 0.32);

  --wood:          #A87B4B;
  --wood-soft:     rgba(168, 123, 75, 0.10);

  --danger:        #C0463A;
  --success:       #1F6B4A;

  --font-display:  'Fraunces', Georgia, serif;
  --font-body:     'Manrope', system-ui, -apple-system, sans-serif;

  --s-1: 4px;  --s-2: 8px;  --s-3: 16px; --s-4: 24px;
  --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px;
  --s-9: 128px;

  --container: 1200px;
  --container-wide: 1400px;
  --nav-height: 68px;

  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(26, 24, 20, 0.05);
  --shadow:    0 8px 24px rgba(26, 24, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(26, 24, 20, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med:  320ms;
  --t-slow: 600ms;
}

[data-theme="dark"] {
  --bg:            #0E0E0E;
  --bg-elevated:   #161616;
  --bg-card:       #1A1A1A;
  --bg-card-hover: #1F1F1F;
  --line:          #262626;
  --line-strong:   #333333;
  --line-soft:     #1F1F1F;
  --text:          #F4F1EC;
  --text-muted:    #A8A29E;
  --text-dim:      #6B6661;
  --accent-soft:   rgba(31, 107, 74, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow:    0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; background: transparent; border: none; outline: none; }
::selection { background: var(--accent); color: #fff; }

body.is-nav-locked,
body.is-modal-locked,
body.is-lightbox-locked {
  overflow: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ital {
  font-style: italic;
  color: var(--accent);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-3);
}
@media (min-width: 768px) { .container { padding-inline: var(--s-4); } }
@media (min-width: 1200px) { .container { padding-inline: var(--s-5); } }

.compact-page {
  padding-top: var(--s-5);
  padding-bottom: var(--s-6);
  min-height: calc(100vh - var(--nav-height));
}
@media (min-width: 768px) {
  .compact-page {
    padding-top: var(--s-6);
    padding-bottom: var(--s-7);
  }
}

.compact-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 768px) {
  .compact-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s-5);
    margin-bottom: var(--s-6);
  }
}

.compact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.0;
  color: var(--text);
}

.compact-lede {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 42ch;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--t-fast) var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(31, 107, 74, 0.18);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 10px 28px rgba(31, 107, 74, 0.26);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.btn-sm { padding: 8px 14px; font-size: 0.8125rem; }
.btn-sm svg { width: 13px; height: 13px; }

.btn-full { width: 100%; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  transform: translateZ(0);
  contain: layout style;
}

.site-header.is-scrolled {
  background: rgba(250, 248, 244, 0.96);
  border-bottom-color: var(--line);
}
[data-theme="dark"] .site-header {
  background: rgba(14, 14, 14, 0.78);
}
[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(14, 14, 14, 0.94);
}

.nav-inner {
  height: 100%;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
@media (min-width: 768px) { .nav-inner { padding: 0 var(--s-4); } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  flex-shrink: 0;
}
.brand:hover { opacity: 0.85; }

.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}
@media (max-width: 380px) { .brand-name { display: none; } }

.nav-links {
  display: none;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: var(--s-1);
}
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-link:hover {
  color: var(--text);
  background: var(--bg-card);
}
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-shrink: 0;
  margin-left: auto;
}
@media (min-width: 900px) { .nav-actions { margin-left: 0; } }

.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.theme-icon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }
:root:not([data-theme="dark"]) .theme-icon-moon { display: block; }

.nav-cta {
  flex-shrink: 0;
  white-space: nowrap;
  display: none;
}
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
   will-change: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-toggle:active {
  transform: scale(0.92);
  background: var(--bg-card);
}

.nav-toggle:hover { background: var(--bg-card); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
    will-change: transform;
}




.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .nav-toggle { display: none; } }


/* ============================================================
   MOBILE NAV  —  professional right-side drawer
   Apple/Stripe-style slide-in from the right, with overlay
   ============================================================ */

/* The backdrop behind the drawer */
.nav-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 12, 8, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.nav-mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--t-med) var(--ease);
}

/* The drawer itself */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  z-index: 99;
  background: var(--bg-elevated);
  box-shadow: -24px 0 60px rgba(14, 12, 8, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-mobile.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--t-med) var(--ease);
}

/* Drawer header — close button + brand row */
.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line-soft);
  height: var(--nav-height);
  flex-shrink: 0;
}

.nav-mobile-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-mobile-close {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  color: var(--text);
  transition: background var(--t-fast) var(--ease);
}
.nav-mobile-close:hover { background: var(--bg-card-hover); }

/* Link list */
.nav-mobile-list {
  flex: 1;
  padding: var(--s-3) var(--s-4) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-mobile .nav-link {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
  color: var(--text);
  padding: var(--s-3) var(--s-2);
  border-radius: var(--r);
  border-bottom: none;
  letter-spacing: -0.015em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}
.nav-mobile .nav-link::after { display: none; }
.nav-mobile .nav-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.nav-mobile .nav-link:hover,
.nav-mobile .nav-link.is-active {
  color: var(--accent);
  padding-left: var(--s-4);
}
.nav-mobile .nav-link.is-active::before,
.nav-mobile .nav-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Drawer footer — WhatsApp CTA + tagline */
.nav-mobile-footer {
  padding: var(--s-4);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex-shrink: 0;
}

.nav-mobile-cta {
  width: 100%;
  justify-content: center;
}

.nav-mobile-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* Hide drawer on desktop */
@media (min-width: 900px) {
  .nav-mobile,
  .nav-mobile-backdrop {
    display: none;
  }
}

/* ============================================================
   HOMEPAGE  (one-scroll hero + categories)
   ============================================================ */
.home-hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding-block: var(--s-5);
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 80% 20%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 90%, var(--wood-soft), transparent 60%);
  will-change: opacity;
  contain: strict;
}

.home-hero-inner {
  position: relative;
  display: grid;
  gap: var(--s-6);
  align-items: center;
  width: 100%;
}
@media (min-width: 900px) {
  .home-hero-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--s-7);
  }
}

.home-hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 36ch;
}
.home-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.02;
  color: var(--text);
}
.home-hero-lede {
  font-size: 1.0625rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: var(--s-2);
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.home-hero-cats {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 1100px) {
  .home-hero-cats {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--s-3);
  }
  .home-hero-cats .home-cat:first-child { grid-row: span 2; }
}

.home-cat {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  isolation: isolate;
  contain: layout paint;
}

@media (min-width: 1100px) {
  .home-cat { aspect-ratio: auto; min-height: 140px; }
}
.home-cat:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.home-cat-img { position: absolute; inset: 0; }
.home-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.home-cat:hover .home-cat-img img { transform: scale(1.06); }
.home-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 18, 14, 0.72) 100%);
  pointer-events: none;
}
.home-cat-label {
  position: absolute;
  left: var(--s-3);
  bottom: var(--s-3);
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
}
@media (min-width: 900px) {
  .home-cat-label { font-size: 1.25rem; left: var(--s-4); bottom: var(--s-4); }
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 900px) {
  .filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
@media (max-width: 640px) {
  .filter-group {
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-inline: calc(var(--s-3) * -1);
    padding-inline: var(--s-3);
    scrollbar-width: none;
  }
  .filter-group::-webkit-scrollbar { display: none; }
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.filter-chip:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
  color: var(--text);
}
.filter-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--bg);
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
}
.filter-chip.is-active .filter-count {
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
}

.filter-search {
  position: relative;
  width: 100%;
  max-width: 320px;
}
.filter-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  display: flex;
}
.filter-search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  color: var(--text);
  transition: border-color var(--t-fast) var(--ease);
}
.filter-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.product-grid {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(2, 1fr); /* 2-per-row from the smallest screen */
}
@media (min-width: 768px)  { .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); } }
@media (min-width: 1400px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-align: left;
  width: 100%;
  font-family: inherit;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.product-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-elevated);
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.product-card:hover .product-img { transform: scale(1.04); }
.product-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-elevated));
}

.product-chip {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  padding: 4px 9px;
  background: rgba(14, 14, 14, 0.78);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.product-flag {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  padding: 4px 9px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-body {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--s-2);
  border-top: 1px solid var(--line-soft);
}
.product-price {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}
.product-price.is-poa {
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.product-view {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.product-view svg { width: 12px; height: 12px; }

/* ============================================================
   PRODUCT MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-3);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--t-med) var(--ease);
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.65);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  max-height: calc(100vh - var(--s-5));
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.98);
  transition: transform var(--t-med) var(--ease);
}
.modal.is-open .modal-panel {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  z-index: 2;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--text);
}
.modal-close:hover { background: var(--bg-card-hover); }
.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  overflow-y: auto;
}
@media (min-width: 900px) {
  .modal-grid { grid-template-columns: 1.1fr 1fr; overflow: hidden; }
}
.modal-gallery { background: var(--bg-card-hover); }
.modal-img-main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
@media (min-width: 900px) { .modal-img-main { aspect-ratio: 1 / 1; } }
.modal-img-main img { width: 100%; height: 100%; object-fit: contain; }
.modal-thumbs {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-2);
  overflow-x: auto;
  border-top: 1px solid var(--line-soft);
}
.modal-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
}
.modal-thumb.is-active { border-color: var(--accent); }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-details {
  padding: var(--s-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
@media (min-width: 900px) { .modal-details { padding: var(--s-5); } }
.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-3);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.modal-price {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
}
.modal-price.is-poa {
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--text-muted);
}
.modal-stock {
  padding: 4px 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}
.modal-stock.is-out {
  background: rgba(192, 70, 58, 0.12);
  border-color: rgba(192, 70, 58, 0.32);
  color: var(--danger);
}
.modal-desc {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.9375rem;
}
.modal-desc p + p { margin-top: var(--s-2); }
.modal-actions {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.modal-actions .btn { flex: 1; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-soft);
}
.gallery-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.gallery-tab:hover {
  color: var(--text);
  background: var(--bg-card);
}
.gallery-tab.is-active {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--line-strong);
}
.gallery-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--bg);
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-dim);
}
.gallery-tab.is-active .gallery-tab-count {
  background: var(--accent);
  color: #fff;
}

.gallery-grid {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(2, 1fr);  /* 2-per-row on mobile */
}
@media (min-width: 768px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); } }
@media (min-width: 1400px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); } }

.gallery-tile {
  aspect-ratio: 4 / 5;  /* slight portrait — looks great for products + videos */
}
@media (min-width: 1024px) {
  .gallery-tile {
    aspect-ratio: 1 / 1;  /* square on desktop */
  }
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  cursor: pointer;
  aspect-ratio: 4 / 5;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
@media (min-width: 1024px) {
  .gallery-tile { aspect-ratio: 1 / 1; }
}
.gallery-tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.tile-tall { grid-row: span 1; } /* Disable variable heights — uniform tiles */
.gallery-tile img,
.gallery-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.gallery-tile:hover img,
.gallery-tile:hover video { transform: scale(1.05); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.lightbox.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--t-med) var(--ease);
}
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  cursor: pointer;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: background var(--t-fast) var(--ease);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.16);
}
.lightbox-close {
  top: var(--s-3);
  right: var(--s-3);
  width: 44px;
  height: 44px;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}
.lightbox-prev { left: var(--s-3); }
.lightbox-next { right: var(--s-3); }
.lightbox-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  pointer-events: none;
}
.lightbox-stage > * {
  pointer-events: auto;
  max-width: min(1400px, calc(100vw - var(--s-7)));
  max-height: calc(100vh - var(--s-9));
  border-radius: var(--r);
}
.lightbox-meta {
  position: absolute;
  bottom: var(--s-3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: var(--s-3);
  padding: 8px 14px;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  color: #fff;
}
.lightbox-counter {
  color: rgba(255, 255, 255, 0.5);
  padding-left: var(--s-3);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-compact .about-split {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 900px) {
  .about-compact .about-split {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--s-7);
  }
}

.about-photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 420px;
  width: 100%;
  margin-inline: auto;
}
@media (min-width: 900px) { .about-photo { max-width: none; margin-inline: 0; } }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-photo-badge {
  position: absolute;
  bottom: var(--s-3);
  left: var(--s-3);
  background: rgba(20, 18, 14, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 14px;
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: #fff;
}
.about-photo-badge-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}
.about-photo-badge-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.about-story-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 18ch;
}
.about-story-lede {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
}
.about-story-body {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.9375rem;
}
.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.about-pill {
  padding: 5px 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-split {
  display: grid;
  gap: var(--s-5);
  align-items: start;
}
@media (min-width: 900px) {
  .contact-split { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.contact-channel {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
a.contact-channel:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-line);
  transform: translateX(2px);
}
.contact-channel-primary {
  position: relative;
  border-color: var(--accent-line);
}
.contact-channel-primary::before {
  content: "Fastest";
  position: absolute;
  top: -8px;
  right: 12px;
  padding: 2px 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
}
.contact-channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.contact-channel-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.contact-channel-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact-channel-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-channel-arrow {
  color: var(--text-dim);
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  flex-shrink: 0;
}
a.contact-channel:hover .contact-channel-arrow {
  color: var(--accent);
  transform: translateX(3px);
}
.contact-channel-static { cursor: default; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
a.service-card:hover {
  border-color: var(--accent-line);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.service-card-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
}
.service-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.15;
}
.service-card-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  flex: 1;
}
.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.service-card-cta svg { transition: transform var(--t-fast) var(--ease); }
a.service-card:hover .service-card-cta { color: var(--accent); }
a.service-card:hover .service-card-cta svg { transform: translateX(3px); }
.service-card-cta-block {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-row {
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  margin-bottom: var(--s-3);
}
.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.55; }

.form-actions { margin-top: var(--s-3); }

.form-success {
  display: flex;
  flex-direction: column;
  padding: var(--s-4);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r);
  margin-top: var(--s-3);
}
.form-success-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  margin-bottom: var(--s-2);
}
.form-success-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: var(--s-1);
}
.form-success-text { color: var(--text-muted); font-size: 0.9375rem; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s-7) var(--s-3);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  max-width: 480px;
  margin-inline: auto;
}
.empty-state-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.empty-state-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--s-3);
  max-width: 40ch;
}
.empty-state-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   SKELETONS
   ============================================================ */
.is-skeleton { pointer-events: none; user-select: none; }
.skeleton-block,
.skeleton-line {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-hover) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--r-sm);
}
.skeleton-line {
  height: 10px;
  margin-bottom: var(--s-2);
}
.skeleton-line:last-child { margin-bottom: 0; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer-compact {
  padding-block: var(--s-4) var(--s-3);
  border-top: 1px solid var(--line-soft);
  background: var(--bg-elevated);
}
.footer-compact-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 768px) {
  .footer-compact-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.footer-tagline {
  font-style: italic;
  font-size: 0.8125rem;
  font-family: var(--font-display);
  color: var(--text-muted);
}
@media (max-width: 640px) { .footer-tagline { display: none; } }

.footer-compact-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.875rem;
}
.footer-compact-links a {
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease);
}
.footer-compact-links a:hover { color: var(--accent); }

.footer-compact-social {
  display: flex;
  gap: var(--s-2);
}
.footer-compact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.footer-compact-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.footer-compact-bottom {
  padding-top: var(--s-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ============================================================
   MOBILE TOUCH TARGETS
   ============================================================ */
@media (max-width: 768px) {
  .btn { min-height: 44px; }
  .filter-chip,
  .gallery-tab,
  .nav-link { min-height: 40px; }
}



/* ============================================================
   FINAL NAV DRAWER FIX
   Ensure drawer is completely invisible on desktop
   ============================================================ */

@media (min-width: 900px) {
  .nav-mobile,
  .nav-mobile-backdrop {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .nav-mobile.is-open,
  .nav-mobile-backdrop.is-open {
    display: none !important;
    visibility: hidden !important;
  }
  body.is-nav-locked {
    overflow: auto !important;
  }
}

/* ============================================================
   ELV DRAWER — clean mobile nav, slides from right
   ============================================================ */

.elv-drawer-back {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}
.elv-drawer-back.show {
  opacity: 1;
  pointer-events: auto;
}

.elv-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #FAF8F4;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="dark"] .elv-drawer {
  background: #161616;
}
.elv-drawer.show {
  transform: translateX(0);
}

.elv-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E8E2D6;
  height: 68px;
}
[data-theme="dark"] .elv-drawer-top {
  border-bottom-color: #262626;
}

.elv-drawer-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0E0C08;
}
[data-theme="dark"] .elv-drawer-brand {
  color: #F4F1EC;
}

.elv-drawer-x {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: #0E0C08;
  cursor: pointer;
}
[data-theme="dark"] .elv-drawer-x {
  color: #F4F1EC;
}
.elv-drawer-x:hover {
  background: rgba(0, 0, 0, 0.05);
}

.elv-drawer-nav {
  flex: 1;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.elv-drawer-nav a {
  display: block;
  padding: 14px 12px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: #0E0C08;
  text-decoration: none;
  letter-spacing: -0.015em;
  border-radius: 8px;
  transition: color 180ms ease, background 180ms ease, padding-left 180ms ease;
}
[data-theme="dark"] .elv-drawer-nav a {
  color: #F4F1EC;
}
.elv-drawer-nav a:hover {
  color: #1F6B4A;
  padding-left: 20px;
}

.elv-drawer-bottom {
  padding: 20px;
  border-top: 1px solid #E8E2D6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
[data-theme="dark"] .elv-drawer-bottom {
  border-top-color: #262626;
}

.elv-drawer-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: #1F6B4A;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
}
.elv-drawer-wa:hover {
  background: #18553B;
}

.elv-drawer-tag {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: #423D33;
  text-align: center;
  margin: 0;
}
[data-theme="dark"] .elv-drawer-tag {
  color: #A8A29E;
}

/* Hide on desktop */
@media (min-width: 900px) {
  .elv-drawer,
  .elv-drawer-back {
    display: none !important;
  }
}

/* Lock body when open */
body.elv-locked {
  overflow: hidden;
}


/* ============================================================
   DRAWER HARD OVERRIDES — fix gray strip + desktop showing
   ============================================================ */

/* Make drawer absolutely opaque and full-height */
.elv-drawer {
  background-color: #FAF8F4 !important;
  height: 100vh !important;
  height: 100dvh !important;
  top: 0 !important;
  bottom: 0 !important;
}
[data-theme="dark"] .elv-drawer {
  background-color: #161616 !important;
}

/* Force drawer + backdrop to never appear on desktop */
@media (min-width: 900px) {
  .elv-drawer,
  .elv-drawer-back,
  .nav-mobile,
  .nav-mobile-backdrop {
    display: none !important;
    visibility: hidden !important;
    transform: translateX(100%) !important;
    pointer-events: none !important;
  }
}

/* Hide hamburger on desktop */
@media (min-width: 900px) {
  .nav-toggle {
    display: none !important;
  }
}

/* Show hamburger only on mobile/tablet */
@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex !important;
  }
}


/* ============================================================
   PERFORMANCE PATCH
   Speed up loading and theme toggle
   ============================================================ */

/* Stop animating EVERY element when theme toggles —
   only specific things should transition. The 'transition: *' rule
   on the universal selector was the slowness culprit. */
*, *::before, *::after {
  transition: none;
}

/* Re-enable transitions only on interactive elements that need them */
a, button, .btn, .nav-link, .filter-chip, .gallery-tab,
.product-card, .home-cat, .service-card, .contact-channel,
.theme-toggle, .nav-toggle, .form-input, .form-textarea, .form-select,
.site-header, .modal, .modal-panel, .lightbox, .elv-drawer, .elv-drawer-back,
.product-card img, .home-cat img, .gallery-tile img, .offer-img,
.nav-mobile, .nav-mobile-backdrop, .modal-overlay, .modal-close,
.lightbox-close, .lightbox-prev, .lightbox-next, .modal-thumb {
  transition-property: background-color, border-color, color, transform, opacity, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Image performance — use GPU and prevent layout thrash */
img, video {
  content-visibility: auto;
}

.product-img, .home-cat-img img, .gallery-tile img,
.about-photo img, .offer-img {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   GALLERY TILES — pro video styling
   ============================================================ */

.gallery-tile {
  position: relative; /* ensure overlays anchor properly */
}

.gallery-tile-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 50%;
  color: #fff;
  pointer-events: none;
  transition: transform 240ms ease, background 240ms ease;
  z-index: 2;
}
.gallery-tile:hover .gallery-tile-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(0, 0, 0, 0.7);
}
.gallery-tile-play svg {
  margin-left: 2px; /* nudge play triangle visually centered */
}

.gallery-tile-badge {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  z-index: 2;
}

.gallery-tile-caption {
  position: absolute;
  left: var(--s-2);
  bottom: var(--s-2);
  right: var(--s-2);
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  z-index: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 240ms ease, transform 240ms ease;
}
.gallery-tile:hover .gallery-tile-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth fade-in for tile images as they load */
.gallery-tile img,
.product-img-wrap img {
  transition: opacity 320ms ease;
}