/* Premium Glassmorphism & Custom Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(153, 27, 27, 0.05);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.text-glow {
    text-shadow: 0 0 20px rgba(21, 76, 121, 0.25);
}

.hover-lift {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(153, 27, 27, 0.15);
}

/* Attractive Nav Link Underline */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e61e2d; /* brand-red */
    border-radius: 9999px;
    transition: all 0.3s ease-out;
    box-shadow: 0 2px 4px rgba(153, 27, 27, 0.1);
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link.active::after {
    width: 100%;
    background-color: rgba(153, 27, 27, 0.5);
}

/* Product Gallery Utilities */
.aspect-product {
    aspect-ratio: 3 / 4;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.thumbnail-active {
    border-color: #e61e2d;
    box-shadow: 0 0 0 4px rgba(153, 27, 27, 0.2);
    opacity: 1;
    transform: scale(1.05);
}
.thumbnail-inactive {
    border-color: #f1f5f9;
    opacity: 0.6;
    transition: all 0.3s ease;
}
.thumbnail-inactive:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Premium Form Utilities */
.floating-input {
    display: block;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    color: #e61e2d;
    background-color: transparent;
    border: 0;
    border-bottom: 2px solid #e2e8f0;
    appearance: none;
    transition: border-color 0.3s ease;
}
.floating-input:focus {
    outline: none;
    box-shadow: none;
    border-color: #e61e2d;
}

.floating-label {
    position: absolute;
    font-size: 12px;
    color: #94a3b8;
    transition: all 0.3s ease;
    transform: translateY(0) scale(1);
    top: 0.875rem;
    z-index: -10;
    transform-origin: left center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: none;
}
.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    font-weight: 700;
    transform: translateY(-1.5rem) scale(0.9);
    color: #e61e2d;
}

/* Base styles */
body {
    background-color: #faf9f6; /* Premium off-white / cream background */
}

/* Subtle image overlay to blend with light background */
.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #faf9f6 0%, transparent 40%), linear-gradient(to right, #faf9f6 0%, transparent 50%);
}

.img-overlay-full {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(250, 249, 246, 0.8) 100%);
}

#main-header.header-scrolled > div:first-child {
    height: 4rem; /* h-16 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    max-width: 100% !important;
}

/* Fade in effects for scroll */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf9f6;
}
::-webkit-scrollbar-thumb {
    background: #c8cace;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e61e2d; /* Brand Blue */
}

/* Vertical News Ticker Animation */
.ticker-container {
    overflow: hidden; 
    height: 100%;
}
.ticker-content {
    display: flex;
    flex-direction: column;
    animation: ticker-vertical 20s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.ticker-content:hover {
    animation-play-state: paused;
}
.ticker-item {
    height: 40px; /* Matches h-10 */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}
@keyframes ticker-vertical {
    0%, 30% { transform: translateY(0); }
    33%, 63% { transform: translateY(-40px); }
    66%, 96% { transform: translateY(-80px); }
    100% { transform: translateY(-120px); }
}

/* Primary Button Hover Shimmer */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}
.btn-primary:hover::after {
    left: 150%;
}

/* Custom Category Checkbox */
.custom-checkbox {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border-width: 2px;
    border-color: #e2e8f0;
    border-radius: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}
.custom-checkbox:checked {
    background-color: #e61e2d;
    border-color: #e61e2d;
}
.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.filter-item-active {
    color: #e61e2d;
    font-weight: 700;
    border-left-width: 2px;
    border-color: #e61e2d;
    padding-left: 0.75rem;
    margin-left: -2px;
}

.filter-item-inactive {
    color: #64748b;
    transition: color 0.2s;
    border-left-width: 2px;
    border-color: transparent;
    padding-left: 0.75rem;
    margin-left: -2px;
}
.filter-item-inactive:hover {
    color: #e61e2d;
    background: rgba(153, 27, 27, 0.03);
    border-radius: 6px;
}

/* Micro-animations */
@keyframes heart-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.animate-heart:hover svg {
    animation: heart-pulse 0.6s ease-in-out infinite;
    color: #ef4444;
}

.shimmer-fast {
    position: relative;
    overflow: hidden;
}

.shimmer-fast::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer-fast-anim 2s infinite;
}

@keyframes shimmer-fast-anim {
    100% { transform: translateX(100%); }
}

/* Luxury Mega Menu Enhancements */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}
.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer-swipe 4s infinite;
}

@keyframes shimmer-swipe {
    0% { transform: translateX(-100%) rotate(45deg); }
    30% { transform: translateX(100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.mega-menu-container {
    box-shadow: 
        0 25px 60px -12px rgba(153, 27, 27, 0.15),
        0 0 0 1px rgba(153, 27, 27, 0.04);
}

/* Ensure sticky header keeps mega menu accessible */
#main-header {
    isolation: isolate;
}

/* Moving Gradient Animation */
@keyframes gradient-x {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient-x {
    animation: gradient-x 3s ease infinite;
}
