/* ============================================
   LUMIÈRE - Luxury Jewelry E-Commerce
   Custom Styles & Tailwind Overrides
   ============================================ */

/* ============================================
   Custom Fonts
   ============================================ */
@font-face {
    font-family: 'Blastine';
    src: url('../fonts/Blastine.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
    --bg-primary: #FAFAFA;
    --bg-secondary: #F4F1EA;
    --text-primary: #1A202C;
    --text-secondary: #585858;
    --accent-gold: #D4AF37;
    --accent-earth: #A56340;
    --border-color: #E2E8F0;

    /* Transitions */
    --transition-base: all 0.3s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
}

/* ============================================
   Base Styles
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 0.025em;
}

/* ============================================
   Header Styles
   ============================================ */
.header-scrolled {
    background-color: var(--bg-primary) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-transparent {
    background-color: transparent;
}

/* Logo Glow Effect */
.logo-glow {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.3);
    transition: text-shadow 0.3s ease;
}

/* ============================================
   Product Card Styles
   ============================================ */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card .product-image-default {
    transition: var(--transition-base);
}

.product-card .product-image-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: var(--transition-base);
}

.product-card:hover .product-image-default {
    opacity: 0;
}

.product-card:hover .product-image-hover {
    opacity: 1;
}

/* Quick Add Button Styles Removed */

/* ============================================
   Cartier-Inspired: Section Title
   ============================================ */
.section-title {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
}

/* ============================================
   Cartier-Inspired: Gold Effects
   ============================================ */
.gold-glow {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.25),
                0 0 80px rgba(212, 175, 55, 0.1);
}

.gold-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 1.5rem auto;
}

/* ============================================
   Cartier-Inspired: Spotlight Section (Dark)
   ============================================ */
.spotlight-section {
    background: linear-gradient(135deg, #0D0D0D 0%, #1A202C 50%, #0D0D0D 100%);
    position: relative;
    overflow: hidden;
}

.spotlight-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.spotlight-image {
    position: relative;
}

.spotlight-image::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), transparent 50%, rgba(212, 175, 55, 0.15));
    z-index: -1;
}

.spotlight-cta {
    color: #FAFAFA;
    text-decoration: none;
    position: relative;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: var(--transition-base);
}

.spotlight-cta::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-gold);
    transform: scaleX(0.4);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.spotlight-cta:hover::after {
    transform: scaleX(1);
}

.spotlight-cta:hover {
    color: var(--accent-gold);
}

/* ============================================
   Button Styles
   ============================================ */
.btn-primary {
    background-color: var(--accent-earth);
    color: white;
    transition: var(--transition-base);
}

.btn-primary:hover {
    background-color: #8B4F30;
}

.btn-outline {
    border: 1px solid var(--text-primary);
    background-color: transparent;
    transition: var(--transition-base);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: white;
}

/* ============================================
   Cart Drawer Styles
   ============================================ */
.cart-drawer {
    transition: transform 0.4s ease-in-out;
}

.cart-overlay {
    transition: opacity 0.3s ease-in-out;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-overlay {
    background: linear-gradient(to right,
            rgba(140, 120, 90, 0.5) 0%,
            rgba(140, 120, 90, 0.25) 40%,
            rgba(0, 0, 0, 0.1) 100%);
}

/* Cartier-inspired: Outlined text effect */
.hero-outlined-text {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
    color: transparent !important;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

/* Gold bottom border for hero */
.hero-gold-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, var(--accent-gold) 30%, var(--accent-gold) 70%, transparent 95%);
    opacity: 0.6;
}

/* Scroll label */
.scroll-label {
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Category Card Hover (Enhanced Gradient)
   ============================================ */
.category-card {
    position: relative;
}

.category-card img {
    transition: transform 0.7s ease-in-out;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 32, 44, 0.7) 0%,
        rgba(26, 32, 44, 0.15) 45%,
        transparent 75%
    );
    transition: all 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.category-card:hover::after {
    background: linear-gradient(
        to top,
        rgba(26, 32, 44, 0.8) 0%,
        rgba(26, 32, 44, 0.25) 50%,
        transparent 80%
    );
}

.category-card > div:last-child {
    z-index: 2;
    position: relative;
}

/* ============================================
   Skeleton Loader
   ============================================ */
