/**
 * Product Archive CSS
 * Styles for WooCommerce product archive pages
 *
 * @package AC_Child
 */

/* ========================================
   PRODUCT ARCHIVE WRAPPER
   ======================================== */

.ac-product-archive-wrapper {
    width: 100%;
    background-color: #ffffff;
}

/* ========================================
   HERO BANNER SECTION
   ======================================== */

.ac-product-hero {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    max-height: 900px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-product-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.ac-product-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 40px;
    max-width: 1000px;
}

.ac-product-hero-tagline {
    font-family: "Delight", sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   ARCHIVE HEADER SECTION
   ======================================== */

.ac-product-archive-header {
    background-color: #ffffff;
    padding: 20px 0;
}

.ac-product-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.ac-product-archive-header .ac-product-archive-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ac-archive-header-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.ac-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #1a1a1a !important;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ac-filter-toggle:hover,
.ac-filter-toggle.active {
    background-color: #e0e0e0 !important;
    color: #1a1a1a !important;
}

.ac-filter-toggle svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5px;
}

.ac-filter-toggle .ac-filter-icon-up {
    display: none;
}

.ac-filter-toggle.active .ac-filter-icon-down {
    display: none;
}

.ac-filter-toggle.active .ac-filter-icon-up {
    display: inline-block;
}

/* Mobile filter icon - hidden by default on desktop */
.ac-filter-toggle .ac-filter-icon-mobile {
    display: none;
}

.ac-archive-title {
    font-family: "Delight", sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

.ac-archive-header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
}

.ac-product-count {
    font-size: 14px;
    font-weight: 400;
    color: #1a1a1a;
}

.ac-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    background-color: #e0e0e0;
    border-radius: 8px;
    padding: 10px 20px;
}

.ac-sort-wrapper label {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-right: 5px;
}

.ac-orderby-select {
    padding: 0;
    border: none;
    font-size: 14px;
    font-weight: 400;
    color: #888888;
    background-color: transparent;
    cursor: pointer;
    appearance: none;
    background-image: none;
    min-width: auto;
}

.ac-orderby-select:focus {
    outline: none;
    color: #888888;
    background-color: transparent;
}

