/**
 * Antonia Scrubs Shop Styles
 * Royce-style full-width product archive
 * 
 * @package Understrap
 */

/* ========== Shop Wrapper - Full Width ========== */
.antonia-shop-wrapper {
    width: 100%;
    padding: 0 40px;
    background: #faf8f6;
    min-height: 100vh;
}

/* ========== WooCommerce Breadcrumbs ========== */
.antonia-woocommerce-breadcrumbs {
    padding: 24px 0 8px;
    font-size: 12px;
    color: #777;
}

.antonia-woocommerce-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.antonia-woocommerce-breadcrumbs li + li::before {
    content: '/';
    margin: 0 9px;
    color: #aaa;
}

.antonia-woocommerce-breadcrumbs a {
    color: #555;
    text-decoration: none;
}

.antonia-woocommerce-breadcrumbs a:hover {
    color: #111;
    text-decoration: underline;
}

.antonia-woocommerce-breadcrumbs .current {
    color: #222;
}

/* ========== Filter Button ========== */
.filter-button-wrap {
    padding: 30px 0;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #c4a07a;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Montserrat", sans-serif;
}

.filter-toggle-btn:hover {
    background: #b08d68;
}

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

/* ========== Filter Panel (Slide-out) ========== */
.filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.filter-panel.active {
    transform: translateX(0);
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #faf8f6;
    border-bottom: 1px solid #e0e0e0;
}

.filter-panel-header h3 {
    font-size: 18px;
    font-weight: 400;
    color: #8b7355;
    margin: 0;
    font-family: "Georgia", serif;
    font-style: italic;
}

.filter-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.filter-close:hover {
    color: #333;
}

.filter-panel-content {
    padding: 20px 25px;
}

/* Filter Groups */
.filter-group {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 15px;
}

.filter-group-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    background: #fff;
    border: none;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    text-align: left;
}

.filter-group-toggle svg {
    transition: transform 0.3s;
}

.filter-group-toggle.active svg {
    transform: rotate(180deg);
}

.filter-group-content {
    display: none;
    padding: 0 20px 20px;
}

.filter-group-content.active {
    display: block;
}

.filter-group-content label {
    display: block;
    padding: 8px 0;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.filter-group-content label:hover {
    color: #333;
}

.filter-group-content input[type="checkbox"] {
    margin-right: 10px;
}

/* Filter Overlay */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== Products Grid ========== */
.antonia-products-grid {
    padding-bottom: 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .antonia-shop-wrapper {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Product Card ========== */
.product-card-wrap {
    width: 100%;
}

.product-card {
    background: transparent;
}

.product-image-link {
    display: block;
    text-decoration: none;
}

.product-image {
    position: relative;
    width: 92%;
    margin: 0 auto;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image .product-img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.4s ease;
}

.product-image .product-img-main {
    position: relative;
    z-index: 1;
}

.product-image .product-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 2;
}

.product-card:hover .product-img-main {
    opacity: 0;
}

.product-card:hover .product-img-hover {
    opacity: 1;
}

/* Product Info */
.product-info {
    padding: 15px 0;
}

.product-title {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 5px 0;
    font-family: "Georgia", serif;
    font-style: italic;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: #0e5f76;
}

.product-price {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    font-family: "Montserrat", sans-serif;
}

.product-price del {
    color: #999;
    margin-right: 8px;
}

.product-price ins {
    text-decoration: none;
    color: #c4a07a;
    font-weight: 500;
}

/* ========== Star Ratings ========== */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.product-rating .stars {
    display: flex;
    gap: 2px;
}

.product-rating .star {
    font-size: 12px;
    line-height: 1;
}

.product-rating .star.filled {
    color: #c4a07a;
}

.product-rating .star.half {
    color: #c4a07a;
    position: relative;
}

.product-rating .star.empty {
    color: #ddd;
}

.product-rating .review-count {
    font-size: 11px;
    color: #999;
    font-family: "Montserrat", sans-serif;
}

/* ========== Color Swatches ========== */
.product-colors {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* White swatch needs visible border */
.color-swatch[style*="FFFFFF"],
.color-swatch[style*="ffffff"],
.color-swatch[style*="white"] {
    border-color: #ccc;
}

/* ========== WooCommerce Overrides ========== */
.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
}

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

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.woocommerce-pagination ul li a:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.woocommerce-pagination ul li span.current {
    background: #333;
    border-color: #333;
    color: #fff;
}

/* Result Count & Ordering */
.woocommerce-result-count,
.woocommerce-ordering {
    display: none;
}
