:root {
    --surface-premium: rgba(255, 255, 255, .86);
    --premium-line: rgba(38, 38, 38, .1);
    --premium-shadow: 0 20px 56px rgba(28, 23, 17, .08);
    --premium-shadow-lift: 0 34px 92px rgba(28, 23, 17, .14);
    --premium-ease: cubic-bezier(.22, 1, .36, 1);
}

body {
    background:
        radial-gradient(circle at 8% 18%, rgba(197, 160, 89, .06), transparent 26rem),
        radial-gradient(circle at 92% 42%, rgba(109, 115, 80, .05), transparent 30rem),
        var(--ivory);
}

::selection {
    color: var(--ivory);
    background: var(--ink);
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--gold) !important;
    outline-offset: 4px;
    box-shadow: 0 0 0 5px rgba(197, 160, 89, .16);
}

.container {
    width: min(100% - clamp(1.25rem, 4vw, 4rem), 1440px);
    max-width: 1440px;
}

.section-pad {
    padding-block: clamp(4.5rem, 8vw, 8.5rem);
}

.section-heading {
    gap: 1.5rem;
    margin-bottom: clamp(1.8rem, 4vw, 3.2rem);
}

.section-heading h2 {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(2.45rem, 5vw, 5.25rem);
    line-height: .92;
    letter-spacing: -.035em;
}

.eyebrow {
    margin-bottom: .75rem;
    font-size: .7rem;
    letter-spacing: .18em;
}

.site-header.is-scrolled {
    box-shadow: 0 12px 45px rgba(28, 23, 17, .08);
}

.primary-menu .nav-link,
.header-actions .nav-icon {
    position: relative;
    font-weight: 600;
    letter-spacing: .06em;
}

.primary-menu .nav-link::before {
    content: "";
    position: absolute;
    right: .55rem;
    bottom: .6rem;
    left: .55rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s var(--premium-ease);
}

.primary-menu .nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.header-search input {
    min-height: 42px;
    border-color: var(--premium-line);
    background: rgba(255, 255, 255, .58);
    backdrop-filter: blur(16px);
}

.cart-pill {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    background: var(--ink);
    color: var(--ivory);
    border-color: var(--ink);
    font-weight: 600;
}

.hero {
    position: relative;
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    height: 16%;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(252, 250, 246, .7));
}

.hero-image-slider .carousel-item img,
.hero-static img {
    transform: scale(1.015);
    animation: premiumHeroSettle 1.4s var(--premium-ease) both;
}

@keyframes premiumHeroSettle {
    from { opacity: .25; transform: scale(1.06); filter: saturate(.8); }
    to { opacity: 1; transform: scale(1.015); filter: saturate(1); }
}

.category-circle {
    transition: color .3s ease, transform .45s var(--premium-ease);
}

.category-circle-image {
    position: relative;
    border: 5px solid rgba(255, 255, 255, .85);
    outline: 1px solid rgba(197, 160, 89, .35);
    box-shadow: var(--premium-shadow);
}

.category-circle:hover {
    color: var(--gold);
    transform: translateY(-4px);
}

.section-media-banner {
    border-radius: clamp(24px, 3vw, 42px);
    box-shadow: var(--premium-shadow);
}

.product-card,
.journal-preview-card,
.testimonial,
.newsletter-card,
.summary-card,
.checkout-card,
.auth-card {
    border-color: var(--premium-line);
    background: linear-gradient(145deg, var(--surface-premium), rgba(248, 243, 234, .62));
    box-shadow: var(--premium-shadow);
    backdrop-filter: blur(14px);
}

.product-card {
    border-radius: 24px;
    transform: translateZ(0);
    transition:
        transform .5s var(--premium-ease),
        box-shadow .5s var(--premium-ease),
        border-color .35s ease;
}

.product-card:hover {
    border-color: rgba(197, 160, 89, .32);
    box-shadow: var(--premium-shadow-lift);
}

.product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 65%, rgba(17, 16, 14, .08));
    opacity: 0;
    transition: opacity .45s ease;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-card-body {
    padding: 1.15rem 1.1rem 1.25rem;
}

.product-card h3 {
    margin-bottom: .35rem;
    font-size: clamp(1.22rem, 1.5vw, 1.5rem);
    line-height: 1.08;
}

.product-card-actions {
    gap: .55rem;
}

.product-card-actions .btn {
    min-height: 40px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
}

.btn {
    font-weight: 600;
    letter-spacing: .015em;
}

.btn-dark {
    box-shadow: 0 12px 30px rgba(38, 38, 38, .14);
}

.newsletter-card {
    position: relative;
    overflow: hidden;
    border-radius: clamp(28px, 4vw, 48px);
}

.newsletter-card::before {
    content: "";
    position: absolute;
    width: 24rem;
    height: 24rem;
    right: -10rem;
    top: -14rem;
    border-radius: 50%;
    background: rgba(197, 160, 89, .12);
}

.newsletter-card h2 {
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: .95;
}

.site-footer {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4.5rem, 8vw, 7rem);
    background:
        radial-gradient(circle at 12% 10%, rgba(197, 160, 89, .16), transparent 25rem),
        #1c1b19;
}

.site-footer::after {
    content: "ZDHOORKYA";
    position: absolute;
    right: -1vw;
    bottom: -5vw;
    color: rgba(255, 255, 255, .025);
    font-family: var(--serif);
    font-size: clamp(5rem, 16vw, 15rem);
    line-height: 1;
    pointer-events: none;
}

.footer-link {
    width: fit-content;
    transition: color .25s ease, transform .25s ease;
}

.footer-link:hover {
    color: var(--ivory);
    transform: translateX(4px);
}

.reveal-on-scroll {
    transform: translate3d(0, 34px, 0) scale(.985);
    filter: blur(5px);
    transition:
        opacity .85s var(--premium-ease),
        transform .85s var(--premium-ease),
        filter .7s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

@media (hover: hover) and (pointer: fine) {
    [data-magnetic] {
        will-change: transform;
    }

    .product-card[data-pointer-card] {
        transform: perspective(900px) rotateX(var(--card-rx, 0deg)) rotateY(var(--card-ry, 0deg)) translateY(var(--card-y, 0));
    }

    .product-card[data-pointer-card]:hover {
        --card-y: -8px;
    }
}

@media (max-width: 991px) {
    .section-heading h2 {
        max-width: 22ch;
    }

    .navbar-collapse {
        border-color: rgba(197, 160, 89, .2);
        background:
            radial-gradient(circle at 100% 0, rgba(197, 160, 89, .12), transparent 14rem),
            rgba(252, 250, 246, .97);
        backdrop-filter: blur(24px);
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 1.25rem, 1440px);
    }

    .section-pad {
        padding-block: 4.25rem;
    }

    .section-heading {
        align-items: flex-start !important;
    }

    .section-heading h2 {
        font-size: clamp(2.25rem, 12vw, 3.6rem);
    }

    .category-circle-row {
        justify-content: flex-start;
        overflow-x: auto;
        margin-inline: -.625rem;
        padding-inline: .625rem;
    }

    .listing-products.product-grid {
        gap: .7rem;
    }

    .listing-products .product-card {
        border-radius: 18px;
    }

    .listing-products .product-card-body {
        padding: .8rem .72rem .9rem;
    }

    .listing-products .product-card h3 {
        min-height: 2.45rem;
        font-size: 1.05rem;
    }

    .listing-products .product-card-actions {
        grid-template-columns: 1fr;
    }

    .listing-products .product-card-actions form:last-child {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        filter: none;
    }
}
