/* Elite Supplements - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0f;
    color: #fff;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #12121a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c3aed, #4c1d95);
    border-radius: 3px;
}

/* Glass Effect */
.glass {
    background: rgba(30, 27, 75, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

/* Glows */
.glow {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}
.glow-sm {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #a78bfa, #7c3aed, #5b21b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient Border */
.gradient-border {
    position: relative;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, #7c3aed, #4c1d95, #2e1065);
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Animations */
.float {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.6); }
}

.slide-up {
    animation: slideUp 0.6s ease-out forwards;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3D Card Effect */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s;
}
.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
}

/* Shimmer */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Background Mesh */
.bg-mesh {
    background-image: 
        radial-gradient(at 40% 20%, rgba(139, 92, 246, 0.15) 0, transparent 50%),
        radial-gradient(at 80% 0%, rgba(76, 29, 149, 0.2) 0, transparent 50%),
        radial-gradient(at 0% 50%, rgba(46, 16, 101, 0.15) 0, transparent 50%),
        radial-gradient(at 80% 50%, rgba(139, 92, 246, 0.1) 0, transparent 50%),
        radial-gradient(at 0% 100%, rgba(76, 29, 149, 0.15) 0, transparent 50%);
}

/* Line Clamp */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Toast Animation */
.toast-enter {
    animation: toastIn 0.3s ease forwards;
}
@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Product Card Hover */
.product-card:hover .product-image img {
    transform: scale(1.1);
}
.product-image {
    overflow: hidden;
}
.product-image img {
    transition: transform 0.5s ease;
}

/* Loading Spinner */
.spinner {
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
