/* Traditional Indian Heritage Theme for Swanara Store */

/* Remove all spacing between nav and hero section */
body {
    margin: 0;
    padding: 0;
}

main {
    margin: 0 !important;
    padding: 0 !important;
}

.hero-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure no gap between navigation and content */
.navbar {
    margin-bottom: 0 !important;
}

.container-fluid {
    padding: 0 !important;
}

/* Mobile navigation layout */
@media (max-width: 991.98px) {
    .navbar {
        padding: 1rem 1rem !important;
        min-height: 90px !important;
    }
    
    /* Mobile hero section spacing */
    .hero-section {
        margin-top: 0px !important;
        padding-top: 5px !important;
    }
    
    .navbar-toggler {
        border: none !important;
        padding: 0.5rem !important;
    }
}

/* Mobile Slide-out Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1050;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-sidebar.show {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    background: var(--primary-color);
    color: white;
}

.mobile-menu-header .btn-close {
    filter: invert(1);
}

.mobile-menu-content {
    padding: 0;
}

.mobile-menu-item {
    display: block;
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-menu-divider {
    height: 1px;
    background: #dee2e6;
    margin: 0.5rem 0;
}

/* Site Header - Clean Navigation */
.site-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Desktop Navigation */
.desktop-nav .top-bar a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.desktop-nav .top-bar a:hover {
    color: var(--primary-color);
}

.main-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    display: inline-block;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-nav-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Mobile Navigation */
.mobile-nav {
    background: white;
    border-bottom: 1px solid var(--border-color);
}

