.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    animation: floatOrb 12s ease-in-out infinite;
}

.orb.one {
    width: 320px;
    height: 320px;
    top: -140px;
    right: -80px;
    background: radial-gradient(circle at 32% 32%, rgba(251, 233, 182, 0.3), rgba(214, 180, 99, 0.05));
}

.orb.two {
    width: 250px;
    height: 250px;
    bottom: 8%;
    left: -70px;
    background: radial-gradient(circle at 40% 40%, rgba(214, 180, 99, 0.25), rgba(214, 180, 99, 0.03));
    animation-delay: -2.8s;
}

.page-wrap {
    position: relative;
    z-index: 2;
}

.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    background: rgba(7, 7, 7, 0.85);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.brand {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.2rem, 2.5vw, 1.52rem);
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--gold-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(214, 180, 99, 0.12);
}

.menu {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.menu a {
    color: #eadfbe;
    font-size: 0.92rem;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    transition: 0.2s ease;
}

.menu a:hover,
.menu a.active {
    background: rgba(214, 180, 99, 0.15);
    color: #fff4d4;
}

.cart-pill {
    border: 1px solid var(--line-strong);
    background: rgba(214, 180, 99, 0.11);
    color: #ffeec6;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-count {
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    color: #2d2000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.78rem;
}

.main {
    padding-top: 1.15rem;
    min-height: calc(100vh - 200px);
}

.section {
    margin-bottom: 1rem;
}

.shop-hero {
    padding: 1.2rem;
}

.shop-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
    align-items: center;
}

.shop-hero h1 {
    margin: 0.72rem 0 0.5rem;
    font-size: clamp(1.95rem, 4.8vw, 3.1rem);
    line-height: 1.15;
    max-width: 12ch;
}

.shop-hero .lead {
    margin: 0;
    line-height: 1.9;
}

.shop-hero .actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.shop-hero .metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.shop-hero .metrics .item {
    text-align: center;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(214, 180, 99, 0.08);
    padding: 0.7rem;
}

.shop-hero .metrics .num {
    color: var(--gold-soft);
    font-size: 1.25rem;
    font-weight: 800;
}

.shop-hero .metrics .txt {
    color: var(--muted);
    font-size: 0.82rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.75rem;
}

.product-card {
    padding: 0.75rem;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
}

.product-card .image,
.product-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.product-card .placeholder,
.image-placeholder {
    height: 190px;
    border-radius: 12px;
    border: 1px dashed var(--line);
    background: #0d0d0d;
    color: #a69874;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
}

.product-card .title {
    font-weight: 700;
}

.product-card .desc {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.75;
    min-height: 32px;
}

.product-card .row,
.actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-card .price,
.price {
    font-weight: 800;
    color: var(--gold-soft);
}

.filters {
    display: grid;
    grid-template-columns: 1fr 220px 220px auto;
    gap: 0.55rem;
    align-items: end;
}

.product-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0.9rem;
    align-items: start;
}

.gallery-main {
    width: 100%;
    border-radius: 18px;
    max-height: 500px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.gallery-main-video {
    width: 100%;
    border-radius: 18px;
    max-height: 500px;
    border: 1px solid var(--line);
    background: #050505;
}

.media-viewer {
    min-height: 320px;
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.thumb-btn {
    padding: 0;
    border: 1px solid var(--line);
    background: none;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: 0.2s ease;
}

.thumb-btn.active {
    border-color: rgba(214, 180, 99, 0.9);
    box-shadow: 0 0 0 2px rgba(214, 180, 99, 0.22);
}

.thumb-btn img {
    width: 100%;
    height: 76px;
    object-fit: cover;
}

.thumb-btn .thumb-type {
    position: absolute;
    left: 0.3rem;
    bottom: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.16rem 0.45rem;
    background: rgba(0, 0, 0, 0.66);
    border: 1px solid rgba(214, 180, 99, 0.38);
    color: #f7e9c6;
}

.thumb-video-fallback {
    width: 100%;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: #f4dfad;
    background: linear-gradient(160deg, #0e0e0e, #171717);
}

.variant-options {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.42rem;
}

.variant-btn {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(214, 180, 99, 0.08);
    color: #f2e7cb;
    text-align: right;
    width: 100%;
    cursor: pointer;
    padding: 0.55rem 0.65rem;
    transition: 0.2s ease;
}

.variant-btn:hover {
    border-color: rgba(214, 180, 99, 0.75);
    transform: translateY(-1px);
}

.variant-btn.active {
    border-color: rgba(214, 180, 99, 0.88);
    background: rgba(214, 180, 99, 0.18);
}

.variant-btn.out {
    opacity: 0.65;
}

.variant-main {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-weight: 700;
}

.variant-meta {
    display: block;
    margin-top: 0.2rem;
    color: #d6c8a1;
    font-size: 0.8rem;
}

.variant-swatch {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 2px rgba(214, 180, 99, 0.2);
}

.variant-swatch-empty {
    background: linear-gradient(135deg, #444, #1f1f1f);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0.9rem;
    align-items: start;
}

.checkout-summary {
    position: sticky;
    top: 96px;
}

.auth-toggle summary {
    cursor: pointer;
    color: #f2dfb0;
    font-weight: 700;
}

.toast {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 80;
    min-width: 220px;
    max-width: min(80vw, 420px);
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(20, 20, 20, 0.95);
    box-shadow: var(--shadow-soft);
    display: none;
}

.toast.show {
    display: block;
}

.toast.success {
    border-color: rgba(140, 206, 148, 0.45);
    color: var(--success);
}

.toast.error {
    border-color: rgba(220, 120, 120, 0.45);
    color: var(--danger);
}

footer {
    margin-top: 2.4rem;
    padding: 1.55rem 0 2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: linear-gradient(180deg, rgba(7, 7, 7, 0), rgba(6, 6, 6, 0.65));
}

footer .footer-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: #f5e4b8;
}

@keyframes floatOrb {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.03);
    }
}

@media (max-width: 980px) {
    .shop-hero-grid,
    .product-layout,
    .checkout-layout,
    .filters,
    .shop-hero .metrics {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 860px) {
    .nav {
        flex-direction: column;
        justify-content: center;
        padding: 0.7rem 0;
    }

    .menu {
        width: 100%;
        justify-content: center;
    }
}
