/**
 * Custom styles for the product archive page
 */

/* Fix for price display */
.price-container .woocommerce-Price-amount {
    display: inline-block;
}


/* Override default WooCommerce styles */
.woocommerce ul.products {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-result-count,
.woocommerce-ordering {
    margin-bottom: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce-result-count {
        margin-bottom: 1rem !important;
    }
}

/* Pagination styling */
.woocommerce-pagination {
    text-align: center;
}

.woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    border: none !important;
}

.woocommerce-pagination .page-numbers li {
    border: none !important;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.woocommerce-pagination .page-numbers a {
    background-color: white;
    color: var(--theme-primary-text);
}

.woocommerce-pagination .page-numbers a:hover {
    background-color: var(--theme-background);
}

.woocommerce-pagination .page-numbers span.current {
    background-color: var(--theme-primary);
    color: white;
}

/* Sale badge */
.woocommerce span.onsale {
    min-height: auto;
    min-width: auto;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.5;
    border-radius: 9999px;
    background-color: var(--theme-accent);
    color: white;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
}

/* "Add to cart" button hover effect */
.products li .product-card a.button {
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Out of stock styling */
.outofstock .product-card:before {
    content: 'Out of Stock';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
}

/* Product category filter styling */
.widget_product_categories .product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_product_categories .product-categories li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.widget_product_categories .product-categories li:last-child {
    border-bottom: none;
}

.widget_product_categories .product-categories a {
    color: var(--theme-primary-text);
    transition: color 0.2s ease;
}

.widget_product_categories .product-categories a:hover {
    color: var(--theme-primary);
}

/* Ordering dropdown styling */
.woocommerce-ordering {
    position: relative;
    display: inline-block;
}

.woocommerce-ordering select.orderby {
    min-width: 200px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.woocommerce-ordering select.orderby::-ms-expand {
    display: none;
}

/* Result count styling */
.woocommerce-result-count {
    font-family: theme('fontFamily.spartan');
    margin: 0;
}

/* Hover and focus states */
.woocommerce-ordering select.orderby:hover {
    border-color: var(--theme-primary);
}

.woocommerce-ordering select.orderby option {
    background-color: white;
    color: var(--theme-primary-text);
    padding: 8px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .woocommerce-ordering select.orderby {
        width: 100%;
        min-width: 100%;
    }
    
    .woocommerce-result-count {
        text-align: center;
        margin-bottom: 1rem;
    }
} 