:root {
    --color-bg: #ffffff;
    --color-ink: #111827;
    --color-muted: #6b7280;
    --color-line: #e5e7eb;
    --color-panel: #f8fafc;
    --color-soft: #eef2f7;
    --color-accent: #2563eb;
    --color-accent-strong: #1d4ed8;
    --color-success: #0f766e;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, .09);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: var(--font-family, Inter, ui-sans-serif, system-ui, sans-serif);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--color-line);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-weight: 800;
}

.brand__mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #111827, #2563eb);
}

.brand img {
    max-height: 38px;
    width: auto;
}

.site-search {
    flex: 1;
    display: flex;
    max-width: 560px;
    margin-left: auto;
}

.site-search input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--color-line);
    border-radius: 8px 0 0 8px;
    background: var(--color-panel);
}

.site-search button,
.button,
.drc-button,
.button.alt,
button.single_add_to_cart_button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.site-search button {
    border-radius: 0 8px 8px 0;
}

.button:hover,
.drc-button:hover,
.site-search button:hover,
button.single_add_to_cart_button:hover {
    background: var(--color-accent-strong);
}

.button-light {
    color: var(--color-ink);
    background: var(--color-soft);
}

.button-light:hover {
    color: var(--color-ink);
    background: #dde5f0;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--color-muted);
    font-weight: 700;
}

.header-actions a:hover,
.header-actions a.is-active,
.cart-link {
    color: var(--color-ink);
    background: var(--color-soft);
}

.site-main {
    min-height: 64vh;
}

.content-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.country-gate {
    min-height: calc(100vh - 73px);
    display: grid;
    place-items: center;
    padding: 56px 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .72)),
        radial-gradient(circle at 18% 20%, rgba(37, 99, 235, .12), transparent 34%),
        radial-gradient(circle at 82% 30%, rgba(15, 118, 110, .12), transparent 30%),
        #f8fafc;
}

.country-gate__content {
    width: min(980px, 100%);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.country-gate h1,
.store-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(38px, 7vw, 78px);
    line-height: .98;
}

.country-gate p,
.store-hero p {
    max-width: 620px;
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.7;
}

.country-gate__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.region-card {
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.region-card span {
    color: var(--color-muted);
}

.region-card strong {
    font-size: 24px;
}

.store-hero {
    min-height: 360px;
    display: flex;
    align-items: end;
    padding: 56px max(16px, calc((100vw - 1180px) / 2)) 48px;
    background:
        linear-gradient(90deg, rgba(3, 7, 18, .78), rgba(3, 7, 18, .34)),
        linear-gradient(135deg, #111827, #0f766e);
    background-position: center;
    background-size: cover;
    color: #fff;
}

.store-hero p {
    color: rgba(255, 255, 255, .8);
}

.store-hero .eyebrow {
    color: #93c5fd;
}

.notice-success {
    margin: 24px 0 0;
    padding: 14px 16px;
    border-radius: 8px;
    color: #064e3b;
    background: #ccfbf1;
}

.product-section {
    padding: 44px 0 24px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: 32px;
}

.text-link {
    color: var(--color-accent);
    font-weight: 800;
}

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

.product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
}

.product-card__image {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--color-panel);
}

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

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

.product-card__body {
    padding: 14px;
}

.product-card__category {
    min-height: 18px;
    margin: 0 0 8px;
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-card h3 {
    min-height: 48px;
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.45;
}

.price-line {
    margin: 0 0 8px;
    color: var(--color-accent);
    font-size: 20px;
    font-weight: 800;
}

.price-line del {
    margin-left: 6px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

.price-line ins {
    text-decoration: none;
}

.stock-line,
.drc-muted {
    color: var(--color-muted);
    font-size: 14px;
}

.product-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 34px 0 0;
}

.pagination .page-numbers {
    min-width: 36px;
    min-height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--color-soft);
}

.pagination .current {
    color: #fff;
    background: var(--color-accent);
}

.empty-state,
.region-closed {
    margin-top: 42px;
    padding: 42px;
    border-radius: 8px;
    background: var(--color-panel);
}

.product-detail {
    padding: 28px 0 80px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--color-muted);
    font-weight: 700;
}

.product-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: 44px;
}

.product-media__stage {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: var(--color-panel);
}

.product-media__stage img,
.product-media__stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-media__thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.product-media__thumbs button {
    aspect-ratio: 1;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--color-panel);
    cursor: pointer;
}

.product-media__thumbs button.is-active {
    border-color: var(--color-accent);
}

.product-media__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-summary h1 {
    margin: 6px 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
}

.price-line--large {
    font-size: 34px;
}

.product-description {
    margin: 20px 0;
    color: #374151;
    line-height: 1.75;
}

.native-cart form.cart {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0;
}

.quantity input {
    width: 72px;
    height: 42px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    text-align: center;
}

.drc-order-actions {
    display: grid;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-line);
}

.drc-whatsapp {
    background: var(--color-success);
}

.drc-whatsapp:hover {
    background: #0d5f59;
}

.drc-inquiry-form {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-panel);
}

.drc-inquiry-form h3 {
    margin: 0 0 4px;
}

.drc-inquiry-form label {
    display: grid;
    gap: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.drc-inquiry-form input,
.drc-inquiry-form textarea {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
}

.drc-checkbox {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    flex-direction: row;
}

.drc-checkbox input {
    width: auto;
}

.drc-honeypot {
    position: absolute;
    left: -9999px;
}

.drc-cart-actions {
    margin-top: 28px;
    padding: 24px;
    border-radius: 8px;
    background: var(--color-panel);
}

.drc-bank-transfer-box {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
}

.drc-bank-transfer-box h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.drc-bank-transfer-box dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 14px;
    margin: 0 0 12px;
}

.drc-bank-transfer-box dt {
    color: var(--color-muted);
    font-weight: 700;
}

.drc-bank-transfer-box dd {
    margin: 0;
    font-weight: 700;
}

.drc-bank-transfer-box p {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

.site-footer {
    margin-top: 64px;
    border-top: 1px solid var(--color-line);
    color: var(--color-muted);
}

.site-footer__grid {
    width: min(1180px, calc(100% - 32px));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0 auto;
    padding: 34px 0;
}

.site-footer h2 {
    margin: 0 0 10px;
    color: var(--color-ink);
    font-size: 15px;
}

.site-footer a,
.site-footer p {
    display: block;
    margin: 0 0 7px;
    font-size: 14px;
    line-height: 1.55;
}

.site-footer__bottom {
    padding: 16px;
    border-top: 1px solid var(--color-line);
    text-align: center;
    font-size: 13px;
}

.mobile-buybar {
    display: none;
}

@media (max-width: 920px) {
    .site-header__inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .site-search {
        order: 3;
        max-width: none;
        flex-basis: 100%;
    }

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

    .product-detail__grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .country-gate h1,
    .store-hero h1 {
        font-size: 42px;
    }

    .country-gate__actions,
    .product-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        order: 2;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .product-card__actions {
        grid-template-columns: 1fr;
    }

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

    .native-cart form.cart {
        align-items: stretch;
        flex-direction: column;
    }

    .mobile-buybar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px 12px;
        border-top: 1px solid var(--color-line);
        background: #fff;
        box-shadow: 0 -12px 30px rgba(15, 23, 42, .08);
    }
}
