body[data-path="all-products"] {
    --nas-primary: #1F487C;
    --nas-primary-dark: #1F487C;
    --nas-primary-soft: #E8EDF5;
    --nas-surface: #f5f6ff;
    --nas-panel: #eef0ff;
    --nas-card-shadow: 0 20px 40px rgba(31, 72, 124, 0.08);
    --nas-border: #e1e6ff;
    --nas-text: #1f244b;
    --nas-muted: #6f7595;
    background: var(--nas-surface);
    font-family: "Inter", "Poppins", "Helvetica Neue", Arial, sans-serif;
    color: var(--nas-text);
}

body[data-path="all-products"] .page-content {
    padding: 1.5rem 0 4rem;
}

body[data-path="all-products"] .page-content .mb-6 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--nas-text);
    margin-bottom: 2rem !important;
}

body[data-path="all-products"] .row {
    gap: 1.5rem 0;
}

body[data-path="all-products"] .filters-section {
    background: var(--nas-panel);
    border: 1px solid var(--nas-border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: var(--nas-card-shadow);
}

body[data-path="all-products"] .filters-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--nas-text);
}

body[data-path="all-products"] .filters-section .title-section {
    border-bottom: 1px solid var(--nas-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

body[data-path="all-products"] .filters-section label,
body[data-path="all-products"] .filters-section .filter-label,
body[data-path="all-products"] .filters-section .form-group>span {
    font-weight: 500;
    color: var(--nas-muted);
}

body[data-path="all-products"] .filters-section .form-control,
body[data-path="all-products"] .filters-section select,
body[data-path="all-products"] .filters-section input,
body[data-path="all-products"] .filters-section .awesomplete input {
    border-radius: 0.875rem;
    border: 1px solid var(--nas-border);
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(15, 30, 80, 0.08);
    font-size: 0.9375rem;
    color: var(--nas-text);
}

body[data-path="all-products"] .clear-filters {
    color: var(--nas-primary);
    font-weight: 600;
}

body[data-path="all-products"] #product-listing {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--nas-border);
    box-shadow: var(--nas-card-shadow);
    min-height: 500px;
}

body[data-path="all-products"] .item-card-group-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
}

