/* ==========================================================================
   Linea - storefront styles
   Quiet, editorial and responsive. Warm neutrals, one muted accent.
   ========================================================================== */

:root {
    --bg: #f6f3ee;
    --surface: #fffdfa;
    --soft: #ece6db;
    --ink: #1d1b18;
    --muted: #6c665d;
    --line: #e3ddd2;
    --gold: #c29d5a;
    --accent: #8a6a2a;
    --accent-dark: #6f5320;
    --sale: #9a3b2c;
    --ok: #3f6b4f;
    --warn: #a0691f;

    --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --radius: 2px;
    --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 15px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0;
}
h4 {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

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

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.container.narrow { width: min(100% - 2.5rem, 760px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.center .lead, .lead.center { margin-inline: auto; }

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.8rem;
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    font: 500 12.5px/1 var(--sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-sm { padding: 0.8rem 1.2rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--ink); border-color: var(--ink); }

.link-arrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    padding-bottom: 3px;
    transition: color 0.2s;
}
.link-arrow::after { content: "\2192"; margin-left: 0.5rem; display: inline-block; transition: transform 0.25s; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }
.center-link { display: table; margin: 1.25rem auto 0; }

.text-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--muted);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}
.text-btn:hover { color: var(--sale); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 243, 238, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.announce {
    background: var(--ink);
    color: #ecdcb6;
    text-align: center;
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
}

.bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--serif);
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    color: var(--accent-dark);
    white-space: nowrap;
}
.brand img { width: 46px; height: 46px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.nav a:hover { border-color: var(--ink); }

.nav-category { display: none; }

.mini-search input {
    width: 130px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    padding: 0.35rem 0;
    font-size: 13px;
    border-radius: 0;
    transition: width 0.3s, border-color 0.3s;
}
.mini-search input:focus { width: 190px; border-color: var(--ink); outline: none; }

.tools { justify-self: end; }
.bag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.bag-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0;
}
.bag-count[data-count="0"] { background: transparent; color: var(--muted); border: 1px solid var(--line); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    position: relative;
}
.nav-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.25s, top 0.25s;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.flash {
    background: var(--soft);
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    padding: 0.75rem 0;
    text-align: center;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.2rem); margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-copy { animation: rise 0.9s ease both; }

.hero-art { width: 100%; max-width: 480px; justify-self: end; }
.hero-art img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 30px 60px -34px rgba(60, 44, 14, 0.45);
}

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 1.5rem; }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.page-head-sm { padding: clamp(2rem, 5vw, 3.5rem) 0 0.5rem; }
.page-head-sm h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 0.4rem; }

