/* Shop Page Layout */
.aa-shop-page {
    padding: 40px 0;
    background-color: #fcfcfc;
}

.aa-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.aa-shop-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.aa-shop-breadcrumbs {
    font-size: 14px;
    color: #666;
}

.aa-shop-breadcrumbs a {
    color: var(--aa-primary, #0047b3);
    text-decoration: none;
}

/* 2-Column Layout */
.aa-shop-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar */
.aa-shop-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.aa-shop-sidebar-inner {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 30px 25px;
    position: sticky;
    top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.aa-mobile-filter-close {
    display: none;
}

/* Widgets */
.aa-widget {
    margin-bottom: 35px;
}
.aa-widget:last-child {
    margin-bottom: 0;
}

.aa-widget-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #222;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--aa-primary, #0047b3);
    display: inline-block;
}

/* Filter Search */
.aa-search-box {
    position: relative;
    display: flex;
}
.aa-search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    background: #f7f7f7;
    border: 1px solid transparent;
    border-radius: 30px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}
.aa-search-box input:focus {
    background: #fff;
    border-color: var(--aa-primary, #0047b3);
    box-shadow: 0 4px 15px rgba(243, 134, 36, 0.1);
}
.aa-search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}
.aa-search-box button:hover {
    color: var(--aa-primary, #0047b3);
}

/* Filter Lists (Radios/Checkboxes) */
.aa-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 10px;
}
.aa-filter-list::-webkit-scrollbar {
    width: 4px;
}
.aa-filter-list::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 4px;
}

.aa-filter-list li {
    margin-bottom: 12px;
}
.aa-filter-list li:last-child {
    margin-bottom: 0;
}
.aa-filter-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: color 0.3s ease;
}
.aa-filter-list label:hover {
    color: var(--aa-primary, #0047b3);
}
.aa-filter-list input {
    margin-right: 12px;
    accent-color: var(--aa-primary, #0047b3);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Tag Cloud */
.aa-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.aa-tag-label {
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.aa-tag-label:hover {
    background: #fff;
    border-color: var(--aa-primary, #0047b3);
    color: var(--aa-primary, #0047b3);
}
.aa-tag-label.active {
    background: var(--aa-primary, #0047b3);
    color: #fff;
    border-color: var(--aa-primary, #0047b3);
}

/* Price Filter */
.aa-price-filter-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

#aa-price-slider {
    height: 6px;
    background: #eaeaea;
    border-radius: 4px;
    position: relative;
    margin: 10px 10px 20px 10px;
}

#aa-price-slider .ui-slider-range {
    position: absolute;
    height: 100%;
    background: var(--aa-primary, #0047b3); /* The orange from screenshot */
    border-radius: 4px;
}

#aa-price-slider .ui-slider-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--aa-primary, #0047b3);
    border: 3px solid #fff;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    outline: none;
    z-index: 2;
}
#aa-price-slider .ui-slider-handle:active {
    cursor: grabbing;
}

/* Main Content */
.aa-shop-content {
    flex: 1;
    min-width: 0;
}

.aa-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.aa-shop-result-count {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.aa-shop-ordering select {
    padding: 10px 20px;
    border: 1px solid #eaeaea;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    outline: none;
    background: #fdfdfd;
    cursor: pointer;
    transition: all 0.3s ease;
}
.aa-shop-ordering select:focus,
.aa-shop-ordering select:hover {
    border-color: var(--aa-primary, #0047b3);
    box-shadow: 0 2px 10px rgba(243, 134, 36, 0.1);
}

/* Grid Wrapper & Loader */
.aa-shop-grid-wrapper {
    position: relative;
    min-height: 400px;
}

.aa-shop-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 8px;
}
.aa-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(200, 161, 90, 0.2);
    border-top-color: var(--aa-primary, #0047b3);
    border-radius: 50%;
    animation: aa-spin 1s linear infinite;
}
@keyframes aa-spin {
    to { transform: rotate(360deg); }
}

/* Shop Product Grid */
.aa-shop-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* No Results */
.aa-shop-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}
.aa-shop-no-results svg {
    color: #ccc;
    margin-bottom: 20px;
}
.aa-shop-no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}
.aa-shop-no-results p {
    color: #666;
    margin-bottom: 25px;
}

/* Pagination */
.aa-shop-pagination {
    margin-top: 50px;
}
.aa-shop-pagination ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}
.aa-shop-pagination li a,
.aa-shop-pagination li span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 50%;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.aa-shop-pagination li a:hover {
    border-color: var(--aa-primary, #0047b3);
    color: var(--aa-primary, #0047b3);
    box-shadow: 0 4px 10px rgba(243, 134, 36, 0.15);
    transform: translateY(-2px);
}
.aa-shop-pagination li span.current {
    background: var(--aa-primary, #0047b3);
    color: #fff;
    border-color: var(--aa-primary, #0047b3);
    box-shadow: 0 4px 10px rgba(243, 134, 36, 0.3);
}

/* Mobile Filter Toggle */
.aa-mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: #222;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0; /* Removed margin because flex gap handles spacing */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: background 0.3s ease;
}
.aa-mobile-filter-toggle:hover {
    background: var(--aa-primary, #0047b3);
}

/* Responsive */
@media (max-width: 992px) {
    .aa-shop-sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .aa-shop-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .aa-mobile-filter-toggle {
        display: inline-flex;
    }
    
    .aa-shop-layout {
        flex-direction: column;
        gap: 15px; /* Reduce massive gap on mobile */
    }
    
    .aa-shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }
    .aa-shop-toolbar select {
        width: 100%;
    }
    
    .aa-shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        transition: left 0.3s ease;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }
    
    .aa-shop-sidebar.active {
        left: 0;
    }
    
    .aa-shop-sidebar-inner {
        border: none;
        border-radius: 0;
        height: 100%;
        overflow-y: auto;
        position: static;
        padding: 60px 20px 20px;
    }
    
    .aa-mobile-filter-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 15px;
        right: 15px;
        background: #2b3036; /* Dark background to match their header */
        color: #ffffff; /* White text */
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        z-index: 10000;
        box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    }
    
    .aa-shop-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .aa-shop-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