/* Logo Styling */
.logo-image {
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-section {
    background: white;
}

/* Hindi Font Support */
.hindi-text, .collection-name-hindi {
    font-family: 'Noto Sans Devanagari', 'Source Sans Pro', sans-serif;
    font-weight: 500;
}

/* Ensure products section has proper spacing */
.featured-treasures {
    margin-top: 0 !important;
    padding-top: 3rem !important;
}

:root {
    /* Traditional Indian Color Palette */
    --primary-color: #8B0000; /* Deep Maroon/Crimson - Traditional Royal Color */
    --primary-dark: #660000; /* Darker Maroon */
    --primary-light: #B22222; /* Lighter Crimson */
    --secondary-color: #FFD700; /* Traditional Gold */
    --secondary-dark: #DAA520; /* Darker Gold */
    --secondary-light: #FFEF94; /* Lighter Gold */
    
    /* Traditional Indian Accent Colors */
    --accent-saffron: #FF9933; /* Saffron Orange */
    --accent-emerald: #228B22; /* Emerald Green */
    --accent-royal-red: #8B0000; /* Deep Red instead of blue */
    --accent-terracotta: #CD853F; /* Peru/Terracotta */
    --accent-marigold: #FF8C00; /* Dark Orange/Marigold */
    --accent-peacock: #005A5B; /* Deep Teal/Peacock */
    --accent-vermillion: #E34234; /* Vermillion Red */
    
    /* Background Colors - Lighter with Texture */
    --bg-primary: #FFFEF7; /* Very Light Cream */
    --bg-secondary: #FEFCF0; /* Ultra Light Beige */
    --bg-accent: #FDF8F0; /* Light Warm White */
    --bg-dark: #2F1B14; /* Dark Brown */
    --bg-pattern: #FEFBF3; /* Very Light Linen */
    --bg-gold-light: #FFFEF9; /* Ultra Light Goldenrod */
    
    /* Text Colors */
    --text-primary: #2F1B14; /* Dark Brown */
    --text-secondary: #5D4037; /* Medium Brown */
    --text-muted: #8D6E63; /* Light Brown */
    --text-light: #FFF8DC; /* Cream */
    --text-gold: #B8860B; /* Dark Goldenrod */
    --text-white: #FFFFFF; /* Pure White */
    
    /* Border and Divider Colors */
    --border-color: #DEB887; /* Burlywood */
    --border-gold: #DAA520; /* Goldenrod */
    --border-dark: #5D4037; /* Medium Brown */
    --border-light: #F4A460; /* Sandy Brown */
    
    /* Status Colors - Indian Inspired */
    --success-color: #228B22; /* Forest Green */
    --warning-color: #FF8C00; /* Dark Orange */
    --error-color: #DC143C; /* Crimson */
    --info-color: #8B0000; /* Dark Red instead of blue */
    
    /* Shadow and Elevation - Warmer tones */
    --shadow-sm: 0 1px 2px 0 rgba(47, 27, 20, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(47, 27, 20, 0.15), 0 2px 4px -1px rgba(47, 27, 20, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(47, 27, 20, 0.15), 0 4px 6px -2px rgba(47, 27, 20, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(47, 27, 20, 0.15), 0 10px 10px -5px rgba(47, 27, 20, 0.08);
    --shadow-gold: 0 4px 8px 0 rgba(218, 165, 32, 0.3);
    --shadow-warm: 0 2px 8px rgba(139, 0, 0, 0.15);
    
    /* Traditional Indian Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-gold: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    --gradient-sunset: linear-gradient(135deg, var(--accent-saffron) 0%, var(--accent-marigold) 100%);
    --gradient-royal: linear-gradient(135deg, var(--accent-royal-red) 0%, var(--primary-color) 100%);
    --gradient-warm: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --gradient-peacock: linear-gradient(135deg, var(--accent-peacock) 0%, var(--accent-emerald) 100%);
    --gradient-heritage: linear-gradient(45deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-saffron) 100%);
    
    /* Traditional Pattern Colors */
    --pattern-gold: rgba(255, 215, 0, 0.1);
    --pattern-maroon: rgba(139, 0, 0, 0.05);
    --pattern-saffron: rgba(255, 153, 51, 0.1);
    
    /* Font Variables */
    --font-primary: 'Playfair Display', 'Georgia', serif; /* Elegant serif for headings */
    --font-secondary: 'Source Sans Pro', 'Arial', sans-serif; /* Clean sans-serif for body */
    --font-accent: 'Dancing Script', cursive; /* Script font for special text */
}

/* Global Body Styling with Texture */
body {
    font-family: var(--font-secondary);
    background: var(--bg-primary);
    background-image: 
        /* Subtle textile texture */
        linear-gradient(45deg, rgba(139, 0, 0, 0.03) 25%, transparent 25%), 
        linear-gradient(-45deg, rgba(139, 0, 0, 0.03) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, rgba(255, 215, 0, 0.03) 75%), 
        linear-gradient(-45deg, transparent 75%, rgba(255, 215, 0, 0.03) 75%),
        /* Soft patterns */
        radial-gradient(circle at 20% 50%, var(--pattern-gold) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, var(--pattern-saffron) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, var(--pattern-maroon) 0%, transparent 40%);
    background-size: 20px 20px, 20px 20px, 20px 20px, 20px 20px, 100% 100%, 100% 100%, 100% 100%;
    color: var(--text-primary);
    line-height: 1.6;
    background-attachment: fixed;
}

/* Traditional Indian Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--text-primary);
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-heritage);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.script-text {
    font-family: var(--font-accent);
    color: var(--text-gold);
}

/* Navigation Styling - Traditional */
.navbar {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-gold-light) 100%);
    border-bottom: 3px solid var(--border-gold);
    box-shadow: var(--shadow-warm);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(218, 165, 32, 0.3);
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Button Styling - Traditional Indian */
.btn-primary {
    background: var(--gradient-primary);
    border: 2px solid var(--primary-color);
    color: var(--text-white);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-warm);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--gradient-gold);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background: var(--gradient-gold);
    border: 2px solid var(--secondary-color);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--gradient-sunset);
    border-color: var(--accent-saffron);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-warm);
}

/* Card Styling - Traditional Elements */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-heritage);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-gold);
}

.card-header {
    background: var(--gradient-warm);
    border-bottom: 2px solid var(--border-gold);
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-primary);
}

/* Product Card Styling */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-heritage);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.product-card .card-img-top {
    transition: transform 0.4s ease;
    border-radius: 15px 15px 0 0;
}

.product-card:hover .card-img-top {
    transform: scale(1.1);
}

/* Price Styling */
.price-section {
    padding: 1rem;
    background: var(--bg-gold-light);
    border-radius: 8px;
    border: 1px solid var(--border-gold);
    margin: 1rem 0;
}

