/**
 * Dynamic Section Styles
 *
 * @package Hello_Elementor_Child
 * @since 1.0.0
 */

.fd-filters {
    background: #ffffff;
    padding: 25px 20px;
    margin-bottom: 30px;
    border-radius: 12px;
}
.fd-filters-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.fd-filter-btn {
    padding: 10px 20px;
    border: 2px solid #e5e5e5;
    background: #ffffff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    color: #000000;
    font-weight: 500;
}
.fd-filter-btn:hover {
    border-color: #c1a35f !important;
    color: #c1a35f !important;
    background-color: #ffffff !important;
}
.fd-filter-btn.active {
    background: #c1a35f !important;
    color: #ffffff;
    border-color: #c1a35f;
    font-weight: 600;
}
.fd-filter-btn.active:hover {
    color: #ffffff !important;
}
.fd-sort-section {
    background: #f5f5f7;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.fd-product-count {
    font-size: 16px;
    color: #666666;
    font-weight: 500;
}
.fd-sort-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.fd-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}
.fd-per-page-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}
.fd-sort-label,
.fd-per-page-label {
    font-size: 14px;
    color: #000000;
    font-weight: 500;
}
.fd-sort-select,
.fd-per-page-select {
    padding: 10px 40px 10px 20px;
    border: 2px solid #e5e5e5;
    background: #ffffff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #000000;
    font-weight: 500;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    min-width: 180px;
}
.fd-sort-select:hover,
.fd-per-page-select:hover {
    border-color: #c1a35f;
}
.fd-sort-select:focus,
.fd-per-page-select:focus {
    outline: none;
    border-color: #c1a35f;
}
.fd-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.fd-product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.fd-product-card.hidden {
    display: none;
}
.fd-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(193, 163, 95, 0.2);
    border-color: #c1a35f;
}
.fd-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.fd-product-image {
    position: relative;
    padding-top: 100%;
    background: #fafafa;
    overflow: hidden;
}
.fd-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.fd-product-card:hover .fd-product-image img {
    transform: scale(1.05);
}
.fd-badge-promo {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #c1a35f;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(193, 163, 95, 0.3);
}
.fd-product-info {
    padding: 20px;
}
.fd-product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
}
.fd-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.fd-price-old {
    color: #999999;
    text-decoration: line-through;
    font-size: 16px;
}
.fd-price-new {
    color: #c1a35f;
    font-size: 24px;
    font-weight: 700;
}
.fd-savings {
    font-size: 14px;
    color: #c1a35f;
    font-weight: 600;
    margin-bottom: 15px;
}
.fd-cta-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #000000;
    color: #ffffff;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}
.fd-product-card:hover .fd-cta-button {
    background: #c1a35f;
}
.fd-no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
    font-size: 16px;
    display: none;
}
.fd-no-products.show {
    display: block;
}
@media (max-width: 768px) {
    .fd-products {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
        padding: 0 15px;
    }
    .fd-sort-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .fd-sort-controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .fd-sort-wrapper,
    .fd-per-page-wrapper {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .fd-sort-select,
    .fd-per-page-select {
        width: 100%;
    }
    .fd-filters-group {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .fd-filters-group::-webkit-scrollbar {
        display: none;
    }
}
