/* =============================================================
   Compras Panamá — styles.css
   Dark premium theme.
   1. Tokens
   2. Reset & base
   3. Utilities
   4. Typography
   5. Components
   6. Sections
   7. Effects
   8. Responsive
   9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --primary:      #0A0A0A;
  --secondary:    #181818;
  --accent:       #D4AF37;
  --accent-2:     #E8C766;
  --accent-deep:  #A8842A;
  --success:      #22C55E;
  --danger:       #F87171;

  --bg:           #0A0A0A;
  --bg-secondary: #141414;
  --bg-tertiary:  #1F1F1F;
  --bg-light:     var(--bg-secondary);
  --bg-card:      #181818;
  --bg-card-hover: #232323;

  --ink:          #FFFFFF;
  --ink-soft:     #D4D4D4;
  --ink-mute:     #A3A3A3;
  --ink-faint:    #737373;

  --line:         rgba(255, 255, 255, 0.08);
  --line-strong:  rgba(255, 255, 255, 0.16);

  --radius-sm:    12px;
  --radius-md:    18px;
  --radius-lg:    28px;
  --radius-pill:  999px;

  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md:    0 10px 34px rgba(0, 0, 0, 0.38), 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-lg:    0 34px 76px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.36);
  --shadow-accent: 0 16px 40px rgba(212, 175, 55, 0.26);

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:      cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:    cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Manrope", var(--sans);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --nav-h: 76px;
  --container-w: 1240px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  color-scheme: dark;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
::selection { background: var(--accent); color: var(--primary); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; border: 3px solid var(--bg-secondary); }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container-w); margin-inline: auto; padding-inline: 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.2rem; background: var(--accent); color: var(--primary);
  border-radius: var(--radius-sm); font-weight: 700; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}

.section { padding-block: clamp(64px, 10vw, 128px); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 10px; }
.section-head p { color: var(--ink-mute); font-size: 1.05rem; margin-top: 14px; }

.bg-light { background: var(--bg-secondary); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* Stagger helper for groups revealed together */
.reveal[data-reveal-delay="1"] { transition-delay: .08s; }
.reveal[data-reveal-delay="2"] { transition-delay: .16s; }
.reveal[data-reveal-delay="3"] { transition-delay: .24s; }
.reveal[data-reveal-delay="4"] { transition-delay: .32s; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.text-mute { color: var(--ink-mute); }
.text-sm { font-size: 0.9rem; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.98rem; white-space: nowrap;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .3s var(--ease-out), border-color .3s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; stroke-width: 2; }
.btn-primary { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #ECECEC; }
.btn-accent { background: var(--accent); color: var(--primary); box-shadow: var(--shadow-accent); }
.btn-accent:hover { transform: translateY(-2px); background: var(--accent-2); box-shadow: 0 18px 44px rgba(212,175,55,0.36); }
.btn-whatsapp { background: var(--success); color: #fff; box-shadow: 0 14px 34px rgba(34,197,94,0.3); }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(34,197,94,0.4); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(212,175,55,0.08); }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:active { transform: translateY(0) scale(0.98); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.badge-disponible { background: rgba(34,197,94,0.16); color: #4ADE80; }
.badge-disponible::before { background: #4ADE80; }
.badge-pedido { background: rgba(212,175,55,0.18); color: var(--accent-2); }
.badge-pedido::before { background: var(--accent); }
.badge-agotado { background: rgba(248,113,113,0.16); color: #FCA5A5; }
.badge-agotado::before { background: #FCA5A5; }
.badge-featured { background: rgba(255,255,255,0.1); color: #fff; }
.badge-featured::before { background: #fff; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  background: rgba(15,23,42,0.72); backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(0,0,0,0.28); background: rgba(15,23,42,0.9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.brand-mark { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.brand-mark img { width: 34px; height: 34px; }
.nav-links { display: none; align-items: center; gap: 32px; font-weight: 600; font-size: 0.95rem; }
.nav-links a { position: relative; color: var(--ink-soft); padding: 6px 0; transition: color .25s var(--ease-out); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent);
  transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: inline-flex; padding: 8px; border-radius: var(--radius-sm); color: var(--ink); }
.nav-burger:hover { background: rgba(255,255,255,0.06); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--primary); padding: 24px 20px; display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { display: block; padding: 16px 4px; font-size: 1.1rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; }

/* Cards: why-us */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.why-card {
  padding: 32px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s var(--ease-out), background-color .45s var(--ease-out);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(212,175,55,0.28); background: var(--bg-card-hover); }
.why-icon {
  width: 54px; height: 54px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,175,55,0.12); color: var(--accent); margin-bottom: 20px;
  transition: background-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.why-card:hover .why-icon { background: rgba(212,175,55,0.2); transform: scale(1.06); }
.why-icon svg { width: 26px; height: 26px; stroke-width: 1.75; }
.why-card h3 { margin-bottom: 8px; }
.why-card p { color: var(--ink-mute); font-size: 0.96rem; }

/* Brand marquee */
.brand-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-track { display: flex; width: max-content; gap: 64px; animation: marquee 34s linear infinite; }
.brand-chip { display: flex; align-items: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--ink-faint); letter-spacing: 0.01em; white-space: nowrap; transition: color .3s var(--ease-out); }
.brand-chip:hover { color: var(--ink-soft); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Product grid & card */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product-card {
  display: flex; flex-direction: column; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s var(--ease-out);
  position: relative;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(212,175,55,0.24); }
.product-card-media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-tertiary); overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.product-card:hover .product-card-media img { transform: scale(1.07); }

/* Product media component. Renders every primary product image as a CSS
   background-image <div> instead of <img> (keeps Edge's Visual Search
   hover icon from appearing). No padding/inset here: normalized product
   photos already contain their own framing/margin baked in at the pixel
   level (produced upstream by the normalization pipeline before upload to
   Cloudinary), so CSS only needs to fit them — never re-normalize them.
   For a product image that hasn't been through that pipeline, `contain`
   still shows the full photo uncropped, just without that consistent
   margin. `background-color` only shows through as letterbox for a
   non-square image (never for an already-square normalized file) and
   matches the card's own resting background, not an added border. */
.product-media {
  width: 100%; height: 100%;
  background-repeat: no-repeat; background-position: center;
  background-size: contain;
  background-color: var(--bg-tertiary);
  transition: transform .7s var(--ease-out);
  -webkit-user-drag: none; user-select: none;
}
.product-card:hover .product-card-media .product-media { transform: scale(1.07); }
.product-card-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.product-card-quick {
  position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(15,23,42,0.75); backdrop-filter: blur(8px); color: #fff;
  box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px) scale(0.9); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background-color .3s var(--ease-out);
}
.product-card:hover .product-card-quick { opacity: 1; transform: none; }
.product-card-quick:hover { background: var(--accent); color: var(--primary); }
.product-card-quick svg { width: 18px; height: 18px; }
.product-card-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-cat { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.product-card-name { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--ink); }
.product-card-name a::after { content: ""; position: absolute; inset: 0; }
.product-card-price { margin-top: auto; padding-top: 10px; }

/* ---------- Pricing (regular price / sale price / discount badge) ----------
   One shared component for cards, quick view and product detail — size is
   controlled by the wrapping context (default = card size; .price-lg /
   .price-xl scale it up for quick view and product detail). */
.price-wrap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 10px; }
.price-current { font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.price-wrap.is-sale .price-regular {
  font-weight: 600; font-size: 0.92rem; color: var(--ink-faint);
  text-decoration: line-through; text-decoration-color: var(--ink-faint);
}
.price-wrap.is-sale .price-sale { font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.sale-badge {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1;
  padding: 4px 8px; border-radius: var(--radius-pill);
  background: rgba(212,175,55,0.18); color: var(--accent-2);
  align-self: center;
}
.price-lg .price-current, .price-lg.is-sale .price-sale { font-size: 1.3rem; }
.price-xl .price-current, .price-xl.is-sale .price-sale { font-size: 1.8rem; }
.price-xl.is-sale .price-regular { font-size: 1.05rem; }
.price-savings { margin-top: 6px; font-size: 0.88rem; font-weight: 600; color: var(--accent-2); }
.product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px 20px; }
.product-card-wa {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700;
  color: #4ADE80; position: relative; z-index: 1; transition: color .25s var(--ease-out);
}
.product-card-wa:hover { color: #86EFAC; }
.product-card-wa svg { width: 16px; height: 16px; }

.placeholder-img { background: var(--bg-tertiary); }

/* Filter bar (scrolls away with the page — not sticky/fixed) */
.filter-bar {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}
.search-field { position: relative; }
.search-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-faint); }
.search-field input {
  width: 100%; padding: 13px 16px 13px 44px; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill); font-size: 0.98rem; background: var(--bg-tertiary); color: var(--ink);
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.search-field input::placeholder { color: var(--ink-faint); }
.search-field input:focus { border-color: var(--accent); background: var(--bg-secondary); outline: none; }

/* Mobile: category/brand/sort/availability collapse behind a "Filtros" toggle,
   so they don't permanently consume screen height above the product grid. */
.filter-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong);
  background: var(--bg-tertiary); color: var(--ink-soft); font-size: 0.92rem; font-weight: 700;
  align-self: flex-start; transition: border-color .25s var(--ease-out), color .25s var(--ease-out);
}
.filter-toggle:hover { border-color: var(--ink-mute); color: var(--ink); }
.filter-toggle.has-active { border-color: var(--accent); color: var(--ink); }
.filter-toggle svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.filter-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-select {
  padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--bg-tertiary); font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
}
.filter-chip {
  padding: 9px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong);
  font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); transition: all .25s var(--ease-out);
}
.filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.filter-chip:hover:not(.is-active) { border-color: var(--ink-mute); color: var(--ink); }
.filter-results { font-size: 0.88rem; color: var(--ink-mute); }
.filter-clear { font-size: 0.85rem; font-weight: 700; color: var(--accent-2); }

