/* ================================================ */
/* ===== DESIGN SYSTEM & COLOR PALETTE         ===== */
/* ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600&display=swap');

:root {
    --primary: #C45300;
    --primary-hover: #A54500;
    --primary-light: #FFF4EC;
    --primary-glow: rgba(196, 83, 0, 0.25);
    
    --accent: #5E260B;
    --accent-dark: #3B1F00;
    --accent-gold: #D97706;
    
    --bg-warm: #FAF0E6;
    --bg-card: #FFFFFF;
    --bg-alt: #FFF8F1;

    --text-main: #2D2621;
    --text-muted: #6B625B;
    --text-light: #9CA3AF;
    
    --border-color: #F3E4D6;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-soft: 0 4px 20px -2px rgba(196, 83, 0, 0.08);
    --shadow-hover: 0 12px 32px -4px rgba(196, 83, 0, 0.16);
    --shadow-modal: 0 20px 50px -10px rgba(0, 0, 0, 0.3);
}

/* ================================================ */
/* ===== BASE STYLES                           ===== */
/* ================================================ */

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-warm);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-headline {
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    letter-spacing: -0.01em;
}

/* User Selection Protection */
.no-copy {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

img {
    pointer-events: none;
    max-width: 100%;
}

/* ================================================ */
/* ===== GLASSMORPHISM & CARD UTILITIES       ===== */
/* ================================================ */

.glass-nav {
    background: rgba(250, 240, 230, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196, 83, 0, 0.1);
}

.premium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(196, 83, 0, 0.3);
}

/* ================================================ */
/* ===== BUTTONS & BADGES                      ===== */
/* ================================================ */

.btn-primary-glow {
    background: linear-gradient(135deg, #D95D04 0%, #C45300 100%);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.3s ease;
}

.btn-primary-glow:hover {
    background: linear-gradient(135deg, #B54A00 0%, #903B00 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(196, 83, 0, 0.4);
}

.btn-outline-gold {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.badge-gold {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
    font-weight: 700;
    border: 1px solid #F59E0B;
}

/* ================================================ */
/* ===== SMART GALLERY & MARQUEE ANIMATION    ===== */
/* ================================================ */

.smart-gallery {
    overflow-x: auto;
    cursor: grab;
    user-select: none;
}

.smart-gallery:active {
    cursor: grabbing;
}

.gallery-track {
    display: flex;
    animation: marquee 45s linear infinite alternate;
    will-change: transform;
}

.smart-gallery:hover .gallery-track,
.smart-gallery:active .gallery-track {
    animation-play-state: paused;
}

.gallery-track.is-dragging {
    animation: none !important;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(var(--marquee-end-x, -50%));
    }
}

/* ================================================ */
/* ===== SCROLL FADE-IN ANIMATIONS             ===== */
/* ================================================ */

.fade-in-section {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse Glow Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(220, 38, 38, 0.9);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Price Bounce */
@keyframes price-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-price {
    animation: price-bounce 3s infinite ease-in-out;
}

/* ================================================ */
/* ===== MODALS & OVERLAYS                     ===== */
/* ================================================ */

.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 10, 5, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.order-modal-content {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    width: 100%;
    max-width: 460px;
    position: relative;
    border: 1px solid var(--border-color);
}

.modal-close-button {
    position: absolute;
    top: 14px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #9CA3AF;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-button:hover {
    color: var(--accent);
}

.floating-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    background: linear-gradient(135deg, #D95D04 0%, #C45300 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(196, 83, 0, 0.35);
    transition: all 0.3s ease;
}

.floating-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(196, 83, 0, 0.5);
}

/* ================================================ */
/* ===== RESPONSIVE ADJUSTMENTS                ===== */
/* ================================================ */

@media (max-width: 640px) {
    .order-modal-content {
        padding: 1.25rem;
        max-width: 95%;
    }
    
    .floating-button {
        bottom: 15px;
        right: 15px;
        font-size: 14px;
        padding: 11px 18px;
    }
}
