:root {
    --primary: #0056b3;
    --primary-dark: #003d82;
    --primary-light: #f0f7ff;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --border: #dce8f7;
    --white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(0, 86, 179, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 86, 179, 0.15);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f3f4f6;
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
#main-header {
    background: var(--primary-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1050;
    /* border-bottom: 2px solid var(--primary); */
    padding: 10px;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 40px;
    max-width: 1920px;
    margin: 0 auto;
}

/* Hamburger */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--primary);
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

/* Logo */
.logo-wrap a {
    text-decoration: none;
}

.logo-wrap img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-placeholder {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
    white-space: nowrap;
}

.logo-placeholder span {
    color: var(--text-dark);
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.desktop-nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.desktop-nav a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Search Bar */
.search-wrap {
    flex: 1;
    min-width: 0;
    max-width: 700px;
}

.search-form {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12);
    background: var(--white);
}

.search-form .search-icon {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 16px;
    flex-shrink: 0;
}

.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    padding: 11px 0;
    outline: none;
    min-width: 0;
}

.search-form input::placeholder {
    color: #9ca3af;
}

.search-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 11px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Right Actions */
.right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 9px;
    border-radius: 8px;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    transition: var(--transition);
    white-space: nowrap;
}

.login-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary);
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-search-btn {
    display: none;
}

/* Mobile search bar */
#mobile-search-bar {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    position: relative;
}

#mobile-search-bar.open {
    display: flex;
    align-items: center;
    gap: 8px;
}

#mobile-search-bar .search-form {
    flex: 1;
}

#mobile-search-bar .close-search {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 18px;
    padding: 6px;
    flex-shrink: 0;
}

#mobile-search-bar .close-search:hover {
    color: var(--primary);
}

/* ===== LEFT SIDEBAR ===== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1060;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.left-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: var(--white);
    z-index: 1070;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

.left-sidebar.open {
    transform: translateX(0);
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 2px solid var(--primary);
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
}

.sidebar-head .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    color: var(--primary);
}

.sidebar-head .brand i {
    font-size: 24px;
}

.close-side-btn {
    background: #f3f4f6;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 16px;
    transition: var(--transition);
}

.close-side-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.side-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 20px 20px 8px;
    display: block;
}

.side-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    margin: 2px 12px;
    transition: var(--transition);
}

.side-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.side-link .link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-link .icon-box {
    width: 38px;
    height: 38px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: var(--transition);
}

.side-link:hover .icon-box {
    background: var(--primary);
    color: white;
}

.side-link .chevron {
    font-size: 11px;
    color: #9ca3af;
}

.side-plain-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    margin: 2px 12px;
    transition: var(--transition);
}

.side-plain-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.side-plain-link i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* ===== RIGHT CART SIDEBAR ===== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100%;
    background: var(--white);
    z-index: 1070;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 2px solid var(--primary);
    background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
}

.cart-head h5 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-head h5 i {
    color: var(--primary);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60%;
    gap: 12px;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 60px;
    color: #e5e7eb;
}

.cart-empty p {
    font-size: 15px;
    font-weight: 500;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.cart-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.08);
}

.cart-item-img {
    width: 65px;
    height: 65px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 24px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-info .price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 15px;
    padding: 4px;
    border-radius: 6px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: #dbeafe;
    color: var(--primary);
}

.cart-foot {
    padding: 18px 22px;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart-total span {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

.cart-total strong {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.checkout-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(0, 86, 179, 0.35);
    transform: translateY(-1px);
}

.checkout-btn:active {
    transform: translateY(0);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.continue-shopping:hover {
    color: var(--primary);
}

/* ===== BANNER SECTION ===== */
.banner-section {
    position: relative;
    overflow: hidden;
}

.banner-img-mobile {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
}

.banner-img-desktop {
    display: none;
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 992px) {
    .banner-img-mobile {
        display: none;
    }

    .banner-img-desktop {
        display: block;
    }
}

.carousel-item {
    position: relative;
}

.banner-caption-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    z-index: 5;
}

.carousel-item::after {
    content: '';
    position: absolute;
    inset: 1;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.25) 0%,
            rgba(0, 0, 0, 0.55) 100%);
    z-index: 2;
}

.banner-caption-box {
    z-index: 5;
}

