/* ==========================================================================
   FYA - PDR Tools · Catálogo público
   Cores da marca: amarelo #EFB616, cinza #C4C4C4, grafite #4A4A4A
   ========================================================================== */
:root {
  --brand: #efb616;
  --brand-600: #d9a20a;
  --brand-100: #fdf3d2;
  --ink: #1c1c1e;
  --ink-2: #2a2a2e;
  --text: #2b2b2f;
  --muted: #6b6b73;
  --line: #e6e6ea;
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --success: #198754;
  --danger: #c62828;
  --warning: #9a6700;
  --whatsapp: #1fa855;
  --whatsapp-600: #178a45;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 20, .06), 0 1px 3px rgba(16, 16, 20, .08);
  --shadow: 0 10px 30px -12px rgba(16, 16, 20, .25);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
main { min-height: 60vh; outline: none; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.mt-lg { margin-top: 40px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 13px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: var(--ink); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 6px 18px -6px rgba(239, 182, 22, .7); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-600); }
.btn-danger-text { color: var(--danger); }
.btn-danger-text:hover { border-color: var(--danger); }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading svg { opacity: 0; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--ink) transparent var(--ink) transparent; animation: spin .7s linear infinite;
}
.btn-whatsapp.is-loading::after, .btn-dark.is-loading::after { border-color: #fff transparent #fff transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s;
}
.icon-btn:hover { background: #fdecec; color: var(--danger); }
.link-arrow { font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
.link-arrow:hover { color: var(--brand-600); }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand img { height: 52px; width: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--bg-soft); }
.main-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Categories dropdown (desktop: floating panel; mobile: expands inside the menu) */
.has-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px 8px 14px; border: 0; border-radius: 999px;
  background: transparent; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s;
}
.nav-dropdown-toggle:hover, .has-dropdown.is-open .nav-dropdown-toggle { background: var(--bg-soft); }
.nav-dropdown-toggle svg { transition: transform .2s var(--ease); }
.has-dropdown.is-open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 110; width: min(720px, calc(100vw - 40px));
  padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  visibility: hidden; opacity: 0; transform: translate(-50%, -6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-dropdown-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.has-dropdown.is-open .nav-dropdown-panel { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.main-nav .nav-dropdown-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 24px;
  list-style: none; margin: 0; padding: 0;
}
.main-nav .nav-dropdown-children { display: grid; gap: 0; list-style: none; margin: 4px 0 0; padding: 0; }
.main-nav .nav-dropdown-parent { padding: 6px 10px; font-weight: 700; color: var(--ink); border-radius: 8px; }
.main-nav .nav-dropdown-children a { padding: 5px 10px; font-size: .92rem; color: var(--muted); border-radius: 8px; }
.main-nav .nav-dropdown-children a:hover, .main-nav .nav-dropdown-parent:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav .nav-dropdown-all {
  display: inline-block; margin-top: 16px; padding: 10px 10px 0; border-top: 1px solid var(--line); border-radius: 0;
  width: 100%; font-weight: 600; color: var(--ink);
}
.main-nav .nav-dropdown-all:hover { background: transparent; color: var(--brand-600); }
.cart-button {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; transition: background .2s;
}
.cart-button:hover { background: #000; }
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #55555c; color: #fff;
  display: inline-grid; place-items: center; font-size: .75rem; font-weight: 700;
}
.cart-count.has-items { background: var(--brand); color: var(--ink); }
.cart-count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.3); } }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(239, 182, 22, .28), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(196, 196, 196, .18), transparent 60%),
    linear-gradient(135deg, #141416 0%, #26262b 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .06;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-with-image::after { display: none; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-with-image::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(16, 16, 18, .9) 0%, rgba(16, 16, 18, .65) 55%, rgba(16, 16, 18, .25) 100%);
}
.hero-inner { min-height: clamp(420px, 62vh, 620px); display: flex; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.hero-content { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 16px; }
.hero-text { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255, 255, 255, .85); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions.center { justify-content: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand-600); margin-bottom: 8px;
}
.hero .eyebrow, .section-dark .eyebrow { color: var(--brand); }

