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

:root {
    --primary: #7b3f55;
    --secondary: #d6a671;
    --button: #1f7a68;
    --ink: #261f23;
    --muted: #756b70;
    --line: #e7ddd7;
    --paper: #fffdfb;
    --soft: #f6f0eb;
    --white: #fff;
    --danger: #b42318;
    --success: #0f766e;
    --shadow: 0 18px 50px rgba(38, 31, 35, .11);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.5;
}

body.lock-scroll {
    overflow: hidden;
}

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

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

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

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    padding: .82rem .9rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--button);
    box-shadow: 0 0 0 3px rgba(31, 122, 104, .14);
}

label {
    display: grid;
    gap: .4rem;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: .85rem clamp(1rem, 4vw, 3.5rem);
    background: rgba(255, 253, 251, .92);
    border-bottom: 1px solid rgba(231, 221, 215, .86);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
}

.brand small {
    max-width: 25ch;
    color: var(--muted);
    font-size: .76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    flex-direction: column;
    padding: 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.main-nav.open {
    display: flex;
}

.main-nav a {
    padding: .75rem 0;
    color: var(--muted);
    font-weight: 700;
}

.header-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: .6rem;
    align-items: center;
}

.search-box {
    position: relative;
}

.search-box > svg,
.search-box > i {
    position: absolute;
    left: .8rem;
    top: 50%;
    width: 18px;
    transform: translateY(-50%);
    color: var(--muted);
}

.search-box input {
    padding-left: 2.3rem;
}

.search-results {
    position: absolute;
    inset: calc(100% + .4rem) 0 auto 0;
    z-index: 50;
    display: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.search-results.open {
    display: block;
}

.search-result {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: .7rem;
    padding: .65rem;
    border-bottom: 1px solid var(--line);
}

.search-result img {
    width: 48px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
}

.search-result small {
    color: var(--button);
    font-weight: 800;
}

.admin-link {
    display: none;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 800;
}

.icon-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.icon-btn {
    width: 42px;
    background: var(--soft);
    color: var(--ink);
}

.icon-btn svg {
    width: 19px;
    height: 19px;
}

.btn {
    padding: .82rem 1.05rem;
}

.btn.primary {
    background: var(--button);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(31, 122, 104, .22);
}

.btn.light {
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
}

.btn.ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
}

.btn.small {
    min-height: 38px;
    padding: .65rem .8rem;
    font-size: .88rem;
}

.btn.full {
    width: 100%;
}

.btn:hover,
.icon-btn:hover {
    transform: translateY(-1px);
}

.cart-link {
    position: relative;
}

.cart-link span {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 .25rem;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--ink);
    font-size: .72rem;
}

.hero {
    min-height: min(82vh, 680px);
    display: flex;
    align-items: center;
    padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 6vw, 5rem);
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-copy {
    width: min(620px, 100%);
}

.eyebrow {
    color: var(--secondary);
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.hero h1,
.page-heading h1 {
    margin: .35rem 0 .8rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.45rem, 8vw, 5.5rem);
    line-height: .94;
}

.hero p,
.page-heading p {
    max-width: 620px;
    color: rgba(255, 255, 255, .86);
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.4rem;
}

.section-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
    padding: 1rem clamp(1rem, 5vw, 4rem);
    background: var(--ink);
    color: var(--white);
    font-weight: 800;
}

.section-strip span {
    padding: .2rem 0;
}

.content-section,
.catalog-layout,
.cart-layout,
.checkout-layout,
.order-public,
.product-detail,
.page-heading {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.content-section {
    padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.section-heading h2,
.split-banner h2,
.promo-banner h2,
.summary-box h2,
.order-card h2 {
    margin: .2rem 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    line-height: 1;
}

.section-heading a {
    color: var(--button);
    font-weight: 900;
}

.category-grid,
.product-grid,
.review-grid {
    display: grid;
    gap: 1rem;
}

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

.category-card {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--soft);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    transition: transform .45s ease;
}

.category-card span {
    position: absolute;
    inset: auto .8rem .8rem .8rem;
    padding: .65rem .8rem;
    border-radius: 8px;
    background: rgba(255, 253, 251, .92);
    font-weight: 900;
}

.category-card:hover img {
    transform: scale(1.04);
}

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

.product-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    background: var(--soft);
    overflow: hidden;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

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

.badge-row {
    position: absolute;
    top: .65rem;
    left: .65rem;
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}

.badge-row b {
    padding: .25rem .45rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--primary);
    font-size: .68rem;
}

