/* 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;
}

/* ==========================================================================
   ORNAMENTAL & DECORATIVE ELEMENTS (PURE CSS)
   ========================================================================== */

/* 1. Subtle Premium Background Texture */
.bg-mandala {
    position: relative;
}
.bg-mandala::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.015;
    pointer-events: none;
    background-image: 
        radial-gradient(#d49010 1px, transparent 1px),
        radial-gradient(#d49010 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    z-index: 0;
}

/* Large Glow/Watermark for Hero & Footer */
.bg-mandala-lg {
    position: relative;
}
.bg-mandala-lg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    opacity: 0.05;
    pointer-events: none;
    background: radial-gradient(circle, #d49010 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(40px);
}

/* 2. Floral Dust Background -> Replaced with Elegant Mesh Glow */
.bg-floral-dust {
    position: relative;
}
.bg-floral-dust::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background: linear-gradient(135deg, transparent 40%, #d49010 50%, transparent 60%);
    background-size: 200% 200%;
    animation: gold-sweep 15s linear infinite;
    z-index: 0;
}
@keyframes gold-sweep {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 3. Ornate Horizontal Divider (Pixel-perfect CSS) */
.ornate-divider {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 1px;
    margin: 3rem auto 4rem auto;
    background: linear-gradient(to right, transparent, rgba(212, 144, 16, 0.4), transparent);
}
.ornate-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background-color: transparent;
    border: 1px solid rgba(212, 144, 16, 0.8);
    box-shadow: inset 0 0 6px rgba(212, 144, 16, 0.2), 0 0 10px rgba(212, 144, 16, 0.1);
}
.ornate-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 4px;
    height: 4px;
    background-color: #d49010;
    box-shadow: 0 0 8px #d49010;
}

/* Light version for dark backgrounds */
.ornate-divider.light {
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
}
.ornate-divider.light::before {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.05), 0 0 10px rgba(255, 255, 255, 0.05);
}
.ornate-divider.light::after {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* 4. Elegant Corner Flourishes (Classic Photo Frame style) */
.corner-flourish {
    position: relative;
}
.corner-flourish::before, .corner-flourish::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.5;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Top Left Corner */
.corner-flourish::before {
    top: 25px;
    left: 25px;
    border-top: 1px solid #d49010;
    border-left: 1px solid #d49010;
}
/* Bottom Right Corner */
.corner-flourish::after {
    bottom: 25px;
    right: 25px;
    border-bottom: 1px solid #d49010;
    border-right: 1px solid #d49010;
}
/* Hover Effect: Frame expands slightly and becomes brighter */
.corner-flourish:hover::before {
    top: 15px;
    left: 15px;
    opacity: 1;
    box-shadow: -5px -5px 15px rgba(212, 144, 16, 0.1);
}
.corner-flourish:hover::after {
    bottom: 15px;
    right: 15px;
    opacity: 1;
    box-shadow: 5px 5px 15px rgba(212, 144, 16, 0.1);
}

/* 5. Ornate Subtitle Flanks */
.ornate-subtitle-flank {
    display: inline-block;
    width: 60px;
    height: 1px;
    position: relative;
    vertical-align: middle;
}
.ornate-subtitle-flank.left {
    background: linear-gradient(to right, transparent, rgba(212, 144, 16, 0.6));
    margin-right: 12px;
}
.ornate-subtitle-flank.left::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-left: 1px solid #d49010;
    border-bottom: 1px solid #d49010;
}
.ornate-subtitle-flank.left::before {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: #d49010;
}
.ornate-subtitle-flank.right {
    background: linear-gradient(to left, transparent, rgba(212, 144, 16, 0.6));
    margin-left: 12px;
}
.ornate-subtitle-flank.right::after {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-right: 1px solid #d49010;
    border-top: 1px solid #d49010;
}
.ornate-subtitle-flank.right::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: #d49010;
}

/* 6. Hero Grid Overlay (Entry Animation) */
.grid-overlay {
    display: grid;
    /* Grid structure will be injected via JS */
}
.grid-cell {
    background-color: #0f0a06; /* Match site background */
    border: 1px solid rgba(212, 144, 16, 0.05); /* Subtle gold border */
    width: 100%;
    height: 100%;
    position: relative;
    transform-origin: center center;
}

/* 7. Fiery Text Effect */
.fire-text {
    background: linear-gradient(to top, #e04f16, #d49010); /* brand-red to brand-gold */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 0px 20px rgba(224, 79, 22, 0.5));
}

/* 8. Form Page Enhancements */
/* Fix relative positioning for form overlays */
.form-wrapper,
[id="dynamicForm"] {
    position: relative;
}

/* Style native select options for a cleaner look */
select option {
    font-family: 'Inter', 'Outfit', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    color: #1e293b;
    background: #fff;
}
select option:checked,
select option:hover {
    background: #991B1B;
    color: #fff;
}

/* Consistent focus border transition for underline inputs */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-bottom-color: #991B1B !important;
    transition: border-color 0.3s ease;
}

/* Select dropdown custom chevron animation */
.group select + div svg {
    transition: transform 0.3s ease;
}
.group select:focus + div svg {
    transform: rotate(180deg);
    color: #991B1B;
}

