/* Vero Hi Creations - Premium Luxury Candle Brand CSS */

/* ===== VARIABLES ===== */
:root {
    --charcoal: #1A1A1A;
    --ivory: #F5F0E8;
    --rosegold: #C49B7C;
    --terracotta: #B86B4C;
    --cream: #FFF8F0;
    --beige: #E8DDD0;
    --soft-brown: #8B7355;
    --pastel-pink: #F5E6E8;
    --gold: #D4AF37;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--charcoal);
    color: var(--ivory);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--charcoal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.candle-flame {
    width: 12px;
    height: 18px;
    background: radial-gradient(ellipse at bottom, #FFD700, #FF8C00, transparent);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    margin: 0 auto;
    animation: flicker 0.4s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% { transform: scaleY(1) scaleX(1); }
    50% { transform: scaleY(1.1) scaleX(0.9); }
    100% { transform: scaleY(0.95) scaleX(1.05); }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    color: rgba(245, 240, 232, 0.75);
    transition: color 0.3s ease;
    text-decoration: none;
}

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

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

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

.nav-link.active {
    color: var(--rosegold);
}

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

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    transition: right 0.4s ease;
    z-index: 150;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu.open {
    right: 0;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 140;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    color: rgba(245, 240, 232, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--rosegold);
}

/* ===== HERO SECTION ===== */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px) brightness(0.35);
    background-color: #1A1A1A;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.6) 50%, rgba(184, 107, 76, 0.15));
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }
.reveal-d6 { transition-delay: 0.6s; }

/* ===== PRODUCT CARDS ===== */
.product-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(196, 155, 124, 0.15), 0 0 40px rgba(196, 155, 124, 0.08);
}

.product-card .product-img {
    transition: transform 0.6s ease;
}

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

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--rosegold);
    color: var(--charcoal);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--terracotta);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 155, 124, 0.3);
}

.btn-secondary {
    background: rgba(196, 155, 124, 0.1);
    border: 1.5px solid rgba(196, 155, 124, 0.3);
    color: var(--rosegold);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--rosegold);
    color: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 155, 124, 0.3);
}

.add-cart-btn {
    transition: all 0.3s ease;
}

.add-cart-btn:hover {
    background: var(--rosegold) !important;
    color: var(--charcoal) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 155, 124, 0.3);
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 200;
    background: linear-gradient(135deg, var(--rosegold), var(--terracotta));
    color: var(--ivory);
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(184, 107, 76, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ===== TESTIMONIALS ===== */
.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-slide {
    min-width: 100%;
}

/* ===== INSTAGRAM GALLERY ===== */
.insta-col {
    animation: instaScroll 12s linear infinite;
}

@keyframes instaScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* ===== FORM INPUTS ===== */
.form-input {
    background: rgba(245, 240, 232, 0.05);
    border: 1.5px solid rgba(196, 155, 124, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--ivory);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
}

.form-input:focus {
    border-color: var(--rosegold);
    box-shadow: 0 0 0 4px rgba(196, 155, 124, 0.1);
    background: rgba(245, 240, 232, 0.08);
}

.form-input::placeholder {
    color: rgba(245, 240, 232, 0.35);
}

/* ===== FILTERS ===== */
.filter-btn {
    background: transparent;
    border: 1.5px solid rgba(196, 155, 124, 0.2);
    color: rgba(245, 240, 232, 0.6);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--rosegold);
    border-color: var(--rosegold);
    color: var(--charcoal);
}

/* ===== PRICE RANGE ===== */
.price-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(196, 155, 124, 0.2);
    border-radius: 2px;
    outline: none;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--rosegold);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.price-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--charcoal);
}

::-webkit-scrollbar-thumb {
    background: var(--rosegold);
    border-radius: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 0;
    }
    
    .hero-bg {
        background-position: center;
    }
    
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(196, 155, 124, 0.2);
    border-top-color: var(--rosegold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== IMAGE GALLERY ===== */
.gallery-img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ===== STAR RATING ===== */
.star-rating {
    color: var(--rosegold);
}

.star-rating .far {
    color: rgba(196, 155, 124, 0.3);
}

/* ===== PAYMENT ICONS ===== */
.payment-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.payment-icon {
    width: 40px;
    height: 25px;
    background: rgba(245, 240, 232, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--ivory);
}

/* ===== SHIPPING BADGES ===== */
.shipping-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(196, 155, 124, 0.1);
    border: 1px solid rgba(196, 155, 124, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--ivory);
}

/* ===== QUANTITY SELECTOR ===== */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid rgba(196, 155, 124, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--rosegold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quantity-btn:hover {
    background: rgba(196, 155, 124, 0.1);
}

.quantity-input {
    width: 50px;
    height: 44px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(196, 155, 124, 0.2);
    border-right: 1px solid rgba(196, 155, 124, 0.2);
    color: var(--ivory);
    text-align: center;
    font-size: 1rem;
    outline: none;
}

/* ===== TABS ===== */
.tab-btn {
    background: transparent;
    border: none;
    color: rgba(245, 240, 232, 0.5);
    padding: 12px 24px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--rosegold);
    border-bottom-color: var(--rosegold);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}