.product-info {
    display: grid;
    gap: .4rem;
    padding: .75rem;
}

.product-info > a {
    min-height: 3rem;
    font-weight: 900;
}

.product-info small {
    color: var(--muted);
}

.price-row,
.product-price {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
}

.price-row strong,
.product-price strong {
    color: var(--button);
    font-size: 1.05rem;
}

del {
    color: var(--muted);
}

.card-actions,
.product-actions {
    display: flex;
    gap: .5rem;
}

.card-actions .btn,
.product-actions .btn {
    flex: 1;
}

.favorite-btn.active {
    background: #ffe8ee;
    color: var(--primary);
}

.split-banner,
.promo-banner {
    width: min(1180px, calc(100% - 2rem));
    margin: clamp(2rem, 5vw, 4rem) auto;
    border-radius: 8px;
    overflow: hidden;
}

.split-banner {
    display: grid;
    background: var(--soft);
}

.split-banner img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.split-banner > div {
    padding: clamp(1.4rem, 5vw, 3rem);
}

.split-banner p {
    color: var(--muted);
}

.promo-banner {
    display: grid;
    gap: 1rem;
    align-items: center;
    padding: clamp(1.5rem, 5vw, 3rem);
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.promo-banner .eyebrow,
.hero .eyebrow {
    color: #f4d7a7;
}

.promo-banner p {
    max-width: 620px;
}

.review-grid {
    grid-template-columns: 1fr;
}

.review-card,
.order-card,
.summary-box,
.filters,
.checkout-form fieldset {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.review-card {
    padding: 1rem;
}

.stars {
    color: #c78832;
    letter-spacing: 0;
}

.page-heading {
    padding: clamp(2rem, 7vw, 4rem) 0 1.25rem;
}

.page-heading p {
    color: var(--muted);
}

.catalog-layout,
.cart-layout,
.checkout-layout,
.order-public {
    display: grid;
    gap: 1rem;
    align-items: start;
    padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.filters,
.summary-box {
    padding: 1rem;
}

.filters form,
.checkout-form,
.summary-box,
.coupon-box {
    display: grid;
    gap: .85rem;
}

.inline-fields,
.form-grid,
.option-grid {
    display: grid;
    gap: .75rem;
}

.inline-fields {
    grid-template-columns: 1fr 1fr;
}

.check-row {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.check-row input,
.option-card input {
    width: auto;
}

.catalog-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: .75rem;
    color: var(--muted);
    font-weight: 800;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 2rem;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
}

.product-detail {
    display: grid;
    gap: 1.5rem;
    padding: clamp(2rem, 6vw, 4rem) 0;
}

.gallery {
    display: grid;
    gap: .8rem;
}

.main-product-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    background: var(--soft);
}

.thumb-row {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
}

.thumb-row button {
    flex: 0 0 72px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    background: var(--white);
    cursor: pointer;
}

.thumb-row img {
    width: 72px;
    height: 88px;
    object-fit: cover;
}

.breadcrumb {
    color: var(--muted);
    font-size: .9rem;
}

.product-buy {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.product-buy h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1;
}

.product-price strong {
    font-size: 1.75rem;
}

.quantity-stepper {
    display: grid;
    grid-template-columns: 42px 86px 42px;
    gap: .45rem;
    align-items: center;
}

.quantity-stepper input {
    text-align: center;
}

.product-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.product-meta div,
.summary-box dl div,
.order-card dl div,
.totals div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .4rem 0;
}

.product-meta strong,
.summary-box dt,
.order-card dt,
.totals dt {
    color: var(--muted);
}

.tab-bar {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
}

.tab-bar button {
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    padding: .8rem .2rem;
    color: var(--muted);
    cursor: pointer;
    font-weight: 900;
}

.tab-bar button.active {
    border-color: var(--button);
    color: var(--ink);
}

.tab-panel {
    display: none;
    padding: 1rem 0;
}

.tab-panel.active {
    display: block;
}

.cart-row {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: .85rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
}

.cart-row img {
    width: 82px;
    height: 104px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--soft);
}

.cart-row h3 {
    margin: 0 0 .25rem;
    font-size: 1rem;
}

.cart-row small {
    color: var(--muted);
}

.cart-row-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
    margin-top: .55rem;
}