.banner-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 14px;
    font-family: sans-serif;
}

.banner-title {
    font-family: 'Georgia', serif;
    font-size: clamp(1.6rem, 3.5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 12px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.banner-subtitle {
    font-size: clamp(0.85rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 22px;
    font-family: sans-serif;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.banner-btn {
    display: inline-block;
    background: #fff;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 25px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.banner-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    color: #1a1a2e;
}

.banner-btn-outline {
    display: inline-block;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 26px;
    border-radius: 25px;
    text-decoration: none;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-left: 10px;
    transition: all 0.3s;
}

.banner-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.carousel-control-prev,
.carousel-control-next {
    width: 46px;
    height: 46px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-control-prev {
    left: 16px;
}

.carousel-control-next {
    right: 16px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.35);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: none;
    opacity: 1;
    transition: all 0.35s ease;
}

.carousel-indicators .active {
    width: 26px;
    border-radius: 4px;
    background: #fff;
}

/*  */
/* ===== CATEGORY SECTION ===== */
/* ===== CATEGORY SECTION ===== */
#grocery-cat-section {
    background-color: #fff;
    padding: 36px 0 40px;
}

/* ===== HEADING AREA ===== */
.cat-top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 32px;
    padding: 0 20px;
}

.modern-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-heading h2 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.3px;
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.7);
        opacity: 0.5;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* View All Button — right side absolute */
.view-all-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
}

.view-all-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-50%) translateX(3px);
}

.view-all-btn svg {
    flex-shrink: 0;
}

/* ===== GRID WRAPPER ===== */
.cat-grid-wrapper {
    display: grid;
    /* Desktop default: 8 per row */
    grid-template-columns: repeat(8, 1fr);
    gap: 0;
    /* কোনো gap নেই */
    padding: 0;
}

/* ===== SINGLE CARD ===== */
.grocery-cat-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 8px 20px;
    border: 0.5px solid #ececec;
    /* subtle border — gap এর মতো দেখাবে */
    margin: -0.25px;
    /* border overlap যাতে double না হয় */
    transition: var(--transition);
    background: #fff;
    position: relative;
    overflow: hidden;
}

.grocery-cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-light);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grocery-cat-card:hover::before {
    opacity: 1;
}

.grocery-cat-card:hover {
    z-index: 2;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.12);
}

/* ===== IMAGE WRAPPER ===== */
.img-wrapper {
    width: clamp(75px, 7vw, 115px);
    height: clamp(75px, 7vw, 115px);
    border-radius: 50%;
    background: var(--primary-light);
    border: 2px solid #e8f5e9;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.grocery-cat-card:hover .img-wrapper {
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.2);
    transform: translateY(-4px);
}

.grocery-cat-card:hover .img-wrapper img {
    transform: scale(1.1);
}

