/* DIDA AUTOS - style.css
   Palette: gunmetal #22272E / page #F3F4F6 / surface #FFFFFF / text #2B3038 / muted #6B717A / amber #F2A900 / line #D9DDE2 */
:root {
  --ink: #22272e;
  --ink-2: #2f353d;
  --page: #f3f4f6;
  --surface: #ffffff;
  --text: #2b3038;
  --muted: #6b717a;
  --line: #d9dde2;
  --amber: #f2a900;
  --amber-dark: #c98a00;
  --ok: #1f7a3d;
  --bad: #b3261e;
  --radius: 4px;
  --radius-lg: 8px;
  --wrap: 1180px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(34, 39, 46, 0.06), 0 8px 24px -12px rgba(34, 39, 46, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--page);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.lead { font-size: 1.15rem; max-width: 62ch; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); padding: .5rem 1rem; z-index: 999; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: .8rem 1.4rem; border-radius: var(--radius); border: 2px solid var(--ink);
  background: var(--ink); color: #fff; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-primary { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline.on-dark { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline.on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-small { padding: .5rem .9rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: inherit; padding: .2rem .5rem; }

/* ---------- header ---------- */
#site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--amber); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; }
.logo-mark { width: 30px; height: 18px; background: var(--amber); clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
.nav { display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 500; color: rgba(255,255,255,.82); padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--amber); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.cart-btn { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 2px solid rgba(255,255,255,.3); color: #fff; font: inherit; font-weight: 600; padding: .45rem .8rem; border-radius: var(--radius); cursor: pointer; }
.cart-btn:hover { border-color: #fff; }
.cart-count { background: var(--amber); color: var(--ink); min-width: 1.5rem; height: 1.5rem; border-radius: 999px; font-size: .85rem; display: inline-grid; place-items: center; padding: 0 .35rem; }
.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-btn span { width: 24px; height: 2px; background: #fff; display: block; }

@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .cart-btn span:not(.cart-count) { display: none; }
  .nav { position: fixed; inset: 71px 0 auto 0; background: var(--ink); flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; display: none; border-bottom: 3px solid var(--amber); }
  .nav a { padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  body.nav-open .nav { display: flex; }
}

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 56ch; }
.bg-surface { background: var(--surface); border-block: 1px solid var(--line); }
.bg-ink { background: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: repeating-linear-gradient(135deg, var(--amber) 0 28px, var(--ink) 28px 56px);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: 5rem 0 5.5rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; margin-bottom: 1rem; max-width: 14ch; }
.hero .lead { color: rgba(255,255,255,.8); font-size: 1.2rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-panel { background: var(--ink-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 1.6rem; }
.hero-panel h2 { font-size: 1.1rem; color: var(--amber); margin-bottom: 1rem; }
.hero-panel dl { margin: 0; display: grid; gap: .9rem; }
.hero-panel dt { font-weight: 600; }
.hero-panel dd { margin: 0; color: rgba(255,255,255,.72); font-size: .95rem; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; padding: 3.5rem 0 4rem; } .hero-panel { display: none; } }

/* ---------- feature / step grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: var(--radius); padding: 1.5rem; }
.feature h3 { margin-top: .5rem; }
.feature p { margin: 0; color: var(--muted); }
.feature svg { width: 32px; height: 32px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 4rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--amber); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; }
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; } }
@media (max-width: 420px) { .product-grid { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-media { aspect-ratio: 4 / 3; background: #eceef1; display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-cat { font-size: .82rem; font-weight: 600; color: var(--amber-dark); }
.card h3 { font-size: 1.1rem; margin: 0; font-family: var(--font); font-weight: 600; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card-foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.price-lg { font-size: 2rem; margin: .3rem 0 .6rem; }

.skeleton .card-media, .sk-line { background: linear-gradient(90deg, #e6e8eb 25%, #f2f3f5 50%, #e6e8eb 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk-line { height: .9rem; border-radius: 3px; display: block; margin: .3rem 0; }
.sk-line.w30 { width: 30%; } .sk-line.w40 { width: 40%; } .sk-line.w80 { width: 80%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.notice { grid-column: 1 / -1; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; }
.notice p { margin-bottom: 1rem; }

/* ---------- shop toolbar ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { font: inherit; font-weight: 500; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { display: flex; align-items: center; gap: .5rem; }
.search input { font: inherit; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); min-width: 220px; background: var(--surface); }

/* ---------- product page ---------- */
.crumbs { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); }
.crumbs a::after { content: "/"; margin-left: .5rem; }
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; gap: 2rem; } }
.gallery-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.gallery-thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gallery-thumbs button.active { border-color: var(--amber); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: .3rem 0 .4rem; }
.stock { font-weight: 600; margin-bottom: 1.2rem; }
.stock.in { color: var(--ok); } .stock.out { color: var(--bad); }
.buy-row { display: flex; gap: .8rem; align-items: stretch; margin-bottom: 1.8rem; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.qty button { font: inherit; font-size: 1.1rem; width: 2.4rem; height: 2.7rem; background: none; border: 0; cursor: pointer; }
.qty input, .qty span { width: 3rem; text-align: center; font: inherit; border: 0; border-inline: 1px solid var(--line); height: 2.7rem; line-height: 2.7rem; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.product-desc { max-width: 60ch; }
.specs { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: .55rem .2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; text-transform: capitalize; width: 38%; }
.assurances { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .4rem; color: var(--muted); font-size: .95rem; }
.assurances li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: .5rem; }

/* ---------- reviews ---------- */
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.review blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.review figcaption { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); }
.review figcaption strong { color: var(--text); }
.badge-example { display: inline-block; font-size: .75rem; font-weight: 600; background: #fff3cc; color: #7a5300; padding: .15rem .5rem; border-radius: 3px; margin-bottom: .8rem; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: #fff; padding: 4rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { margin: 0 0 .3rem; }
.cta p { margin: 0; color: rgba(255,255,255,.75); }

/* ---------- content pages ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 3rem 0 2.5rem; }
.page-head h1 { margin: 0 0 .4rem; }
.page-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1rem 0; }
.prose th, .prose td { text-align: left; padding: .6rem; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); }
.stat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0; }
.stat-list div { background: var(--surface); border: 1px solid var(--line); padding: 1.2rem; border-radius: var(--radius); }
.stat-list strong { display: block; font-family: var(--font-display); font-size: 1.6rem; }
@media (max-width: 700px) { .stat-list { grid-template-columns: 1fr; } }

/* FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; }
.faq-item summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--amber-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-item div { padding: 0 1.3rem 1.2rem; color: var(--muted); max-width: 70ch; }
.faq-item div p:last-child { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1rem; }
.contact-card h3 { margin-bottom: .3rem; }
.contact-card a { text-decoration: none; font-weight: 600; }
.contact-card p { margin: 0; color: var(--muted); }
.form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form input, .form textarea, .form select { font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; width: 100%; }
.form textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-error { color: var(--bad); font-size: .9rem; margin: .4rem 0 0; min-height: 1.2em; }

/* Result pages */
.result { max-width: 560px; margin: 0 auto; text-align: center; padding: 5rem 0; }
.result .mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.5rem; font-size: 2rem; font-weight: 700; }
.result .mark.ok { background: #e3f3e8; color: var(--ok); }
.result .mark.warn { background: #fff3cc; color: #7a5300; }
.result .actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.order-ref { font-family: var(--font-display); font-weight: 700; letter-spacing: .05em; }

/* ---------- cart drawer ---------- */
#cart-drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(34,39,46,.5); opacity: 0; transition: opacity .2s; }
.drawer { position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: var(--surface); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; box-shadow: -8px 0 32px rgba(0,0,0,.2); }
body.cart-open #cart-drawer { pointer-events: auto; }
body.cart-open .drawer-backdrop { opacity: 1; }
body.cart-open .drawer { transform: none; }
body.cart-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.4rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; }
.drawer-foot { padding: 1.1rem 1.3rem; border-top: 1px solid var(--line); }
.drawer-empty { text-align: center; padding: 3rem 0; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); background: #eceef1; }
.cart-row-info { display: grid; gap: .1rem; }
.cart-row-info a { text-decoration: none; font-weight: 600; }
.cart-row-info span { color: var(--muted); font-size: .95rem; }
.cart-row .qty { grid-column: 3; }
.cart-row .remove { grid-column: 2 / 4; justify-self: end; background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 0; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; margin-bottom: .4rem; }

/* ---------- footer ---------- */
#site-footer { background: var(--ink); color: rgba(255,255,255,.78); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
#site-footer .logo { color: #fff; margin-bottom: .8rem; }
#site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: .8rem; }
#site-footer a { display: block; color: rgba(255,255,255,.78); text-decoration: none; margin-bottom: .45rem; }
#site-footer a:hover { color: var(--amber); }
#site-footer address { font-style: normal; margin-top: .5rem; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
