:root {
    --container: 1280px;
    --focus-ring: 0 0 0 3px rgba(143, 103, 47, .32);
    --product-columns: 4;
}

html {
    scroll-padding-top: 7rem;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

.skip-link {
    position: fixed;
    z-index: 5000;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
}

.skip-link:focus {
    transform: none;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    font-feature-settings: "kern";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
    width: min(var(--container), calc(100% - clamp(32px, 7vw, 96px)));
}

main,
section,
article,
.container,
.product-card,
.product-body {
    min-width: 0;
}

p,
.section-copy {
    line-height: 1.75;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.grid {
    grid-template-columns: repeat(var(--product-columns), minmax(0, 1fr));
}

.split .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card,
.category-card,
.editorial-card,
.story-item,
.contact-card,
.feature {
    min-width: 0;
}

.product-name,
.product-meta,
.footer p,
.contact-detail-value {
    overflow-wrap: anywhere;
}

.site-header {
    border-bottom-color: rgba(231, 224, 213, .9);
}

.nav-links a,
.mobile-nav a,
.footer a {
    transition: color .2s ease;
}

.nav-links a:hover,
.mobile-nav a:hover,
.footer a:hover {
    color: var(--gold-soft);
}

.btn {
    min-height: 46px;
}

.menu-btn {
    font-size: 1.1rem;
}

#tabs + div {
    flex-wrap: wrap;
}

#tabs + div #search {
    min-width: 0;
}

#tabs + div #sort {
    flex: 0 1 177px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    padding-inline: 15px;
}

.mobile-nav {
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.map iframe {
    display: block;
}

@media (max-width: 850px) {
    .split .feature-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.product-media img,
.hero-card img,
.split-media img,
.editorial-card img,
.story-item img {
    background: #f2eee6;
}

.cms-layout-wide .container {
    width: min(100%, calc(100% - clamp(24px, 4vw, 64px)));
}

.cms-layout-compact {
    padding-block: clamp(36px, 5vw, 64px) !important;
}

.cms-layout-compact .container {
    max-width: 1040px;
}

.detail-whatsapp {
    width: 100%;
    margin-top: 10px;
}

.detail-notice {
    margin-top: 18px;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    font-weight: 900;
}

.cart-checkout {
    width: 100%;
}

.page-preview {
    width: 100%;
    height: min(72vh, 780px);
    min-height: 440px;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}

@media (max-width: 1050px) {
    :root {
        --product-columns: 3;
    }

    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    :root {
        --product-columns: 2;
    }

    .section {
        padding-block: clamp(54px, 9vw, 78px);
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        min-height: auto;
        gap: 26px;
    }

    .hero-visual {
        min-height: clamp(300px, 78vw, 460px);
    }

    .hero-orbit {
        max-width: 74vw;
        max-height: 74vw;
    }

    .page-hero {
        padding-block: clamp(58px, 10vw, 82px) 48px;
    }

    .contact-card {
        padding: clamp(20px, 5vw, 30px);
    }

    .map,
    .map iframe {
        min-height: 320px;
    }

    .modal-panel,
    .contact-card,
    .admin-panel {
        min-width: 0;
    }
}

@media (max-width: 440px) {
    .home-products-heading {
        flex-wrap: wrap;
    }

    .nav {
        gap: 10px;
    }

    .brand {
        min-width: 0;
        gap: 6px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand-name {
        font-size: 1.45rem;
    }

    .nav-actions {
        gap: 5px;
    }

    .nav-actions .icon-btn {
        width: 40px;
        height: 40px;
    }

    #tabs + div {
        gap: 10px;
    }

    #tabs + div #search,
    #tabs + div #sort {
        flex-basis: 100%;
    }

    :root {
        --product-columns: 1;
    }

    @media (max-width: 760px) {
        .page-preview {
            min-height: 340px;
        }
    }

    .container {
        width: calc(100% - 32px);
    }

    .grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .product-card {
        display: grid;
        grid-template-columns: minmax(96px, 36%) minmax(0, 1fr);
        align-items: stretch;
    }

    .product-media {
        aspect-ratio: 1;
        min-height: 100%;
    }

    .product-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 14px;
    }

    .product-name {
        font-size: 1.3rem;
    }

    .badge {
        top: 8px;
        left: 8px;
        padding: 5px 7px;
        font-size: .58rem;
    }

    .quick {
        right: 8px;
        bottom: 8px;
    }

    .page-hero-inner {
        overflow-wrap: anywhere;
    }

    .contact-detail-value {
        font-size: clamp(1rem, 5vw, 1.35rem);
    }
}

@media (max-width: 360px) {
    .nav {
        gap: 6px;
    }

    .brand {
        gap: 5px;
    }

    .brand img {
        width: 36px;
        height: 36px;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .nav-actions {
        gap: 3px;
    }

    .nav-actions .icon-btn {
        width: 36px;
        height: 36px;
    }

    .cart-count {
        margin-left: -8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