/* ===== CATEGORY NAME ===== */
.cat-name {
    font-size: clamp(11px, 1vw, 14px);
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.cat-name::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.grocery-cat-card:hover .cat-name {
    color: var(--primary-dark);
}

.grocery-cat-card:hover .cat-name::after {
    width: 100%;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================
           RESPONSIVE BREAKPOINTS
        ============================= */

/* 22-inch / Large Desktop: 1600px+ */
@media (min-width: 1600px) {
    .cat-grid-wrapper {
        grid-template-columns: repeat(8, 1fr);
    }

    .img-wrapper {
        width: 120px;
        height: 120px;
    }

    .cat-name {
        font-size: 14px;
    }

    .modern-heading h2 {
        font-size: 1.9rem;
    }
}

/* Standard Desktop: 1280px - 1599px */
@media (min-width: 1280px) and (max-width: 1599px) {
    .cat-grid-wrapper {
        grid-template-columns: repeat(8, 1fr);
    }

    .img-wrapper {
        width: 105px;
        height: 105px;
    }
}

/* Laptop: 992px - 1279px */
@media (min-width: 992px) and (max-width: 1279px) {
    .cat-grid-wrapper {
        grid-template-columns: repeat(8, 1fr);
    }

    .img-wrapper {
        width: 88px;
        height: 88px;
    }

    .cat-name {
        font-size: 12px;
    }
}

/* Tablet: 768px - 991px → 6 per row */
@media (min-width: 768px) and (max-width: 991px) {
    .cat-grid-wrapper {
        grid-template-columns: repeat(6, 1fr);
    }

    .img-wrapper {
        width: 80px;
        height: 80px;
    }

    .cat-name {
        font-size: 12px;
    }

    .grocery-cat-card {
        padding: 14px 6px 16px;
    }
}

/* Mobile Large: 480px - 767px → 4 per row */
@media (min-width: 480px) and (max-width: 767px) {
    .cat-grid-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }

    .img-wrapper {
        width: 68px;
        height: 68px;
    }

    .cat-name {
        font-size: 11px;
    }

    .grocery-cat-card {
        padding: 12px 4px 14px;
    }

    .view-all-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* Mobile Small: max 479px → 4 per row */
@media (max-width: 479px) {
    .cat-grid-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }

    .img-wrapper {
        width: 60px;
        height: 60px;
        border-width: 1.5px;
    }

    .cat-name {
        font-size: 10px;
    }

    .grocery-cat-card {
        padding: 10px 3px 12px;
    }

    .modern-heading h2 {
        font-size: 1.1rem;
    }

    .view-all-btn {
        font-size: 11px;
        padding: 6px 12px;
        position: absolute;   /* ← add */
        right: 0px;          /* ← add */
    }
}

/*  */
/* ============================
           NEW ARRIVALS SECTION
        ============================= */
.new-arrivals-section {
    padding: 1rem 0 3.5rem;
    background: var(--primary-light);
}

/* ===== HEADING BLOCK ===== */
.heading-block {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hC-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    background: var(--primary-light);
    position: relative;
}

.hC-circle::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px dashed var(--primary);
    opacity: 0.4;
}

.hC-circle-icon {
    font-size: 1.6rem;
    position: relative;
    z-index: 1;
}

.heading-main {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0;
}

.heading-main .accent {
    color: var(--primary);
}

.hC-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.hC-hline {
    height: 1px;
    width: 45px;
    background: var(--border);
}

.hC-htxt {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================
           PRODUCT GRID — COLUMN WIDTHS
        ============================= */

/* Mobile default: Bootstrap col-6 = 2 per row */

/* md (≥768px Tablet): 3 per row */
@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 auto;
        width: 33.3333%;
    }
}

/* lg (≥992px Laptop): 4 per row */
@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }
}

/* xl (≥1200px Desktop): 5 per row */
@media (min-width: 1200px) {
    .col-xl-custom {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* xxl / 22-inch (≥1600px): 5 per row — same width but bigger cards */
@media (min-width: 1600px) {
    .col-xl-custom {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* ============================
           PRODUCT CARD
        ============================= */
.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(46, 125, 50, 0.13);
}

/* Badge */
.badge-new {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 2px;
    z-index: 2;
}

/* Image */
.image-container {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f5f8f5;
    flex-shrink: 0;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease;
}

.product-card:hover .image-container img {
    transform: scale(1.07);
}

/* Title */
.product-title {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 10px 12px 3px;
    min-height: 2.8em;
    line-height: 1.4;
}

/* Price */
.product-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.05rem;
    display: block;
    padding: 2px 12px 10px;
    letter-spacing: 0.01em;
}

.product-price .currency {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 2px;
}

/* ============================
           ACTION BAR — KEY FIX
        ============================= */
.action-bar {
    background: #f4f9f4;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin-top: auto;
    padding: 0;
    gap: 0;
}

/* Each button takes equal width — full height fill */
.icon-btn {
    flex: 1;
    align-self: stretch;
    /* ✅ full bar height */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    /* ✅ no padding — let align-self handle height */
    line-height: 1;
    border-radius: 0;
    transition: color 0.22s ease, background 0.22s ease;
    background: transparent;
    border: none;
    outline: none;
    min-height: 42px;
    /* ✅ consistent height both buttons */
}

.icon-btn i {
    pointer-events: none;
    /* icon itself doesn't block hover */
    line-height: 1;
    display: flex;
}

/* ✅ Hover: full bg fill on both icons equally */
.icon-btn:hover {
    color: #fff;
    background: var(--primary);
}

/* ✅ Divider — same height as buttons */
.action-bar .icon-divider {
    width: 1px;
    align-self: stretch;
    background: var(--border);
    flex-shrink: 0;
}

/* 22-inch: slightly bigger card text/icons */
@media (min-width: 1600px) {
    .product-title {
        font-size: 0.92rem;
        padding: 12px 14px 4px;
        min-height: 2.8em;
        
    }

    .product-price {
        font-size: 1.12rem;
        padding: 3px 14px 12px;
    }

    .icon-btn {
        font-size: 1.15rem;
        padding: 12px 0;
    }

    .image-container {
        aspect-ratio: 4 / 5;
    }
}

/* Mobile tweaks */
@media (max-width: 575px) {
    .product-title {
        font-size: 0.78rem;
    }

    .product-price {
        font-size: 0.92rem;
    }

    .icon-btn {
        font-size: 0.95rem;
        padding: 8px 0;
    }
}

/*  */
/* ===== REVIEW SECTION ===== */
.review-section {
    background: #f8f9fa;
    padding: 3.5rem 0;
}

.review-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #1a1a2e;
}

.review-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.reviewer-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    flex-shrink: 0;
}