body[data-path="all-products"] .item-card-group-section>.row {
    width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

body[data-path="all-products"] .item-card {
    display: flex;
    margin-bottom: 0;
    padding: 0;
}

body[data-path="all-products"] .item-card .card {
    border: 1px solid var(--nas-border);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 8px 20px rgba(20, 32, 120, 0.08);
    padding: 1.25rem;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body[data-path="all-products"] .item-card .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(20, 32, 120, 0.15);
}

body[data-path="all-products"] .item-card .card-img-container,
body[data-path="all-products"] .item-card .card-img-top {
    border-radius: 1rem;
    background: var(--nas-primary-soft);
    overflow: hidden;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

body[data-path="all-products"] .item-card .card-img {
    object-fit: contain;
    padding: 1rem;
    max-height: 220px;
    width: 100%;
    display: block;
}

body[data-path="all-products"] .item-card .card-body {
    padding: 0.5rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

body[data-path="all-products"] .item-card .product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--nas-text);
    margin-bottom: 0.25rem;
}

body[data-path="all-products"] .item-card .product-category,
body[data-path="all-products"] .item-card .product-description {
    font-size: 0.9rem;
    color: var(--nas-muted);
}

body[data-path="all-products"] .btn,
body[data-path="all-products"] .btn-primary,
body[data-path="all-products"] .btn-next,
body[data-path="all-products"] .btn-prev {
    border-radius: 0.875rem;
    border: none;
    font-weight: 600;
    background: var(--nas-primary);
    color: #ffffff;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 20px rgba(31, 72, 124, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

body[data-path="all-products"] .btn-prev,
body[data-path="all-products"] .btn-next {
    padding: .5rem 1.8rem !important;
}

body[data-path="all-products"] .btn:hover,
body[data-path="all-products"] .btn:focus {
    background: var(--nas-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 26px rgba(23, 58, 95, 0.35);
}

body[data-path="all-products"] .btn:active {
    transform: translateY(0);
}

body[data-path="all-products"] .btn-outline-primary {
    background: transparent;
    color: var(--nas-primary);
    border: 1px solid var(--nas-primary);
    box-shadow: none;
    padding: 0.875rem 2rem;
    min-height: 44px;
}

body[data-path="all-products"] .btn-outline-primary:hover {
    background: var(--nas-primary);
    color: #ffffff;
}

body[data-path="all-products"] .pagination {
    margin-top: 2rem;
    gap: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

body[data-path="all-products"] .pagination .page-link {
    color: var(--nas-primary);
    border-radius: 0.75rem;
    border: 1px solid var(--nas-border);
    padding: 0.75rem 1.25rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

body[data-path="all-products"] .pagination .page-item.active .page-link {
    background: var(--nas-primary);
    border-color: var(--nas-primary);
    color: #ffffff;
}

body[data-path="all-products"] .pagination .page-link:hover {
    background: var(--nas-primary-soft);
    border-color: var(--nas-primary);
}

body[data-path="all-products"] .breadcrumb,
body[data-path="all-products"] .breadcrumb-item,
body[data-path="all-products"] .breadcrumb-item a {
    color: var(--nas-muted);
    font-weight: 500;
}

body[data-path="all-products"] .breadcrumb-item.active {
    color: var(--nas-text);
}

/* Hide view toggle buttons - only grid view is needed */
body[data-path="all-products"] .toggle-container {
    display: none !important;
}

body[data-path="all-products"] #toggle-view {
    display: none !important;
}

body[data-path="all-products"] .btn-list-view,
body[data-path="all-products"] .btn-grid-view {
    display: none !important;
}

/* Ensure only grid view is shown, hide list view */
body[data-path="all-products"] #products-list-area {
    display: none !important;
}

body[data-path="all-products"] #products-grid-area {
    display: block !important;
}

body[data-path="all-products"] #products-grid-area.hidden {
    display: flex !important;
}

body[data-path="all-products"] .item-card-group-section .col-sm-4,
body[data-path="all-products"] .item-card-group-section .col-sm-3,
body[data-path="all-products"] .item-card-group-section .col-md-4,
body[data-path="all-products"] .item-card-group-section .col-md-3 {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
}

/* Force 3 items per row in item-card-group-section */
/* Override Bootstrap's col-sm-3 (25% = 4 items) to col-sm-4 (33.333% = 3 items) */
/* Also handle col-sm-6 (50% = 2 items) and col-md-6 cases */
body[data-path="all-products"] .item-card-group-section .item-card.col-sm-3,
body[data-path="all-products"] .item-card-group-section .item-card.col-sm-6,
body[data-path="all-products"] .item-card-group-section .item-card.col-md-3,
body[data-path="all-products"] .item-card-group-section .item-card.col-md-6,
.item-card-group-section .item-card.col-sm-3,
.item-card-group-section .item-card.col-sm-6,
.item-card-group-section .item-card.col-md-3,
.item-card-group-section .item-card.col-md-6 {
    width: 33.33333333% !important;
    flex: 0 0 33.33333333% !important;
    max-width: 33.33333333% !important;
}

@media (min-width: 576px) {

    body[data-path="all-products"] .item-card-group-section .item-card.col-sm-3,
    body[data-path="all-products"] .item-card-group-section .item-card.col-sm-6,
    .item-card-group-section .item-card.col-sm-3,
    .item-card-group-section .item-card.col-sm-6 {
        width: 33.33333333% !important;
        flex: 0 0 33.33333333% !important;
        max-width: 33.33333333% !important;
    }
}

@media (min-width: 768px) {

    body[data-path="all-products"] .item-card-group-section .item-card.col-sm-3,
    body[data-path="all-products"] .item-card-group-section .item-card.col-sm-6,
    body[data-path="all-products"] .item-card-group-section .item-card.col-md-3,
    body[data-path="all-products"] .item-card-group-section .item-card.col-md-6,
    .item-card-group-section .item-card.col-sm-3,
    .item-card-group-section .item-card.col-sm-6,
    .item-card-group-section .item-card.col-md-3,
    .item-card-group-section .item-card.col-md-6 {
        width: 33.33333333% !important;
        flex: 0 0 33.33333333% !important;
        max-width: 33.33333333% !important;
    }


}

@media (min-width: 992px) {

    body[data-path="all-products"] .item-card-group-section .item-card.col-md-3,
    body[data-path="all-products"] .item-card-group-section .item-card.col-md-6,
    .item-card-group-section .item-card.col-md-3,
    .item-card-group-section .item-card.col-md-6 {
        width: 33.33333333% !important;
        flex: 0 0 33.33333333% !important;
        max-width: 33.33333333% !important;
    }
}

body[data-path="all-products"] .item-card-group-section .row {
    margin-left: 0;
    margin-right: 0;
}

body[data-path="all-products"] .item-card-group-section .row>[class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Ensure row uses flexbox for proper 3-column layout */
.item-card-group-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

body[data-path="all-products"] .toolbar {
    width: 100%;
}

@media (max-width: 991px) {
    body[data-path="all-products"] #product-listing {
        padding: 0;
    }

    body[data-path="all-products"] .filters-section {
        border-radius: 1rem;
        margin-bottom: 1rem;
    }

    body[data-path="all-products"] .item-card .card {
        padding: 0.5rem;
    }

    body[data-path="all-products"] .item-card-group-section {
        gap: 1rem;
    }

    body[data-path="all-products"] .item-card-group-section .row>[class*="col-"] {
        padding-left: 0;
        padding-right: 0.5rem;
        margin-bottom: 1rem;
    }

    body[data-path="all-products"] .btn,
    body[data-path="all-products"] .btn-primary,
    body[data-path="all-products"] .btn-next,
    body[data-path="all-products"] .btn-prev {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    body[data-path="all-products"] .item-card {
        min-width: auto;
    }
    
}

@media (max-width: 575px) {
    body[data-path="all-products"] .product-paging-area {
        display: flex;
        justify-content: center;
    }

    body[data-path="all-products"] .product-paging-area> :first-child {
        display: none !important;
    }

    body[data-path="all-products"] #products-grid-area {
        display: grid !important;
        grid-template-columns: auto auto !important;
    }

    body[data-path="all-products"] #products-grid-area.hidden {
        display: grid !important;

    }

    body[data-path="all-products"] .item-card {
        min-width: 150px;
    }

    body[data-path="all-products"] .page-content-wrapper .container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    body[data-path="all-products"] #product-listing {
        background: inherit;
        border-radius: 0;
        padding: 0 !important;
        border: none;
        box-shadow: none;
        min-height: 500px;
    }

    body[data-path="all-products"] .item-card-group-section .card-img-container {
        height: auto !important;
        background: none;
        padding: 0;
        margin: 0;
    }

    body[data-path="all-products"] .item-card .card-body> :first-child {
        margin-top: 0;
    }

    body[data-path="all-products"] .item-card .product-title {
        font-size: 0.9rem;
    }

    body[data-path="all-products"] .item-card .card-body .product-category {
        display: none;
        font-size: 0.7rem;
    }

    body[data-path="all-products"] .item-card-group-section .product-price {
        margin: .04rem 0;
    }

    body[data-path="all-products"] .item-card-group-section .product-price {
        font-size: 14px;

    }
    body[data-path="all-products"] .item-card .card-img{
        padding: 0 !important;
    }
    body[data-path="all-products"] #product-listing .toolbar{
        justify-content: center;
    }
    body[data-path="all-products"] #product-listing .toolbar .input-group {
        min-width: 80%;
    }   
}