/* ===============================================
   MANGO BLOSSOM - MAIN STYLES
   Production-ready, cross-browser compatible
   =============================================== */

:root {
    /* ===== COLORS ===== */
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8A65;
    --secondary-color: #4169E1;
    --accent-color: #FF8C42;
    --dark-color: #1A1A1A;
    --light-color: #FFFFFF;
    --text-color: #2C3E50;
    --muted-text: #6C757D;
    --border-color: #E0E0E0;
    --bg-premium: #FFF8F3;
    --bg-glass: rgba(255, 255, 255, 0.25);
    --bg-glass-dark: rgba(255, 107, 53, 0.1);
    
    /* ===== GRADIENTS ===== */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    --gradient-secondary: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%);
    --gradient-accent: linear-gradient(135deg, #FF8C42 0%, #FFA726 100%);
    --gradient-hero: linear-gradient(135deg, #FF6B35 0%, #4169E1 50%, #FF8C42 100%);
    --gradient-premium: linear-gradient(135deg, #FFF8F3 0%, #FFE5CC 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    
    /* ===== SHADOWS ===== */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 12px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.16);
    --shadow-glass: 0 8px 32px rgba(255, 107, 53, 0.15);
    --shadow-hover: 0 20px 40px rgba(255, 107, 53, 0.25);

    /* ===== SPACING ===== */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* ===== BORDERS & RADIUS ===== */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* ===== TRANSITIONS ===== */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    height: 100%;
    position: relative;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--gradient-premium);
    background-attachment: fixed;
    padding-top: 85px;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;
}

/* Background Pattern (Performance: fixed, z-index: -1) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(65, 105, 225, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 140, 66, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== NAVBAR / HEADER ===== */
.navbar {
    background: rgba(255, 255, 255, 0.35) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-glass);
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 85px;
    z-index: 1030;
    transition: all var(--transition-base);
    contain: layout style paint;
    will-change: backdrop-filter;
}

.navbar.navbar-expand-lg {
    flex-wrap: nowrap;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
}

.navbar:hover {
    box-shadow: var(--shadow-hover);
}

.navbar .navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(255, 107, 53, 0.1);
    flex-shrink: 0;
}

.navbar .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    transition: all var(--transition-base);
    padding: 0.5rem 1.2rem !important;
    border-radius: 25px;
    position: relative;
}

.navbar .nav-link:hover {
    color: var(--primary-color) !important;
    background: var(--bg-glass-dark);
}

.navbar .cart-badge {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Desktop Navigation */
.navbar-collapse-desktop {
    display: flex;
    width: 100%;
    visibility: visible;
    height: auto;
    opacity: 1;
    margin-left: auto;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
}

.navbar-nav.ms-auto {
    margin-left: auto !important;
}

.navbar-nav .nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

/* Mobile Menu Toggle - Premium Glass Button */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    backdrop-filter: blur(8px) saturate(120%);
    width: 52px;
    height: 44px;
    border-radius: 10px;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1033;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    cursor: pointer;
}

.mobile-menu-toggle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(65,105,225,0.06);
    pointer-events: none;
}

.menu-line {
    width: 22px;
    height: 2px;
    display: block;
    background: var(--dark-color);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base), background var(--transition-base);
    transform-origin: center;
}

/* Mobile hamburger FA icon styling to match existing toggle visuals */
.mobile-hamburger {
    font-size: 20px;
    color: var(--dark-color);
    display: inline-block;
    line-height: 1;
    transition: transform var(--transition-base), color var(--transition-base);
}
.mobile-menu-toggle:hover .mobile-hamburger {
    color: var(--primary-color);
}
.mobile-menu-toggle.active .mobile-hamburger {
    transform: rotate(90deg);
}


.mobile-menu-toggle:hover {
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.mobile-menu-toggle.active {
    background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(65,105,225,0.06));
}

.mobile-menu-toggle.active .line1 { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active .line2 { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle.active .line3 { transform: translateY(-8px) rotate(-45deg); }

/* Glass Menu Overlay */
.glass-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1030;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-slow);
}

.glass-menu-overlay.active {
    background: rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 1;
    pointer-events: auto;
}

/* Glass Mobile Menu */

.glass-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.06);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -24px 10px 48px rgba(0, 0, 0, 0.18);
    z-index: 1032;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform var(--transition-slow), opacity var(--transition-fast);
    will-change: transform, opacity;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    padding-bottom: 48px;
}

.glass-mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
}


.glass-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 1;
    backdrop-filter: blur(8px);
}

