/* =========================================
   LUXURY DESIGN SYSTEM
   Les Fromages du Roc - Premium Aesthetic
   ========================================= */

/* =========================================
   CSS CUSTOM PROPERTIES (Variables)
   ========================================= */
/* Support Alpine.js x-cloak */
[x-cloak] { display: none !important; }

:root {
    --lux-gold: #D4AF37;
    --lux-gold-light: #F4E4A6;
    --lux-gold-dark: #AA8C2C;
    --lux-cream: #FAF9F6;
    --lux-paper: #F5F2EA;
    --lux-earth: #3C2F2F;
    --lux-dark: #0a0a0a;
    --lux-dark-light: #1a1a1a;
    --lux-white: #ffffff;
    --lux-white-05: rgba(255, 255, 255, 0.05);
    --lux-white-10: rgba(255, 255, 255, 0.1);
    --lux-white-20: rgba(255, 255, 255, 0.2);
    --lux-white-40: rgba(255, 255, 255, 0.4);
    --lux-white-60: rgba(255, 255, 255, 0.6);
    --lux-gold-glow: rgba(212, 175, 55, 0.3);
    
    --lux-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --lux-border-radius: 16px;
    --lux-border-radius-lg: 32px;
    --lux-blur: blur(20px);
}

/* =========================================
   BACKGROUNDS & OVERLAYS
   ========================================= */

/* Force dark background on html/body */
html.bg-black,
.bg-black {
    background-color: #000000 !important;
}

html, body {
    background-color: #0a0a0a;
}

.lux-bg-dark {
    background-color: var(--lux-dark);
}

.lux-overlay-gradient {
    background: 
        linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%),
        linear-gradient(to right, rgba(0,0,0,0.8) 0%, transparent 50%);
}

.lux-bg-radial-gold {
    background: radial-gradient(ellipse at top right, rgba(212,175,55,0.08) 0%, transparent 50%);
}

.lux-bg-radial-gold-bottom {
    background: radial-gradient(ellipse at bottom, rgba(212,175,55,0.05) 0%, transparent 60%);
}

/* =========================================
   GLASSMORPHISM CARDS
   ========================================= */
.lux-glass {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--lux-white-10);
    border-radius: var(--lux-border-radius-lg);
    box-shadow: 0 25px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}

.lux-glass-subtle {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--lux-white-10);
    border-radius: var(--lux-border-radius);
}

.lux-glass-card {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--lux-border-radius-lg);
    padding: 2rem;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.lux-glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* =========================================
   TYPOGRAPHY - GOLD SHIMMER EFFECT
   ========================================= */
.lux-title-shimmer {
    background: linear-gradient(135deg, var(--lux-gold) 0%, var(--lux-gold-light) 50%, var(--lux-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lux-shimmer 3s linear infinite;
}

@keyframes lux-shimmer {
    to { background-position: 200% center; }
}

.lux-text-white { color: var(--lux-white); }
.lux-text-white-60 { color: var(--lux-white-60); }
.lux-text-white-40 { color: var(--lux-white-40); }
.lux-text-gold { color: var(--lux-gold); }

/* =========================================
   BUTTONS
   ========================================= */
.lux-btn-gold {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--lux-gold) 0%, var(--lux-gold-dark) 100%);
    border: none;
    border-radius: var(--lux-border-radius);
    color: var(--lux-dark);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: var(--lux-transition);
    box-shadow: 0 15px 50px var(--lux-gold-glow);
    text-decoration: none;
}

.lux-btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.4);
}

.lux-btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.lux-btn-gold:hover::before {
    left: 100%;
}

.lux-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 1px solid var(--lux-white-20);
    border-radius: 50px;
    color: var(--lux-white);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--lux-transition);
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.lux-btn-outline:hover {
    background: var(--lux-white);
    color: var(--lux-dark);
    border-color: var(--lux-white);
}

.lux-btn-gold-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    color: var(--lux-gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--lux-transition);
    text-decoration: none;
}

.lux-btn-gold-outline:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--lux-gold);
}

/* =========================================
   FORM INPUTS
   ========================================= */
.lux-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--lux-white-10);
    border-radius: 14px;
    color: var(--lux-white);
    font-size: 1rem;
    font-weight: 300;
    transition: var(--lux-transition);
    outline: none;
}

.lux-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.lux-input:focus {
    background: rgba(255,255,255,0.06);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 
        0 0 0 4px rgba(212, 175, 55, 0.1),
        0 10px 40px rgba(0,0,0,0.3);
}

/* Fix for native select options visibility */
select.lux-input option {
    background-color: #1a1a1a;
    color: white;
}

/* =========================================
   CUSTOM DROPDOWN (lux-dropdown)
   ========================================= */
.lux-dropdown-container {
    position: relative;
    width: 100%;
}

.lux-dropdown-trigger {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    color: var(--lux-white);
    font-size: 1rem;
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--lux-transition);
    text-align: left;
}