.review-body {
    background: #DEEAF1;
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
}

.review-body p {
    font-size: 0.82rem;
    color: #495057;
    margin: 0;
    line-height: 1.7;
}

.star-rating .fa-star {
    font-size: 0.85rem;
}

.star-on {
    color: #ffc107;
}

.star-off {
    color: #dee2e6;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.slider-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots span.active {
    background: #0d6efd;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.slider-nav button {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #495057;
}

.slider-nav button:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.slides-wrapper {
    overflow: hidden;
}

.slides-track {
    display: flex;
    transition: transform 0.4s ease;
}

.slide-item {
    flex: 0 0 33.333%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* 22 inch monitor / large desktops (1600px+) */
@media (min-width: 1600px) {
    .header-inner {
        padding: 10px 158px;
        max-width: 1920px;
    }

    .search-wrap {
        max-width: 800px;
    }

    .banner-img-desktop {
        height: 620px;
    }

    .slide-item {
        flex: 0 0 25%;
    }

    /* 4 cards per row */
    .grocery-cat-card {
        width: 160px;
    }

    .img-wrapper {
        width: 135px;
        height: 135px;
    }

    .cat-name {
        font-size: 16px;
    }

    .marquee-content {
        gap: 44px;
    }
}

/* Standard desktop (1200px - 1599px) */
@media (min-width: 1200px) and (max-width: 1599px) {
    .slide-item {
        flex: 0 0 33.333%;
    }

    /* 3 cards per row */
}

/* Tablet landscape (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .slide-item {
        flex: 0 0 33.333%;
    }

    .grocery-cat-card {
        width: 120px;
    }

    .img-wrapper {
        width: 100px;
        height: 100px;
    }
}

/* Tablet portrait (769px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .desktop-nav {
        display: none;
    }

    .search-wrap {
        display: none;
    }

    .login-btn {
        display: none;
    }

    .mobile-search-btn {
        display: flex;
    }

    .left-sidebar {
        width: 280px;
    }

    .cart-sidebar {
        width: 100%;
        max-width: 380px;
    }

    .header-inner {
        padding: 8px 14px;
        gap: 8px;
    }

    .right-actions {
        margin-left: auto;
        gap: 4px;
        flex-shrink: 0;
    }

    .slide-item {
        flex: 0 0 50%;
    }

    .grocery-cat-card {
        width: 110px;
    }

    .img-wrapper {
        width: 92px;
        height: 92px;
    }

    .cat-name {
        font-size: 13px;
    }

    .marquee-content {
        gap: 20px;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .search-wrap {
        display: none;
    }

    .login-btn {
        display: none;
    }

    .mobile-search-btn {
        display: flex;
    }

    .left-sidebar {
        width: 280px;
    }

    .cart-sidebar {
        width: 100%;
        max-width: 380px;
    }

    .header-inner {
        padding: 8px 14px;
        gap: 8px;
    }

    .right-actions {
        margin-left: auto;
        gap: 4px;
        flex-shrink: 0;
    }

    .action-btn {
        padding: 7px;
    }

    .action-btn i {
        font-size: 19px !important;
    }

    .cart-badge {
        top: 2px;
        right: 2px;
        min-width: 15px;
        height: 15px;
        font-size: 8px;
    }

    .slide-item {
        flex: 0 0 100%;
    }

    .grocery-cat-card {
        width: 90px;
    }

    .img-wrapper {
        width: 76px;
        height: 76px;
        padding: 6px;
        margin-bottom: 8px;
    }

    .cat-name {
        font-size: 12px;
    }

    .marquee-content {
        gap: 15px;
        animation-duration: 20s;
    }
}

/* Small mobile (max 600px) */
@media (max-width: 600px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    #main-header {
        width: 100%;
        overflow: hidden;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
    }

    .header-inner {
        padding: 7px 10px;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .header-inner {
        justify-content: center;
    }

    .logo-wrap {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-placeholder {
        height: 36px;
        font-size: 13px;
        gap: 4px;
    }

    .logo-placeholder i {
        font-size: 18px !important;
    }

    .logo-placeholder .hide-mobile {
        display: none !important;
    }

    .hamburger-btn {
        font-size: 18px;
        padding: 4px;
    }

    .right-actions {
        margin-left: auto;
        gap: 2px;
    }

    .action-btn {
        padding: 6px;
    }

    .action-btn i {
        font-size: 17px !important;
    }

    .cart-badge {
        top: 1px;
        right: 1px;
        min-width: 14px;
        height: 14px;
        font-size: 8px;
    }

    #mobile-search-bar {
        padding: 8px 10px;
    }

    #mobile-search-bar .search-form input {
        font-size: 13px;
    }

    .search-btn {
        padding: 12px 12px;
        font-size: 13px;
    }

    .left-sidebar {
        width: 82%;
        max-width: 280px;
    }

    .cart-sidebar {
        width: 100%;
        max-width: 100%;
    }
}