@media (max-width: 719px) {
  .filter-row[data-filter-panel] { display: none; }
  .filter-row[data-filter-panel].is-open { display: flex; margin-top: 2px; }
}

.empty-state { text-align: center; padding: 72px 20px; color: var(--ink-mute); }
.empty-state svg { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--ink-faint); }

/* Quick view modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(3,6,15,0.72);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out);
  backdrop-filter: blur(6px);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal-card {
  width: 100%; max-width: 780px; max-height: 92vh; overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px; transform: translateY(40px); transition: transform .45s var(--ease-out);
}
.modal-overlay.is-open .modal-card { transform: none; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-tertiary); color: var(--ink); display: flex; align-items: center; justify-content: center; z-index: 2; transition: background-color .25s var(--ease-out); }
.modal-close:hover { background: var(--accent); color: var(--primary); }
.modal-close svg { width: 18px; height: 18px; }
.modal-grid { display: grid; grid-template-columns: 1fr; gap: 24px; position: relative; }
.modal-media { aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-tertiary); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }

/* Gallery (product page) */
.gallery-main { aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-tertiary); margin-bottom: 14px; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex: 0 0 auto; width: 74px; height: 74px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--line); background: var(--bg-tertiary); transition: border-color .25s var(--ease-out); }
.gallery-thumbs button.is-active { border-color: var(--accent); }
.gallery-thumbs button:hover { border-color: var(--ink-mute); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table td { padding: 14px 4px; font-size: 0.94rem; color: var(--ink); }
.spec-table td:first-child { color: var(--ink-mute); font-weight: 600; width: 42%; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--ink-mute); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--ink-faint); }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.testi-card { padding: 28px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 18px; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out); }
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(212,175,55,0.2); }
.testi-quote { font-size: 1.02rem; color: var(--ink-soft); line-height: 1.7; }
.testi-quote::before { content: "\201C"; color: var(--accent); }
.testi-quote::after { content: "\201D"; color: var(--accent); }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 0.94rem; color: var(--ink); }
.testi-role { font-size: 0.82rem; color: var(--ink-mute); }