.cart-row-actions input {
    width: 70px;
    text-align: center;
}

.summary-box {
    position: sticky;
    top: 95px;
}

.summary-box dl,
.order-card dl {
    margin: 0;
}

.summary-box dd,
.order-card dd {
    margin: 0;
    text-align: right;
    font-weight: 900;
}

.summary-box dl div:last-child,
.totals div:last-child {
    border-top: 1px solid var(--line);
    font-size: 1.15rem;
}

.coupon-box {
    grid-template-columns: 1fr auto;
}

.coupon-message,
.freight-result,
.checkout-message {
    min-height: 1.4rem;
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.checkout-form {
    gap: 1rem;
}

.checkout-form fieldset {
    display: grid;
    gap: .9rem;
    margin: 0;
    padding: 1rem;
}

.checkout-form legend {
    padding: 0 .4rem;
    color: var(--primary);
    font-weight: 900;
}

.option-grid {
    grid-template-columns: 1fr;
}

.option-card {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    color: var(--ink);
}

.full-span {
    grid-column: 1 / -1;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--line);
}

.order-heading {
    text-align: center;
}

.order-card {
    padding: 1rem;
}

.responsive-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: .75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

td small {
    display: block;
    color: var(--muted);
}

.newsletter-band {
    display: grid;
    gap: 1rem;
    padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 5vw, 4rem);
    background: var(--primary);
    color: var(--white);
}

.newsletter-band h2 {
    margin: .2rem 0 0;
    max-width: 640px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 4vw, 2.7rem);
    line-height: 1;
}

.newsletter-form {
    display: grid;
    gap: .65rem;
}

.footer-grid {
    display: grid;
    gap: 1.2rem;
    padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 5vw, 4rem);
    background: #2d292b;
    color: var(--white);
}

.footer-grid p {
    color: rgba(255, 255, 255, .72);
}

.float-whatsapp,
.back-top {
    position: fixed;
    right: 1rem;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.float-whatsapp {
    bottom: 1rem;
    background: #22c55e;
}

.back-top {
    bottom: 4.4rem;
    background: var(--ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.back-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.alert {
    padding: .8rem 1rem;
    border-radius: 8px;
    font-weight: 800;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.alert.danger {
    background: #fee2e2;
    color: #991b1b;
}

.muted {
    color: var(--muted);
}

.installer {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: var(--soft);
}

.install-card {
    width: min(680px, 100%);
    display: grid;
    gap: 1rem;
    padding: clamp(1.2rem, 4vw, 2rem);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.install-card h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 3rem);
}

.install-status {
    display: grid;
    gap: .5rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

@media (min-width: 720px) {
    .site-header {
        grid-template-columns: auto 1fr auto;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 1.2rem;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .main-nav a {
        padding: .2rem 0;
        font-size: .92rem;
    }

    .header-actions {
        grid-column: auto;
        grid-template-columns: minmax(230px, 320px) auto auto;
    }

    .admin-link {
        display: inline-flex;
    }

    .section-strip {
        grid-template-columns: repeat(4, 1fr);
        text-align: center;
    }

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

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

    .split-banner {
        grid-template-columns: 1.1fr .9fr;
    }

    .split-banner img {
        height: 100%;
        min-height: 360px;
    }

    .promo-banner {
        grid-template-columns: 1fr auto;
    }

    .review-grid,
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .newsletter-band {
        grid-template-columns: 1fr minmax(360px, 520px);
        align-items: center;
    }

    .newsletter-form {
        grid-template-columns: 1fr 1fr auto;
    }

    .catalog-layout {
        grid-template-columns: 280px 1fr;
    }

    .cart-layout,
    .checkout-layout,
    .order-public {
        grid-template-columns: 1fr 360px;
    }

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

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

    .product-detail {
        grid-template-columns: minmax(0, .95fr) minmax(340px, .75fr);
    }
}

@media (max-width: 480px) {
    .brand small {
        display: none;
    }

    .header-actions {
        grid-template-columns: 1fr auto;
    }

    .admin-link {
        display: none;
    }

    .product-grid {
        gap: .75rem;
    }

    .product-info {
        padding: .65rem;
    }

    .product-info > a {
        min-height: 2.7rem;
        font-size: .9rem;
    }

    .card-actions {
        display: grid;
        grid-template-columns: 42px 1fr;
    }

    .coupon-box {
        grid-template-columns: 1fr;
    }
}