.skeleton {
    background: linear-gradient(90deg,
            var(--bg-secondary) 25%,
            #E8E5DE 50%,
            var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   Carousel / Horizontal Scroll
   ============================================ */
.carousel-container {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    overflow-x: auto;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.carousel-container:active {
    cursor: grabbing;
}

.carousel-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

/* ============================================
   Progress Bar (Free Shipping)
   ============================================ */
.progress-bar {
    background-color: var(--border-color);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    background-color: var(--accent-gold);
    height: 100%;
    transition: width 0.5s ease-in-out;
}

/* ============================================
   Focus States (Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-earth);
    outline-offset: 2px;
}

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================
   Cartier Faz 2: Brand Story Section
   ============================================ */
@keyframes floatProduct {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.brand-story-float {
    animation: floatProduct 6s ease-in-out infinite;
}

.brand-story-section {
    background-color: var(--bg-secondary) !important;
    background-image: none !important;
    position: relative;
    overflow: hidden;
}

.brand-story-section * {
    color: inherit;
}

.brand-story-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================
   Cartier Faz 2: Spotlight Enhancement
   ============================================ */
.spotlight-nested-frames {
    position: relative;
}

.spotlight-nested-frames::before,
.spotlight-nested-frames::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

.spotlight-nested-frames::before {
    inset: -12px;
}

.spotlight-nested-frames::after {
    inset: -24px;
    border-color: rgba(212, 175, 55, 0.1);
}

.spotlight-section {
    background: linear-gradient(135deg, #0D0D0D 0%, #1A202C 50%, #0D0D0D 100%);
    position: relative;
    overflow: hidden;
}

/* Leather-like subtle texture */
.spotlight-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D4AF37' fill-opacity='0.03'%3E%3Cpath d='M5 0h1L0 5V4zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.spotlight-section > div {
    position: relative;
    z-index: 1;
}

/* ============================================
   Cartier Faz 2: Category Masonry
   ============================================ */
.category-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}

@media (min-width: 768px) {
    .category-masonry {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 250px;
        gap: 1.5rem;
    }
}

.category-masonry .cat-large {
    grid-column: span 2;
    grid-row: span 2;
}

.category-masonry .cat-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.category-masonry .cat-small {
    grid-column: span 1;
    grid-row: span 1;
}

@media (max-width: 767px) {
    .category-masonry .cat-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    .category-masonry .cat-medium {
        grid-column: span 1;
    }
}

.category-card-v2 {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.category-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.category-card-v2 img {
    transition: transform 0.8s ease;
}

.category-card-v2:hover img {
    transform: scale(1.08);
}

.category-card-v2 .cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(26, 32, 44, 0.85) 0%,
        rgba(26, 32, 44, 0.3) 35%,
        rgba(26, 32, 44, 0.05) 70%,
        transparent 100%
    );
    backdrop-filter: blur(0px);
    transition: all 0.5s ease;
}

.category-card-v2:hover .cat-overlay {
    backdrop-filter: blur(2px);
    background: linear-gradient(
        to top,
        rgba(26, 32, 44, 0.9) 0%,
        rgba(26, 32, 44, 0.4) 40%,
        rgba(26, 32, 44, 0.1) 80%,
        transparent 100%
    );
}

.category-card-v2 .cat-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
}

/* ============================================
   Cartier Faz 2: Dark Wave Newsletter
   ============================================ */
.dark-wave-section {
    background: linear-gradient(160deg, #0D0D0D 0%, #1A1A2E 40%, #0D0D0D 100%);
    position: relative;
    overflow: hidden;
}

/* Gold particle effect */
.dark-wave-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(212, 175, 55, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(212, 175, 55, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 30%, rgba(212, 175, 55, 0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 70%, rgba(212, 175, 55, 0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 40%, rgba(212, 175, 55, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 20% 80%, rgba(212, 175, 55, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 10%, rgba(212, 175, 55, 0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 60% 50%, rgba(212, 175, 55, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 90%, rgba(212, 175, 55, 0.2) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Gold radial glow behind content */
.dark-wave-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.dark-wave-section > * {
    position: relative;
    z-index: 1;
}

/* Wave separator SVG */
.wave-separator {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-separator svg {
    display: block;
    width: 100%;
    height: 50px;
}

@media (min-width: 768px) {
    .wave-separator svg {
        height: 80px;
    }
}

.dark-wave-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: border-color 0.3s ease;
    outline: none;
}

.dark-wave-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.dark-wave-input:focus {
    border-color: var(--accent-gold);
}

/* ============================================
   Enhanced Cart Drawer Styles (Progress & Cross-Sell)
   ============================================ */
/* Free Shipping Progress Bar */
.cart-progress-container {
    background-color: rgba(0,0,0,0.05);
    border-radius: 9999px;
    height: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.cart-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37 0%, #A56340 100%);
    border-radius: 9999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Shimmer effect for progress bar */
.cart-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Horizontal scroll for Cross-Sell */
.cart-cross-sell-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.cart-cross-sell-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Cross-Sell item card hover effect */
.cross-sell-item {
    transition: transform 0.3s ease;
}

.cross-sell-item:hover {
    transform: translateY(-2px);
}