/* ---------------------------------------------------------------- Sections */
.section { padding: 72px 0; }
.section-tight { padding: 32px 0 72px; }
.section-muted { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, .85); }
.section-dark h2 { color: #fff; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head .section-title { margin: 0; }
.page-header { background: var(--bg-soft); padding: 32px 0 28px; border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; margin: 0; }
.page-subtitle { color: var(--muted); margin: 8px 0 0; max-width: 720px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------------- Product grid & cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product-card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--bg-soft); overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.badge-featured { background: var(--brand); color: var(--ink); }
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.product-card-category {
  display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); text-decoration: none; margin-bottom: 4px;
}
.product-card-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; }
.product-card-title a { text-decoration: none; }
.product-card-title a:hover { color: var(--brand-600); }
.product-card-desc { color: var(--muted); font-size: .9rem; margin: 0 0 14px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-footer { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.price { display: block; font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.availability { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--success); font-weight: 600; }
.availability .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(25, 135, 84, .15); }
.availability-lg { font-size: .95rem; margin-bottom: 24px; }
.product-card-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.product-card { min-width: 0; }
.product-card-actions .btn { width: 100%; min-width: 0; }
.product-card-actions [data-add-to-cart] { order: -1; }

.will-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.will-reveal.is-revealed { opacity: 1; transform: none; }

.empty-state {
  text-align: center; padding: 56px 24px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.empty-state p { font-size: 1.05rem; }
.loading { padding: 48px; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- Categories */
.chip {
  display: inline-block; padding: 10px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; transition: all .2s var(--ease);
}
.chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.subcategory-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.chip-sm { padding: 6px 14px; font-size: .88rem; }
.chip[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.section-subtitle { color: var(--muted); margin: 6px 0 0; max-width: 640px; }

/* ---------------------------------------------------------------- Testimonials */
.testimonials {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
  list-style: none; padding: 0; margin: 36px 0 0;
}
.testimonial figure {
  height: 100%; margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.stars { margin: 0; font-size: 1.1rem; letter-spacing: 2px; color: #d6d6dc; }
.stars .is-on { color: var(--brand); }
.testimonial blockquote { margin: 0; flex: 1; }
.testimonial blockquote p { margin: 0; color: var(--text); font-size: 1rem; }
.testimonial blockquote p::before { content: '“'; }
.testimonial blockquote p::after { content: '”'; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.testimonial figcaption strong { display: block; color: var(--ink); line-height: 1.3; }
.testimonial figcaption small { display: block; color: var(--muted); font-size: .85rem; }
.testimonial-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--brand); font-weight: 700; font-size: .9rem;
}

/* ---------------------------------------------------------------- About & contact */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.about-logo { background: var(--bg-soft); border-radius: 24px; padding: 48px; display: grid; place-items: center; }
.about-text p { color: var(--muted); font-size: 1.05rem; }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.contact-list li { display: grid; gap: 2px; }
.contact-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .55); font-weight: 600; }
.contact-list a { color: #fff; text-decoration: none; font-size: 1.05rem; font-weight: 500; }
.contact-list a:hover { color: var(--brand); }
.map-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #2a2a2e; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: #111113; color: rgba(255, 255, 255, .7); padding-top: 56px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { height: 56px; width: auto; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 16px; }
.footer-title { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-links, .social-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a, .social-links a { text-decoration: none; color: rgba(255, 255, 255, .75); transition: color .2s; }
.footer-links a:hover, .social-links a:hover { color: var(--brand); }
.social-links a { display: inline-flex; align-items: center; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  color: rgba(255, 255, 255, .4); font-size: .78rem; text-decoration: none; transition: color .2s, background .2s;
}
.admin-link:hover, .admin-link:focus-visible { color: var(--brand); background: rgba(255, 255, 255, .05); }
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(31, 168, 85, .6);
  transition: transform .2s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------------------------------------------------------------- Forms */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid #d6d6dc; border-radius: var(--radius-sm);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(239, 182, 22, .35); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; margin: 0; min-height: 0; }
.field-error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.required { color: var(--danger); }
.optional { color: var(--muted); font-weight: 400; font-size: .85em; }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .93rem; }
.notice-warning { background: #fff7e0; color: var(--warning); border: 1px solid #f5dc93; }
.notice-error { background: #fdecec; color: var(--danger); border: 1px solid #f5c2c2; }

.catalog-filters {
  display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 16px; align-items: end; padding: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.catalog-filters .field { margin: 0; }
.field-actions { display: flex; gap: 8px; }
.results-count { color: var(--muted); font-size: .93rem; margin-bottom: 20px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.page-link {
  min-width: 42px; height: 42px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: all .2s;
}
a.page-link:hover { border-color: var(--ink); }
.page-link.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-gap { align-self: center; color: var(--muted); }

/* ---------------------------------------------------------------- Product detail */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; margin-top: 12px; }
.product-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.zoomable { display: block; border-radius: 20px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 1 / 1; cursor: zoom-in; border: 1px solid var(--line); }
.zoomable img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.zoomable:hover img { transform: scale(1.03); }
.product-title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; margin-bottom: 12px; }
.product-price { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; color: var(--ink); margin-bottom: 6px; letter-spacing: -.02em; }
.add-to-cart-form { display: grid; gap: 10px; padding: 20px; background: var(--bg-soft); border-radius: var(--radius); margin-bottom: 32px; }
.add-to-cart-form label { font-weight: 600; font-size: .9rem; }
.qty-control { display: inline-flex; align-items: stretch; border: 1.5px solid #d6d6dc; border-radius: 999px; overflow: hidden; background: #fff; width: max-content; }
.qty-control input {
  width: 64px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; background: transparent;
}
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-control input:focus { outline: none; background: var(--brand-100); }
.qty-btn { width: 46px; min-height: 46px; border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; transition: background .2s; }
.qty-btn:hover { background: var(--bg-soft); }
.qty-control-sm .qty-btn { width: 38px; min-height: 38px; font-size: 1.1rem; }
.qty-control-sm input { width: 48px; }
.product-description h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.product-description p { white-space: pre-line; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; }
.lightbox::backdrop { background: rgba(10, 10, 12, .88); }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 12px; background: #fff; }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
}

/* ---------------------------------------------------------------- Cart & checkout */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.cart-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cart-item {
  display: grid; grid-template-columns: 88px 1fr auto 120px 40px; gap: 18px; align-items: center; padding: 18px;
  border-bottom: 1px solid var(--line); animation: fadeIn .3s var(--ease);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item-media img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-soft); }
.cart-item-info { display: grid; gap: 4px; min-width: 0; }
.cart-item-title { font-weight: 700; text-decoration: none; color: var(--ink); }
.cart-item-title:hover { color: var(--brand-600); }
.cart-item-unit { color: var(--muted); font-size: .88rem; }
.cart-item-subtotal { text-align: right; font-size: 1.05rem; }
.cart-list-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.card, .summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.summary-card { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-card h2, .checkout-form h2 { font-size: 1.2rem; }
.summary-lines { margin: 0 0 20px; display: grid; gap: 10px; }
.summary-lines div { display: flex; justify-content: space-between; }
.summary-lines dt { color: var(--muted); }
.summary-lines dd { margin: 0; font-weight: 600; }
.summary-total { padding-top: 12px; border-top: 1px solid var(--line); }
.summary-total dt { color: var(--ink) !important; font-weight: 700; }
.summary-total dd { font-size: 1.4rem; font-weight: 800 !important; color: var(--ink); }
.summary-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.summary-items { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; max-height: 420px; overflow: auto; }
.summary-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.summary-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.summary-item div { display: grid; font-size: .9rem; min-width: 0; }
.summary-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-item span { color: var(--muted); }
.summary-item-subtotal { font-weight: 700; color: var(--ink) !important; }

.confirmation { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 28px; animation: fadeIn .4s var(--ease); }
.confirmation:focus { outline: none; }
.confirmation-icon {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: #e6f6ec; color: var(--whatsapp); font-size: 2.2rem; font-weight: 800;
}
.confirmation-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0; }
.confirmation hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0 8px; }
.message-preview { text-align: left; margin-top: 12px; }
.message-preview summary { cursor: pointer; font-weight: 600; text-align: center; }
.message-preview pre {
  white-space: pre-wrap; word-break: break-word; background: var(--bg-soft); padding: 16px; border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem;
}

/* ---------------------------------------------------------------- Toasts */
.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; width: min(480px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: #fff;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: none; }
.toast span { flex: 1; }
.toast-success { border-left: 4px solid var(--brand); }
.toast-error { border-left: 4px solid #ff6b6b; }
.toast-info { border-left: 4px solid #9aa0a6; }
.toast-action { color: var(--brand); font-weight: 700; text-decoration: none; white-space: nowrap; }
.toast-close { background: transparent; border: 0; color: rgba(255, 255, 255, .7); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; }

.error-page { text-align: center; max-width: 560px; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--brand); margin: 0; line-height: 1; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr 320px; }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .brand img { height: 42px; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav ul { flex-direction: column; padding: 12px 20px 20px; }
  .main-nav a { padding: 12px 16px; border-radius: 12px; }
  .main-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 12px 16px; border-radius: 12px; }
  .nav-dropdown-panel {
    position: static; width: auto; padding: 4px 0 8px 12px; border: 0; border-radius: 0; box-shadow: none;
    transform: none; opacity: 1; visibility: visible; display: none;
  }
  .nav-dropdown-panel::before { display: none; }
  .has-dropdown.is-open .nav-dropdown-panel { display: block; transform: none; }
  .main-nav .nav-dropdown-grid { grid-template-columns: 1fr; gap: 6px; }
  .main-nav .nav-dropdown-children { padding-left: 12px; }
  .main-nav .nav-dropdown-all { margin-top: 8px; padding: 12px 10px 4px; }
  .about, .contact, .product-detail, .cart-layout, .checkout-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-logo { padding: 32px; }
  .product-gallery, .summary-card { position: static; }
  .catalog-filters { grid-template-columns: 1fr 1fr; }
  .field-search { grid-column: 1 / -1; }
  .field-actions { grid-column: 1 / -1; }
  .field-actions .btn { flex: 1; }
  .section { padding: 56px 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .cart-label { display: none; }
  .cart-button { padding: 8px 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card-body { padding: 12px; }
  .product-card-title { font-size: .95rem; }
  .product-card-desc { font-size: .82rem; -webkit-line-clamp: 2; }
  .price { font-size: 1.1rem; }
  .product-card-actions .btn { padding-left: 8px; padding-right: 8px; }
  .btn-extra { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cart-item { grid-template-columns: 72px 1fr auto; grid-template-areas: 'img info remove' 'img qty subtotal'; gap: 10px 14px; padding: 14px; }
  .cart-item-media { grid-area: img; align-self: start; }
  .cart-item-media img { width: 72px; height: 72px; }
  .cart-item-info { grid-area: info; }
  .cart-item .qty-control { grid-area: qty; }
  .cart-item-subtotal { grid-area: subtotal; justify-self: end; align-self: center; }
  .cart-item .icon-btn { grid-area: remove; align-self: start; justify-self: end; }
  .hero-actions .btn { flex: 1 1 100%; }
  .whatsapp-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .toast-region { bottom: 80px; }
  .catalog-filters { padding: 16px; gap: 12px; }
}
@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
