/* Global Theme Styling */

:root {
    --brand-gold: var(--brand-gold);
    --brand-black: var(--obsidian);
    --obsidian: var(--obsidian);
    --ether-white: #ffffff;
    --action-gold: var(--brand-gold);
    --brand-primary: var(--brand-gold);
    --brand-heading: var(--obsidian);
    --brand-gray: #f8f8f8;
    --border-royal: rgba(180, 147, 70, 0.25);
    --border-ether: rgba(255, 255, 255, 0.12);

    --font-head: 'Arimo', sans-serif;
    --font-body: 'Arimo', sans-serif;

    --transition-royal: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    --shadow-royal: 0 40px 80px rgba(0, 0, 0, 0.15);

    /* Layout Variables */
    --container-width: 1100px;
    --logo-gradient: linear-gradient(135deg, var(--brand-gold) 0%, var(--obsidian) 100%);
    --gold-gradient: linear-gradient(180deg, var(--brand-gold) 0%, var(--obsidian) 100%);

    /* Modern UI Tokens v4 */
    --glass-v4: rgba(255, 255, 255, 0.7);
    --glass-v4-border: rgba(255, 255, 255, 0.4);
    --glass-v4-blur: 30px;
    --modern-glow: 0 0 40px rgba(180, 147, 70, 0.2);
    --font-tracking-modern: 2px;

    --font-serif: 'Arimo', sans-serif;
    --font-sans: 'Arimo', sans-serif;
    --font-accent: 'Arimo', sans-serif;

    --transition-luxury: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-minimal: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-prominent: 0 30px 60px rgba(0, 0, 0, 0.08);
    /* Stronger depth */

    --radius-logo: 12px;
    /* Matching the logo frame */
    --radius-round: 50px;

    --text-readable: #1a1a1a;
    /* Deep charcoal for body */
    --text-muted: #444444;
    /* Strong slate for descriptions */
}

/* Global Placeholder Styling */
::placeholder {
    color: inherit;
    opacity: 0.7;
}

::-webkit-input-placeholder {
    color: inherit;
    opacity: 0.7;
}

::-moz-placeholder {
    color: inherit;
    opacity: 0.7;
}

:-ms-input-placeholder {
    color: inherit;
    opacity: 0.7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

/* Vibrant Animations */
@keyframes mesh-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Royal UI Utilities */
.glass-royal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-royal);
    box-shadow: var(--shadow-royal);
}

