/* ==========================================================================
   HOUSE OF PAAVANI (HOP): LUXURY WITH SOUL
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Poppins:wght@300;400;500;600&family=Dancing+Script:wght@500&display=swap');

:root {
    /* Paavani's Signature Palette */
    --pearl: #FFF9F9;
    --blush: #FDE2E4;
    --sakura: #FADADD;
    --gold: #D4AF37;
    --coffee: #3D2B1F;
    --ebony: #1A1A1A;
    --white: #FFFFFF;
    
    /* Gradients */
    --grad-paavani: linear-gradient(135deg, #FFF9F9 0%, #FDE2E4 100%);
    --grad-gold: linear-gradient(135deg, #D4AF37 0%, #A68036 100%);
    --grad-soft: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(250,218,221,0.3) 100%);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --font-signature: 'Dancing Script', cursive;

    /* Refined Softness */
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-luxe: 0 15px 45px rgba(253, 226, 228, 0.4);
}

/* Base Style */
body {
    background-color: var(--pearl);
    font-family: var(--font-body);
    color: var(--coffee);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif { 
    font-family: var(--font-heading); 
    font-weight: 700;
    color: var(--coffee);
}

.signature {
    font-family: var(--font-signature);
    color: var(--gold);
    font-size: 24px;
}

/* ==========================================================================
   ULTRA-PREMIUM HEADER & FOOTER (CENTERED LOGO)
   ========================================================================== */

.top-announcement {
    background: var(--grad-gold);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 0;
    text-align: center;
}

/* Segment Switcher (Top Toggle) */
.segment-switcher {
    background: var(--white);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 10px 0;
}

.segment-btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.segment-btn {
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--blush);
    color: var(--coffee);
}

.segment-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.segment-btn.active {
    background: var(--grad-gold);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* Expanded Navigation Styles */
.desktop-nav .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-nav .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-luxe);
    padding: 20px;
    min-width: 250px;
    background: var(--white);
}

.desktop-nav .dropdown-item {
    font-size: 12px;
    font-weight: 600;
    color: var(--coffee);
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(253, 226, 228, 0.3);
}

.desktop-nav .dropdown-item:last-child {
    border-bottom: none;
}

.desktop-nav .dropdown-item:hover {
    background: transparent;
    color: var(--gold);
    padding-left: 5px;
}

header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(212, 175, 55, 0.2);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1020; /* Lower than Bootstrap offcanvas (1040+) */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 80px;
}

.logo-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    width: 150px; /* Constrain width to prevent overlap */
}

.logo-center .logo {
    font-size: 42px !important;
    margin-bottom: 0;
    display: block;
    line-height: 1;
}

.logo-center .tagline {
    font-family: var(--font-signature);
    font-size: 16px;
    color: var(--gold);
    display: block;
    margin-top: -5px;
}

.desktop-nav .nav-link {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0 12px;
    color: var(--coffee);
}

/* Buttons with Gradient & Glow */
.btn-premium {
    background: var(--grad-gold);
    color: var(--white) !important;
    padding: 14px 35px;
    border: none;
    border-radius: 50px; /* Elegant Soft Ellipse */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.15em;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.3);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--coffee);
    border: 1px solid var(--gold);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--blush);
    border-color: var(--blush);
}

/* Boutique Cards: Soft & Dreamy */
.boutique-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(253, 226, 228, 0.5);
}

.boutique-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-luxe);
}

.boutique-thumb {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--grad-paavani);
    position: relative;
}

.boutique-thumb::after {
    content: 'HOP';
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.boutique-card:hover .boutique-thumb::after {
    opacity: 1;
}

.boutique-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.5s ease;
}

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

/* Sweet Gestures Animations */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
    color: var(--gold);
}

/* Custom Carousel Indicators (Gold Lines) */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 40px;
    height: 3px;
    background-color: var(--white);
    opacity: 0.4;
    border-top: none;
    border-bottom: none;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--gold);
    width: 60px;
}

/* Hero Section Polish */
.hero-premium {
    height: 70vh;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: var(--grad-paavani);
}

.hero-title {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(61, 43, 31, 0.7);
}

/* Category Chips */
.cat-chip {
    padding: 12px 28px;
    background: var(--white);
    border: 1px solid var(--blush);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--coffee);
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.cat-chip:hover, .cat-chip.active {
    background: var(--grad-gold);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .hero-title { font-size: 40px; }
    .hero-premium { height: auto; padding: 40px 0; }
    .hero-image-side img { max-height: 300px; }
    
    /* Header & Announcement Optimization */
    .top-announcement { font-size: 8px; padding: 6px 0; letter-spacing: 1px; }
    .segment-switcher { padding: 5px 0; }
    .segment-btn { padding: 6px 15px; font-size: 10px; }
    
    .header-inner { min-height: 60px; }
    .logo-center { width: 100px; } /* Smaller width on mobile */
    .logo-center .logo img { width: 40px !important; height: 40px !important; }
    .logo-center .tagline { font-size: 10px; margin-top: -2px; }
    
    .nav-actions { gap: 15px !important; } /* Reduce gap on mobile */
    .nav-actions .nav-link i { width: 18px; height: 18px; }
    
    /* Category Chips for Mobile */
    .cat-chip { padding: 8px 16px; font-size: 10px; }
}