/* FAQ */
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-card); transition: border-color .3s var(--ease-out); }
.faq-item.is-open { border-color: rgba(212,175,55,0.3); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; font-weight: 700; text-align: left; font-size: 1rem; color: var(--ink); }
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .35s var(--ease-out), color .3s var(--ease-out); color: var(--ink-mute); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.faq-a-inner { padding: 0 24px 22px; color: var(--ink-mute); font-size: 0.96rem; line-height: 1.7; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.contact-card { padding: 26px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; gap: 16px; align-items: flex-start; transition: border-color .3s var(--ease-out), transform .3s var(--ease-out); }
.contact-card:hover { border-color: rgba(212,175,55,0.24); transform: translateY(-2px); }
.contact-card svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; color: var(--ink); }
.contact-card p { color: var(--ink-mute); font-size: 0.94rem; }
.hours-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.map-frame { width: 100%; aspect-ratio: 16/10; border: 0; border-radius: var(--radius-lg); filter: grayscale(0.3) invert(0.92) contrast(0.9); border: 1px solid var(--line); }

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 0.86rem; font-weight: 700; color: var(--ink-soft); }
.form-field input, .form-field textarea {
  padding: 13px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg-tertiary); color: var(--ink); font-size: 0.96rem; transition: border-color .25s var(--ease-out);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-faint); }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); outline: none; background: var(--bg-secondary); }