.price-current {
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.price-original {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.1rem;
}

/* Badge Styling - Traditional */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.badge-traditional {
    background: var(--gradient-gold);
    color: var(--text-primary);
    border: 1px solid var(--secondary-color);
}

.badge-royal {
    background: var(--gradient-royal);
    color: var(--text-white);
}

.badge-success {
    background: var(--success-color);
    color: var(--text-white);
}

.badge-warning {
    background: var(--warning-color);
    color: var(--text-white);
}

/* Form Styling - Traditional */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(218, 165, 32, 0.25);
    background: var(--bg-gold-light);
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Alert Styling - Traditional */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(34, 139, 34, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-warning {
    background: rgba(255, 140, 0, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-danger {
    background: rgba(220, 20, 60, 0.1);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.alert-info {
    background: rgba(139, 0, 0, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Footer Styling - Traditional */
.footer {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    position: relative;
}

.footer-logo {
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    transform: scale(1.05);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-heritage);
}

.footer h5 {
    color: var(--secondary-color);
    font-family: var(--font-primary);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

/* Traditional Decorative Elements */
.decorative-border {
    border: 2px solid var(--border-gold);
    border-image: linear-gradient(45deg, var(--secondary-color), var(--accent-saffron), var(--secondary-color)) 1;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    background: var(--bg-gold-light);
}

.traditional-divider {
    height: 3px;
    background: var(--gradient-heritage);
    margin: 2rem 0;
    border-radius: 2px;
}

/* Loading and Animation Effects */
@keyframes traditionalglow {
    0%, 100% { box-shadow: 0 0 5px var(--secondary-color); }
    50% { box-shadow: 0 0 20px var(--secondary-color), 0 0 30px var(--secondary-color); }
}

.traditional-glow {
    animation: traditionalglow 2s ease-in-out infinite;
}

/* Floating Swan Elements - Enhanced Visibility */
.floating-swan-left, .floating-swan-right {
    position: fixed;
    width: 100px;
    height: 100px;
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
    filter: drop-shadow(3px 3px 6px rgba(139, 0, 0, 0.4));
}

.floating-swan-left {
    left: 8%;
    bottom: 15%;
    animation: floatLeft 8s ease-in-out infinite;
    transform: scaleX(-1); /* Mirror the left swan */
}

.floating-swan-right {
    right: 8%;
    bottom: 15%;
    animation: floatRight 8s ease-in-out infinite reverse;
}

@keyframes floatLeft {
    0%, 100% {
        transform: scaleX(-1) translateY(0px) rotate(-5deg);
    }
    50% {
        transform: scaleX(-1) translateY(-20px) rotate(5deg);
    }
}

@keyframes floatRight {
    0%, 100% {
        transform: translateY(0px) rotate(5deg);
    }
    50% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

/* Swan hover effects */
.floating-swan-left:hover, .floating-swan-right:hover {
    opacity: 0.9;
    transform: scale(1.1);
    filter: drop-shadow(4px 4px 8px rgba(139, 0, 0, 0.5));
}

/* Ensure swans don't interfere with clickable elements */
.floating-swan-left, .floating-swan-right {
    pointer-events: none;
}

/* Add traditional glow effect to swans */
.floating-swan-left, .floating-swan-right {
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Hero Section Styling */
.hero-section {
    background: var(--gradient-warm);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, var(--pattern-gold) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--pattern-saffron) 0%, transparent 50%);
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .gradient-text {
        font-size: 1.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .hero-section {
        padding: 0.5rem 0;
        margin-top: 0px !important;
        padding-top: 5px !important;
    }
    
    /* Mobile navigation improvements */
    .mobile-nav {
        background: white;
        border-bottom: 1px solid #dee2e6;
        min-height: 80px;
    }
    
    .mobile-nav .container-fluid {
        min-height: 80px;
        display: flex;
        align-items: center;
    }
    
    /* Mobile swan positioning - larger and more visible */
    .floating-swan-left, .floating-swan-right {
        width: 80px;
        height: 80px;
        opacity: 0.8;
    }
    
    .floating-swan-left {
        left: 10%;
        bottom: 20%;
    }
    
    .floating-swan-right {
        right: 10%;
        bottom: 20%;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #FFFF00;
        --text-primary: #000000;
        --bg-primary: #FFFFFF;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .navbar, .footer {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}