/*
 * Ghorer-Bazar-style brand palette override.
 * Loaded after style.css so it wins the cascade without editing the
 * theme's own (very large) stylesheets in place.
 */
:root {
    --primary: #f4801f;
    --secondary: #0b3d2e;
    --navbar: #0b3d2e;
    --orange: #f4801f;
    --darkgray: #0b3d2e;
}

/* Bootstrap's own .btn-primary/.text-primary aren't covered by the
   theme's custom classes but are used throughout (shop, cart, checkout,
   buyer profile, product detail) — bring them onto the brand color. */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #d9690f !important;
    border-color: #d9690f !important;
}
.text-primary {
    color: var(--primary) !important;
}
.form-control:focus {
    box-shadow: 0 0 0 2px rgba(244, 128, 31, 0.2) !important;
}

/* "Categories" dropdown trigger was a hardcoded unrelated blue */
.category-sidebar .dropdown-toggle {
    background-color: var(--primary);
}

/* The header's WhatsApp block (11%) was removed in favour of a floating
   contact button, so give that space back to the search field. */
.header-search {
    width: 70%;
}

/* ---- Floating contact / scroll buttons (bottom right) ---- */
.floating-contact {
    position: fixed;
    right: 26px;
    bottom: 32px;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 18px 0 15px;
    border-radius: 27px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    transition: 0.25s;
}
.floating-contact:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
}
.floating-contact i {
    font-size: 26px;
    line-height: 1;
}
.floating-contact .floating-contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    white-space: nowrap;
}
.floating-contact .floating-contact-text small {
    font-size: 10px;
    opacity: 0.9;
}
.floating-contact .floating-contact-text strong {
    font-size: 13px;
    font-weight: 700;
}
@media (max-width: 768px) {
    /* Collapse to a circular icon so it doesn't cover mobile content,
       and lift it above the fixed bottom nav bar. */
    .floating-contact {
        right: 16px;
        bottom: 76px;
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .floating-contact .floating-contact-text {
        display: none;
    }
}

/* ---- Horizontal category mega-nav (replaces the old left sidebar) ---- */
nav.navbar.cat-navbar {
    background: var(--navbar);
    padding: 0;
    margin-bottom: 24px;
}
.cat-nav-list {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.cat-nav-list::-webkit-scrollbar {
    display: none;
}
.cat-nav-list > li {
    position: relative;
    flex: 0 0 auto;
}
.cat-nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 15px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.2s;
}
.cat-nav-list > li > a:hover,
.cat-nav-list > li > a.active {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}
.cat-nav-list > li > a i.fa-angle-down {
    font-size: 11px;
    opacity: 0.8;
}
.cat-nav-list .cat-nav-right {
    margin-left: auto;
}
.cat-nav-list .cat-nav-right .arrival-menu {
    color: #ffbb00;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
}

/* Sub-category dropdown on hover */
.cat-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: 0.2s;
    z-index: 60;
}
.cat-nav-list > li.has-children:hover .cat-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.cat-nav-dropdown li a {
    display: block;
    padding: 9px 16px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}
.cat-nav-dropdown li a:hover {
    background: #fff7ed;
    color: var(--primary);
}
@media (max-width: 768px) {
    .cat-nav-list .cat-nav-right {
        margin-left: 0;
    }
    /* Hover dropdowns don't work on touch; sub-categories stay reachable
       from the category page itself. */
    .cat-nav-dropdown {
        display: none;
    }
}

/* Hero slider: match the reference's compact banner height instead of
   the theme default's near-full-viewport slide, and drop the heavy dark
   overlay so promotional banner images read clearly. */
.slide-content {
    min-height: 300px;
    margin-top: 40px;
}
@media (max-width: 768px) {
    .slide-content {
        min-height: 220px;
        margin-top: 20px;
    }
}
.slide-image::after {
    background: rgba(0, 0, 0, 0.08);
}
.slide {
    border-radius: 10px;
}
.swiper-container.slideshow {
    border-radius: 10px;
    overflow: hidden;
}

/* The theme reserved 251px of left padding here so the hero cleared the
   old left-hand category sidebar. The nav is a horizontal bar now, so the
   hero should span the full container. */
.slider-section .container {
    padding-left: 24px;
}
.hero-slider-main .swiper-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Two-zone hero: main slider + one or more side banners, like the
   reference (large left slider + smaller promo banner on the right). */
