:root {
    --ink: #121412;
    --ink-soft: #2c322e;
    --muted: #5c655f;
    --paper: #f2f3ef;
    --paper-2: #e7e9e3;
    --line: #d2d7d0;
    --accent: #0d5c4c;
    --accent-hover: #09483b;
    --accent-soft: #d8ebe4;
    --surface: #ffffff;
    --danger: #8b2e2e;
    --header-h: 72px;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Figtree", "Segoe UI", sans-serif;
    --radius: 4px;
    --shadow-soft: 0 18px 40px rgba(18, 20, 18, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(13, 92, 76, 0.06), transparent 55%),
        linear-gradient(180deg, var(--paper) 0%, #f7f8f5 40%, var(--paper) 100%);
    line-height: 1.55;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

input,
select,
textarea,
button {
    font: inherit;
}

button {
    cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(13, 92, 76, 0.35);
    outline-offset: 2px;
}

.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;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.stack {
    display: grid;
    gap: 56px;
    padding: 48px 0 72px;
}

.home-stack {
    gap: 72px;
    padding-top: 40px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    background: rgba(242, 243, 239, 0.92);
    backdrop-filter: blur(14px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.is-home .site-header {
    position: fixed;
    inset: 0 0 auto 0;
    background: transparent;
    border-bottom-color: transparent;
}

.is-home .site-header.is-scrolled,
.site-header.is-scrolled {
    background: rgba(242, 243, 239, 0.94);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px rgba(18, 20, 18, 0.05);
}

.is-home .site-header:not(.is-scrolled) .brand,
.is-home .site-header:not(.is-scrolled) .main-nav a,
.is-home .site-header:not(.is-scrolled) .tool-link,
.is-home .site-header:not(.is-scrolled) .locale-switch,
.is-home .site-header:not(.is-scrolled) .nav-button,
.is-home .site-header:not(.is-scrolled) .cart-link {
    color: #f7f8f5;
}

.is-home .site-header:not(.is-scrolled) .nav-toggle span {
    background: #f7f8f5;
}

.is-home .site-header:not(.is-scrolled) .cart-count {
    background: #f7f8f5;
    color: var(--ink);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 650;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    width: 36px;
    height: 36px;
    max-width: 36px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 8px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.main-nav a,
.locale-switch,
.tool-link,
.cart-link,
.nav-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: var(--radius);
    color: var(--ink-soft);
    font-weight: 500;
}

.main-nav a:hover,
.locale-switch:hover,
.tool-link:hover,
.cart-link:hover,
.nav-button:hover {
    background: rgba(13, 92, 76, 0.08);
    text-decoration: none;
}

.inline-form {
    margin: 0;
}

.nav-button {
    border: 0;
    background: transparent;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.cart-link {
    gap: 8px;
    font-weight: 600;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.site-main {
    min-height: calc(100vh - 220px);
}

.is-home .site-main {
    padding-top: 0;
}

/* Hero */
.hero-bleed {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #f7f8f5;
    background: #1a1c1a;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
    transform: scale(1.04);
    animation: hero-zoom 12s ease-out forwards;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 12, 10, 0.82) 0%, rgba(10, 12, 10, 0.55) 42%, rgba(10, 12, 10, 0.18) 100%),
        linear-gradient(180deg, rgba(10, 12, 10, 0.45) 0%, transparent 28%, rgba(10, 12, 10, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(640px, calc(100% - 40px));
    margin: 0 auto 0 max(20px, calc((100% - 1180px) / 2 + 20px));
    padding: calc(var(--header-h) + 48px) 0 64px;
}

.hero-brand {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.hero-content h1 {
    margin: 0 0 16px;
    max-width: 18ch;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    font-weight: 500;
    line-height: 1.15;
    color: rgba(247, 248, 245, 0.92);
}

.hero-copy {
    margin: 0 0 28px;
    max-width: 36ch;
    color: rgba(247, 248, 245, 0.78);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.7s ease forwards;
}

.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.24s; }
.reveal-delay-3 { animation-delay: 0.36s; }

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-zoom {
    to {
        transform: scale(1);
    }
}

/* Trust */
.trust-strip {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 22px 0;
}

.trust-row p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.trust-row strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-weight: 700;
}

/* Sections */
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.section-heading h2,
.page-header h1,
.product-summary h1,
.cta-band h2,
.cta-strip h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.muted {
    margin: 0 0 8px;
    color: var(--muted);
    font-weight: 400;
    font-size: 0.92rem;
}

.text-link {
    font-weight: 650;
    color: var(--ink);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.text-link:hover {
    color: var(--accent);
    text-decoration: none;
}

/* Categories — no cards */
.category-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.category-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 22px 4px;
    border-bottom: 1px solid var(--line);
    color: inherit;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.category-row:hover {
    background: rgba(13, 92, 76, 0.05);
    padding-left: 10px;
    text-decoration: none;
}

.category-index {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--muted);
}

.category-copy {
    display: grid;
    gap: 4px;
}

.category-copy strong {
    font-size: 1.15rem;
    font-weight: 650;
}

.category-copy span {
    color: var(--muted);
    font-size: 0.95rem;
}

.category-arrow {
    color: var(--accent);
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.category-row:hover .category-arrow {
    transform: translateX(4px);
}

/* Products */
.product-grid,
.card-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    display: grid;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #b8c2ba;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
}

.product-card-media,
.product-card img,
.product-media img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--paper-2);
}

.product-card-media {
    overflow: hidden;
}

.product-card-media img {
    transition: transform 0.45s ease;
}

.product-card:hover .product-card-media img {
    transform: scale(1.04);
}

.product-card-body,
.card-body {
    padding: 18px 18px 20px;
}

.product-card h3,
.product-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.3;
}

.product-card-price,
.card-footer strong {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 650;
    color: var(--ink);
}

.card,
.empty-state,
.cta-strip,
.toolbar,
.hero-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.card-body,
.empty-state,
.toolbar,
.cta-strip,
.product-summary,
.hero-card {
    padding: 24px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.category-card {
    color: inherit;
    padding: 24px;
}

.category-card:hover {
    border-color: #b8c2ba;
    text-decoration: none;
}

/* Buttons */
.button,
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 650;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover,
.chip:hover {
    text-decoration: none;
}

.button-primary {
    background: var(--accent);
    color: #fff;
}

.button-primary:hover {
    background: var(--accent-hover);
}

.button-secondary,
.chip,
.toolbar {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}

.button-ghost {
    background: transparent;
    border-color: rgba(247, 248, 245, 0.45);
    color: #f7f8f5;
}

.button-ghost:hover {
    background: rgba(247, 248, 245, 0.1);
    border-color: #f7f8f5;
}

.chip-active {
    background: var(--accent-soft);
    border-color: #8fbfb0;
    color: var(--accent-hover);
}

/* CTA band */
.cta-band,
.cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 36px 40px;
    background:
        linear-gradient(135deg, #16352e 0%, #0d5c4c 55%, #1a6b58 100%);
    color: #f7f8f5;
    border: 0;
}

.cta-band .eyebrow,
.cta-strip .eyebrow {
    color: #b7d8cd;
}

.cta-band p,
.cta-strip p {
    margin: 10px 0 0;
    max-width: 48ch;
    color: rgba(247, 248, 245, 0.78);
}

.cta-band .button-primary,
.cta-strip .button-primary {
    background: #f7f8f5;
    color: var(--ink);
    flex-shrink: 0;
}

.cta-band .button-primary:hover,
.cta-strip .button-primary:hover {
    background: #fff;
}

/* Inner pages */
.page-header {
    display: grid;
    gap: 8px;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-header p,
.hero-copy,
.product-copy {
    margin: 0;
    color: var(--muted);
}

.filters,
.filter-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filters {
    align-items: end;
}

.field {
    display: grid;
    gap: 8px;
    min-width: 240px;
}

.field input,
.field select,
.field textarea {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.field textarea {
    padding: 12px 14px;
    resize: vertical;
}

.auth-layout,
.account-layout,
.product-detail,
.info-grid,
.hero-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-price {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 650;
    color: var(--ink);
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-weight: 650;
}

.add-to-cart-form {
    display: grid;
    gap: 16px;
    margin: 24px 0 16px;
}

.data-list {
    display: grid;
    gap: 16px;
}

.data-row {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 220px) auto;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.data-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.data-row-actions {
    display: flex;
    justify-content: flex-end;
}

.cart-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.cart-lines {
    display: grid;
    gap: 16px;
}

.cart-line {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 2fr) minmax(140px, 180px) minmax(120px, auto) auto;
    align-items: end;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.cart-line:first-child { padding-top: 0; }
.cart-line:last-child { padding-bottom: 0; border-bottom: 0; }

.cart-line-copy h2 {
    margin: 0 0 8px;
}

.cart-qty-field {
    min-width: 0;
}

.cart-line-total {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 650;
}

.cart-line-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-summary {
    align-self: start;
}

.empty-state {
    display: grid;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
}

.feature-list {
    margin: 16px 0 0;
    padding-left: 20px;
    color: var(--ink-soft);
}

.footer-brand,
.brand-admin {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 650;
    color: #f2f3ef;
}

.footer-brand .brand-mark,
.brand-admin .brand-mark {
    width: 32px;
    height: 32px;
    max-width: 32px;
}

.brand-admin {
    color: var(--ink);
}

/* Footer */
.site-footer {
    background: #151816;
    color: rgba(242, 243, 239, 0.72);
    padding-top: 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding-bottom: 40px;
}

.footer-brand-block {
    display: grid;
    gap: 14px;
    max-width: 320px;
}

.footer-brand-block .muted {
    margin: 0;
    color: rgba(242, 243, 239, 0.62);
}

.footer-col {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-col h2 {
    margin: 0 0 6px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f2f3ef;
}

.footer-col a,
.whatsapp-link,
.footer-links a {
    color: rgba(242, 243, 239, 0.72);
}

.footer-col a:hover,
.whatsapp-link:hover {
    color: #fff;
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(242, 243, 239, 0.12);
    font-size: 0.9rem;
}

.footer-bar p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

@media (max-width: 960px) {
    .product-grid,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid,
    .hero-grid,
    .info-grid,
    .product-detail,
    .cart-layout,
    .auth-layout,
    .account-layout {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        padding: 12px 20px 20px;
        background: rgba(242, 243, 239, 0.98);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        color: var(--ink) !important;
        width: 100%;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header-tools .tool-link:not(.cart-link),
    .header-tools .locale-switch {
        display: none;
    }

    .is-home .site-header:not(.is-scrolled) .main-nav {
        background: rgba(18, 20, 18, 0.96);
    }

    .is-home .site-header:not(.is-scrolled) .main-nav a {
        color: #f7f8f5 !important;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(1180px, calc(100% - 28px));
    }

    .hero-content {
        width: min(640px, calc(100% - 28px));
        margin-left: 14px;
        padding-bottom: 48px;
    }

    .hero-brand {
        font-size: clamp(2.4rem, 14vw, 3.4rem);
    }

    .trust-row,
    .product-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .category-row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }

    .cta-band,
    .cta-strip,
    .header-inner,
    .footer-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-band,
    .cta-strip {
        padding: 28px 22px;
    }

    .button,
    .chip,
    .cart-line,
    .main-nav a,
    .locale-switch,
    .cart-link,
    .nav-button {
        width: 100%;
        justify-content: center;
    }

    .header-tools {
        width: auto;
    }

    .header-tools .cart-link {
        width: auto;
    }

    .cart-line {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .cart-line-total {
        text-align: center;
    }

    .cart-line-actions {
        flex-direction: column;
    }

    .data-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .data-row-actions {
        justify-content: center;
    }

    .filters,
    .filter-chips,
    .footer-links {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .hero-media img,
    .product-card,
    .product-card-media img,
    .category-row,
    .category-arrow {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--ink-soft);
}

.pagination {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.product-media-stack {
    display: grid;
    gap: 12px;
}

.product-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.product-thumb {
    border: 1px solid var(--line);
    background: #fff;
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.product-thumb img {
    aspect-ratio: 1;
    object-fit: cover;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 16px 18px;
    background: #151816;
    color: #f2f3ef;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.cookie-banner p {
    margin: 0;
    max-width: 64ch;
}

.cookie-banner a {
    color: #b7d8cd;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-banner[hidden] {
    display: none !important;
}

