html,
body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
}


.container {
    max-width: 100% !important;
    padding: 0 18px !important;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .container {
        padding: 0 24px !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 4px !important;
    }
}

.products-page {
    padding: 20px 0 40px;
    background: #f7f7f7;
}

/* ============================================================
   PRODUCTS BANNER - COMPACT
   ============================================================ */

.products-banner {
    background: #fff;
    padding: 6px 0 8px;
    border-bottom: 1px solid #ececec;
}

.breadcrumb-wrap {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 4px;
    font-size: 12px;
}

.breadcrumb-wrap a {
    text-decoration: none;
    color: #007185;
}

.breadcrumb-wrap a:hover {
    color: #c45500;
    text-decoration: underline;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.banner-content h1 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1px;
    color: #111;
}

.banner-content p {
    color: #666;
    margin: 0;
    font-size: 12px;
}

.product-count {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.product-count span {
    color: #007185;
    font-weight: 700;
}

/* ============================================================
   LAYOUT - Amazon Style
   ============================================================ */

.products-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

/* ============================================================
   SIDEBAR - Compact (Amazon Style)
   ============================================================ */

.products-sidebar {
    width: 220px;
    min-width: 180px;
    max-width: 240px;
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
}

.filter-box {
    background: #fff;
    border-radius: 8px;
    padding: 14px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.filter-box h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

/* Category Tree */
.category-item {
    margin-bottom: 2px;
}

.category-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toggle-category {
    cursor: pointer;
    font-size: 9px;
    color: #555;
    width: 14px;
    text-align: center;
    user-select: none;
}

.toggle-empty {
    width: 14px;
    display: inline-block;
}

.filter-category {
    display: block;
    padding: 3px 0;
    text-decoration: none;
    color: #111;
    font-size: 13px;
    flex: 1;
    transition: color 0.2s;
}

.filter-category:hover {
    color: #c45500;
    text-decoration: underline;
}

.filter-category.active {
    color: #111;
    font-weight: 700;
}

.category-children {
    padding-left: 16px;
    margin-top: 1px;
}

.level-0 .category-row {
    font-weight: 500;
}

.level-1 .category-row {
    font-weight: 400;
}

.level-2 .category-row {
    font-weight: 400;
    font-size: 12px;
    padding-left: 6px;
}

/* Brand Radio Buttons */
#brandList label,
#mobileBrandList label {
    display: block;
    padding: 3px 0;
    font-weight: 400;
    cursor: pointer;
    font-size: 13px;
    color: #111;
}

#brandList label:hover,
#mobileBrandList label:hover {
    color: #c45500;
}

#brandList input[type="radio"],
#mobileBrandList input[type="radio"] {
    margin-right: 6px;
    accent-color: #ff9900;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* Price Filter */
.filter-box .form-control {
    font-size: 13px;
    padding: 5px 8px;
    border-radius: 4px;
    border-color: #ddd;
}

.filter-box .form-control:focus {
    border-color: #ff9900;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.12);
}

.filter-box .btn-dark {
    background: #111;
    border-color: #111;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 4px;
}

.filter-box .btn-dark:hover {
    background: #333;
    border-color: #333;
}

/* Stock Filter */
.filter-box label.d-block {
    font-size: 13px;
    color: #111;
    cursor: pointer;
}

.filter-box label.d-block input[type="checkbox"] {
    margin-right: 6px;
    accent-color: #ff9900;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* ============================================================
   PRODUCTS CONTENT - Takes Remaining Space
   ============================================================ */

.products-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* ============================================================
   TOPBAR - COMPACT
   ============================================================ */

.products-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
    flex-wrap: wrap;
}

.products-topbar .btn-dark {
    background: #111;
    border-color: #111;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
}

.products-topbar .btn-dark:hover {
    background: #333;
    border-color: #333;
}

.products-topbar select {
    width: 150px;
    padding: 4px 20px 4px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 12px;
    background-color: #fff;
}

.products-topbar select:focus {
    border-color: #ff9900;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.12);
}

/* ============================================================
   PRODUCT GRID - Amazon Style
   ============================================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    width: 100%;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */

.product-card {
    position: relative;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 8px 8px 8px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.product-card:hover {
    border-color: #bbb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   PRODUCT IMAGE
   ============================================================ */

.product-image-link {
    display: block;
    text-decoration: none;
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 6px;
    transition: transform 0.2s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.02);
}

/* ============================================================
   BADGES
   ============================================================ */

.featured-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 10;
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: #ff6b35;
    padding: 2px 10px;
    border-radius: 3px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    box-shadow: 0 1px 6px rgba(255, 107, 53, 0.25);
}

.deal-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
    display: inline-block;
    font-size: 8px;
    font-weight: 700;
    color: #cc0c39;
    background: rgba(252, 228, 228, 0.95);
    padding: 1px 8px;
    border-radius: 2px;
    letter-spacing: 0.1px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.deal-badge.prime {
    background: rgba(227, 240, 255, 0.95);
    color: #0066c0;
}

