/* ====================================================================
    Bongshal Minimalist Header V2 & Modern Structured Footer
    (Clean, Crisp Light Theme & Responsive Grid)
==================================================================== */

:root {
    --color-brand: #fa4c06;
    --color-brand-hover: #e64300;
    --color-dark: #111111;
    --color-light-bg: #ffffff;
    --color-border: #eaeaea;
    --color-text-muted: #666666;
    
    --font-main: 'Outfit', sans-serif;

    /* Footer vars */
    --footer-bg: #111111;
    --footer-text: #a0a0a0;
    --footer-text-hover: #ffffff;
    --footer-title: #ffffff;
}

body { padding-top: 0 !important; }

/* ---------------- HEADER ---------------- */

/* Top Announcement Bar */
.top-announcement-bar {
    background-color: var(--color-dark);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: var(--font-main);
}
.top-announcement-bar .carousel-item { padding: 8px 0; }

/* Main Header Area */
.site-header {
    background-color: var(--color-light-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1040;
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Logo */
.brand-logo img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}
.brand-logo img:hover { transform: scale(1.02); }

/* Search Bar (Pill Shape) */
.search-wrapper {
    background-color: #f7f7f7;
    border-radius: 50px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    padding: 5px 15px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}
.search-wrapper:focus-within {
    background-color: #fff;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 4px rgba(250,76,6,0.1);
}

.search-wrapper .category-select {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.85rem;
    max-width: 140px;
    cursor: pointer;
    border-right: 1px solid #ddd;
    border-radius: 0;
    padding-right: 10px;
    margin-right: 10px;
}
.search-wrapper .search-input {
    background: transparent;
    border: none;
    box-shadow: none;
    font-family: var(--font-main);
    font-size: 0.95rem;
    padding: 8px 10px;
    width: 100%;
    color: var(--color-dark);
}
.search-wrapper .search-input::placeholder { color: #a0a0a0; font-weight: 400; }
.search-wrapper .search-btn {
    background: transparent;
    border: none;
    color: var(--color-dark);
    font-size: 1.1rem;
    padding: 0 10px;
    transition: color 0.2s;
}
.search-wrapper .search-btn:hover { color: var(--color-brand); }

/* Icons (Right Side) */
.header-icons-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }

.header-icon-link {
    color: var(--color-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: color 0.2s;
}
.header-icon-link:hover { color: var(--color-brand); }
.header-icon-link i { font-size: 1.4rem; }
.header-icon-link span.text-label { font-size: 0.85rem; font-weight: 600; font-family: var(--font-main); display: none; }

.header-icon-link .counter-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--color-brand);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Primary Navigation (Bottom Strip) */
.primary-nav-strip {
    background-color: #fff;
    border-bottom: 1px solid var(--color-border);
}
.primary-nav-strip .nav-link {
    color: var(--color-dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 15px 25px !important;
    transition: color 0.2s;
}
.primary-nav-strip .nav-link:hover, .primary-nav-strip .nav-link.active {
    color: var(--color-brand);
}

/* Mobile Hamburger */
.btn-mobile-menu {
    background: transparent;
    border: none;
    color: var(--color-dark);
    font-size: 1.6rem;
    padding: 0;
    cursor: pointer;
}

/* Offcanvas Styling */
.offcanvas-custom { background-color: #fff; width: 320px; border-right: none; box-shadow: 5px 0 30px rgba(0,0,0,0.1); }
.offcanvas-custom .offcanvas-header { border-bottom: 1px solid #f0f0f0; padding: 20px; }
.offcanvas-nav-link {
    display: flex; align-items: center; gap: 15px; color: var(--color-dark);
    padding: 15px 20px; text-decoration: none; font-weight: 600;
    border-bottom: 1px solid #f9f9f9; transition: background 0.2s;
}
.offcanvas-nav-link:hover { background-color: #fafafa; color: var(--color-brand); }
.offcanvas-nav-link i { font-size: 1.2rem; color: #a0a0a0; width: 20px; text-align: center; }
.offcanvas-nav-link:hover i { color: var(--color-brand); }

/* Breakpoint specific adjustments */
@media (min-width: 992px) {
    .header-icon-link span.text-label { display: block; }
}
@media (max-width: 991px) {
    .brand-logo img { height: 50px; }
    .header-icons-wrap { gap: 15px; }
    .header-icon-link .counter-badge { right: -6px; top: -4px; min-width: 18px; height: 18px; font-size: 0.6rem; }
}

/* ---------------- FOOTER ---------------- */

/* Newsletter Hero */
.newsletter-band {
    background-color: var(--color-brand);
    color: #fff;
    padding: 50px 0;
    text-align: center;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.03) 10px, rgba(0,0,0,0.03) 20px);
}
.newsletter-band h2 { font-weight: 800; font-size: 2.2rem; letter-spacing: -1px; text-transform: uppercase; margin-bottom: 20px; }
.newsletter-band .form-wrap {
    max-width: 500px; margin: 0 auto;
    display: flex; background: #fff; padding: 5px; border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.newsletter-band input {
    border: none; background: transparent; padding: 12px 25px; flex: 1; outline: none;
    font-family: 'Outfit', sans-serif; font-size: 1rem; color: #111;
}
.newsletter-band button {
    background: #111; color: #fff; border: none; padding: 0 35px; border-radius: 40px;
    font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px;
    transition: background 0.2s;
}
.newsletter-band button:hover { background: #333; }

/* Main Footer Structure */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-family: 'Outfit', sans-serif;
    padding-top: 80px;
    position: relative;
    border: none;
}

.site-footer .footer-heading {
    color: var(--footer-title);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-footer .footer-logo { height: 80px; margin-bottom: 25px; opacity: 0.9; }
.site-footer .footer-description { font-size: 0.95rem; line-height: 1.7; margin-bottom: 30px; max-width: 350px; }

/* Links */
.site-footer .footer-link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; }
.site-footer .footer-link-list a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}
.site-footer .footer-link-list a:hover { color: var(--footer-text-hover); transform: translateX(5px); }

/* Contact Details */
.site-footer .footer-contact li { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.site-footer .footer-contact i { color: var(--color-brand); font-size: 1.2rem; margin-top: 4px; }
.site-footer .footer-contact span { font-size: 0.95rem; line-height: 1.5; color: var(--footer-text-hover); }

/* Bottom Status Strip */
.site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 30px 0;
    margin-top: 50px;
    background-color: #0a0a0a;
}
.site-footer-bottom .payment-icons { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.site-footer-bottom .payment-icon {
    height: 30px; background: #fff; padding: 3px 10px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center; opacity: 0.8;
}
.site-footer-bottom .payment-icon img { height: 100%; width: auto; object-fit: contain; }
.site-footer-bottom .payment-icon span { font-size: 0.75rem; font-weight: 800; color: #111; }
.site-footer-bottom .copyright-text { font-size: 0.85rem; margin: 0; color: var(--footer-text); }

/* Social Icons */
.site-footer .social-links { display: flex; gap: 15px; margin-top: 25px; }
.site-footer .social-links a {
    width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--footer-text); transition: all 0.3s; text-decoration: none;
}
.site-footer .social-links a:hover { background: var(--color-brand); color: #fff; border-color: var(--color-brand); transform: translateY(-3px); }

/* Clean Mobile Bottom Nav */
.mobile-app-nav {
    background: #ffffff;
    border-top: 1px solid #eaeaea;
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    display: flex; justify-content: space-around;
    padding: 12px 0 8px; /* Extra padding for phone bezels */
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.mob-nav-link {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: #888; text-decoration: none; font-size: 0.65rem; font-weight: 700; width: 20%;
    position: relative;
    border: none;
}
.mob-nav-link i { font-size: 1.25rem; transition: transform 0.2s; }
.mob-nav-link:hover, .mob-nav-link.active { color: var(--color-brand); }
.mob-nav-link:hover i { transform: translateY(-2px); }
.mob-badge {
    position: absolute; top: -5px; right: 20px;
    background: var(--color-brand); color: #fff; font-size: 0.55rem;
    padding: 1px 5px; border-radius: 10px; border: 2px solid #fff; font-weight: 800;
}

@media (max-width: 991px) {
    .site-footer { padding-bottom: 70px; text-align: center; }
    .site-footer .footer-link-list, .site-footer .footer-contact li { align-items: center; justify-content: center; }
    .site-footer .social-links { justify-content: center; }
    .site-footer-bottom .payment-icons { justify-content: center; margin-top: 20px; }
}

/* ---------------- HERO SLIDER FIXES ---------------- */

/* Remove blue underline from slider anchor wrapper */
.home-slider a {
    text-decoration: none !important;
    display: block;
    color: inherit;
}

.home-slider .item {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 550px;
    display: flex;
    align-items: center;
}

@media (max-width: 991px) {
    .home-slider .item {
        min-height: 400px;
    }
}


/* ==========================================================================
   MODERN DASHBOARD SIDEBAR
   ========================================================================== */
.user-sidebar {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    overflow: hidden !important;
    margin-bottom: 30px !important;
    display: block !important;
}
.user-sidebar-header {
    background: #111111 !important; /* Solid dark background for better contrast */
    padding: 35px 20px !important;
    text-align: center !important;
}
.user-avatar-wrap {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    border: 3px solid #fa4c06 !important;
    overflow: hidden !important;
    margin: 0 auto 15px !important;
    display: block !important;
    background: #fff !important;
}
.user-avatar-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.user-sidebar-header h5 {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    margin-bottom: 6px !important;
    display: block !important;
}
.user-sidebar-header p {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.85rem !important;
    margin: 2px 0 !important;
    display: block !important;
}
.user-sidebar-nav {
    padding: 15px 0 !important;
    background: #fff !important;
}
.user-sidebar-nav .nav-label {
    padding: 15px 25px 10px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: #999 !important;
    display: block !important;
}
.user-sidebar-nav a {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 14px 25px !important;
    color: #444 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border-left: 4px solid transparent !important;
}
.user-sidebar-nav a i {
    width: 20px !important;
    text-align: center !important;
    font-size: 1.1rem !important;
    color: #fa4c06 !important;
}
.user-sidebar-nav a:hover {
    background: rgba(250,76,6,0.05) !important;
    color: #fa4c06 !important;
    border-left-color: #fa4c06 !important;
}
.user-sidebar-nav a.active-link {
    background: rgba(250,76,6,0.08) !important;
    color: #fa4c06 !important;
    border-left-color: #fa4c06 !important;
    font-weight: 700 !important;
}
.user-sidebar-nav a.logout-link {
    color: #e74c3c !important;
    border-top: 1px solid #eee !important;
    margin-top: 10px !important;
}
.user-sidebar-nav a.logout-link i {
    color: #e74c3c !important;
}
.user-sidebar-nav a.logout-link:hover {
    background: rgba(231,76,60,0.05) !important;
}


/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ========================================================================== */

/* ---- General ---- */
@media (max-width: 767px) {
    /* Prevent horizontal scrolling */
    body { overflow-x: hidden; }

    /* Section titles */
    .section-title {
        font-size: 1.6rem !important;
        letter-spacing: -0.5px !important;
    }

    /* Headings inside dark sections */
    h2[style*="font-size:2.2rem"],
    h2[style*="font-size: 2.2rem"] {
        font-size: 1.5rem !important;
    }

    h2[style*="font-size:2rem"],
    h2[style*="font-size: 2rem"] {
        font-size: 1.4rem !important;
    }
}

/* ---- Header ---- */
@media (max-width: 575px) {
    .site-header .container { padding-left: 12px; padding-right: 12px; }
    .brand-logo img { height: 60px !important; }
    .search-wrapper { padding: 4px 10px; }
    .search-wrapper .search-input { font-size: 0.85rem; padding: 6px 6px; }
    .header-icons-wrap { gap: 10px !important; }
}

/* ---- Hero Slider ---- */
@media (max-width: 767px) {
    .home-slider .item {
        min-height: 260px !important;
        background-position: center right !important;
    }
    .home-slider .display-3 {
        font-size: 1.4rem !important;
        margin-bottom: 0.5rem !important;
    }
    .home-slider .lead {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }
    .home-slider .btn-premium {
        padding: 0.5rem 1.5rem !important;
        font-size: 0.85rem !important;
    }
    .home-slider-container { padding-top: 1rem !important; padding-bottom: 1rem !important; }
    /* Darken overlay so text is readable over background image on mobile */
    .home-slider .overlay {
        background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 65%, rgba(0,0,0,0.2) 100%) !important;
    }
}

/* ---- Product Cards (Premium) ---- */
@media (max-width: 767px) {
    /* Shrink fixed-height image area on 2-col mobile grid */
    .product-image-wrap {
        height: 160px !important;
    }

    .product-info-premium {
        padding: 8px !important;
    }

    .product-name-premium {
        font-size: 0.78rem !important;
    }

    .price-premium {
        font-size: 0.95rem !important;
    }

    .old-price-premium {
        font-size: 0.75rem !important;
    }

    .btn-add-cart-premium {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
        margin-top: 6px !important;
    }

    /* Always show action buttons on mobile (can't hover) */
    .premium-actions {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    .action-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.75rem !important;
    }

    .premium-badge {
        font-size: 0.6rem !important;
        padding: 3px 7px !important;
    }
}

/* ---- Category Cards ---- */
@media (max-width: 575px) {
    .category-icon-wrap img {
        width: 55px !important;
        height: 55px !important;
    }
    .glass-card.p-4 {
        padding: 12px !important;
    }
}

/* ---- Staff Pick / Visual Cards ---- */
@media (max-width: 767px) {
    /* The staff pick image cards */
    .card-img-top[style*="height: 300px"],
    img[style*="height: 300px"] {
        height: 180px !important;
        object-fit: cover !important;
    }
}

/* ---- Hot Deals / Category Carousel sections ---- */
@media (max-width: 575px) {
    /* Force 2 columns on very small screens for product grid rows */
    .col-6 { width: 50% !important; }

    /* Carousel inner product items */
    .carousel-item .row [class*="col-md-3"],
    .carousel-item .row [class*="col-lg-3"] {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* ---- Why Choose Us Section ---- */
@media (max-width: 767px) {
    /* Feature cards */
    .feature-card-why {
        padding: 20px 16px !important;
        margin-bottom: 4px;
    }
    .feature-card-why h5 {
        font-size: 1rem !important;
    }
    .feature-card-why p {
        font-size: 0.82rem !important;
    }
    /* Section heading */
    section[style*="0a0a0f"] h2 {
        font-size: 1.4rem !important;
    }
}

/* ---- Stats Section ---- */
@media (max-width: 575px) {
    .stat-number { font-size: 2rem !important; }
}

/* ---- Testimonials ---- */
@media (max-width: 767px) {
    .testi-card {
        padding: 20px !important;
    }
}

/* ---- Newsletter Band ---- */
@media (max-width: 575px) {
    .newsletter-band h2 {
        font-size: 1.35rem !important;
    }
    .newsletter-band .form-wrap {
        flex-direction: column;
        border-radius: 16px !important;
        padding: 10px !important;
        gap: 8px;
    }
    .newsletter-band input {
        padding: 10px 14px !important;
    }
    .newsletter-band button {
        border-radius: 12px !important;
        padding: 10px 20px !important;
        width: 100%;
    }
}

/* ---- Footer ---- */
@media (max-width: 767px) {
    .site-footer { padding-top: 40px; }
    .site-footer .footer-logo { height: 55px !important; }
    .site-footer-bottom { padding: 20px 0; }
    .site-footer-bottom .copyright-text { font-size: 0.78rem; text-align: center; }
    .site-footer-bottom .payment-icons { justify-content: center !important; margin-top: 12px; }
}

/* ---- Mobile Bottom Nav ---- */
/* Ensure page content does not hide behind the fixed bottom nav */
@media (max-width: 991px) {
    .site-footer {
        padding-bottom: 80px !important; /* extra space for mobile nav */
    }
}

/* ---- Product Details Page ---- */
@media (max-width: 767px) {
    /* Related products section */
    .related-products .product-card-v2 .pc-img-wrap {
        height: 140px !important;
    }
    .related-products h3.sec-title {
        font-size: 1.3rem !important;
    }
}

/* ---- Category Products Page ---- */
@media (max-width: 575px) {
    .category-hero {
        padding: 30px 0 !important;
    }
    .category-hero h1 {
        font-size: 1.5rem !important;
    }
}

/* ---- Carousel Controls Visibility ---- */
@media (max-width: 767px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.4);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
    }
    .carousel-control-prev { left: 2px; }
    .carousel-control-next { right: 2px; }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

/* ---- General spacing fixes on mobile ---- */
@media (max-width: 767px) {
    section.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .mb-5 { margin-bottom: 1.5rem !important; }
    .mt-5 { margin-top: 1.5rem !important; }
    .g-4 { --bs-gutter-x: 0.75rem; --bs-gutter-y: 0.75rem; }
}

/* ---- Slick Slider Controls (Orange Theme) ---- */
.slick-prev:before, .slick-next:before {
    color: #fa4c06 !important;
}
.slick-dots li button:before {
    color: #666 !important;
    opacity: 0.5 !important;
}
.slick-dots li.slick-active button:before {
    color: #fa4c06 !important;
    opacity: 1 !important;
}
