/**
 * Shop Page Design - Matching Homepage Style
 * 
 * Modern B2B shop page design consistent with homepage
 *
 * @package     RalphWhite_B2B
 * @subpackage  Assets
 * @since       2.0.0
 */

/* ==========================================================================
   Shop Page Container
   ========================================================================== */

.woocommerce-shop-wrapper {
    background: var(--bg-tertiary);
    min-height: 80vh;
}
.woocommerce nav.woocommerce-pagination ul{
    border: none!important;
}

/* ==========================================================================
   Products Page Template
   ========================================================================== */

.products-page-wrapper {
    padding: 3rem 0;
    background: var(--bg-tertiary);
    min-height: 80vh;
}

.products-page-header {
    margin-bottom: 3rem;
}

.products-page-banner {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(245, 130, 32, 0.1);
    color: var(--color-accent-orange);
    border-radius: 9999px;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.products-page-header .section-title {
    font-size: var(--heading-lg);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.products-page-header .section-title .highlight {
    color: var(--color-accent-orange);
    position: relative;
    display: inline-block;
}
body:not(.offcanvas-open){
    overflow-y: hidden !important;
}
/* .products-page-header .section-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent-orange);
    border-radius: 2px;
} */

.products-page-header .section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text);
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid-container {
    margin-top: 2rem;
}

/* Load More Button */
.btn-load-more {
    background: var(--color-accent-orange);
    color: var(--color-white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-load-more:hover:not(:disabled) {
    background: var(--color-accent-orange-dark, #d9730d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
}

.btn-load-more:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-load-more .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-load-more .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.no-products-message {
    padding: 4rem 2rem;
    color: var(--color-text);
    font-size: 1.125rem;
}
/* ==========================================================================
   Shop Header
   ========================================================================== */

.shop-header-section {
    background: var(--bg-dark);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.shop-header-content {
    color: var(--color-white);
}

.shop-title {
    font-size: var(--heading-lg);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.shop-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ==========================================================================
   Shop Filters
   ========================================================================== */

.shop-filters-wrapper {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    position: sticky;
    top: 2rem;
}

.filter-mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.filter-close-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-base);
}

.filter-close-btn:hover {
    color: var(--color-accent-orange);
}

.shop-filters {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.filter-clear-btn {
    background: transparent;
    border: none;
    color: var(--color-accent-orange);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color var(--transition-base);
}

.filter-clear-btn:hover {
    color: var(--color-accent-orange-dark);
    text-decoration: underline;
}

.filter-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-section-title svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent-orange);
}

/* Category Filter */
.filter-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.filter-categories::-webkit-scrollbar {
    width: 6px;
}

.filter-categories::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.filter-categories::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.filter-categories::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color var(--transition-base);
}

.filter-checkbox-label:hover {
    background: #f9fafb;
}

.filter-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-base);
    background: #ffffff;
}

.filter-checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--color-accent-orange);
    border-color: var(--color-accent-orange);
}

.filter-checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    flex: 1;
}

.category-count {
    color: #6b7280;
    font-weight: 400;
}

/* Price Filter */
.filter-price-range {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-input-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-input-group input {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: border-color var(--transition-base);
}

.price-input-group input:focus {
    outline: none;
    border-color: var(--color-accent-orange);
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.1);
}

.price-separator {
    color: #9ca3af;
    font-weight: 500;
    margin-top: 1.5rem;
}

/* Stock Status Filter */
.filter-stock-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stock-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.stock-indicator.in-stock {
    background: #10b981;
}

.stock-indicator.out-of-stock {
    background: #ef4444;
}

/* Mobile Filter Toggle */
.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-accent-orange);
    color: var(--color-white);
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background-color var(--transition-base);
}

.filter-toggle-btn:hover {
    background: var(--color-accent-orange-dark);
}

.filter-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile Filter Overlay */
@media (max-width: 991.98px) {
    .shop-filters-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .shop-filters-wrapper.active {
        transform: translateX(0);
    }

    .filter-mobile-header {
        display: flex;
    }

    .shop-filters {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

/* ==========================================================================
   Shop Pagination
   ========================================================================== */

.shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
}

.woocommerce-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.woocommerce-pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination .page-numbers li {
    list-style: none;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    transition: all var(--transition-base);
    margin: 5px !important;
}
.woocommerce nav.woocommerce-pagination ul li{
    border: none!important;
}
.woocommerce-pagination .page-numbers a:hover,
.woocommerce-pagination .page-numbers .current {
    background: var(--color-accent-orange)!important;
    border-color: var(--color-accent-orange)!important;
    color: var(--color-white)!important;
}

/* .woocommerce-pagination .page-numbers .current {
    background: var(--color-accent-orange);
    border-color: var(--color-accent-orange);
    color: var(--color-white)!important;
} */

/* ==========================================================================
   Load More Button
   ========================================================================== */

.load-more-wrapper {
    margin: 60px 0 80px;
    padding: 20px 0;
}

.load-more-products {
    min-width: 200px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all var(--transition-base);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--color-accent-orange);
    color: var(--color-white);
}

.load-more-products:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: var(--color-accent-orange);
    color: var(--color-white);
}

.load-more-products:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--color-accent-orange);
    color: var(--color-white);
}

.load-more-text {
    display: inline-block;
}

.load-more-spinner {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

.load-more-spinner.d-none {
    display: none !important;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 767.98px) {
    .shop-header-section {
        padding: 3rem 0;
        margin-bottom: 2rem;
    }

    .shop-title {
        font-size: var(--heading-md);
    }

    .shop-subtitle {
        font-size: 1rem;
    }
}