@media (max-width: 524px) {
    .logo-center { width: 80px; }
    .logo-center .logo img { width: 35px !important; height: 35px !important; }
    .logo-center .tagline { display: none; } /* Hide tagline on very narrow screens */
    .nav-actions { gap: 10px !important; }
}

@media (max-width: 576px) {
    .btn-outline { padding: 8px 12px; font-size: 9px; }
}

/* Horizontal Scroll Utility */
.scroll-x-auto {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding: 5px 0;
}
.scroll-x-auto::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}


/* Form refinement */
.form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--blush);
    padding: 15px;
    font-size: 14px;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(253, 226, 228, 0.5);
    border-color: var(--gold);
}
/* Global Footer Link Reset */
footer a, footer a:visited, footer a:active, footer a:focus {
    color: var(--coffee) !important;
    text-decoration: none !important;
    outline: none !important;
}

footer a:hover {
    color: var(--gold) !important;
}

/* Luxury Newsletter Polish */
.newsletter-wrapper {
    position: relative;
    margin-top: 20px;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    border-bottom: 2px solid var(--blush) !important;
    border-radius: 0 !important;
    padding: 15px 0 !important;
    width: 100%;
    font-size: 14px !important;
    color: var(--coffee) !important;
    transition: var(--transition) !important;
    outline: none !important;
}

.newsletter-input:focus {
    background: transparent !important;
    border-bottom-color: var(--gold) !important;
}

.newsletter-input::placeholder {
    color: var(--coffee);
    opacity: 0.4;
}

.newsletter-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--gold) !important;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px;
    transition: var(--transition);
}

.newsletter-btn:hover {
    color: var(--coffee) !important;
    letter-spacing: 2px;
}

/* ==========================================================================
   MOBILE NAVIGATION & SIDEBAR POLISH
   ========================================================================== */

/* Hamburger Button Alignment */
.hamburger-btn {
    background: transparent;
    border: none;
    color: var(--coffee);
    padding: 10px;
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hamburger-btn:active {
    transform: scale(0.9);
    opacity: 0.7;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 251, 250, 0.9); /* Pearl with opacity */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(61, 43, 31, 0.05);
}

.m-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--coffee);
    opacity: 0.6;
    transition: var(--transition);
    gap: 4px;
    flex: 1;
}

.m-nav-link i, .m-nav-link .lucide {
    transition: transform 0.3s ease;
}

.m-nav-link span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.m-nav-link.active {
    color: var(--gold);
    opacity: 1;
}

.m-nav-link.active i, .m-nav-link.active .lucide {
    transform: translateY(-2px);
}

/* Offcanvas Sidebar Polish */
.offcanvas {
    background-color: var(--pearl);
}

.offcanvas-header {
    padding: 25px 30px;
    background: var(--white);
}

.offcanvas-title {
    font-size: 24px;
    color: var(--coffee);
}

.offcanvas-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Ensure scrollability */
}

.mobile-menu-list {
    list-style: none;
    padding: 20px 25px; /* Reduced padding */
    margin: 0;
}

.mobile-menu-item {
    margin-bottom: 15px; /* Reduced margin */
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.offcanvas.show .mobile-menu-item {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-link {
    text-decoration: none;
    color: var(--coffee);
    font-family: var(--font-heading);
    font-size: 17px; /* Balanced size */
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    padding: 2px 0;
}

.mobile-menu-link:hover {
    color: var(--gold);
    padding-left: 8px;
}

/* Sub-menu / Section Header Styling */
.mobile-menu-list .tiny {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold) !important;
    letter-spacing: 1.5px;
    margin-top: 25px; /* Spacing above section */
    margin-bottom: 10px; /* Spacing below section */
    padding-left: 0 !important;
    display: block;
    position: relative;
}

.mobile-menu-list .tiny::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--gold);
    vertical-align: middle;
    margin-left: 10px;
    opacity: 0.5;
}

.mobile-menu-link i {
    font-size: 12px;
    opacity: 0.3;
}

.menu-divider {
    height: 1px;
    background: linear-gradient(to right, var(--gold), transparent);
    opacity: 0.2;
    margin: 20px 0;
}

.sidebar-footer {
    padding: 20px 25px; /* Reduced padding */
    background: var(--white);
    border-top: 1px solid var(--blush);
}

/* Add padding to body to prevent overlap with bottom nav */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
    }
}

/* Short screen optimization */
@media (max-height: 600px) {
    .mobile-menu-list { padding: 15px 20px; }
    .mobile-menu-item { margin-bottom: 10px; }
    .mobile-menu-link { font-size: 16px; }
    .menu-divider { margin: 10px 0; }
}