/* ============================================================
   PRODUCT INFO
   ============================================================ */

.product-brand {
    font-size: 12px;
    color: #007185;
    font-weight: 500;
    margin-bottom: 2px;
}

.product-brand:hover {
    color: #c45500;
    text-decoration: underline;
}

.product-title {
    font-size: 13px;
    font-weight: 500;
    color: #111;
    line-height: 1.3;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 32px;
}

.product-title a {
    color: #111;
    text-decoration: none;
}

.product-title a:hover {
    color: #c45500;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 3px;
    font-size: 12px;
}

.product-rating .stars {
    color: #ffa41c;
    letter-spacing: 0.5px;
}

.product-rating .stars .empty-star {
    color: #ddd;
}

.product-rating .rating-count {
    color: #007185;
    font-size: 11px;
}

/* ============================================================
   PRICING
   ============================================================ */

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
    margin: 3px 0 3px;
}

.current-price {
    font-size: 17px;
    font-weight: 700;
    color: #111;
}

.current-price .currency-symbol {
    font-size: 13px;
    font-weight: 400;
}

.mrp-price {
    font-size: 12px;
    color: #565959;
    text-decoration: line-through;
}

.discount-badge {
    font-size: 11px;
    color: #cc0c39;
    font-weight: 700;
    background: #fce4e4;
    padding: 0 5px;
    border-radius: 2px;
    line-height: 1.5;
}

.tax-info {
    font-size: 11px;
    color: #565959;
    margin-bottom: 2px;
}

.stock-status {
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 2px;
}

.stock-status.in-stock {
    color: #067d62;
}

.stock-status.out-of-stock {
    color: #cc0c39;
}

.stock-status i {
    font-size: 10px;
}

.colour-options {
    font-size: 10px;
    color: #565959;
    margin-top: 1px;
}

/* ============================================================
   VIEW DETAILS
   ============================================================ */

.view-details {
    margin-top: auto;
    padding-top: 5px;
    border-top: 1px solid #eee;
}

.view-details a {
    font-size: 12px;
    color: #007185;
    text-decoration: none;
    font-weight: 500;
}

.view-details a:hover {
    color: #c45500;
    text-decoration: underline;
}

.view-details a i {
    font-size: 9px;
}

/* ============================================================
   NO IMAGE PLACEHOLDER
   ============================================================ */

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    color: #999;
    padding: 10px;
    text-align: center;
    min-height: 90px;
}

.no-image-placeholder i {
    color: #ddd;
    margin-bottom: 4px;
}

.no-image-placeholder span {
    font-size: 9px;
    color: #999;
    word-break: break-word;
    max-width: 90%;
}

/* ============================================================
   OFF CANVAS (MOBILE FILTERS)
   ============================================================ */

.offcanvas {
    width: 280px !important;
}

.offcanvas-body .form-check {
    margin-bottom: 4px;
}

.offcanvas-body .form-check-label {
    font-size: 14px;
}

.offcanvas-body h6 {
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

/* ============================================================
   RESPONSIVE - Amazon Style
   ============================================================ */

/* 1600px+ : 5 Columns Full Width */
@media (min-width: 1600px) {
    .container {
        padding: 0 30px !important;
    }
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
    .products-sidebar {
        width: 240px;
        min-width: 200px;
    }
}

/* 1400px - 1599px : 5 Columns */
@media (max-width: 1599px) and (min-width: 1200px) {
    .container {
        padding: 0 20px !important;
    }
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
    }
    .products-sidebar {
        width: 210px;
        min-width: 170px;
    }
}

/* 1200px - 1399px : 4 Columns */
@media (max-width: 1199px) {
    .container {
        padding: 0 18px !important;
    }
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .products-sidebar {
        width: 190px;
        min-width: 150px;
    }
    .product-card {
        padding: 10px 8px 8px;
    }
    .product-title {
        font-size: 13px;
        min-height: 32px;
    }
    .current-price {
        font-size: 17px;
    }
    .product-brand {
        font-size: 12px;
    }
}