.glass-obsidian {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(180, 147, 70, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.brand-gold-text {
    color: var(--brand-gold) !important;
    background: linear-gradient(135deg, var(--brand-gold), #ffefba) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.editorial-head {
    font-family: var(--font-head);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.caps-Artisanal {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.65rem;
    font-weight: 800;
}

/* Editorial Boutique Structural Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.bg-deep-luxury {
    background-color: var(--deep-black) !important;
    color: white !important;
}

.bg-deep-luxury * {
    border-color: var(--Artisanal-border-white) !important;
}

.bg-soft-gray {
    background-color: var(--soft-gray) !important;
}

.text-glow-gold {
    color: var(--brand-gold) !important;
    text-shadow: 0 0 15px rgba(180, 147, 70, 0.3);
}

.glass-v4 {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--Artisanal-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.vibrant-text {
    color: var(--brand-gold);
}

.asymmetric-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.asymmetric-grid.reverse {
    grid-template-columns: 0.8fr 1.2fr;
}

.chapter-title-side {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    font-size: 0.6rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--brand-gold);
    opacity: 0.6;
    font-weight: 900;
    white-space: nowrap;
    z-index: 10;
}

.overlapping-montage {
    position: relative;
    z-index: 10;
}

.montage-main-img {
    width: 85%;
    height: auto;
    border-radius: var(--radius-logo);
    box-shadow: var(--shadow-prominent);
}

.montage-float-img {
    position: absolute;
    bottom: -50px;
    right: 0;
    width: 50%;
    border-radius: var(--radius-logo);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 5px solid white;
    z-index: 20;
}

/* Section Masks & Transitions */
.mask-diagonal {
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
}

.mask-curve {
    clip-path: ellipse(150% 100% at 50% 0%);
}

/* Contrast Utilities */
.bg-deep-luxury {
    background-color: var(--deep-luxury) !important;
    color: white !important;
}

.bg-deep-luxury .luxury-charcoal {
    color: white !important;
}

.text-glow-gold {
    text-shadow: 0 0 30px rgba(180, 147, 70, 0.5);
}

.editorial-title {
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.05;
}

/* Glassmorphism 3.0 */
.glass-dark {
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.glass-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.glass-v4 {
    background: var(--glass-v4);
    backdrop-filter: blur(var(--glass-v4-blur));
    border: 1px solid var(--glass-v4-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

.modern-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

body {
    background: var(--luxury-white);
    color: var(var(--obsidian));
    font-family: var(--font-sans);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 90px;
}

h1,
h2,
h3,
h4,
h5,
.serif {
    font-family: var(--font-serif);
    font-weight: 600;
    /* Balanced weight for elegant serifs */
    letter-spacing: 0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

h5 {
    font-size: 1.1rem;
}

p {
    font-weight: 400;
    color: var(var(--obsidian));
    letter-spacing: 0.01em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Luxury Dividers */
.divider-gold {
    width: 60px;
    height: 2px;
    background: var(--brand-gold);
    margin: 30px auto;
    border-radius: var(--radius-logo);
}

/* Premium Top Bar */
.top-bar {
    background: var(--brand-gold);
    color: var(--obsidian);
    padding: 6px 0;
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    height: 30px;
}

/* Ultra Luxury Header */
header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #ffffff;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(180, 147, 70, 0.03) 1px, transparent 0),
        linear-gradient(to bottom, #ffffff 0%, #fcfdfe 100%);
    background-size: 32px 32px, 100% 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
    transition: padding 0.4s ease, top 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
    top: 0;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    background-image:
        radial-gradient(circle at 2px 2px, rgba(180, 147, 70, 0.04) 1px, transparent 0);
    background-size: 32px 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.logo img {
    height: 45px;
    transition: var(--transition-luxury);
}

header.scrolled .logo img {
    height: 35px;
}

.nav-links a {
    text-decoration: none !important;
    color: var(var(--obsidian)) !important;
    font-family: var(--font-accent);
    font-weight: 700;
    /* Bolder nav */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    padding: 10px 0;
}

.nav-links a.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-links a.nav-item:hover::after,
.nav-links a.nav-item.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a:hover {
    color: var(--brand-gold) !important;
}

.nav-links a.active {
    color: var(--brand-gold) !important;
}

/* Section Separation */
.section-chapter {
    padding: 80px 0;
}

.bg-alt {
    background: var(--luxury-light-gray);
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
}

/* Products Grid & Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    transition: var(--transition-luxury);
    background: #ffffff;
    border: 1px solid #f0f5fa;
    padding: 25px;
    text-align: center;
    border-radius: var(--radius-logo);
}

.product-card:hover {
    box-shadow: var(--shadow-prominent);
    transform: translateY(-8px);
    border-color: var(--brand-gold);
}

.product-card-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 25px;
    background: #fcfcfc;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-card-info {
    padding-top: 10px;
}

.product-card-category {
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--brand-gold);
    font-weight: 700;
    margin-bottom: 12px;
}

.product-card-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-card-title a {
    color: var(var(--obsidian)) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.product-card-title a:hover {
    color: var(--brand-gold) !important;
}

.product-card-price {
    font-weight: 700;
    color: var(--brand-gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #eee;
    color: var(var(--obsidian));
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 6px;
}

.product-card:hover .btn-add-cart {
    background: var(--brand-gold);
    color: var(--obsidian);
    border-color: var(--brand-gold);
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--brand-gold);
    font-weight: 500;
}

.product-card .category-name {
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 500;
}

.product-card .price {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    color: var(var(--obsidian));
}

/* Luxury Buttons */
.btn {
    padding: 14px 40px;
    border: none;
    background: var(--obsidian);
    color: #ffffff;
    cursor: pointer;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-luxury);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 2px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--brand-gold);
    color: var(--obsidian);
    border: 1px solid var(--brand-gold);
}

.btn:hover {
    background: var(--obsidian);
    color: var(--brand-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: var(--obsidian);
    color: #ffffff;
    border-color: var(--obsidian);
}

/* Premium Hero Buttons */
.premium-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: var(--obsidian);
    color: white;
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 1px solid var(--obsidian);
}

.premium-btn-primary:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: var(--obsidian);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(180, 147, 70, 0.25);
}

.premium-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: transparent;
    color: var(--obsidian);
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 1px solid var(--obsidian);
}

.premium-btn-outline:hover {
    background: var(--obsidian);
    color: white;
    transform: translateY(-2px);
}

/* Side Cart Slider */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Darker backdrop */
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100%;
    background: #ffffff;
    z-index: 20001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.1);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(180, 147, 70, 0.05);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(180, 147, 70, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--brand-gold);
}

.side-cart.active {
    transform: translateX(0);
}

/* Hero Section Styling */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.hero-content-center {
    position: relative;
    z-index: 2;
    color: var(--luxury-white);
}

.hero-subtitle {
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.85rem;
    margin-bottom: 25px;
    color: var(--luxury-white);
    font-weight: 600;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.15;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 35px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .side-cart {
        width: 100%;
    }

    .section-chapter {
        padding: 80px 0;
    }
}
