/* --- 1. General Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Prevents side-scrolling on mobile */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: white;
    background-color: #1a1a1a;
    line-height: 1.6;
}

/* --- 2. Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); }
    100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
}

/* --- 3. Navigation Bar --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 50px;
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: #fff;
    text-transform: lowercase;
}

.logo::after {
    content: '.';
    color: #d4af37;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #d4af37;
}

/* --- 4. Shop Container & Grid --- */
.shop-container {
    padding: 120px 5% 60px;
    background-color: #0f0f0f;
    min-height: 100vh;
}

.shop-header {
    text-align: center;
    margin-bottom: 40px;
}

.shop-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    letter-spacing: 2px;
}

.shop-header h1 span {
    color: #d4af37;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 5. Product Cards --- */
.product-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d4af37;
    color: black;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}

.product-info {
    padding: 25px;
    text-align: center;
}

.price {
    font-size: 1.2rem;
    color: #d4af37;
    font-weight: 500;
    margin-bottom: 20px;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.add-to-cart:hover {
    background: #d4af37;
    color: #000;
}

/* --- 6. Cart Icon & Toggle --- */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #d4af37;
    color: black;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f0f0f;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 2px;
}

/* --- 7. Footer --- */
footer {
    padding: 60px 20px;
    background: #0f0f0f;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- 8. Responsive Fixes --- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 75%;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        margin: 15px 0;
    }

    .shop-header h1 {
        font-size: 2.2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    /* Animate Hamburger to "X" */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
/* --- 7. Footer (Matching Home) --- */
footer { 
    padding: 60px 50px; 
    background: #0a0a0a; 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 100px;
}
.social-media { margin-top: 20px; display: flex; justify-content: center; gap: 20px; }
.social-media a { color: white; text-decoration: none; font-size: 0.8rem; opacity: 0.6; transition: 0.3s; }
.social-media a:hover { opacity: 1; color: #d4af37; }
/* --- 1. Keyframes for Premium Motion --- */

/* Floating animation for badges/icons */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- SUPER ANIMATIONS BLOCK (added for 50+ effects) --- */
@keyframes swirl { from{transform:rotate(0);}to{transform:rotate(720deg);} }
@keyframes spiral { 0%{transform:scale(0) rotate(0);}100%{transform:scale(1) rotate(1080deg);} }
@keyframes bounceIn { 0%{opacity:0;transform:scale(0.3);}50%{opacity:1;transform:scale(1.05);}70%{transform:scale(0.9);}100%{transform:scale(1);} }
@keyframes bounceOut { 0%{transform:scale(1);}20%{transform:scale(1.1);}100%{opacity:0;transform:scale(0.3);} }
@keyframes slideInBounce { 0%{transform:translateX(-100%) scale(0);}60%{transform:translateX(30%) scale(1.1);}80%{transform:translateX(-10%) scale(0.9);}100%{transform:translateX(0) scale(1);} }
@keyframes flash { 0%,50%,100%{opacity:1;}25%,75%{opacity:0;} }
@keyframes zigzag { 0%{transform:translate(0);}25%{transform:translate(25px,-25px);}50%{transform:translate(-25px,25px);}75%{transform:translate(25px,25px);}100%{transform:translate(0);} }
@keyframes circleScale { 0%{transform:scale(0);}100%{transform:scale(1);} }
@keyframes popBottom { 0%{opacity:0;transform:translateY(100px);}100%{opacity:1;transform:translateY(0);} }
@keyframes popTop { 0%{opacity:0;transform:translateY(-100px);}100%{opacity:1;transform:translateY(0);} }
@keyframes popLeft { 0%{opacity:0;transform:translateX(-100px);}100%{opacity:1;transform:translateX(0);} }
@keyframes popRight { 0%{opacity:0;transform:translateX(100px);}100%{opacity:1;transform:translateX(0);} }
@keyframes wobble2 { 0%{transform:translateX(0);}15%{transform:translateX(-25%) rotate(-5deg);}30%{transform:translateX(20%) rotate(3deg);}45%{transform:translateX(-15%) rotate(-3deg);}60%{transform:translateX(10%) rotate(2deg);}75%{transform:translateX(-5%) rotate(-1deg);}100%{transform:translateX(0);} }
@keyframes rollOut { 0%{opacity:1;transform:translateX(0) rotate(0);}100%{opacity:0;transform:translateX(100%) rotate(120deg);} }
@keyframes fadeInSlow { 0%{opacity:0;}100%{opacity:1;} }
@keyframes fadeOutSlow { 0%{opacity:1;}100%{opacity:0;} }
@keyframes rightShake { 0%,100%{transform:translateX(0);}20%,60%{transform:translateX(10px);}40%,80%{transform:translateX(-10px);} }
@keyframes tilt { 0%,100%{transform:rotate(0);}50%{transform:rotate(10deg);} }
@keyframes slideZoom { 0%{transform:translateY(100%) scale(0);}100%{transform:translateY(0) scale(1);} }
@keyframes ripple { 0%{box-shadow:0 0 0 0 rgba(212,175,55,0.7);}100%{box-shadow:0 0 0 20px rgba(212,175,55,0);} }
@keyframes heartbeat { 0%,100%{transform:scale(1);}14%{transform:scale(1.3);}28%{transform:scale(1);}42%{transform:scale(1.3);}70%{transform:scale(1);} }
@keyframes hanging { 0%{transform:translateY(-100%);}100%{transform:translateY(0);} }
@keyframes creeping { 0%{transform:translateX(-100%);}100%{transform:translateX(0);} }
@keyframes popping { 0%{transform:scale(0);opacity:0;}100%{transform:scale(1);opacity:1;} }
@keyframes vanishing { 0%{opacity:1;}100%{opacity:0;} }
@keyframes spring { 0%{transform:scaleY(1);}30%{transform:scaleY(1.5);}40%{transform:scaleY(1);}50%{transform:scaleY(1.25);}65%{transform:scaleY(0.9);}75%{transform:scaleY(1);} }
@keyframes rollIn2 { 0%{opacity:0;transform:translateX(-100%) rotate(-120deg);}100%{opacity:1;transform:translateX(0) rotate(0);} }
@keyframes rollOut2 { 0%{opacity:1;transform:translateX(0) rotate(0);}100%{opacity:0;transform:translateX(100%) rotate(120deg);} }

/* helper classes for super animations */
.swirl { animation: swirl 2s linear infinite; }
.spiral { animation: spiral 3s linear infinite; }
.bounce-in { animation: bounceIn 1s ease both; }
.bounce-out { animation: bounceOut 1s ease both; }
.slide-in-bounce { animation: slideInBounce 1s ease both; }
.flash { animation: flash 1s infinite; }
.zigzag { animation: zigzag 1.5s ease infinite; }
.circle-scale { animation: circleScale 0.5s ease both; }
.pop-bottom { animation: popBottom 0.6s ease both; }
.pop-top { animation: popTop 0.6s ease both; }
.pop-left { animation: popLeft 0.6s ease both; }
.pop-right { animation: popRight 0.6s ease both; }
.wobble2 { animation: wobble2 1.2s ease both; }
.roll-out { animation: rollOut 0.8s ease both; }
.fade-in-slow { animation: fadeInSlow 2s ease both; }
.fade-out-slow { animation: fadeOutSlow 2s ease both; }
.right-shake { animation: rightShake 0.6s ease both; }
.top-bounce { animation: topBounce 1s infinite; }
.bottom-bounce { animation: bottomBounce 1s infinite; }
.scale-up-down { animation: scaleUpDown 1s infinite; }
.skew { animation: skew 1s ease both; }
.tilt { animation: tilt 1s ease both; }
.slide-zoom { animation: slideZoom 0.8s ease both; }
.ripple { animation: ripple 1.5s ease infinite; }
.heartbeat { animation: heartbeat 1.5s ease infinite; }
.hanging { animation: hanging 0.5s ease both; }
.creeping { animation: creeping 1s ease both; }
.popping { animation: popping 0.5s ease both; }
.vanishing { animation: vanishing 0.5s ease both; }
.spring { animation: spring 1s ease both; }
.roll-in2 { animation: rollIn2 0.8s ease both; }
.roll-out2 { animation: rollOut2 0.8s ease both; }

/* --- end of super animations block --- */

/* Luxury Card Entrance */
@keyframes luxuryReveal {
    0% { opacity: 0; transform: translateY(50px) scale(0.9) rotateX(-10deg); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotateX(0); filter: blur(0px); }
}

/* Button Pulse Effect */
@keyframes goldenGlow {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* --- 2. Advanced Product Card Physics --- */

.product-card {
    opacity: 0; /* Starts hidden for JavaScript reveal */
    animation: luxuryReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    perspective: 1000px;
    transform-style: preserve-3d;
    background: linear-gradient(145deg, #1a1a1a, #141414);
}

/* Staggered Delay for Grid Items (First 6 items) */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

.product-card:hover {
    transform: translateY(-15px) rotateY(5deg) rotateX(5deg);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Image "Zoom & Pan" Effect */
.product-image img {
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.15) rotate(-2deg);
}

/* Floating Badge */
.product-badge {
    animation: float 3s ease-in-out infinite;
}

/* --- 3. Super Button Micro-interactions --- */

.add-to-cart {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 300%; height: 300%;
    background: #d4af37;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    z-index: -1;
}

.add-to-cart:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.add-to-cart:active {
    transform: scale(0.95);
    animation: goldenGlow 0.4s ease-out;
}
/* --- 1. Global "World Popular" Keyframes --- */

/* Luxury 3D Entrance */
@keyframes luxuryReveal {
    0% { 
        opacity: 0; 
        transform: translateY(60px) rotateX(-15deg) scale(0.9); 
        filter: blur(15px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) rotateX(0) scale(1); 
        filter: blur(0px); 
    }
}

/* Floating "Pulse" for Badges */
@keyframes floatingBadge {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* --- 2. Enhanced Product Card Physics --- */

.product-card {
    opacity: 0; /* Handled by JS Intersection Observer */
    perspective: 1200px;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: linear-gradient(145deg, #1e1e1e, #141414);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.product-card:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(-5deg);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Image Parallax Effect */
.product-image {
    overflow: hidden;
    position: relative;
}

.product-image img {
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.15) translateZ(50px);
}

/* Badge Animation */
.product-badge {
    animation: floatingBadge 4s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* --- 3. Super Button Interactions --- */

.add-to-cart {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 300%; height: 300%;
    background: white;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    z-index: -1;
}

.add-to-cart:hover {
    color: #000;
    letter-spacing: 2px;
}

.add-to-cart:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.add-to-cart:active {
    transform: scale(0.9);
}
/* --- Order Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    border: 1px solid #d4af37;
    text-align: center;
    position: relative;
    animation: luxuryReveal 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.modal-content h2 span { color: #d4af37; }

.modal-content p {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #ccc;
}

.order-form input, .order-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
}

.order-form input:focus {
    border-color: #d4af37;
    outline: none;
}

.confirm-order-btn {
    width: 100%;
    padding: 15px;
    background: #d4af37;
    color: black;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 5px;
}

.confirm-order-btn:hover {
    background: white;
    transform: scale(1.02);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}
.nav-customize-btn {
    border: 1px solid #d4af37 !important;
    padding: 8px 18px !important;
    border-radius: 5px;
    color: #d4af37 !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.nav-customize-btn:hover {
    background: #d4af37 !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}