.form-field textarea { resize: vertical; min-height: 110px; }

/* Footer */
.footer { background: var(--bg-secondary); color: var(--ink-mute); padding-block: 64px 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand { color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 32px; height: 32px; }
.footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 0.92rem; }
.footer-links a { transition: color .25s var(--ease-out); }
.footer-links a:hover { color: var(--accent-2); }
.footer-bottom { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.85rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; transition: background-color .25s var(--ease-out), color .25s var(--ease-out); }
.footer-social a:hover { background: var(--accent); color: var(--primary); }
.footer-social svg { width: 16px; height: 16px; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 60px; height: 60px; border-radius: 50%; background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 36px rgba(34,197,94,0.45);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  animation: waPulse 2.6s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 18px 44px rgba(34,197,94,0.55); animation-play-state: paused; }
.wa-float svg { width: 29px; height: 29px; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 14px 36px rgba(34,197,94,0.45), 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 14px 36px rgba(34,197,94,0.45), 0 0 0 10px rgba(34,197,94,0); }
}

/* Skeleton loading shimmer */
.skeleton { background: linear-gradient(90deg, var(--bg-tertiary) 25%, #2a3a50 37%, var(--bg-tertiary) 63%); background-size: 400% 100%; animation: skeleton 1.4s ease infinite; border-radius: var(--radius-md); }
@keyframes skeleton { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* =============================================================
   6. Sections
   ============================================================= */
.hero {
  position: relative; overflow: clip;
  padding-top: clamp(140px, 16vw, 180px); padding-bottom: clamp(64px, 9vw, 100px);
  background:
    radial-gradient(1200px 700px at 82% -10%, rgba(212,175,55,0.14), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(30,41,59,0.9), transparent 60%);
}
.hero-glow {
  position: absolute; inset: -10% -10% auto -10%; height: 620px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212,175,55,0.16), transparent 72%);
  filter: blur(20px);
}
.hero-glow-2 {
  position: absolute; inset: auto -20% -30% auto; width: 560px; height: 560px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212,175,55,0.08), transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 6vw, 40px); align-items: center; }
.hero-content { display: flex; flex-direction: column; gap: 20px; text-align: center; align-items: center; order: 0; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 7vw, 3.6rem); letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-mute); max-width: 480px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: 6px; width: 100%; }
.hero-cta-row .btn { flex: 1 1 auto; }
.hero-cta-row .btn-ghost { border-color: rgba(212,175,55,0.35); }
.hero-trust-row { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; justify-content: center; margin-top: 22px; color: var(--ink-mute); font-size: 0.84rem; font-weight: 600; }
.hero-trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust-row svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }

/* Hero watch photograph — see assets/img/hero/README.txt for the documented
   upload path. Degrades gracefully to a designed dark/gold panel if the
   photo file isn't present yet (onerror hides the broken <img>, revealing
   this container's own gradient background). */
.hero-visual {
  position: relative; order: -1;
  aspect-ratio: 4/3; width: 100%; overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 72% 18%, rgba(212,175,55,0.16), transparent 55%),
    linear-gradient(160deg, #1c1c1c 0%, #0a0a0a 78%);
  box-shadow: var(--shadow-lg);
}
.hero-watch-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  animation: heroPhotoIn 1s var(--ease-out) both;
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, transparent 42%);
}
@keyframes heroPhotoIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-block: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-item { text-align: center; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--ink); }
.stat-label { font-size: 0.86rem; color: var(--ink-mute); margin-top: 4px; }

