/* ============================================================
   JAVIK — GOLD CUSTOM OVERRIDES
   Sections: Banner · Filter Sidebar · Section Titles · Cards · Mobile · Header
   ============================================================ */

:root,
body {
    --theme-color: #d4a017;
    --theme-color-rgb: 212, 160, 23;
    --theme-color2: #111111;
    --javik-gold: #d4a017;
    --javik-gold-dark: #9f7410;
    --javik-gold-light: #fff4d7;
    --javik-black: #111111;
    --javik-ink: #1a1a1a;
}

.theme-color {
    color: var(--javik-gold) !important;
}

.theme-bg-color,
.bg-theme,
.btn-animation,
.btn-md.bg-dark.cart-button {
    background: linear-gradient(135deg, #e9bd43 0%, #b88510 100%) !important;
    border-color: #b88510 !important;
    color: #111 !important;
}

.btn-animation:hover,
.theme-bg-color:hover,
.btn-md.bg-dark.cart-button:hover {
    background: linear-gradient(135deg, #f3cd5a 0%, #a8770e 100%) !important;
    color: #111 !important;
}

.header-top {
    background: linear-gradient(90deg, #111 0%, #3b2a05 45%, #d4a017 100%) !important;
}

.header-top .text-white,
.header-top h6,
.header-top a {
    color: #fff8e1 !important;
}

.navbar-top .web-logo img,
footer img[alt="Javik India"],
.nav-logo img {
    max-height: 64px;
    width: auto;
    object-fit: contain;
}

.javik-brand-logo {
    display: inline-block;
    max-width: 190px;
}

.javik-logo-fallback {
    display: none;
    align-items: center;
    min-height: 42px;
    color: var(--javik-gold-dark);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.header-nav .dropdown-category {
    background: linear-gradient(135deg, #e7b93d 0%, #b88510 100%) !important;
    color: #111 !important;
    border: 0 !important;
}

.header-nav .dropdown-category svg,
.header-nav .dropdown-category i,
.header-nav .dropdown-category span {
    color: #111 !important;
}

.header-nav .deal-button {
    background: rgba(212, 160, 23, 0.12) !important;
    color: #9f7410 !important;
}

.header-nav .deal-button svg {
    color: #d4a017 !important;
}

.search-box .input-group button,
.search-full .input-group .input-group-text {
    background: linear-gradient(135deg, #e9bd43 0%, #b88510 100%) !important;
    border-color: #b88510 !important;
    color: #111 !important;
}

.right-side-menu .badge,
.cart-badge {
    background: #d4a017 !important;
    color: #111 !important;
}

.category-list .cat-icon-fallback,
.cat-icon-fallback,
.cat-icon-lg {
    background: rgba(212, 160, 23, 0.14) !important;
}

.cat-icon-fallback i,
.cat-icon-lg i {
    color: #d4a017 !important;
}

.title h2::before,
.title h2::after,
.section-title h2::before,
.section-title h2::after {
    background-color: #d4a017 !important;
}

.slick-dots li.slick-active button,
.slick-dots li button:before,
.slider-dots .slick-active {
    background-color: #d4a017 !important;
}

a:hover,
.navbar-nav .nav-link:hover,
.breadcrumb .breadcrumb-item a,
.product-box-3 .product-footer .price span,
.product-box-4 .product-detail .price,
.price .theme-color,
.current-price {
    color: #d4a017 !important;
}

/* --------------------------------------------------------
   0. FILTER SIDEBAR + OFFCANVAS
   -------------------------------------------------------- */

/* Mobile Filter Button */
.btn-filter-mobile {
    background: var(--theme-color, #d4a017);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-filter-mobile:hover,
.btn-filter-mobile:active {
    background: color-mix(in srgb, var(--theme-color, #d4a017) 85%, black);
    color: #fff;
}

/* Offcanvas filter drawer */
.filter-offcanvas {
    width: 300px !important;
    max-width: 90vw;
}

.filter-offcanvas .offcanvas-header {
    background: #fff;
    padding: 16px 18px;
}

.filter-offcanvas .offcanvas-body {
    padding: 0;
    overflow-y: auto;
}

/* Filter sidebar shared */
.filter-sidebar-inner .accordion-button {
    background: transparent !important;
    box-shadow: none !important;
    color: #1a1a2e;
    font-size: 14px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.filter-sidebar-inner .accordion-button:not(.collapsed) {
    color: var(--theme-color, #d4a017);
}

.filter-sidebar-inner .form-control-sm {
    font-size: 13px;
}

/* Active filter chips */
.active-filters .badge {
    font-size: 12px;
    padding: 5px 10px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.active-filters .badge:hover {
    opacity: 0.8;
}

/* Desktop sidebar sticky */
@media (min-width: 992px) {
    .shop-left-sidebar {
        position: sticky;
        top: 80px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
}

/* Toolbar layout */
.show-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f0ece6;
    margin-bottom: 16px;
}

.top-filter-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-filter-menu .grid-option p {
    margin: 0;
    font-size: 13px;
    color: #888;
}

/* Product header-top badge */
.product-header-top {
    padding: 8px 10px 0;
}

/* ============================================================
   Order: Banner/Slider → Section Titles → Product Grid → Mobile
   ============================================================ */

/* --------------------------------------------------------
   1. BANNER / SLIDER — image-first, conditional overlay
   -------------------------------------------------------- */

.home-section {
    padding: 0;
    margin-bottom: 32px;
    overflow: hidden;
}

/* Banner section wrapper — never overflow viewport */
.home-section .container-fluid-lg {
    overflow: hidden;
    max-width: 100%;
}

/* Card wrapper — aspect-ratio drives height, width is always 100% */
.banner-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #eee;
    aspect-ratio: 8 / 3;
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

/* Right-column cards are taller */
.banner-card-sm {
    aspect-ratio: 4 / 3;
}

/* Image fills the card exactly */
.banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.banner-card:hover .banner-img {
    transform: scale(1.03);
}

/* Gradient — only present when .has-overlay is on the card */
.banner-card.has-overlay .banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.25) 45%,
        rgba(0, 0, 0, 0.00) 72%
    );
    z-index: 1;
}

/* Text content */
.banner-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 40px;
    max-width: 55%;
}

.banner-card-sm .banner-content {
    padding: 16px 22px;
    max-width: 75%;
}

/* Offer badge */
.banner-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    color: #fff;
    margin-bottom: 10px;
    width: fit-content;
}

/* Subtitle */
.banner-sub {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.94);
    margin: 0 0 8px;
    line-height: 1.45;
}

.banner-card-sm .banner-sub {
    font-size: 13px;
}

/* Description */
.banner-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.80);
    margin: 0 0 14px;
    line-height: 1.5;
}

/* CTA button */
.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #1a1a2e;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 22px;
    border-radius: 6px;
    text-decoration: none;
    width: fit-content;
    transition: background 0.2s, color 0.2s, transform 0.18s;
    box-shadow: 0 3px 12px rgba(0,0,0,0.20);
}

.banner-btn:hover {
    background: var(--theme-color, #d4a017);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.banner-btn-sm {
    font-size: 12px;
    padding: 7px 16px;
}

/* Tablet — slightly taller ratio so content isn't too squished */
@media (max-width: 1199px) and (min-width: 768px) {
    .banner-card:not(.banner-card-sm) {
        aspect-ratio: 16 / 6;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .banner-card {
        aspect-ratio: 8 / 3;
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
    }
    .banner-card-sm {
        aspect-ratio: 4 / 3;
        border-radius: 10px;
    }
    .banner-content {
        padding: 14px 18px;
        max-width: 70%;
    }
    .banner-sub { font-size: 12px; }
    .banner-btn { font-size: 11px; padding: 7px 14px; }
    .banner-row { gap: 8px 0; }
}

/* ── Hero Swiper specific ── */

/* Swiper fills its container — aspect-ratio comes from .banner-card parent class */
.hero-swiper {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 14px;
    overflow: hidden;
}

/* Each slide fills the swiper */
.hero-swiper .swiper-slide,
.hero-swiper .banner-slide {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Navigation arrows */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.90);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    transition: background 0.2s, transform 0.2s;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    background: #fff;
    transform: scale(1.08);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 14px;
    font-weight: 800;
    color: #1a1a2e;
}

/* Pagination dots */
.hero-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.55);
    opacity: 1;
    transition: all 0.25s;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* Mobile swiper */
@media (max-width: 767px) {
    .hero-swiper {
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
    }
    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next {
        width: 30px;
        height: 30px;
    }
    .hero-swiper .swiper-button-prev::after,
    .hero-swiper .swiper-button-next::after {
        font-size: 11px;
    }
}

/* --------------------------------------------------------
   3. SECTION TITLE — clean, no vegetable leaf decorations
   -------------------------------------------------------- */
.title h2,
.title-flex h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #1a1a2e;
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
}

.title h2::after,
.title-flex h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--theme-color, #d4a017);
    border-radius: 2px;
    margin-top: 6px;
}

.title p,
.title-flex p {
    color: #666;
    font-size: 14px;
    margin-top: 4px;
    margin-bottom: 0;
}

/* Hide any leftover leaf SVGs if they slip through */
.title-leaf {
    display: none !important;
}

/* --------------------------------------------------------
   4. PRODUCT CARDS — jewellery-appropriate polish
   -------------------------------------------------------- */
.product-box,
.product-box-3 {
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    background: #fff;
    border: 1px solid #f0ece6;
}

.product-box:hover,
.product-box-3:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
    transform: translateY(-3px);
}

.product-box .product-image img,
.product-box-3 .product-image img {
    object-fit: contain;
    background: #fafafa;
}

/* --------------------------------------------------------
   5. MOBILE — fix overflow glitch & bottom nav spacing
   -------------------------------------------------------- */

/* Prevent horizontal scroll glitch on all viewports */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Fix body padding so content isn't hidden behind fixed bottom nav */
@media (max-width: 767px) {
    body {
        padding-bottom: 70px;
    }

    /* Banner stacks on mobile: full width each, no overflow */
    .home-section .col-xl-8,
    .home-section .col-xl-4,
    .home-section [class*="col-"] {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .home-section .row.g-3,
    .home-section .row.g-4 {
        gap: 10px 0;
        margin-left: 0;
        margin-right: 0;
    }

    /* Tighten home-detail text on small screens */
    .home-contain .home-detail h1 {
        font-size: 22px !important;
        line-height: 1.25 !important;
    }

    .home-contain .home-detail p {
        font-size: 13px !important;
    }

    /* Ensure blur overlay doesn't cover all text on mobile */
    .blur-overlay {
        width: 70%;
    }

    .blur-small-top,
    .blur-small-bottom {
        width: 60%;
    }

    /* Fix product grid gap on mobile */
    .product-list-section.row {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    /* Section titles smaller on mobile */
    .title h2,
    .title-flex h2 {
        font-size: 20px;
    }
}

/* Smooth the bottom mobile nav bar */
.mobile-menu {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 0;
    background: var(--theme-color, #d4a017) !important;
}

.mobile-menu ul li a .icli {
    font-size: 20px;
    line-height: 1;
}

.mobile-menu ul li a span {
    font-size: 10px;
    margin-top: 2px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Active indicator dot — center fix */
.mobile-menu ul li.active::before {
    bottom: -8px;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------
   6. HEADER — remove gap/glitch on scroll
   -------------------------------------------------------- */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Non-sticky header must also sit above the Swiper stacking context */
header {
    position: relative;
    z-index: 1050;
}

/* Dropdown menus must clear Swiper's transform stacking context */
header .dropdown-menu,
.navbar .dropdown-menu,
.category-dropdown,
.onhover-dropdown .onhover-show-div {
    z-index: 1060 !important;
}

/* Banner section sits below header */
.home-section {
    position: relative;
    z-index: 1;
}

/* Prevent white gap flash between header and banner */
.home-section.pt-2 {
    padding-top: 0 !important;
}

/* --------------------------------------------------------
   6b. MOBILE HEADER GLITCH — prevent layout jump on scroll
   -------------------------------------------------------- */

/* The pb-md-4 pb-0 on <header> creates a gap on mobile.
   Override to keep the gap only on md+. */
@media (max-width: 767px) {
    header.pb-md-4 {
        padding-bottom: 0 !important;
    }

    /* Prevent offcanvas menu from causing horizontal overflow */
    .offcanvas {
        max-width: 280px;
    }

    /* Fix product section spacing on mobile */
    .product-section {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    /* Prevent wide tables/grids from breaking layout */
    .product-box-slider,
    .category-slider-2 {
        overflow: hidden;
    }
}

/* --------------------------------------------------------
   7. PROFESSIONAL TYPOGRAPHY & SPACING POLISH
   -------------------------------------------------------- */

/* Category sidebar */
.category-menu h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #1a1a2e;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--theme-color, #d4a017);
    margin-bottom: 14px;
}

.category-list h5 a {
    font-size: 14px;
    color: #444;
    transition: color 0.2s;
}

.category-list h5 a:hover {
    color: var(--theme-color, #d4a017);
}

/* Offer product sidebar */
.offer-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f1eb;
}

.offer-image {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #ede8e0;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Category icon fallback — replaces vegetable SVGs with a gem icon */
.cat-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.12);
    flex-shrink: 0;
}

.cat-icon-fallback i {
    font-size: 14px;
    color: var(--theme-color, #d4a017);
}

/* Larger variant for category box cards on homepage */
.cat-icon-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.12);
    margin: 0 auto 8px;
}

.cat-icon-lg i {
    font-size: 24px;
    color: var(--theme-color, #d4a017);
}

/* Smooth image lazy load */
.blur-up {
    filter: blur(0);
    transition: filter 0.3s ease;
}

.blur-up.lazyloaded {
    filter: blur(0);
}

/* --------------------------------------------------------
   8. CATEGORY BOXES
   -------------------------------------------------------- */
.category-box {
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #f0ece6;
}

.category-box:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

/* ── Strip every vegetable/food background image the grocery template injects ── */

/* Category box hover overlay — was showing vegetable/shape.png */
.category-box::after,
.category-box-2::after {
    background-image: none !important;
    background-color: var(--theme-color, #d4a017) !important;
}

/* Footer decorative shapes — vegetable/footer-shape*.png */
footer::after,
footer::before {
    background-image: none !important;
    content: none !important;
}
