/* assets/css/product-archive.css */
/* Archive Container */
.product-archive-container {
    display: flex;
    gap: 40px;
    margin-top: 0;
}

/* Filters Sidebar */
.product-filters {
    flex: 0 0 250px;
    margin-top: 0;
    padding-top: 0;
}

/* Main Content Area */
.product-archive-main {
    flex: 1;
    margin-top: 0;
    padding-top: 0;
}

.woocommerce-breadcrumb {
    margin-bottom: 20px;
    color: #666;
}

.woocommerce-breadcrumb a {
    color: var(--color-medium-blue);
    text-decoration: none;
}

/* Archive Header Actions */
.archive-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    clear: both;
}

/* Result Count */
.woocommerce-result-count {
    margin: 0;
    line-height: 40px;
    font-size: 14px;
    color: #666;
}

/* Sorting Dropdown */
.woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select.orderby {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.3;
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.woocommerce-ordering select.orderby:focus {
    outline: none;
    border-color: var(--color-medium-blue);
}

/* Product Grid Layout - Updated for better responsiveness */
#product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    width: 100%;
    clear: both;
}

/* Pagination Styles */
.products-pagination {
    margin-top: 30px;
    text-align: center;
}

.products-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--color-heading);
    text-decoration: none;
    font-size: 14px;
}

.products-pagination .page-numbers.current {
    background: var(--color-medium-blue);
    color: white;
    border-color: var(--color-medium-blue);
}

.products-pagination .page-numbers:hover:not(.current) {
    background: #f8f8f8;
}

.products-pagination .dots {
    border: none;
}

/* No Products Found */
.no-products-found {
    text-align: center;
    padding: 40px 20px;
    background: var(--color-white);
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    grid-column: 1 / -1;
}

.no-products-found p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Success Message */
.woocommerce-success {
    background-color: #f0fff4;
    border-left: 4px solid #2c882f;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #1b7a43;
}

/* Error Message */
.woocommerce-error {
    background-color: #fff5f5;
    border-left: 4px solid #e74c3c;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #c0392b;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-archive-container {
        flex-direction: column;
    }

    .product-filters {
        flex: none;
        width: 100%;
    }

    #product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .archive-header-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 15px;
    }

    .woocommerce-ordering {
        width: 100%;
    }

    .woocommerce-result-count {
        width: 100%;
        text-align: left;
    }

    .products-pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        margin: 0 3px;
        font-size: 13px;
    }
}

/* Product Grid Loading State */
.loading #product-grid {
    opacity: 0.5;
    pointer-events: none;
}

/* Filter Loading State */
.product-filters.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Favorites Grid - Always Single Column */
.lincoln-favorites__grid {
    display: grid;
    grid-template-columns: 1fr !important; /* Force single column */
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.lincoln-favorites__grid .product-card {
    max-width: 100%;
    margin: 0 auto;
}

/* Optional: Make the single column cards a bit nicer on larger screens */
@media (min-width: 768px) {
    .lincoln-favorites__grid {
        margin-left: auto;
        margin-right: auto;
    }
    
    .lincoln-favorites__grid .product-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
    
    .lincoln-favorites__grid .product-card__image {
        flex: 0 0 120px;
    }
    
    .lincoln-favorites__grid .product-card__content {
        flex: 1;
    }
}