/* ============================================
    CONTAINER & LAYOUT (ORIGINAL)
    ============================================ */
    .container-2 {
        max-width: 1320px;
        margin: 0 auto;
        padding: 0 16px;
    }

    .rts-section-gap,
    .rts-section-gapTop {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .rts-category-area {
        background: #fafafa;
        overflow: visible;
        padding-bottom: 20px;
    }

    .cover-card-main-over {
        padding: 0;
    }

    .rts-featured-products {
        background: #ffffff;
    }

    .rts-popular-product-area {
        background: #f7f7f7;
    }

    /* ============================================
    TITLE AREA (ORIGINAL)
    ============================================ */
    .title-area-between {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 24px;
        flex-wrap: wrap;
    }

    .title-area-between .title-left {
        font-size: 28px;
        font-weight: 700;
        color: #111827;
        margin: 0;
    }

    .view-all-link {
        font-size: 14px;
        font-weight: 600;
        color: #08437b;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .view-all-link:hover {
        color: #4d7a1b;
        gap: 10px;
    }

    /* ============================================
    BANNER (ORIGINAL - KEPT INTACT)
    ============================================ */
    .banner-three-swiper-main-wrapper {
        position: relative;
        overflow: hidden;
    }

    .rts-banner-area-three {
        min-height: 670px;
        display: flex;
        align-items: center;
        position: relative;
        background-size: cover;
        background-position: center;
    }

    .rts-banner-area-three .container-2,
    .rts-banner-area-three .row,
    .rts-banner-area-three .col-lg-12 {
        position: relative;
        z-index: 2;
    }

    .banner-inner-content-three {
        position: relative;
        max-width: 560px;
        z-index: 3;
    }

    .banner-inner-content-three .pre {
        display: inline-flex;
        padding: 8px 16px;
        border-radius: 999px;
        /* background: rgba(255, 255, 255, 0.95); */
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .banner-inner-content-three .title {
        font-size: 48px;
        line-height: 1.1;
        font-weight: 800;
        margin-bottom: 16px;
    }

    .banner-inner-content-three .dsicription {
        font-size: 16px;
        max-width: 480px;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .banner-button-next,
    .banner-button-prev {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 56px;
        height: 56px;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        font-size: 18px;
        color: #111827;
    }

    .banner-button-next:hover,
    .banner-button-prev:hover {
        background: #08437b;
        color: white;
        transform: translateY(-50%) scale(1.08);
    }

    .banner-button-next {
        right: 32px;
    }

    .banner-button-prev {
        left: 32px;
    }

    .banner-pagination {
        position: absolute;
        left: 50%;
        bottom: 28px;
        transform: translateX(-50%);
        z-index: 10;
        display: flex;
        gap: 8px;
    }

    .banner-pagination .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: rgba(255, 255, 255, 0.6);
        opacity: 1;
        margin: 0;
        border-radius: 999px;
        transition: all 0.3s ease;
    }

    .banner-pagination .swiper-pagination-bullet-active {
        background: #08437b;
        width: 28px;
    }

    /* ============================================
    CATEGORY SECTION (ORIGINAL - KEPT INTACT)
    ============================================ */
    .next-prev-swiper-wrapper {
        display: flex;
        gap: 10px;
    }

    .category-button-next,
    .category-button-prev {
        width: 42px;
        height: 42px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
        color: #111827;
    }

    .category-button-next:hover,
    .category-button-prev:hover {
        background: #08437b;
        color: white;
        border-color: #08437b;
        transform: scale(1.08);
    }

    .category-area-main-wrapper-one {
        padding: 0 4px;
    }

    .swiper-slide {
        height: auto;
    }

    .single-category-one {
        background: #ffffff;
        border-radius: 14px;
        min-width: 0;
        padding: 16px 10px;
        text-align: center;
        border: 1px solid #e5e7eb;
        height: 100%;
        transition: transform 0.25s ease, box-shadow 0.25s ease,
                    border-color 0.25s ease;
        position: relative;
        z-index: 1;
    }

    .single-category-one:hover {
        border-color: #08437b;
        box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
        transform: translateY(-4px);
        z-index: 10;
    }

    .single-category-one a {
        text-decoration: none;
        display: block;
    }

    .single-category-one img {
        width: 150px;
        height: 100px;
        min-width: 150px;       /* ← prevents shrink from parent constraint */
        min-height: 100px;
        max-width: none;        /* ← overrides the global img { max-width: 100% } */
        object-fit: contain;
        margin: 0 auto 14px;
        display: block;
    }

    .single-category-one p {
        font-size: 14px;
        font-weight: 600;
        color: #111827;
        margin: 0;
        line-height: 1.4;
    }

    .single-category-one:hover p {
        color: #08437b;
    }

    /* ============================================
    NEW SHOP-STYLE PRODUCT CARDS
    ============================================ */
    :root {
        --shop-primary: #08437b;
        --shop-primary-dark: #08437b;
        --shop-success: #10b981;
        --shop-danger: #ef4444;
        --shop-text: #111827;
        --shop-text-light: #6b7280;
        --shop-bg: #ffffff;
        --shop-bg-alt: #f9fafb;
        --shop-border: #e5e7eb;
        --shop-shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    }

    .shop-product-card {
        background: var(--shop-bg);
        border: 1px solid var(--shop-border);
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .shop-product-card:hover {
        border-color: var(--shop-primary);
        box-shadow: var(--shop-shadow-lg);
        transform: translateY(-8px);
    }

    /* Product Image */
    .product-image-wrapper {
        position: relative;
        overflow: hidden;
        background: var(--shop-bg-alt);
        aspect-ratio: 1;
    }

    .product-image-link {
        display: block;
        height: 100%;
    }

    .product-main-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .shop-product-card:hover .product-main-image {
        transform: scale(1.08);
    }

    /* Badges */
    .product-badge-discount,
    .product-badge-stock {
        position: absolute;
        top: 12px;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        z-index: 2;
    }

    .product-badge-discount {
        left: 12px;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: white;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }

    .product-badge-stock {
        right: 12px;
        background: linear-gradient(135deg, #f59e0b, #d97706);
        color: white;
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    }

    /* Quick Actions */
    .product-quick-actions {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 16px;
        background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
        opacity: 0;
        transform: translateY(100%);
        transition: all 0.3s ease;
    }

    .shop-product-card:hover .product-quick-actions {
        opacity: 1;
        transform: translateY(0);
    }

    .quick-action-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: white;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    .quick-action-btn:hover {
        background: var(--shop-primary);
        color: white;
        transform: scale(1.15);
    }

    .quick-action-btn i {
        font-size: 16px;
    }

    /* Product Info */
    .product-info {
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
    }

    .product-meta {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: var(--shop-text-light);
    }

    .product-category,
    .product-brand {
        font-weight: 500;
    }

    .meta-separator {
        color: var(--shop-border);
    }

    .product-name-link {
        text-decoration: none;
    }

    .product-name {
        font-size: 15px;
        font-weight: 600;
        color: var(--shop-text);
        margin: 0;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 42px;
        transition: color 0.3s;
    }

    .product-name-link:hover .product-name {
        color: var(--shop-primary);
    }

    /* Rating */
    .product-rating {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .product-rating .stars {
        display: flex;
        gap: 2px;
    }

    .product-rating .stars i {
        font-size: 12px;
        color: #fbbf24;
    }

    .product-rating .stars .fa-regular {
        color: #d1d5db;
    }

    .rating-count {
        font-size: 12px;
        color: var(--shop-text-light);
    }

    /* Price */
    .product-price {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 4px;
    }

    .price-current {
        font-size: 20px;
        font-weight: 700;
        color: var(--shop-primary);
    }

    .price-original {
        font-size: 14px;
        color: var(--shop-text-light);
        text-decoration: line-through;
    }

    .price-save {
        font-size: 11px;
        font-weight: 600;
        color: var(--shop-success);
        background: rgba(16, 185, 129, 0.1);
        padding: 2px 8px;
        border-radius: 4px;
    }

    /* Stock Status */
    .product-stock {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        font-weight: 600;
        padding: 6px 0;
    }

    .product-stock i {
        font-size: 14px;
    }

    .product-stock.in-stock {
        color: var(--shop-success);
    }

    .product-stock.out-of-stock {
        color: var(--shop-danger);
    }

    /* Add to Cart Button */
    .product-add-to-cart {
        width: 100%;
        height: 44px;
        background: var(--shop-primary);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        margin-top: auto;
        transition: all 0.3s ease;
    }

    .product-add-to-cart:hover:not(:disabled) {
        background: var(--shop-primary-dark);
        opacity: 0.9;
        transform: translateY(-2px);
        /* box-shadow: 0 6px 20px rgba(98, 157, 35, 0.4); */
    }

    .product-add-to-cart:disabled {
        background: #d1d5db;
        cursor: not-allowed;
    }

    .product-add-to-cart i {
        font-size: 16px;
    }

    /* Category Filter Tabs */
    .filter-button-group {
        border: none;
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .filter-button-group .nav-link {
        background: white;
        border: 1px solid var(--shop-border);
        border-radius: 25px;
        padding: 10px 22px;
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        transition: all 0.3s ease;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .filter-button-group .nav-link:hover,
    .filter-button-group .nav-link.active {
        background: var(--shop-primary);
        color: white;
        border-color: var(--shop-primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(98, 157, 35, 0.25);
    }

    .filter-button-group .tab-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 20px;
        padding: 0 6px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 700;
        background: rgba(15, 23, 42, 0.08);
        color: #374151;
    }

    .filter-button-group .nav-link.active .tab-count {
        background: rgba(255, 255, 255, 0.25);
        color: white;
    }

    .mt--30 {
        margin-top: 30px;
    }

    .mt--20 {
        margin-top: 20px;
    }

    /* Empty State */
    .rts-empty-state {
        text-align: center;
        padding: 80px 20px;
        background: var(--shop-bg-alt);
        border-radius: 16px;
    }

    .rts-empty-state .empty-icon {
        font-size: 80px;
        color: #d1d5db;
        margin-bottom: 20px;
    }

    .rts-empty-state h3 {
        font-size: 24px;
        font-weight: 600;
        color: var(--shop-text);
        margin-bottom: 10px;
    }

    .rts-empty-state p {
        font-size: 16px;
        color: var(--shop-text-light);
    }

    /* Responsive */
    @media (max-width: 991px) {
        .rts-section-gap,
        .rts-section-gapTop {
            padding-top: 40px;
            padding-bottom: 30px;
        }

        .title-area-between .title-left {
            font-size: 24px;
        }

        .rts-banner-area-three {
            min-height: 480px;
        }

        .banner-inner-content-three .title {
            font-size: 36px;
        }

        .banner-button-next,
        .banner-button-prev {
            width: 48px;
            height: 48px;
        }

        .banner-button-next {
            right: 20px;
        }

        .banner-button-prev {
            left: 20px;
        }

        .single-category-one img {
            min-width: 120px;
            min-height: 80px;
        }
    }

    @media (max-width: 767px) {
        .rts-section-gap,
        .rts-section-gapTop {
            padding-top: 40px;
            padding-bottom: 40px;
        }

        .banner-three-swiper-main-wrapper {
            display: none;
        }

        .title-area-between {
            margin-bottom: 0;
        }

        .title-area-between .title-left {
            font-size: 20px;
        }

        .rts-banner-area-three {
            min-height: 400px;
        }

        .banner-inner-content-three .title {
            font-size: 28px;
        }

        .price-current {
            font-size: 18px;
        }

        /* Title + tabs stack vertically */
        .title-area-between {
            flex-direction: column !important;
            align-items: flex-start !important;
            gap: 12px !important;
        }

        /* Make tabs scroll horizontally */
        .filter-button-group {
            width: 100% !important;
            flex-wrap: nowrap !important;
            overflow-x: auto !important;
            overflow-y: hidden !important;
            -webkit-overflow-scrolling: touch !important;
            scroll-snap-type: x mandatory !important;
            padding-bottom: 6px !important;
            gap: 8px !important;
            /* Hide scrollbar visually */
            scrollbar-width: none !important;
            -ms-overflow-style: none !important;
        }

        .filter-button-group::-webkit-scrollbar {
            display: none !important;
        }

        /* Each tab snaps into place */
        .filter-button-group .nav-item {
            flex-shrink: 0 !important;
            scroll-snap-align: start !important;
        }

        /* Smaller tab pills */
        .filter-button-group .nav-link {
            padding: 7px 14px !important;
            font-size: 12px !important;
            border-radius: 20px !important;
            white-space: nowrap !important;
            transform: none !important; /* disable hover lift on mobile */
        }

        .filter-button-group .nav-link:hover {
            transform: none !important;
        }

        /* Count badge */
        .filter-button-group .tab-count {
            font-size: 10px !important;
            min-width: 18px !important;
            height: 16px !important;
            padding: 0 4px !important;
        }

        /* View all link stays inline with title */
        .title-area-between .view-all-link {
            align-self: flex-end !important;
            margin-top: -8px !important;
            font-size: 13px !important;
        }
    }

    .btn-select-weight {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 10px 16px;
        background: var(--shop-primary);
        color: white;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.2s ease;
        margin-top: 10px;
    }

    .btn-select-weight:hover {
        opacity: 0.9;
        color: white;
        transform: translateY(-1px);
    }

    /* ===== MOBILE PRODUCT CARD FIXES ===== */
    @media (max-width: 575px) {

        /* Tighter grid gap */
        .row.g-4 {
            --bs-gutter-x: 10px;
            --bs-gutter-y: 10px;
        }

        /* Smaller card padding */
        .product-info {
            padding: 10px !important;
            gap: 5px !important;
        }

        .filter-button-group .nav-link {
            padding: 6px 12px !important;
            font-size: 11px !important;
        }

        /* Fade edge hint — shows user tabs are scrollable */
        .rts-popular-product-area .title-area-between {
            position: relative !important;
        }

        .filter-button-group::after {
            content: '' !important;
            position: sticky !important;
            right: 0 !important;
            flex-shrink: 0 !important;
            width: 32px !important;
            background: linear-gradient(to right, transparent, #f7f7f7) !important;
            pointer-events: none !important;
        }

        /* Smaller image */
        .product-image-wrapper {
            aspect-ratio: 1 !important;
        }

        /* Smaller product name */
        .product-name {
            font-size: 12px !important;
            min-height: 34px !important;
            -webkit-line-clamp: 2 !important;
        }

        /* Hide meta (category • brand) to save space */
        .product-meta {
            display: none !important;
        }

        /* Smaller price */
        .price-current {
            font-size: 14px !important;
        }

        .price-original {
            font-size: 11px !important;
        }

        /* Hide save badge on tiny screens */
        .price-save {
            display: none !important;
        }

        /* Smaller add to cart button */
        .product-add-to-cart,
        .btn-select-weight {
            height: 36px !important;
            font-size: 12px !important;
            padding: 0 8px !important;
            margin-top: 6px !important;
        }

        .product-add-to-cart i,
        .btn-select-weight i {
            font-size: 13px !important;
        }

        /* Smaller discount badge */
        .product-badge-discount,
        .product-badge-stock {
            font-size: 9px !important;
            padding: 4px 7px !important;
            border-radius: 4px !important;
        }

        /* Smaller rating */
        .product-rating .stars i {
            font-size: 10px !important;
        }

        .rating-count {
            font-size: 10px !important;
        }

        /* Section titles */
        .title-area-between .title-left {
            font-size: 17px !important;
        }

        /* Popular tabs — scrollable, smaller */
        .filter-button-group .nav-link {
            padding: 7px 14px !important;
            font-size: 12px !important;
        }

        /* Banner */
        .rts-banner-area-three {
            min-height: 300px !important;
        }

        .banner-inner-content-three .title {
            font-size: 22px !important;
        }

        .banner-inner-content-three .dsicription {
            font-size: 13px !important;
            display: none !important;
        }

        .banner-inner-content-three .pre {
            font-size: 11px !important;
            padding: 6px 12px !important;
        }

        /* Hide banner nav arrows on very small screens */
        .banner-button-next,
        .banner-button-prev {
            width: 36px !important;
            height: 36px !important;
            font-size: 14px !important;
        }

        /* Category cards */
        .single-category-one {
            padding: 12px 8px !important;
        }

        .single-category-one a {
            display: flex;
            flex-direction: column !important;
            align-items: center !important;
            text-align: center !important
        }

        .single-category-one img {
            width: 64px !important;
            height: 64px !important;
            margin: 0 0 8px 0 !important;
        }

        .single-category-one p {
            font-size: 11px !important;
        }

        /* Section spacing */
        .rts-section-gap,
        .rts-section-gapTop {
            padding-top: 18px !important;
            padding-bottom: 14px !important;
        }

        .container {
            padding: 0 !important;
        }
    }

    #categoryPagination {
        display: none; /* hidden on desktop by default */
    }

    @media (max-width: 839px) {
        #categoryPagination {
            display: block;
            height: 4px;
            background: #e5e7eb;
            border-radius: 999px;
            margin-top: 14px;
            margin-bottom: 4px;
            overflow: hidden;
            position: relative;
        }

        /* Swiper injects this span inside the pagination div */
        #categoryPagination .swiper-pagination-progressbar-fill {
            background: #08437b;
            border-radius: 999px;
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            transform-origin: left top;
            transition: transform 0.25s ease;
        }
    }