.cta-band {
  border-radius: var(--radius-lg); background: linear-gradient(155deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--line); color: #fff;
  padding: clamp(40px, 6vw, 68px); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgba(212,175,55,0.28), transparent 70%);
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: var(--ink-mute); max-width: 480px; margin-inline: auto; margin-bottom: 28px; }

/* =============================================================
   7. Effects
   ============================================================= */
.tilt-hover { transition: transform .4s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; }
  .skeleton { animation: none; }
  .wa-float { animation: none; }
  .hero-watch-photo { animation: none; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1.1fr 1fr; }
}

@media (min-width: 720px) {
  .filter-bar { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .search-field { flex: 1 1 260px; }
  .filter-toggle { display: none; }
  .modal-grid { grid-template-columns: 1fr 1fr; }
  .modal-overlay { align-items: center; }
  .modal-card { border-radius: var(--radius-lg); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .gallery-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-content { text-align: left; align-items: flex-start; order: 0; }
  .hero-cta-row { justify-content: flex-start; }
  .hero-cta-row .btn { flex: 0 0 auto; }
  .hero-trust-row { justify-content: flex-start; }
  .hero-visual { order: 0; aspect-ratio: auto; height: 100%; min-height: 480px; }
}

@media (min-width: 1280px) {
  .hero h1 { font-size: 4.4rem; }
}

/* =============================================================
   10. Admin panel (admin/index.html)
   ============================================================= */
.admin-wrap { max-width: 720px; margin: 0 auto; padding: 48px 20px 96px; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.admin-callout {
  background: rgba(212,175,55,0.08); border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 24px; font-size: 0.94rem; line-height: 1.6;
}
.admin-callout strong { color: var(--ink); }
.admin-preview { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.admin-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.admin-status { border-radius: var(--radius-md); padding: 14px 16px; margin: 20px 0; font-size: 0.94rem; font-weight: 600; }
.admin-status-info { background: rgba(148,163,184,0.12); color: var(--ink-soft); }
.admin-status-success { background: rgba(34,197,94,0.14); color: #4ADE80; }
.admin-status-error { background: rgba(248,113,113,0.14); color: #FCA5A5; }

@media (min-width: 640px) {
  .admin-grid { grid-template-columns: 1fr 1fr; }
}

/* Bulk upload (admin/lote.html) */
.admin-wrap-wide { max-width: 1100px; }

.lote-dropzone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: 40px 20px; text-align: center; color: var(--ink-mute);
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out);
  margin-bottom: 24px;
}
.lote-dropzone svg { margin: 0 auto 12px; color: var(--accent); }
.lote-dropzone p { margin-top: 6px; }
.lote-dropzone.is-dragover { border-color: var(--accent); background: rgba(212,175,55,0.06); }
.lote-browse-btn { color: var(--accent-2); font-weight: 700; text-decoration: underline; }

.lote-bulkbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; margin-bottom: 20px;
}
.lote-bulkbar .form-field { flex: 1 1 180px; margin-bottom: 0; }
.lote-bulkbar input, .lote-bulkbar select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg-tertiary); color: var(--ink); font-size: 0.92rem;
}

.lote-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 8px; }
.lote-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.lote-table th {
  text-align: left; padding: 12px 10px; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-mute); background: var(--bg-tertiary); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.lote-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lote-table tr:last-child td { border-bottom: 0; }
.lote-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; }
.lote-table input, .lote-table select {
  width: 100%; min-width: 100px; padding: 8px 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg-tertiary); color: var(--ink); font-size: 0.88rem;
}
.lote-table input[type="checkbox"] { width: 18px; height: 18px; min-width: 0; }
.lote-table input:invalid { border-color: rgba(248,113,113,0.6); }

.lote-row-status { font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.lote-row-status[data-state="pending"] { color: var(--ink-faint); }
.lote-row-status[data-state="uploading"] { color: var(--accent-2); }
.lote-row-status[data-state="success"] { color: #4ADE80; }
.lote-row-status[data-state="error"] { color: #FCA5A5; }
