:root {
    --bg: #f6f7f8;
    --surface: #ffffff;
    --surface-2: #f0f2f4;
    --text: #17191c;
    --muted: #6e737b;
    --border: #e0e3e7;
    --accent: #111315;
    --accent-contrast: #ffffff;
    --promotion: #7a2d18;
    --promotion-bg: #fff2ed;
    --new-bg: #e9f6ed;
    --new-text: #176331;
    --whatsapp: #176b45;
    --shadow: 0 16px 40px rgba(20, 24, 28, 0.07);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(224, 227, 231, 0.9);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-link {
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.header-action {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    margin: 32px 0 22px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f0f2f4 100%
        );
    box-shadow: var(--shadow);
}

.hero h1 {
    margin: 6px 0 8px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.eyebrow {
    display: inline-block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.promotions-section {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.promotion-banner {
    display: flex;
    gap: 18px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #f0cabb;
    border-radius: var(--radius-md);
    background: var(--promotion-bg);
}

.promotion-banner-label {
    min-width: 118px;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--promotion);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: center;
}

.promotion-banner-content {
    padding: 18px 18px 18px 0;
}

.promotion-banner h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.promotion-banner p {
    margin: 0 0 8px;
    color: #633a2d;
    line-height: 1.5;
}

.promotion-meta {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.filters-card {
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.filters-grid {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.6fr)
        repeat(3, minmax(140px, 0.8fr))
        auto;
    gap: 12px;
    align-items: end;
}

.field {
    display: grid;
    gap: 6px;
}

.field span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.field input,
.field select {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.field input:focus,
.field select:focus {
    border-color: #8f969f;
    box-shadow: 0 0 0 3px rgba(20, 24, 28, 0.06);
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.button {
    min-height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.button-primary {
    background: var(--accent);
    color: var(--accent-contrast);
}

.button-secondary {
    border-color: var(--border);
    background: #ffffff;
    color: var(--text);
}

.button-whatsapp {
    background: var(--whatsapp);
    color: #ffffff;
}

.button-block {
    width: 100%;
}

.catalog-heading {
    margin: 8px 0 14px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.catalog-heading h2 {
    margin: 4px 0 0;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.catalog-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.product-card-link {
    display: block;
    text-decoration: none;
}

.product-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.product-card-link:hover .product-card {
    transform: translateY(-4px);
    border-color: #c9cdd2;
    box-shadow: var(--shadow);
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ffffff;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    color: var(--muted);
    font-weight: 700;
}

.badge-stack {
    position: absolute;
    z-index: 4;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    display: inline-flex;
    min-height: 26px;
    padding: 5px 9px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.badge-promotion {
    background: var(--promotion);
    color: #ffffff;
}

.badge-new {
    background: var(--new-bg);
    color: var(--new-text);
}

.product-info {
    padding: 16px;
}

.brand {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-info h3 {
    margin: 5px 0 4px;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.model {
    color: var(--muted);
    font-size: 13px;
}

.promotion-card-title {
    margin-top: 10px;
    color: var(--promotion);
    font-size: 12px;
    font-weight: 800;
}

.price {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 900;
}

.sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.size-chip {
    min-width: 34px;
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    text-align: center;
    font-size: 11px;
    font-weight: 800;
}

.size-chip-large {
    padding: 8px 12px;
    font-size: 13px;
}

.pagination-wrap {
    margin: 28px 0 40px;
    display: flex;
    justify-content: center;
}

.sv-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.sv-page {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

a.sv-page:hover {
    background: var(--surface-2);
}

.sv-page-active {
    background: var(--text);
    border-color: var(--text);
    color: var(--surface);
}

.sv-page-disabled {
    opacity: .38;
    cursor: default;
}

.sv-page-ellipsis {
    padding: 0 3px;
    color: var(--muted);
    font-size: 14px;
}

.empty-state {
    margin: 30px 0 48px;
    padding: 40px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}

.empty-state h2 {
    margin-top: 0;
}

.empty-state p {
    color: var(--muted);
}

.detail-page {
    padding-top: 30px;
    padding-bottom: 48px;
}

.detail-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(320px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.gallery-card,
.detail-info-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.gallery-card {
    padding: 16px;
}

.detail-image-stage {
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #ffffff;
}

.detail-image {
    width: 100%;
    height: 560px;
    object-fit: contain;
}

.thumbnail-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.thumbnail-card {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    height: 105px;
    padding: 7px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #ffffff;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.thumbnail-card:hover {
    transform: translateY(-2px);
    border-color: #9da3ae;
}

.thumbnail-card.active {
    border-color: var(--text);
    box-shadow:
        inset 0 0 0 2px var(--text);
}

.thumbnail-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.detail-info-card {
    padding: 26px;
}

.detail-info-card h1 {
    margin: 6px 0 8px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-model {
    color: var(--muted);
    font-size: 14px;
}

.detail-promotions {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.detail-promotion-card {
    padding: 16px;
    border: 1px solid #f0cabb;
    border-radius: var(--radius-md);
    background: var(--promotion-bg);
}

.detail-promotion-card h2 {
    margin: 9px 0 5px;
    font-size: 18px;
}

.detail-promotion-card p {
    margin: 0 0 8px;
    color: #633a2d;
    line-height: 1.55;
}

.description {
    margin-top: 22px;
    color: #454a51;
    line-height: 1.7;
    white-space: pre-line;
}

.detail-price {
    margin-top: 22px;
    font-size: 28px;
    font-weight: 900;
}

.detail-section {
    margin: 24px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.detail-section h2 {
    margin: 0;
    font-size: 17px;
}

.site-footer {
    margin-top: 30px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.disabled-page {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.disabled-card {
    width: min(520px, 100%);
    padding: 42px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.disabled-card h1 {
    margin: 8px 0;
    font-size: 34px;
}

.disabled-card p {
    color: var(--muted);
}


@media (max-width: 980px) {

    .filters-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .field-search {
        grid-column: 1 / -1;
    }

    .filter-actions {
        grid-column: 1 / -1;
    }

    .product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 720px) {

    .page-shell,
    .header-inner {
        width: min(100% - 20px, 1180px);
    }

    .hero {
        margin-top: 16px;
        padding: 24px 20px;
    }

    .promotion-banner {
        display: block;
    }

    .promotion-banner-label {
        min-width: 0;
        padding: 10px 14px;
        justify-content: flex-start;
    }

    .promotion-banner-content {
        padding: 15px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .field-search,
    .filter-actions {
        grid-column: auto;
    }

    .filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 15px;
    }

    .detail-page {
        padding-top: 14px;
    }

    .gallery-card,
    .detail-info-card {
        border-radius: 18px;
    }

    .detail-image-stage,
    .detail-image {
        min-height: 380px;
        height: 380px;
    }

    .thumbnail-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .thumbnail-card {
        height: 82px;
    }

    .detail-info-card {
        padding: 20px;
    }
}


@media (max-width: 420px) {

    .product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-image-stage,
    .detail-image {
        min-height: 330px;
        height: 330px;
    }

    .thumbnail-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}