/* Very small mobile (max 380px) */
@media (max-width: 380px) {
    .header-inner {
        padding: 6px 8px;
        gap: 4px;
    }

    .hamburger-btn {
        font-size: 16px;
    }

    .action-btn i {
        font-size: 15px !important;
    }

    .logo-wrap img {
        height: 30px !important;
    }
}


/* footer start css  */
/* ===== FOOTER ===== */
#main-footer {
    background-color: #0d1117;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand */
.footer-logo-wrap {
    background: #fff;
    border-radius: 10px;
    display: inline-block;
    padding: 8px 12px;
    margin-bottom: 14px;
}

.footer-logo-wrap img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* Social */
.social-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.social-btn.facebook {
    background-color: #1877f2;
}

.social-btn.facebook:hover {
    background-color: #0d65d9;
}

.social-btn.youtube {
    background-color: #ff0000;
}

.social-btn.youtube:hover {
    background-color: #cc0000;
}

.social-btn.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-btn.instagram:hover {
    opacity: 0.85;
}

/* Widget Title */
.footer-widget-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 7px;
}

.footer-links a i {
    font-size: 11px;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.footer-links a:hover {
    color: var(--primary-dark);
    padding-left: 4px;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* Contact List */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.contact-icon.phone {
    background-color: var(--primary);
    color: #fff;
}

.contact-icon.email {
    background-color: #f0a500;
    color: #fff;
}

.contact-icon.address {
    background-color: #e74c3c;
    color: #fff;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
}

.contact-info a,
.contact-info span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.25s ease;
    line-height: 1.5;
}

.contact-info a:hover {
    color: var(--primary-dark);
}

/* Footer Bottom */
.footer-bottom {
    padding: 18px 0;
    background-color: #080c10;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .brand-highlight {
    color: #f0a500;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 767px) {
    .footer-top {
        padding: 40px 0 30px;
    }

    .footer-widget-title {
        font-size: 13px;
    }

    .footer-logo-wrap img {
        height: 48px;
    }
}



@media (max-width: 575px) {
    .footer-brand {
        text-align: center;
    }

    .footer-logo-wrap {
        display: inline-block;  /* ← block থেকে inline-block */
        text-align: center;
        max-width: 160px;       /* ← এটা add করো */
    }

    .footer-logo-wrap img {
        height: 44px;           /* ← এটা add করো */
        width: 100%;
        object-fit: contain;
    }

    .social-links {
        justify-content: center;
    }

    .social-label {
        text-align: center;
    }
}
/* footer end css */