/* ── LIQUID GLASS NAV ── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 14px 1rem;
    pointer-events: none;
}

.liquid-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px;
    border-radius: 99px;
    background: var(--glass-bg);
    backdrop-filter: blur(48px) saturate(180%);
    -webkit-backdrop-filter: blur(48px) saturate(180%);
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.45),
        inset 0 2px 3px -1px var(--glass-highlight),
        inset 0 0 0 1px var(--glass-border);
    pointer-events: all;
    transition: all 0.4s;
}

.liquid-nav::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 45%;
    border-radius: 99px 99px 20px 20px / 99px 99px 10px 10px;
    background: linear-gradient(180deg, var(--glass-highlight) 0%, transparent 100%);
    pointer-events: none;
}

.glare-wrap {
    position: absolute;
    inset: 0;
    border-radius: 99px;
    overflow: hidden;
    pointer-events: none;
}

.glare {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    background: radial-gradient(circle 80px at var(--gx, 50%) var(--gy, 50%), rgba(200, 169, 110, 0.25) 0%, transparent 100%);
}

.liquid-nav:hover .glare {
    opacity: 1;
}

.liquid-nav a {
    text-decoration: none;
}

.brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    padding: 0 14px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.nav-divider {
    width: 1px;
    height: 22px;
    background: var(--glass-border);
    margin: 0 2px;
}

.theme-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: color 0.3s;
    z-index: 2;
}

.theme-btn:hover {
    color: var(--accent);
}

/* ── CART PANEL ── */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 300;
}

.cart-overlay.open {
    display: block;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 100vw;
    background: var(--surface);
    border-left: 1px solid var(--border);
    z-index: 301;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-head h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 22px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-empty {
    color: var(--text-muted);
    text-align: center;
    margin-top: 3rem;
    font-size: 14px;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.cart-item-img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: var(--bg);
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 4px;
}

.cart-item-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    color: var(--accent);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.qty-num {
    font-size: 14px;
    min-width: 18px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #e05555;
}

.cart-foot {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cart-total span:first-child {
    color: var(--text-muted);
}

.cart-total strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--accent);
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 99px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s;
}

.checkout-btn:hover {
    background: var(--accent-2);
}

.toast {
    position: fixed;
    top: 20px;
    right: 15px;
    background: var(--card-bg);
    color: var(--accent);
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-family: 'Cormorant Garamond', serif;
    transform: translateX(200%);
    transition: 0.4s;
    z-index: 2000;
}

.toast.show {
    transform: translateX(0);
}