/* ========== ULTRA-PREMIUM CLASSY EFFECTS ========== */

/* Elegant Page Transitions */
@keyframes pageEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

body {
    animation: pageEntrance 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Glass Morphism Cards with Shimmer */
.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Luxury Hover Lift */
.product-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.2),
        0 0 60px rgba(211, 19, 19, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
    border-color: rgba(211, 19, 19, 0.3);
}

/* Magnetic Button Effect Enhanced */
.btn {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 20px 45px rgba(211, 19, 19, 0.4),
        0 0 30px rgba(211, 19, 19, 0.2);
    filter: brightness(1.1);
}

/* Smooth Scroll Snap */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Elegant Input Focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow:
        0 0 0 3px rgba(211, 19, 19, 0.1),
        0 8px 20px rgba(211, 19, 19, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Luxurious Link Hover */
a {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    transform: translateX(3px);
    color: var(--primary-red);
}

/* Section Fade-in Stagger */
section {
    animation: sectionFadeIn 1s ease-out backwards;
}

section:nth-child(1) {
    animation-delay: 0.1s;
}

section:nth-child(2) {
    animation-delay: 0.2s;
}

section:nth-child(3) {
    animation-delay: 0.3s;
}

section:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Image Lazy Load */
img {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

img:not([src]) {
    filter: blur(10px);
    transform: scale(1.1);
}

img[src] {
    filter: blur(0);
    transform: scale(1);
}

/* Category Buttons Elegant Hover */
.cat-nav-btn {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-nav-btn:hover,
.cat-nav-btn.active {
    background: linear-gradient(135deg, var(--primary-red), #a00f0f);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 15px 35px rgba(211, 19, 19, 0.3),
        0 0 20px rgba(211, 19, 19, 0.2);
}

/* Sophisticated Retailer Cards */
.retailer-card {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.retailer-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary-red), var(--accent-gold));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
}

.retailer-card:hover::after {
    opacity: 0.2;
}

.retailer-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.18),
        0 0 40px rgba(211, 19, 19, 0.1);
}

/* WhatsApp Float Elegant Pulse */
.whatsapp-float {
    animation: elegantPulse 3s ease-in-out infinite;
}

@keyframes elegantPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    }
}

/* Text Selection Luxury */
::selection {
    background: rgba(211, 19, 19, 0.2);
    color: var(--premium-black);
}

/* Smooth Cursor */
* {
    cursor: default;
}

a,
button,
.btn,
input,
select,
textarea {
    cursor: pointer;
}

/* Hero Title Enhanced */
.hero-title {
    position: relative;
    text-shadow:
        0 0 40px rgba(255, 255, 255, 0.3),
        0 0 80px rgba(211, 19, 19, 0.2);
    animation: heroGlow 4s ease-in-out infinite;
}

@keyframes heroGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.5));
    }
}

/* Navigation Glass Effect */
.site-header {
    backdrop-filter: blur(25px) saturate(180%);
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(200%);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Product Overlay Gradient */
.product-overlay {
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(211, 19, 19, 0.9) 100%);
    backdrop-filter: blur(5px);
}

/* Footer Elegant */
.site-footer {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(26, 26, 26, 0.95));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Search Bar Luxury Focus */
.search-wrapper input:focus {
    box-shadow:
        0 0 0 4px rgba(211, 19, 19, 0.1),
        0 10px 30px rgba(211, 19, 19, 0.2);
    transform: translateY(-2px) scale(1.02);
}

/* Variant Button Elegant */
.variant-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.variant-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-gold));
    opacity: 0;
    transition: opacity 0.3s;
}

.variant-btn:hover::before,
.variant-btn.active::before {
    opacity: 1;
}

.variant-btn span {
    position: relative;
    z-index: 1;
}

.variant-btn.active {
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(211, 19, 19, 0.3);
}

/* Page Header Parallax */
.page-header {
    position: relative;
    transform-style: preserve-3d;
}

.page-header h1 {
    transform: translateZ(30px);
}

.page-header p {
    transform: translateZ(20px);
}

/* Micro-interaction: Scale on Active */
button:active,
.btn:active {
    transform: scale(0.97);
}

/* Loading State */
.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Social Cards Hover */
.social-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.social-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(211, 19, 19, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-card:hover::after {
    opacity: 1;
}

.social-card:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Elegant Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #f0f0f0, #e8e8e8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-red), #a00f0f);
    border-radius: 6px;
    border: 2px solid #f0f0f0;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ff1a1a, var(--primary-red));
}