/* 992px - 1199px : 3 Columns (Sidebar Hidden) */
@media (max-width: 992px) {
    .products-sidebar {
        display: none;
    }
    .products-layout {
        flex-direction: column;
        gap: 0;
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .container {
        padding: 0 16px !important;
    }
    .product-card {
        padding: 10px 8px 8px;
    }
    .product-title {
        font-size: 13px;
        min-height: 32px;
    }
    .current-price {
        font-size: 17px;
    }
    .product-brand {
        font-size: 12px;
    }
}

/* ============================================================
   ✅ MOBILE RESPONSIVE - FIXED (2 Columns with !important)
   ============================================================ */

/* 768px - 991px : 2 Columns */
@media (max-width: 768px) {
    .container {
        padding: 0 12px !important;
    }
    .banner-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .products-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .products-topbar select {
        width: 100%;
    }
    .banner-content h1 {
        font-size: 18px;
    }
    .banner-content p {
        font-size: 12px;
    }
    .product-count {
        font-size: 12px;
    }
    /* ✅ FIX: Force 2 columns on mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .product-card {
        padding: 6px 4px 6px;
    }
    .products-page {
        padding: 15px 0 30px;
    }
    .products-banner {
        padding: 6px 0 8px;
    }
}

/* 576px - 767px : 2 Columns */
@media (max-width: 576px) {
    .container {
        padding: 0 8px !important;
    }
    /* ✅ FIX: Force 2 columns on small mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .product-card {
        padding: 4px 3px 6px;
        border-radius: 4px;
    }
    .product-title {
        font-size: 11px;
        min-height: 24px;
    }
    .current-price {
        font-size: 14px;
    }
    .product-rating .stars {
        font-size: 9px;
    }
    .product-rating .rating-count {
        font-size: 9px;
    }
    .banner-content h1 {
        font-size: 16px;
    }
    .banner-content p {
        font-size: 11px;
    }
    .product-count {
        font-size: 11px;
    }
    .breadcrumb-wrap {
        font-size: 11px;
    }
    .filter-box {
        padding: 10px;
    }
    .filter-box h4 {
        font-size: 13px;
    }
    .featured-badge {
        font-size: 7px;
        padding: 1px 6px;
        top: 4px;
        left: 4px;
    }
    .deal-badge {
        font-size: 6px;
        padding: 0px 5px;
        top: 4px;
        right: 4px;
    }
    .products-page {
        padding: 10px 0 16px;
    }
    .products-topbar {
        margin-bottom: 6px;
    }
}

/* 400px - 575px : 2 Columns */
@media (max-width: 480px) {
    .container {
        padding: 0 4px !important;
    }
    /* ✅ FIX: Force 2 columns on extra small */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important;
    }
    .product-card {
        padding: 3px 2px 4px;
        border-radius: 3px;
    }
    .product-title {
        font-size: 10px;
        min-height: 18px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    .current-price {
        font-size: 12px;
    }
    .current-price .currency-symbol {
        font-size: 10px;
    }
    .mrp-price {
        font-size: 9px;
    }
    .discount-badge {
        font-size: 8px;
        padding: 0 3px;
    }
    .view-details a {
        font-size: 9px;
    }
    .product-image {
        border-radius: 2px;
    }
    .product-image img {
        padding: 3px;
    }
    .product-brand {
        font-size: 9px;
    }
    .tax-info {
        font-size: 9px;
    }
    .stock-status {
        font-size: 9px;
    }
    .colour-options {
        font-size: 8px;
    }
    .product-rating {
        font-size: 9px;
    }
    .product-rating .stars {
        font-size: 8px;
    }
    .product-rating .rating-count {
        font-size: 8px;
    }
    .featured-badge {
        font-size: 6px;
        padding: 1px 4px;
        top: 3px;
        left: 3px;
    }
    .deal-badge {
        font-size: 5px;
        padding: 0px 3px;
        top: 3px;
        right: 3px;
    }
    .no-image-placeholder {
        padding: 4px;
        min-height: 40px;
    }
    .no-image-placeholder span {
        font-size: 7px;
    }
    .banner-content h1 {
        font-size: 14px;
    }
    .banner-content p {
        font-size: 10px;
    }
    .product-count {
        font-size: 10px;
    }
    .breadcrumb-wrap {
        font-size: 10px;
        gap: 4px;
        margin-bottom: 2px;
    }
    .products-banner {
        padding: 4px 0 6px;
    }
    .products-topbar {
        margin-bottom: 4px;
        gap: 4px;
    }
    .products-topbar select {
        font-size: 11px;
        padding: 3px 16px 3px 6px;
    }
    .products-topbar .btn-dark {
        font-size: 11px;
        padding: 3px 8px;
    }
}


/* =========================
   PRODUCT WISHLIST
========================= */

.product-image-wrapper {
    position: relative;
}

.product-wishlist-btn {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 40px;
    height: 40px;

    border: 1px solid #e5e5e5;
    border-radius: 50%;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    color: #555;

    cursor: pointer;

    z-index: 10;

    transition: all 0.2s ease;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-wishlist-btn:hover {
    transform: scale(1.08);
    color: #e53935;
}

.product-wishlist-btn.active {
    color: #e53935;
}

.product-wishlist-btn.active i {
    color: #e53935;
}


/* MOBILE */

@media (max-width: 767px) {

    .product-wishlist-btn {
        width: 36px;
        height: 36px;

        top: 8px;
        right: 8px;

        font-size: 16px;
    }

}