/* Tailwind CSS Configuration */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at center, #1f1f1f 0%, #121212 100%);
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 6rem; /* This pushes all content down below the fixed nav */
}

/* --- PRELOADER STYLES --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

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

.loader-logo {
    width: 100px;
    height: 100px;
    border: 4px solid rgba(255, 215, 0, 0.2);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 1.5s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo .gold-gradient-text {
    font-size: 2.5rem;
    font-weight: 800;
    animation: pulse 1.5s infinite ease-in-out;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}


/* Snowfall Canvas */
#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: auto;
    padding: 0 1.5rem;
    flex-grow: 1;
}

/* Gold Gradient Text Utility */
.gold-gradient-text {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Glassmorphism Effects */
.glass-card {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-nav {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

/* General Purpose Glow Button */
.glow-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(to right, #FFD700, #DAA520, #B8860B);
    color: #1a1a1a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.glow-button:hover {
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.8);
    transform: translateY(-5px);
    background: linear-gradient(to right, #B8860B, #DAA520, #FFD700);
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}


/* --- MASTERPIECE 3D SHINE CARD DESIGN --- */

.product-card {
    background: linear-gradient(145deg, #2e2e2e, #1a1a1a);
    border-radius: 1rem;
    padding: 0;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    perspective: 1000px;
}

/* 3D Shine Effect Overlay */
.product-card::after {
    content: '';
    position: absolute;
    top: -110%;
    left: -210%;
    width: 200%;
    height: 200%;
    opacity: 0;
    transform: rotate(30deg);
    background: rgba(255, 255, 255, 0.13);
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0.13) 0%,
        rgba(255, 255, 255, 0.13) 77%,
        rgba(255, 255, 255, 0.5) 92%,
        rgba(255, 255, 255, 0.0) 100%
    );
    transition: opacity 0.5s ease, top 0.5s ease, left 0.5s ease;
}

.product-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 35px 50px rgba(0, 0, 0, 0.7);
}

.product-card:hover::after {
    opacity: 1;
    top: -30%;
    left: -30%;
}

.product-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    transition: transform 0.4s ease;
    transform-style: preserve-3d;
}

.product-card:hover .product-card-content {
    transform: translateZ(25px);
}

.product-header {
    padding: 1.5rem 1rem 1rem;
}

.product-logo {
    font-size: 4rem;
    color: #FFD700;
    margin-bottom: 1rem;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(30px); /* Lift the logo even more */
}

.product-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    transform: translateZ(20px);
}

/* ENHANCED CORNER RIBBON LABEL */
.product-access-label {
    width: 160px;
    height: 32px;
    position: absolute;
    top: 20px;
    right: -40px;
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: #1a1a1a;
    text-align: center;
    line-height: 32px;
    letter-spacing: 0.5px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    z-index: 3;
}

.product-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-details {
    font-size: 0.9rem;
    color: #b0b0b0;
    min-height: 40px;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.price-wrapper {
    margin-bottom: 1.5rem;
}

.price-wrapper .price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.price-wrapper .price span {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFD700;
    margin-right: 0.25rem;
}

.buy-button {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: #1a1a1a;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
    letter-spacing: 1.5px;
    border-radius: 0.75rem;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
    transform: translateZ(15px);
}

.buy-button:hover {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #000;
    transform: scale(1.05) translateZ(15px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

/* --- End of Redesigned Styles --- */


/* Floating Notification */
.floating-notification {
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0px); opacity: 0.7; }
    50% { transform: translateY(-10px); opacity: 1; }
    100% { transform: translateY(0px); opacity: 0.7; }
}

/* Slide In Animation */
.slide-in, .animate-slide-in-up {
    animation: slideIn 0.8s forwards ease-out;
    opacity: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Tabs */
.tab-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.tab-button:hover {
    color: #FFD700;
}
.tab-button.tab-active {
    border-bottom: 2px solid #FFD700;
    color: #FFD700;
    font-weight: 600;
}

/* Top Navigation Links */
.nav-link {
    position: relative;
    display: inline-block;
    font-weight: 500;
    padding-bottom: 0.25rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}
.nav-link:hover {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #FFD700, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav-link:hover::after {
    transform: scaleX(1);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.product-item {
    display: flex; 
    flex-direction: column;
}

.product-item.hidden {
    display: none; 
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-grid { 
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem; 
    }
}

@media (max-width: 480px) {
    .product-grid { 
        grid-template-columns: 1fr;
        gap: 2rem; 
    }
}
