:root {
    --canvas: #f3f7f2;
    --surface: #ffffff;
    --ink: #182019;
    --ink-soft: #48564c;
    --line: #d7e1d8;
    --pine: #173f35;
    --teal: #007981;
    --teal-soft: #dff2ee;
    --tomato: #df4d35;
    --amber: #e4aa2c;
    --mist: #eef4ee;
    --success-bg: #e7f8ed;
    --success-text: #1f673f;
    --error-bg: #fff0ec;
    --error-text: #9c3827;
    --shadow-soft: 0 18px 46px rgba(24, 32, 25, 0.11);
    --shadow-card: 0 12px 28px rgba(24, 32, 25, 0.08);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(90deg, rgba(23, 63, 53, 0.045) 1px, transparent 1px),
        linear-gradient(rgba(23, 63, 53, 0.035) 1px, transparent 1px),
        var(--canvas);
    background-size: 34px 34px;
    color: var(--ink);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(820px, calc(100% - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(215, 225, 216, 0.9);
    backdrop-filter: blur(18px);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.nav-links {
    display: flex;
    align-items: center;
}

.brand {
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
}

.nav-links {
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
}

.nav-links a {
    min-width: 96px;
    padding: 9px 15px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--pine);
    color: #ffffff;
    transform: translateY(-1px);
}

.cart-count {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    margin-left: 5px;
    place-items: center;
    border-radius: 999px;
    background: var(--tomato);
    color: #ffffff;
    font-size: 0.72rem;
    line-height: 1;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 470px;
    display: grid;
    align-items: end;
    color: #ffffff;
    background:
        linear-gradient(95deg, rgba(12, 23, 18, 0.86), rgba(12, 23, 18, 0.5) 56%, rgba(12, 23, 18, 0.18)),
        url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=82") center/cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 8px;
    background: linear-gradient(90deg, var(--tomato), var(--amber), var(--teal));
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 30px;
    padding: 70px 0 58px;
}

.hero-copy {
    max-width: 740px;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2 {
    margin: 0;
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-weight: 800;
    line-height: 0.98;
}

.hero-copy h1 {
    max-width: 720px;
    font-size: 5rem;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.contact-info p {
    color: var(--ink-soft);
}

.hero-copy p {
    max-width: 640px;
    margin: 20px 0 28px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.12rem;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--tomato);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ffd17b;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 180px));
    gap: 12px;
    margin: 0;
}

.hero-stats div {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-stats dt {
    margin: 0;
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.hero-stats dd {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 54px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(223, 77, 53, 0.08), transparent 28%),
        linear-gradient(90deg, var(--surface), var(--mist));
}

.page-hero h1 {
    font-size: 3.6rem;
}

.page-hero p {
    max-width: 700px;
    margin: 16px 0 0;
    font-size: 1.08rem;
}

.catalog-section,
.contact-section {
    padding: 58px 0 76px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
    margin-bottom: 24px;
}

.section-heading h2 {
    font-size: 2.9rem;
}

.section-heading p {
    max-width: 430px;
    margin: 0;
    font-size: 1rem;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

label span {
    color: var(--pine);
    font-size: 0.86rem;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 13px;
    color: var(--ink);
    background: #ffffff;
}

textarea {
    min-height: 174px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 4px solid rgba(0, 121, 129, 0.16);
    border-color: var(--teal);
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button.small {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.9rem;
}

.button.primary {
    background: var(--tomato);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(223, 77, 53, 0.25);
}

.button.dark {
    background: var(--pine);
    color: #ffffff;
}

.button.ghost {
    border-color: var(--line);
    color: var(--pine);
    background: #ffffff;
}

.button.light {
    border-color: rgba(255, 255, 255, 0.34);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
}

.button:hover {
    transform: translateY(-2px);
}

.notice {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink-soft);
}

.notice.success {
    border-color: #b9e7cb;
    background: var(--success-bg);
    color: var(--success-text);
}

.notice.error {
    border-color: #ffd0c4;
    background: var(--error-bg);
    color: var(--error-text);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: 5px;
    background: linear-gradient(90deg, var(--tomato), var(--amber), var(--teal));
    opacity: 0;
    transition: opacity 220ms ease;
}

.product-card:hover {
    border-color: rgba(0, 121, 129, 0.38);
    box-shadow: 0 20px 46px rgba(24, 32, 25, 0.15);
    transform: translateY(-5px);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e9edf1;
    transition: transform 360ms ease;
}

.product-card:hover img {
    transform: scale(1.035);
}

.product-body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.product-meta,
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-meta span,
.product-meta strong,
.stock {
    font-size: 0.78rem;
    font-weight: 800;
}

.product-meta span {
    color: var(--teal);
}

.product-meta strong {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff3cf;
    color: #765313;
}

.product-card h3 {
    margin: 0;
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 1.24rem;
    line-height: 1.18;
}

.product-card p {
    min-height: 80px;
    margin: 0;
    color: var(--ink-soft);
}

.price {
    color: var(--tomato);
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.stock {
    color: var(--ink-soft);
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.product-link,
.product-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    font-weight: 800;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.product-link {
    width: 100%;
    border: 0;
    color: var(--pine);
    background: var(--teal-soft);
    cursor: pointer;
}

.product-link:hover {
    background: #cbe9e4;
    transform: translateY(-1px);
}

.product-link:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
}

.product-secondary {
    padding: 0 12px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    background: #ffffff;
    font-size: 0.88rem;
}

.product-secondary:hover {
    border-color: rgba(0, 121, 129, 0.35);
    color: var(--pine);
    transform: translateY(-1px);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
    gap: 24px;
    align-items: start;
}

.contact-form,
.contact-info {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.field-error {
    color: var(--error-text);
    font-weight: 700;
}

.contact-info {
    position: relative;
    overflow: hidden;
    padding: 26px;
}

.contact-info h2 {
    margin: 0 0 10px;
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 1.75rem;
    line-height: 1.08;
}

.contact-info dl {
    display: grid;
    gap: 16px;
    margin: 24px 0 0;
}

.contact-info div {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.contact-info dt {
    font-weight: 800;
}

.contact-info dd {
    margin: 4px 0 0;
    color: var(--ink-soft);
}

.checkout-section {
    padding: 58px 0 76px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.cart-panel,
.checkout-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
}

.cart-panel,
.checkout-panel {
    padding: 24px;
}

.panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-heading h2,
.checkout-panel h2,
.cart-empty h3 {
    margin: 0;
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    line-height: 1.08;
}

.panel-heading h2,
.checkout-panel h2 {
    font-size: 2rem;
}

.cart-empty {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px dashed rgba(23, 63, 53, 0.22);
    border-radius: 12px;
    background: rgba(223, 242, 238, 0.52);
}

.cart-empty p {
    margin: 0;
    color: var(--ink-soft);
}

.cart-list {
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
}

.cart-item span {
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
}

.cart-item h3 {
    margin: 3px 0;
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 1.08rem;
    line-height: 1.18;
}

.cart-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.quantity-control {
    display: inline-grid;
    grid-template-columns: 38px 40px 38px;
    min-height: 40px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.quantity-control button {
    border: 0;
    background: transparent;
    color: var(--pine);
    cursor: pointer;
    font-weight: 900;
}

.quantity-control strong {
    display: grid;
    place-items: center;
    border-inline: 1px solid var(--line);
}

.cart-item-total {
    min-width: 96px;
    color: var(--tomato);
    font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
    font-size: 1.1rem;
    text-align: right;
}

.cart-remove {
    border: 0;
    color: var(--error-text);
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.cart-summary {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 12px;
    background: var(--pine);
    color: #ffffff;
}

.cart-summary[hidden] {
    display: none;
}

.cart-summary div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cart-summary div:last-of-type {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 1.2rem;
}

.cart-summary small {
    color: rgba(255, 255, 255, 0.72);
}

.checkout-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.checkout-help {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.whatsapp-button {
    width: 100%;
}

.cart-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    max-width: min(340px, calc(100% - 36px));
    padding: 13px 16px;
    border-radius: 10px;
    background: var(--pine);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-footer {
    padding: 26px 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink-soft);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-grid p {
    margin: 0;
}

.footer-grid a {
    color: var(--pine);
    font-weight: 800;
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy,
.hero-stats,
.section-heading,
.filter-bar,
.product-card,
.contact-form,
.contact-info,
.cart-panel,
.checkout-panel {
    animation: reveal-up 520ms ease both;
}

.hero-stats {
    animation-delay: 110ms;
}

.product-card:nth-child(2),
.contact-info {
    animation-delay: 80ms;
}

.product-card:nth-child(3) {
    animation-delay: 140ms;
}

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

@media (max-width: 920px) {
    .hero {
        min-height: 520px;
    }

    .hero-copy h1 {
        font-size: 3.7rem;
    }

    .page-hero h1 {
        font-size: 2.8rem;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

    .section-heading h2 {
        font-size: 2.4rem;
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .quantity-control {
        justify-self: end;
    }

    .cart-item-total {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .nav {
        min-height: 88px;
        align-items: stretch;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    .nav-links {
        width: 100%;
    }

    .nav-links a {
        flex: 1;
        min-width: 0;
    }

    .hero {
        min-height: 0;
        background-position: center;
    }

    .hero-content {
        gap: 22px;
        padding: 40px 0 34px;
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .hero-actions,
    .filter-bar,
    .product-grid,
    .product-actions {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        display: grid;
    }

    .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .hero-stats div {
        padding: 10px;
    }

    .hero-stats dt {
        font-size: 1.38rem;
    }

    .hero-stats dd {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .page-hero {
        padding: 54px 0 42px;
    }

    .page-hero h1,
    .section-heading h2 {
        font-size: 2.25rem;
    }

    .contact-section,
    .catalog-section,
    .checkout-section {
        padding: 42px 0 58px;
    }

    .panel-heading,
    .cart-item {
        grid-template-columns: 1fr;
    }

    .panel-heading {
        display: grid;
    }

    .quantity-control,
    .cart-item-total {
        justify-self: stretch;
    }

    .cart-item-total {
        text-align: left;
    }

    .cart-remove {
        justify-self: start;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }
}