.glass-menu-header h5 {
    margin: 0;
    font-size: 1.3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Header social icons */
.header-social {
    gap: 8px;
    margin-left: 12px;
}

.header-social .social-link {
    color: var(--dark-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.header-social .social-link:hover {
    background: rgba(255,107,53,0.08);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Desktop: place social icons on the right of the header */
@media (min-width: 992px) {
    /* Place social icons immediately after centered nav links */
    .header-social { display: flex; margin-left: 1rem; gap: 8px; }
    .mobile-menu-toggle { right: 5.25rem; }
}

/* Mobile: hide header social, show inside mobile panel */
@media (max-width: 991.98px) {
    .header-social { display: none !important; }
    .mobile-social-links { display: flex; gap: 8px; }
    .mobile-social-links .social-link { color: #fff; width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.06); }
    .mobile-social-links .social-link:hover { background: rgba(255,107,53,0.12); color: #fff; transform: translateY(-2px); }
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    border-radius: 50%;
}

.mobile-menu-close:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-dark);
}

.glass-menu-content {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
    border-left: 6px solid transparent;
    font-weight: 600;
    font-size: 1.05rem;
}

/* In the glass mobile menu, make nav items white for contrast */
.glass-mobile-menu .mobile-menu-item {
    color: rgba(255,255,255,0.95);
    border-left-color: transparent;
}

.glass-mobile-menu .mobile-menu-item:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
    transform: translateX(6px);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }

    .navbar-collapse-desktop {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        opacity: 0 !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .glass-mobile-menu {
        padding-top: 85px;
    }
}

/* ===== HERO SECTION ===== */

.hero-section {
    /* Full viewport hero (accounts for fixed navbar) */
    background-color: #FF6B35;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8A65 35%, #4169E1 65%, #FF8C42 100%), center/cover no-repeat;
    height: calc(100dvh - 85px);
    min-height: calc(100dvh - 85px);
    padding: 0; /* remove extra vertical padding so it fills viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    z-index: 1;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.25rem, 7.5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: transparent;
    background: linear-gradient(90deg, #FF6B35 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About hero matches home hero styling to fill first viewport */
.about-hero-section {
    height: calc(100dvh - 85px);
    min-height: calc(100dvh - 85px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-position: center;
    background-size: cover;
    padding: 0;
}

.about-hero-section .hero-content { z-index: 2; }

.about-hero-section .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.25rem, 7.5vw, 4rem);
    color: transparent;
    background: linear-gradient(90deg, #FF6B35 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* Dark overlay for about hero to match home hero readability */
.about-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.12) 100%);
    z-index: 1;
}

/* Dark overlay to ensure readable text on any background image */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.12) 100%);
    z-index: 0;
}

.hero-section .hero-content { z-index: 2; }

.hero-buttons {
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== CARDS & CONTAINERS ===== */
.card {
    border: none;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-card .card-img-top {
    height: 280px;
}

.product-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* ===== SECTIONS ===== */
section {
    padding: 4rem 0;
}

.py-5 {
    padding: 3rem 0 !important;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--muted-text);
}

.display-5 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 700;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

/* ===== ANIMATION CLASSES ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp var(--transition-slow) ease;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    section {
        padding: 2.5rem 0;
    }

    .hero-section {
        padding: 3rem 0;
        min-height: 350px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .card {
        box-shadow: var(--shadow-sm);
    }

    .card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    .display-5 {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }

    section {
        padding: 1.5rem 0;
    }

    .hero-section {
        padding: 2rem 0;
        min-height: 250px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .card-img-top {
        height: 200px;
    }

    .display-5 {
        font-size: 1.25rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        padding-top: 0;
        background: white;
    }

    .navbar,
    .mobile-menu-toggle,
    .glass-mobile-menu,
    .glass-menu-overlay,
    footer {
        display: none !important;
    }

    .container {
        max-width: 100%;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    a {
        text-decoration: underline;
    }
}

/* ===== FOOTER STYLES ===== */
footer {
    background: linear-gradient(180deg, #07101a 0%, #06111a 100%);
    color: rgba(230,238,248,0.95);
    padding: 3.5rem 0;
}

footer h5, footer h6 {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 0.75rem;
}

footer p, footer a, footer li {
    color: rgba(230,238,248,0.88);
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.95);
    margin-right: 0.5rem;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

footer .social-links a:hover {
    transform: translateY(-3px);
    background: rgba(255,107,53,0.12);
    color: var(--primary-color);
}

footer .list-unstyled li { margin-bottom: 0.5rem; }

footer .list-unstyled a {
    color: rgba(230,238,248,0.82);
    text-decoration: none;
    transition: color var(--transition-fast);
}

footer .list-unstyled a:hover { color: var(--primary-color); }

/* Make footer columns align neatly */
footer .row > [class*='col-'] {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Bottom links and copyright */
footer .text-md-end a { color: rgba(230,238,248,0.8); margin-left: 0.75rem; }

/* Ensure bottom policy links appear inline on medium+ screens */
@media (min-width: 768px) {
    footer .text-md-end {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 0.75rem;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
    }
    /* Use gap instead of left margins to avoid stacking issues */
    footer .text-md-end a { margin-left: 0 !important; display: inline-block !important; white-space: nowrap !important; }
}

@media (max-width: 767.98px) {
    footer { padding: 2rem 0; }
    /* Center footer content on small screens */
    footer .container .row { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
    footer .row > [class*='col-'] { align-items: center; }
    footer .list-unstyled { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0; }
    footer .list-unstyled li { margin-bottom: 0; }
    footer .social-links { margin-top: 0.5rem; justify-content: center; }
    footer .mobile-social-links { justify-content: center; }
    footer .text-md-end { text-align: center !important; margin-top: 1rem; }
}