.hero-grid {
    display: flex;
    align-items: stretch;
    gap: 16px;
}
.hero-slider-main {
    flex: 1 1 65%;
    min-width: 0;
    max-width: 100%;
}
.hero-slider-main .swiper-container.slideshow {
    width: 100%;
    max-width: 100%;
}
/* Height lives on the slide itself so the caption can be a pure overlay. */
.hero-slider-main .swiper-slide.slide {
    width: 100%;
    max-width: 100%;
    height: 340px;
}
/* Keep the slide caption inside its slide (it's an absolute overlay that
   otherwise spills out once the slider sits in a narrower flex column). */
.hero-slider-main .slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 0 28px 28px;
    margin-top: 0;
    min-height: 0;
}
.hero-slider-main .slide-title {
    font-size: 28px;
    max-width: 70%;
}
.hero-slider-main .slide-desc {
    margin-top: 8px;
    margin-bottom: 12px;
}
@media (min-width: 45em) {
    .hero-slider-main .slide-title {
        font-size: 30px;
    }
}

/* Pagination: the theme renders big "01 — 02 — 03" numerals across the
   middle of the banner. The reference uses small dots at the bottom. */
.hero-slider-main .slideshow-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    top: auto;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 20;
}
.hero-slider-main .slideshow-pagination-item {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    overflow: hidden;
    transition: 0.2s;
}
.hero-slider-main .slideshow-pagination-item .pagination-number,
.hero-slider-main .slideshow-pagination-item .pagination-separator {
    display: none;
}
.hero-slider-main .slideshow-pagination-item.active {
    background: var(--primary);
    width: 22px;
    border-radius: 5px;
}
.hero-side-banners {
    flex: 1 1 32%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Match the slider so any number of stacked banners shares its height
       instead of growing the row to the images' intrinsic height. */
    height: 340px;
}
.hero-side-banner {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    flex: 1 1 0;
    min-height: 0;
}
.hero-side-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-side-banner-caption {
    position: absolute;
    left: 16px;
    bottom: 14px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.hero-side-banner-caption .title {
    font-weight: 700;
    font-size: 15px;
}
.hero-side-banner-caption .subtitle {
    font-size: 12px;
}
@media (max-width: 768px) {
    .hero-grid {
        flex-direction: column;
    }
    .hero-slider-main .swiper-slide.slide {
        height: 200px;
    }
    .hero-side-banners {
        flex-direction: row;
        height: auto;
    }
    .hero-side-banner {
        min-height: 110px;
    }
}

/* Buyer dashboard/auth accents -> brand dark green instead of navy */
.buyer-sidebar {
    background: var(--secondary);
}
.buyer-sidebar a:hover,
.buyer-sidebar a.active {
    color: var(--secondary);
}
.buyer-stat .value {
    color: var(--secondary);
}

/* Footer: reference uses a light footer, not a dark one */
footer {
    background-color: #ffffff;
    border-top: 1px solid #eee;
}

/* ---- Footer: brand column + 4 link columns + copyright bar ---- */
footer {
    padding: 50px 0 0;
}
footer .footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 40px;
}
footer .footer-brand {
    max-width: 340px;
}
footer .footer-tagline {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    margin: 16px 0 18px;
}
footer .footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}
footer .footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #374151;
}
footer .footer-contact-list li i {
    color: #9ca3af;
    margin-top: 4px;
    width: 14px;
    flex-shrink: 0;
}
footer .footer-contact-list a {
    color: #374151;
    text-decoration: none;
}
footer .footer-contact-list a:hover {
    color: var(--primary);
}
footer .footer-contact-list .footer-contact-empty {
    color: #9ca3af;
    font-style: italic;
}
footer .footer-heading {
    font-weight: 600;
    font-size: 14px;
    color: #111;
    display: block;
    margin-bottom: 12px;
}
footer .social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 26px;
}
footer .social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fdf1e7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}
footer .social-icon:hover {
    background: var(--primary);
    color: #fff;
}
footer .app-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
footer .app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    text-decoration: none;
    background: #fff;
    transition: 0.2s;
}
footer .app-badge:hover {
    border-color: var(--primary);
}
footer .app-badge img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
footer .app-badge span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    color: #111;
    font-size: 13px;
    font-weight: 600;
}
footer .app-badge span small {
    font-size: 9px;
    font-weight: 400;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
footer .footer-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
}
footer .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer .footer-section li {
    margin-bottom: 10px;
}
footer .footer-section a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
}
footer .footer-section a:hover {
    color: var(--primary);
}
footer .footer-bottom {
    border-top: 1px solid #eee;
    padding: 22px 0 26px;
}
footer .footer-bottom .copyright {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}
@media (max-width: 992px) {
    footer .footer-top {
        grid-template-columns: 1fr 1fr 1fr;
    }
    footer .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}
@media (max-width: 576px) {
    footer .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}