/* Category list */
.cat-list { list-style: none; margin: 0; border-top: 1px solid var(--line); }
.cat-list a {
    display: grid;
    grid-template-columns: 3.5rem 1.2fr 2fr auto 2rem;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--line);
    transition: padding 0.3s, background 0.3s;
}
.cat-list a:hover { padding-inline: 1rem; background: var(--surface); }
.cat-list .num { font-family: var(--serif); color: var(--muted); font-size: 1.1rem; }
.cat-list .name { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; }
.cat-list .desc { color: var(--muted); }
.cat-list .count { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cat-list .arr { text-align: right; transition: transform 0.3s; }
.cat-list a:hover .arr { transform: translateX(6px); }

/* Values band */
.values { background: var(--surface); border-block: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.values .num { font-family: var(--serif); color: var(--accent); font-size: 1.4rem; font-style: italic; }
.values h3 { font-size: 1.7rem; margin: 0.3rem 0 0.6rem; }
.values p { color: var(--muted); margin: 0; max-width: 34ch; }

.prose p { max-width: 62ch; margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-grid h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }

/* ---------- Product grid & cards ---------- */
.grid.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.4rem 1.5rem;
}

.card-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background: var(--soft);
    overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.card:hover .card-media img { transform: scale(1.035); }

.ph {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: clamp(4rem, 9vw, 7rem);
    color: rgba(29, 27, 24, 0.17);
    user-select: none;
}
.ph-0 { background: #e9e2d5; }
.ph-1 { background: #dfe0d6; }
.ph-2 { background: #e6dcd0; }
.ph-3 { background: #dcd8d0; }

.tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--surface);
    color: var(--ink);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
}
.tag-sale { background: var(--sale); color: #fff; }

.card-body { padding-top: 0.95rem; }
.card-cat { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.2rem; }
.card-title { font-size: 1.35rem; margin-bottom: 0.35rem; }
.card-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s; }
.card-title a:hover { background-size: 100% 1px; }

.price { font-size: 14px; margin: 0; }
.price s { color: var(--muted); margin-right: 0.5rem; }
.price .now { color: var(--sale); font-weight: 500; }
.price-lg { font-size: 1.3rem; margin: 0.5rem 0 1rem; }

/* ---------- Shop toolbar ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 1.05rem;
    font-size: 13px;
    background: var(--surface);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-count { font-size: 11px; opacity: 0.6; }

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}
.toolbar input[type="search"] { flex: 2 1 220px; }
.toolbar input[type="number"] { flex: 1 1 110px; }
.toolbar select { flex: 1 1 170px; }

input, select, textarea {
    font: inherit;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.78rem 0.9rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(29, 27, 24, 0.07);
}
textarea { resize: vertical; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem; margin-top: 3.5rem; }
.pager a {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0 0.9rem;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 13px;
}
.pager a:hover { border-color: var(--ink); }
.pager a.current { background: var(--ink); border-color: var(--ink); color: #fff; }

.empty { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line); }
.empty h3 { font-size: 1.9rem; margin-bottom: 0.5rem; }
.empty .btn { margin-top: 1rem; }

/* ---------- Product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 13px; color: var(--muted); margin-bottom: 2rem; }
.crumbs a:hover { color: var(--ink); }
.crumbs .current { color: var(--ink); }

.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.gallery { position: sticky; top: 130px; }
.gallery-main { aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.thumb {
    width: 76px;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--soft);
    cursor: pointer;
    overflow: hidden;
    opacity: 0.75;
    transition: opacity 0.2s, border-color 0.2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover, .thumb.active { opacity: 1; border-color: var(--ink); }

.product-info h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }

.stock { display: flex; align-items: center; gap: 0.5rem; font-size: 13px; margin: 1rem 0 0; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-ok { color: var(--ok); }
.stock-low { color: var(--warn); }
.stock-out { color: var(--sale); }

.buy { display: flex; gap: 0.75rem; margin: 1.5rem 0 0.5rem; }
.buy .btn { flex: 1; }

.qty { display: inline-flex; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.qty button {
    width: 40px;
    background: none;
    border: 0;
    font-size: 18px;
    cursor: pointer;
    color: var(--ink);
}
.qty button:hover { background: var(--soft); }
.qty input {
    width: 52px;
    text-align: center;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.block { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 1.6rem; }
.block h3 {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.specs { margin: 0; }
.specs > div { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line {
    display: grid;
    grid-template-columns: 96px 1fr auto auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}
.cart-thumb { aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; display: block; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph { font-size: 2.5rem; }
.cart-name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.cart-info p { margin: 0.15rem 0 0.4rem; }
.cart-total { min-width: 110px; text-align: right; font-weight: 500; }

.summary { background: var(--surface); border: 1px solid var(--line); padding: 1.75rem; position: sticky; top: 130px; }
.summary h3 { font-size: 1.6rem; margin-bottom: 1.1rem; }
.totals { margin: 0 0 1.25rem; }
.totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 0.9rem; font-weight: 600; font-size: 1.05rem; }

.mini-lines { list-style: none; margin: 0 0 1rem; }
.mini-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-size: 14px; }

.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-error { display: block; color: var(--sale); font-size: 12.5px; margin-top: 0.3rem; }
.input-validation-error { border-color: var(--sale); }
.form-error { color: var(--sale); margin-bottom: 1rem; }
.form-error ul { margin: 0; padding-left: 1.1rem; }

.payment-note {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    font-size: 14px;
}
.payment-note span { color: var(--muted); }

.receipt { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.25rem, 4vw, 2.25rem); margin-bottom: 2rem; }
.receipt-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.receipt-meta p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc8bb; margin-top: clamp(3rem, 7vw, 6rem); padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: var(--gold); }
.site-footer a { display: block; padding: 0.2rem 0; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #a9a193; }
.site-footer .brand-footer { display: inline-flex; color: #fff; justify-content: flex-start; font-size: 1.5rem; padding: 0; margin-bottom: 0.9rem; }
.site-footer .brand-footer img { width: 40px; height: 40px; }
.footer-base {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12.5px;
    color: #a9a193;
}
.footer-base a { display: inline; padding: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .grid.products { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .announce { display: none; }
    .bar { min-height: 64px; }
    .brand { font-size: 1.35rem; gap: 0.55rem; }
    .brand img { width: 38px; height: 38px; }

    .nav-toggle { display: block; }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem 1.25rem 1.25rem;
    }
    .nav.open { display: flex; }
    .nav a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 13px; }
    .nav-category { display: block; border-bottom: 1px solid var(--line); }
    .nav-category summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.95rem 0;
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }
    .nav-category summary::-webkit-details-marker { display: none; }
    .nav-category summary::after {
        content: "";
        width: 7px;
        height: 7px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.2s;
    }
    .nav-category[open] summary::after { transform: rotate(-135deg); }
    .nav-category-list { display: flex; flex-direction: column; padding-bottom: 0.4rem; }
    .nav-category-list a { padding: 0.75rem 0 0.75rem 1rem; color: var(--muted); }
    .nav-category-list a:last-child { border-bottom: 0; }
    .mini-search { padding-top: 1rem; }
    .mini-search input, .mini-search input:focus { width: 100%; }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { max-width: 340px; justify-self: start; order: -1; }
    .hero { padding-top: 1.5rem; }

    .values-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cat-list a { grid-template-columns: 2.5rem 1fr auto 1.5rem; }
    .cat-list .desc { display: none; }

    .product-layout, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .gallery, .summary { position: static; }
}

@media (max-width: 640px) {
    body { font-size: 14.5px; }
    .container { width: min(100% - 2rem, var(--max)); }
    .grid.products { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 0.9rem; }
    .card-title { font-size: 1.15rem; }
    .section-head { align-items: flex-start; flex-direction: column; }
    .contact-grid, .field-row, .receipt-meta { grid-template-columns: 1fr; gap: 1.25rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .footer-base { flex-direction: column; }
    .specs > div { grid-template-columns: 110px 1fr; }

    .cart-line { grid-template-columns: 80px 1fr; }
    .cart-qty, .cart-total { grid-column: 2; }
    .cart-total { text-align: left; }
    .buy { flex-direction: column; }
}

@media (max-width: 380px) {
    .site-header .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* WhatsApp floating button */
.wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.05rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28); }
@media (max-width: 640px) {
    .wa-float { right: 1rem; bottom: 1rem; padding: 0.85rem; }
    .wa-float span { display: none; }
}