.ac-compare-button {
    padding: 10px 25px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ac-compare-button:hover {
    color: #ffffff;
    background-color: #333333;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */

.ac-products-section {
    padding: 20px 0 80px;
}

.ac-products-section .ac-product-archive-container {
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
}

/* ========================================
   SIDEBAR FILTERS - DARK THEME
   ======================================== */

.ac-product-filters {
    width: 320px;
    flex-shrink: 0;
    background-color: #1a1a1a;
    border-radius: 16px;
    padding: 35px 30px;
    color: #ffffff;
    display: none;
}

.ac-product-filters.active {
    display: block;
}

/* Filter Section */
.ac-filter-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ac-filter-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.ac-filter-section-title {
    font-family: "Delight", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 18px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Accordion for Categories */
.ac-filter-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ac-filter-accordion-item {
    width: 100%;
}

.ac-filter-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    gap: 10px;
}

.ac-filter-category-link {
    flex: 1;
    color: #ffffff;
    font-family: "Delight", sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: left;
    text-transform: uppercase;
}

.ac-filter-category-link:hover,
.ac-filter-category-link.is-active {
    color: #c45a3b;
}

.ac-filter-accordion-toggle {
    background: none;
    border: none;
    padding: 5px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.ac-filter-accordion-toggle:hover {
    color: #ffffff;
}

.ac-filter-accordion-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.ac-filter-accordion-toggle.is-active svg,
.ac-filter-accordion-item.is-open .ac-filter-accordion-toggle svg {
    transform: rotate(180deg);
}

.ac-filter-accordion-content {
    display: none;
    padding: 10px 0 5px 15px;
    flex-direction: column;
    gap: 8px;
}

.ac-filter-subcategory-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.ac-filter-subcategory-link:hover,
.ac-filter-subcategory-link.is-active {
    color: #c45a3b;
}

/* Filter Form */
.ac-filter-form {
    width: 100%;
}

/* Brand checkbox count */
.ac-checkbox-count {
    margin-left: auto;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.ac-filter-checkbox:hover .ac-checkbox-count {
    color: rgba(255, 255, 255, 0.7);
}

/* Filter count badge on toggle button */
.ac-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: #c45a3b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    margin-left: 5px;
}

.ac-filter-toggle.active .ac-filter-count {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Empty state for brands */
.ac-filter-empty {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 0;
    margin: 0;
}

/* Checkboxes */
.ac-filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ac-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    color: #ffffff;
    transition: color 0.3s ease;
}

.ac-filter-checkbox:hover {
    color: #c45a3b;
}

.ac-filter-checkbox input[type="checkbox"] {
    display: none;
}

.ac-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ac-filter-checkbox input[type="checkbox"]:checked + .ac-checkbox-custom {
    background-color: #c45a3b;
    border-color: #c45a3b;
}

.ac-filter-checkbox input[type="checkbox"]:checked + .ac-checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.ac-checkbox-label {
    font-size: 15px;
    font-weight: 400;
}

/* Range Slider */
.ac-filter-range {
    padding-top: 5px;
}

.ac-range-slider {
    position: relative;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 20px;
}

.ac-range-fill {
    position: absolute;
    height: 100%;
    background-color: #c45a3b;
    border-radius: 2px;
    left: 10%;
    right: 10%;
}

.ac-range-thumb {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background-color: #c45a3b;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ac-range-thumb:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.ac-range-thumb-min {
    left: 10%;
}

.ac-range-thumb-max {
    left: 90%;
}

.ac-range-values {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-family: "Delight", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

/* Brand Search */
.ac-filter-search {
    margin-bottom: 18px;
}

.ac-filter-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 4px;
}

.ac-filter-search-input {
    flex: 1;
    padding: 10px 12px 10px 14px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 400;
    outline: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ac-filter-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ac-filter-search-input:focus {
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Override any autofill styles */
.ac-filter-search-input:-webkit-autofill,
.ac-filter-search-input:-webkit-autofill:hover,
.ac-filter-search-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s;
}

.ac-search-icon-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.ac-search-icon-btn:hover {
    color: #ffffff;
}

.ac-search-icon-btn svg {
    width: 16px;
    height: 16px;
}

.ac-filter-brand-list {
    margin-bottom: 10px;
}

/* Filter Actions */
.ac-filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.ac-filter-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.ac-filter-clear {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ac-filter-clear:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.ac-filter-apply {
    background-color: #333333;
    color: #ffffff;
}

.ac-filter-apply:hover {
    background-color: #444444;
    color: #ffffff;
}

/* Mobile close button */
.ac-filters-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #ffffff;
}

/* Legacy filter styles (keep for compatibility) */
.ac-filters-header {
    display: none;
}

.ac-filters-close {
    display: none;
}

.ac-filters-content {
    /* Filter content styles */
}

.ac-filter-group {
    margin-bottom: 30px;
}

.ac-filter-group-title {
    font-family: "Delight", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ac-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ac-filter-item {
    margin-bottom: 10px;
}

.ac-filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.ac-filter-link:hover,
.ac-filter-link.active {
    color: #c45a3b;
}

.ac-filter-count {
    font-size: 12px;
    color: #999999;
}

/* ========================================
   PRODUCTS GRID
   ======================================== */

.ac-products-grid-wrapper {
    flex: 1;
    min-width: 0;
}

/* Override WooCommerce default grid */
.ac-product-archive .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
}

.ac-product-archive .filter-open .products {
    grid-template-columns: repeat(3, 1fr);
}

.ac-product-archive .products::before,
.ac-product-archive .products::after,
.woocommerce .ac-product-archive .products::before,
.woocommerce .ac-product-archive .products::after,
.woocommerce .ac-product-archive ul.products::before,
.woocommerce .ac-product-archive ul.products::after,
.woocommerce-page .ac-product-archive ul.products::before,
.woocommerce-page .ac-product-archive ul.products::after,
.ac-product-archive ul.products::before,
.ac-product-archive ul.products::after {
    content: none !important;
    display: none !important;
}

/* Product Card Styles */
.ac-product-archive .products .product {
    margin: 0 !important;
    margin-bottom: 10px !important;
    padding: 0;
    width: 100% !important;
    float: none !important;
    clear: none !important;
}

.ac-product-archive .products .product .woocommerce-LoopProduct-link {
    display: block;
    text-decoration: none;
}

/* ========================================
   PAGINATION
   ======================================== */

.ac-product-archive .woocommerce-pagination {
    margin-top: 60px;
    text-align: center;
}

.ac-product-archive .woocommerce-pagination ul {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ac-product-archive .woocommerce-pagination ul li {
    margin: 0;
}

.ac-product-archive .woocommerce-pagination ul li a,
.ac-product-archive .woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.ac-product-archive .woocommerce-pagination ul li a:hover {
    background-color: #f5f5f5;
    border-color: #c45a3b;
}

.ac-product-archive .woocommerce-pagination ul li span.current {
    background-color: #c45a3b;
    color: #ffffff;
    border-color: #c45a3b;
}

/* ========================================
   NO PRODUCTS FOUND
   ======================================== */

.ac-no-products-found {
    text-align: center;
    padding: 80px 40px;
    background-color: #ffffff;
}

.ac-no-products-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background-color: #f5f5f5;
    border-radius: 50%;
    margin-bottom: 30px;
    color: #c45a3b;
}

.ac-no-products-icon svg {
    width: 48px;
    height: 48px;
}

.ac-no-products-title {
    font-family: "Delight", sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.ac-no-products-text {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    margin: 0 0 30px 0;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ac-no-products-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.ac-no-products-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.ac-no-products-clear {
    background-color: transparent;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.ac-no-products-clear:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.ac-no-products-shop {
    background-color: #c45a3b;
    color: #ffffff;
}

.ac-no-products-shop:hover {
    background-color: #a84a2f;
    color: #ffffff;
}

/* Legacy WooCommerce info - hide when using custom message */
.ac-product-archive .woocommerce-info {
    display: none;
}

/* ========================================
   NO PRODUCTS FOUND - RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .ac-no-products-found {
        padding: 60px 20px;
    }
    
    .ac-no-products-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }
    
    .ac-no-products-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .ac-no-products-title {
        font-size: 28px;
    }
    
    .ac-no-products-text {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .ac-no-products-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
    
}

@media (max-width: 480px) {
    .ac-no-products-found {
        padding: 40px 15px;
    }
    
    .ac-no-products-title {
        font-size: 24px;
    }
    
    .ac-no-products-text {
        font-size: 14px;
    }
    
    .ac-no-products-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .ac-no-products-btn {
        width: 100%;
    }
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1200px) {
    .ac-product-archive .products {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .ac-product-hero-tagline {
        font-size: 40px;
    }
}

@media (max-width: 1024px) {
    .ac-product-hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .ac-product-hero-tagline {
        font-size: 36px;
    }
    
    .ac-product-archive-container {
        padding: 0 30px;
    }
    
    .ac-archive-header-left {
        gap: 20px;
    }
    
    .ac-archive-title {
        font-size: 26px;
    }
    
    .ac-archive-header-right {
        gap: 15px;
    }
    
    .ac-product-archive .products {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    /* Mobile Filter Sidebar - Full Screen */
    .ac-product-filters {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 100%;
        height: 100%;
        background-color: #1a1a1a;
        z-index: 20000;
        overflow-y: auto;
        padding: 80px 30px 30px 30px;
        transition: left 0.3s ease;
        box-shadow: none;
        border-radius: 0;
    }
    
    .ac-product-filters.active {
        left: 0;
    }
    
    .ac-filters-close {
        display: block;
        position: fixed;
        top: 20px;
        right: 15px;
        z-index: 20001;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
        color: #ffffff;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .ac-filters-close svg {
        width: 24px;
        height: 24px;
    }
    
    .ac-products-section .ac-product-archive-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .ac-product-hero {
        height: 100vh;
        min-height: 100vh;
        max-height: none;
    }

    .ac-products-section .ac-product-archive-container {
        padding: 0;
    }
    
    .ac-product-hero-content {
        padding: 0 20px;
    }
    
    .ac-product-hero-tagline {
        font-size: 32px;
    }
    
    .ac-product-archive-header .ac-product-archive-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 10px 15px;
        align-items: center;
    }
    
    .ac-archive-header-left {
        display: contents;
    }
    
    .ac-archive-header-right {
        display: contents;
    }
    
    .ac-archive-title {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: left;
        font-size: 28px;
    }
    
    .ac-filter-toggle {
        grid-column: 1;
        grid-row: 2;
        padding: 0;
        font-size: 0;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: transparent !important;
        color: #1a1a1a !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .ac-product-count {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
        font-size: 16px;
    }
    
    .ac-sort-wrapper {
        display: none;
    }
    
    .ac-compare-button {
        grid-column: 3;
        grid-row: 2;
        padding: 10px 20px;
    }
    
    .ac-product-archive-container {
        padding: 0 20px;
    }
    
    .ac-filter-toggle span {
        display: none;
    }
    
    /* Hide chevron icons on mobile */
    .ac-filter-toggle .ac-filter-icon-up,
    .ac-filter-toggle .ac-filter-icon-down,
    .ac-filter-toggle.active .ac-filter-icon-up {
        display: none !important;
    }
    
    /* Show mobile filter icon */
    .ac-filter-toggle .ac-filter-icon-mobile {
        display: block !important;
        width: 44px;
        height: 44px;
    }
    
    .ac-filter-toggle:hover,
    .ac-filter-toggle.active {
        background-color: transparent !important;
        color: #1a1a1a !important;
    }
    
    .ac-product-archive .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        overflow: hidden;
    }
    
    .ac-products-section {
        padding: 0 0 60px;
    }
}

@media (max-width: 480px) {
    .ac-product-hero-tagline {
        font-size: 26px;
    }
    
    .ac-archive-title {
        font-size: 20px;
    }
    
    .ac-sort-wrapper {
        display: none;
    }
    
    .ac-compare-button {
        width: auto;
        margin-top: 0;
    }
    
    .ac-product-archive .products .product .woocommerce-loop-product__title {
        font-size: 14px;
    }
    
    .ac-product-archive .products .product .price {
        font-size: 16px;
    }
    
}

/* ========================================
   FULL WIDTH OVERRIDES
   ======================================== */

.ac-product-archive .site-main {
    width: 100%;
    max-width: 100%;
}

.ac-product-archive .inside-article,
.ac-product-archive .site-content {
    max-width: 100%;
    padding: 0;
}

.ac-product-archive #secondary {
    display: none !important;
}

.ac-product-archive .grid-container {
    max-width: 100%;
}

/* Hide default WooCommerce elements */
.ac-product-archive .woocommerce-result-count,
.ac-product-archive .woocommerce-ordering {
    display: none;
}

.ac-product-archive .woocommerce-breadcrumb {
    display: none;
}



/* ========================================
   PAGINATED ARCHIVE STYLES
   ======================================== */

/* Paginated wrapper - no banner */
.ac-product-archive-paginated-wrapper {
    padding-top: 0;
}

/* Products section for paginated pages - same layout as regular */
.ac-products-section-paginated {
    padding: 40px 0 80px;
}

.ac-products-section-paginated .ac-product-archive-container {
    display: flex;
    gap: 40px;
}

/* Paginated page filters - same behavior as regular archive */
.ac-product-archive-paginated .ac-product-filters {
    width: 320px;
    flex-shrink: 0;
    background-color: #1a1a1a;
    border-radius: 16px;
    padding: 35px 30px;
    color: #ffffff;
    display: none;
    position: relative;
    left: auto;
    top: auto;
    height: auto;
    z-index: auto;
    transition: none;
}

.ac-product-archive-paginated .ac-product-filters.active {
    display: block;
    left: auto;
}

/* Ensure close button is hidden on desktop for paginated pages */
.ac-product-archive-paginated .ac-filters-close {
    display: none;
}

/* ========================================
   RESPONSIVE STYLES FOR PAGINATED PAGES
   ======================================== */

@media (max-width: 1024px) {
    .ac-product-archive-paginated .ac-product-filters {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 100%;
        height: 100%;
        background-color: #1a1a1a;
        z-index: 20000;
        overflow-y: auto;
        padding: 80px 30px 30px 30px;
        transition: left 0.3s ease;
        box-shadow: none;
        border-radius: 0;
    }
    
    .ac-product-archive-paginated .ac-product-filters.active {
        left: 0;
        display: block;
    }
    
    .ac-product-archive-paginated .ac-filters-close {
        display: block;
        position: fixed;
        top: 20px;
        right: 15px;
        z-index: 20001;
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
        color: #ffffff;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .ac-products-section-paginated .ac-product-archive-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .ac-products-section-paginated {
        padding: 20px 0 60px;
    }
    
    .ac-product-archive-paginated .ac-product-filters {
        max-width: 100%;
    }
}

/* Body class when filters are open */
body.ac-filters-open {
    overflow: hidden;
}

/* ========================================
   PAGINATION STYLES ENHANCEMENT
   ======================================== */

/* Custom pagination - minimal design matching screenshot */
.ac-product-archive .woocommerce-pagination,
.ac-product-archive-paginated .woocommerce-pagination {
    margin-top: 60px;
    text-align: center;
}

.ac-product-archive .woocommerce-pagination ul,
.ac-product-archive-paginated .woocommerce-pagination ul {
    display: inline-flex !important;
    gap: 0 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    border: none !important;
    background: none !important;
}

.ac-product-archive .woocommerce-pagination ul li,
.ac-product-archive-paginated .woocommerce-pagination ul li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    display: inline-flex !important;
}

/* Page numbers and next arrow - remove all borders and backgrounds */
.ac-product-archive .woocommerce-pagination ul li a,
.ac-product-archive .woocommerce-pagination ul li span,
.ac-product-archive-paginated .woocommerce-pagination ul li a,
.ac-product-archive-paginated .woocommerce-pagination ul li span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: auto !important;
    height: auto !important;
    padding: 0 6px !important;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    border: none !important;
    border-radius: 0 !important;
    transition: color 0.3s ease;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Hover state for links */
.ac-product-archive .woocommerce-pagination ul li a:hover,
.ac-product-archive-paginated .woocommerce-pagination ul li a:hover {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    color: #666666;
}

/* Current/active page */
.ac-product-archive .woocommerce-pagination ul li span.current,
.ac-product-archive-paginated .woocommerce-pagination ul li span.current {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    color: #000000;
    font-weight: 600;
}

/* Next arrow button - change to simple > symbol */
.ac-product-archive .woocommerce-pagination ul li a.next,
.ac-product-archive-paginated .woocommerce-pagination ul li a.next {
    font-weight: 400;
    padding-left: 8px !important;
    font-size: 0;
}

.ac-product-archive .woocommerce-pagination ul li a.next::after,
.ac-product-archive-paginated .woocommerce-pagination ul li a.next::after {
    content: '>';
    font-size: 16px;
}

/* Dots/ellipsis */
.ac-product-archive .woocommerce-pagination ul li span.dots,
.ac-product-archive-paginated .woocommerce-pagination ul li span.dots {
    border: none !important;
    background: none !important;
    background-color: transparent !important;
    min-width: auto;
    padding: 0 6px !important;
    color: #000000;
}

/* Previous/Back button - show on paginated pages */
.ac-product-archive-paginated .woocommerce-pagination ul li a.prev {
    display: inline-flex !important;
    font-weight: 400;
    padding-right: 8px !important;
    font-size: 0;
}

.ac-product-archive-paginated .woocommerce-pagination ul li a.prev::before {
    content: '<';
    font-size: 16px;
}

/* Hide previous button on first page */
.ac-product-archive .woocommerce-pagination ul li a.prev {
    display: none !important;
}

/* ========================================
   ARCHIVE CONTENT SECTION (AFTER PAGINATION)
   ======================================== */

.ac-archive-content-section {
    padding: 60px 0 80px;
}

.ac-archive-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.ac-archive-content-heading {
    font-family: "Delight", sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    line-height: 1.2;
}

.ac-archive-content-block {
    margin-bottom: 30px;
}

.ac-archive-content-block:last-child {
    margin-bottom: 0;
}

.ac-archive-content-subheading {
    font-family: "Delight", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.ac-archive-content-text {
    font-size: 15px;
    font-weight: 400;
    color: #333333;
    line-height: 1.7;
    margin: 0 0 15px 0;
}

.ac-archive-content-text strong {
    font-weight: 600;
    color: #1a1a1a;
}

.ac-archive-content-text:last-child {
    margin-bottom: 0;
}

.ac-archive-content-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ac-archive-content-list li {
    font-size: 15px;
    font-weight: 400;
    color: #333333;
    line-height: 1.7;
    margin-bottom: 10px;
    padding-left: 0;
    position: relative;
}

.ac-archive-content-list li:last-child {
    margin-bottom: 0;
}

.ac-archive-content-list li strong {
    font-weight: 600;
    color: #1a1a1a;
}

/* ========================================
   RESPONSIVE STYLES FOR CONTENT SECTION
   ======================================== */

@media (max-width: 1024px) {
    .ac-archive-content-section {
        padding: 50px 0 60px;
    }

    .ac-archive-content-heading {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .ac-archive-content-section {
        padding: 40px 0 50px;
    }

    .ac-archive-content-heading {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .ac-archive-content-subheading {
        font-size: 18px;
    }

    .ac-archive-content-text,
    .ac-archive-content-list li {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .ac-archive-content-heading {
        font-size: 24px;
    }

    .ac-archive-content-subheading {
        font-size: 16px;
    }
}
