:root {
    --bg-primary: #120306;
    --bg-secondary: #1a0509;
    --bg-dark: #080102;
    --bg-card: #1f070b;
    --accent-gold: #d4af37;
    --accent-gold-light: #f3e5ab;
    --accent-glow: rgba(212, 175, 55, 0.25);
    --text-main: #fcf8f2;
    --text-muted: #555555;
    --font-serif: 'Cormorant Garamond', 'Playfair Display', serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --layout-max: 1300px;
    --transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 0px;
    /* Sharp edges for royal heritage */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at center 0%, rgba(35, 8, 14, 0.8) 0%, var(--bg-primary) 70%);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--accent-gold-light);
    font-weight: 500;
    line-height: 1.2;
}

/* Royal Ornaments */
.royal-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    gap: 15px;
    opacity: 0.6;
}

.royal-divider::before,
.royal-divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
}

.royal-divider span {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

/* Typography Helpers */
.gold-text {
    color: var(--accent-gold);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(18, 3, 6, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.logo {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-gold);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
}

.nav-links {
    display: flex;
    gap: 3.5rem;
}

.nav-links a {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold-light);
}

.nav-links a::after {
    content: '♦';
    position: absolute;
    font-size: 0.5rem;
    color: var(--accent-gold);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    opacity: 1;
    bottom: -8px;
}

.nav-icons {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-icons a {
    font-family: var(--font-sans);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
}

.cart-icon-container {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.4rem 1.2rem;
    transition: var(--transition);
}

.cart-icon-container:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent-gold);
}

.cart-count {
    font-family: var(--font-serif);
    color: var(--accent-gold-light);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-sans);
    padding: 1.2rem 3rem;
    font-weight: 400;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
}

.btn-solid {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

.btn-solid:hover {
    background: var(--accent-gold-light);
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-bg-grand {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://picsum.photos/1920/1080?random=19000') center/cover;
    opacity: 0.15;
    mix-blend-mode: luminosity;
}

.hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: capitalize;
}

.hero-content p {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin-bottom: 3.5rem;
    font-style: italic;
}

/* Sections */
.section {
    padding: 8rem 5%;
}

.section-bg-alt {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(212, 175, 55, 0.05);
    pointer-events: none;
    z-index: 10;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
    filter: sepia(0.3) contrast(1.1);
}

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

.product-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--bg-dark);
    color: #1A1A1A;
    border: 1px solid var(--accent-gold);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.4rem 1rem;
    z-index: 2;
}

.product-info {
    padding: 2.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.product-price {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--accent-gold-light);
    display: block;
    margin-bottom: 1.5rem;
}

/* Page Headers */
.page-header {
    padding: 14rem 5% 6rem;
    background: var(--bg-primary);
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.page-header h1 {
    font-size: 4.5rem;
}

/* Forms */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 4rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.05);
    pointer-events: none;
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
    font-style: italic;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    background: var(--bg-dark);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold-light);
    background: rgba(212, 175, 55, 0.02);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-dark);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.checkbox-group input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-gold);
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Layouts */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.cart-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin-bottom: 1.5rem;
    align-items: center;
}

.cart-item-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

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

.cart-item-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold-light);
}

.cart-item-price {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.qty-btn {
    background: var(--bg-dark);
    border: none;
    color: var(--accent-gold);
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: var(--transition);
}

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

.remove-btn {
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    color: #ff4444;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-decoration: underline;
}

.cart-summary {
    background: var(--bg-card);
    padding: 3rem;
    position: sticky;
    top: 120px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.cart-summary h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--accent-gold);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--accent-gold-light);
}

/* Product Details */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.detail-img {
    width: 100%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 10px;
    background: var(--bg-card);
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-category {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.detail-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.detail-price {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--accent-gold-light);
    margin-bottom: 2rem;
}

.detail-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 3.5rem;
}

.detail-actions {
    display: flex;
    gap: 1.5rem;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 2.2rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.legal-content p,
.legal-content li {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.legal-content ul {
    list-style: none;
}

.legal-content ul li::before {
    content: '♦';
    color: var(--accent-gold);
    margin-right: 15px;
}

/* Footer */
footer {
    background: var(--bg-dark);
    padding: 8rem 5% 3rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5rem;
    max-width: var(--layout-max);
    margin: 0 auto 5rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.footer-col h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--accent-gold-light);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    font-size: 0.85rem;
    color: #666;
}

/* Toasts */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--bg-card);
    color: var(--accent-gold-light);
    padding: 1.2rem 2.5rem;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards, fadeOut 0.4s ease 3.5s forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        display: none;
    }
}

/* Animations */










@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .cart-layout,
    .product-details,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Visibility Protocol CSS --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.reveal.js-hidden {
    opacity: 0;
    transform: translateY(40px);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