.lux-dropdown-trigger:hover,
.lux-dropdown-container.open .lux-dropdown-trigger {
    background: rgba(255,255,255,0.12);
    border-color: var(--lux-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.lux-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #1a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 18px;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 40px 100px rgba(0,0,0,0.9);
}

.lux-dropdown-item {
    padding: 1.25rem 1.5rem;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lux-dropdown-item:last-child {
    border-bottom: none;
}

.lux-dropdown-item:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--lux-gold-light);
    padding-left: 2rem;
}

.lux-dropdown-item.selected {
    color: var(--lux-gold);
    background: rgba(212, 175, 55, 0.12);
    font-weight: 700;
}

.lux-dropdown-chevron {
    font-size: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
}

.lux-dropdown-container.open .lux-dropdown-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--lux-gold);
}

/* =========================================
   INFO CARDS (Contact style)
   ========================================= */
.lux-info-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--lux-border-radius);
    backdrop-filter: blur(10px);
    transition: var(--lux-transition);
}

.lux-info-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(10px);
}

.lux-info-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    font-size: 1.3rem;
}

/* =========================================
   PRODUCT CARDS
   ========================================= */
.lux-product-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 1.5rem;
    overflow: hidden;
    transition: var(--lux-transition);
}

.lux-product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 40px rgba(212, 175, 55, 0.1);
}

.lux-product-image {
    aspect-ratio: 4/5;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
}

.lux-product-image img,
.lux-product-image > div {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.lux-product-card:hover .lux-product-image img,
.lux-product-card:hover .lux-product-image > div {
    transform: scale(1.05);
}

.lux-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, var(--lux-gold), var(--lux-gold-dark));
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lux-dark);
}

.lux-product-title {
    font-family: 'Bitter', Georgia, serif;
    font-size: 1.75rem;
    color: var(--lux-white);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.lux-product-card:hover .lux-product-title {
    color: var(--lux-gold);
}

.lux-product-price {
    font-weight: 600;
    background: linear-gradient(135deg, var(--lux-gold), var(--lux-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   BADGES & TAGS
   ========================================= */
.lux-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--lux-gold);
}

/* =========================================
   FLOATING PARTICLES
   ========================================= */
.lux-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.lux-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    animation: lux-float-up 15s infinite;
}

@keyframes lux-float-up {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* =========================================
   DECORATIVE ELEMENTS
   ========================================= */
.lux-deco-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.3), transparent);
    width: 1px;
    height: 200px;
    animation: lux-pulse-line 4s ease-in-out infinite;
}

@keyframes lux-pulse-line {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.lux-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--lux-gold), transparent);
    margin: 2rem auto;
}

/* =========================================
   NAVBAR PREMIUM
   ========================================= */
.lux-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: var(--lux-transition);
}

.lux-navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lux-nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.lux-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--lux-gold);
    transition: width 0.3s ease;
}

.lux-nav-link:hover {
    color: var(--lux-white);
}

.lux-nav-link:hover::after {
    width: 100%;
}

.lux-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.lux-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transition: var(--lux-transition);
}

.lux-logo:hover .lux-logo-img {
    border-color: var(--lux-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    transform: scale(1.05);
}

.lux-logo-text {
    font-family: 'Bitter', Georgia, serif;
    font-size: 1.25rem;
    color: var(--lux-white);
    letter-spacing: 0.05em;
    font-weight: 400;
}

/* =========================================
   SECTION UTILITIES
   ========================================= */
.lux-section {
    position: relative;
    padding: 6rem 0;
    background: var(--lux-dark);
    overflow: hidden;
}

.lux-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.lux-section-title {
    font-family: 'Bitter', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--lux-white);
    font-weight: 300;
    margin-bottom: 1rem;
}

.lux-section-subtitle {
    color: var(--lux-white-40);
    font-size: 1rem;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

/* =========================================
   ANIMATIONS - FADE IN UP
   ========================================= */
.lux-fade-in {
    opacity: 0;
    animation: lux-fade-in-up 1s ease-out forwards;
}

.lux-fade-in-delay-1 { animation-delay: 0.2s; }
.lux-fade-in-delay-2 { animation-delay: 0.4s; }
.lux-fade-in-delay-3 { animation-delay: 0.6s; }

/* Modals & Overlays */
.lux-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.lux-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
}

/* Animations */
@keyframes lux-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lux-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes lux-fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lux-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes lux-slide-down {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

@keyframes lux-slide-in-right {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes lux-slide-out-right {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

.lux-fade-in { animation: lux-fade-in 0.4s ease forwards; }
.lux-fade-out { animation: lux-fade-out 0.3s ease forwards; }
.lux-slide-up { animation: lux-fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.lux-slide-down { animation: lux-fade-out 0.4s ease forwards; } /* Simple fade out for down transition if wanted */

/* Premium Buttons Centralized */
.lux-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, var(--lux-gold) 0%, #B8860B 100%);
    color: #FFFFFF !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-family: 'Bitter', serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.lux-btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.5);
}

.lux-btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 25%;
    height: 200%;
    background: rgba(255,255,255,0.4);
    transform: rotate(30deg);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.lux-btn-primary:hover::after {
    left: 150%;
}

.lux-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.5rem;
    background: rgba(255,255,255,0.03);
    color: white !important;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lux-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}
