/* HeeraHut - Navigation & Spacing Fixes */

/* Fix header spacing issues */
.top-bar {
    margin: 0;
    padding: 0.5rem 0;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove extra spacing after navigation */
body > main {
    margin-top: 0 !important;
}

.container:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure hero slider starts right after header */
.hero-slider {
    margin-top: 0 !important;
}

/* Products page spacing */
.products-page {
    padding-top: 0 !important;
}

.products-hero {
    margin-top: 0 !important;
}

/* Product detail page spacing */
.product-detail-page {
    padding-top: 2rem !important;
}

/* Mobile navigation improvements */
@media (max-width: 992px) {
    .mobile-nav {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        display: none;
    }
    
    .mobile-nav.active {
        display: flex;
        flex-direction: column;
        transform: translateY(0);
    }
    
    .mobile-nav a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--slate-200);
        transition: background 0.2s;
    }
    
    .mobile-nav a:hover,
    .mobile-nav a.active {
        background: var(--gold-light);
        color: var(--gold);
    }
}

/* Responsive improvements for all pages */
@media (max-width: 768px) {
    /* Reduce header size on mobile */
    .top-bar {
        font-size: 0.8125rem;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    /* Ensure proper spacing on mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    /* Ultra-mobile optimization */
    .top-bar {
        display: none; /* Hide top bar on very small screens */
    }
    
    .header-actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Fix any potential spacing issues globally */
* + * {
    margin-top: 0;
}

section {
    margin-bottom: 0 !important;
}

section + section {
    margin-top: 0 !important;
}

/* Smooth transitions for responsive changes */
@media (prefers-reduced-motion: no-preference) {
    * {
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
}
