/* DOREE GLAM Shop Filters Styling */

/* Remove Elementor constraints */
.elementor-widget-woocommerce-products .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
}

/* Shop Container Layout - Full Bleed */
.doree-glam-shop-container {
    display: flex !important;
    gap: 30px !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 40px 20px !important;
    background-color: #faf8f6 !important;
}

.doree-glam-products-container {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Override WooCommerce grid wrapper */
.doree-glam-products-wrapper .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.doree-glam-products-wrapper {
    width: 100% !important;
    flex: 1 !important;
}

/* For shortcode-based layout */
.doree-glam-shop-wrapper {
    display: flex !important;
    gap: 30px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 40px 20px !important;
    background-color: #faf8f6 !important;
}

.doree-glam-filters-wrapper {
    flex: 0 0 350px !important;
}

.doree-glam-products-wrapper {
    flex: 1 !important;
    min-width: 0 !important;
}

/* FILTERS SIDEBAR */
.doree-glam-filters-sidebar {
    flex: 0 0 350px !important;
    width: 350px !important;
    background-color: #ffffff !important;
    padding: 30px 20px !important;
    border-radius: 4px !important;
    height: fit-content !important;
    position: sticky !important;
    top: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.filters-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #2c1810;
    letter-spacing: 0.5px;
}

.clear-filters {
    font-size: 13px;
    color: #d17d3a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.clear-filters:hover {
    color: #b85f26;
}

/* FILTER GROUPS */
.filter-group {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

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

.filter-title {
    margin: 0 0 15px 0;
    font-size: 13px;
    font-weight: 700;
    color: #2c1810;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-icon {
    font-size: 18px;
    color: #8B4513;
    transition: transform 0.3s ease;
}

.filter-title.collapsed .toggle-icon {
    transform: rotate(45deg);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #8B4513;
}

.filter-option input[type="checkbox"]:hover,
.filter-option input[type="radio"]:hover {
    opacity: 0.7;
}

.count {
    color: #999;
    font-size: 12px;
    margin-left: auto;
}

/* PRODUCTS SECTION */
.doree-glam-products-section {
    flex: 1;
}

.woocommerce-result-count {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.product:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: #d17d3a;
}

.product-image {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    aspect-ratio: 1 / 1;
    width: 100%;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product:hover .product-image img {
    transform: scale(1.08);
}

/* SALE BADGE */
.doree-glam-sale-badge,
.onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #d17d3a;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 2px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* PRODUCT INFO */
.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.woocommerce-loop-product__title,
.woocommerce-loop-product__title a {
    font-size: 13px;
    color: #2c1810;
    font-weight: 500;
    text-decoration: none;
    margin: 0 0 8px 0;
    line-height: 1.4;
    min-height: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.woocommerce-loop-product__title a {
    transition: all 0.3s ease;
}

.woocommerce-loop-product__title a:hover {
    color: #d17d3a;
    font-weight: 600;
}

/* RATING */
.star-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
    font-size: 12px;
}

.star-rating .stars {
    color: #ffc107;
}

.star-rating .count {
    color: #999;
    font-size: 12px;
}

/* PRICE */
.price {
    text-align: center !important;
    width: 100%;
}

.woocommerce-Price-amount {
    font-size: 16px;
    font-weight: 700;
    color: #d17d3a;
    margin-bottom: 12px;
    margin-top: 8px;
    text-align: center !important;
}

.woocommerce-Price-currencySymbol {
    font-size: 14px;
}

del {
    color: #999;
    font-size: 13px;
    margin-right: 8px;
    text-decoration: line-through;
    display: inline;
}

/* COLOR SWATCHES */
.product-colors {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.color-swatch:hover {
    border-color: #8B4513;
}

/* BUTTONS */
.button,
.add_to_cart_button,
button.add_to_cart_button {
    width: 100%;
    padding: 12px 10px;
    background-color: #8B4513;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    text-align: center !important;
}

.button:hover,
.add_to_cart_button:hover,
button.add_to_cart_button:hover {
    background-color: #d17d3a;
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.25);
}

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

.woocommerce-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #e0e0e0;
    color: #2c1810;
    text-decoration: none;
    border-radius: 2px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.woocommerce-pagination .page-numbers:hover {
    border-color: #8B4513;
    color: #8B4513;
}

.woocommerce-pagination .page-numbers.current {
    background-color: #8B4513;
    color: #ffffff;
    border-color: #8B4513;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .doree-glam-shop-wrapper {
        flex-direction: column;
    }

    .doree-glam-filters-sidebar {
        flex: 1;
        position: static;
        max-height: none;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .doree-glam-shop-wrapper {
        padding: 20px 15px;
        gap: 20px;
    }

    .doree-glam-filters-sidebar {
        padding: 20px 15px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .filter-title {
        font-size: 12px;
    }

    .filter-option {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .doree-glam-shop-wrapper {
        flex-direction: column;
        padding: 15px 10px;
    }

    .doree-glam-filters-sidebar {
        padding: 15px 10px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .woocommerce-loop-product__title {
        font-size: 12px;
    }
}
