/* Aktif filtreler modern kart görünümü */
.spfp-active-filters {
    margin-bottom: 24px;
    min-height: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.spfp-active-filter.spfp-card {
    display: flex;
    align-items: center;
    background: #fff;
    color: #333;
    border-radius: 18px;
    padding: 6px 18px 6px 10px;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(212,165,116,0.10), 0 1.5px 4px rgba(0,0,0,0.04);
    border: 1.5px solid #22a94f;
    cursor: pointer;
    min-height: 36px;
    transition: box-shadow 0.2s, border 0.2s;
}
.spfp-active-filter.spfp-card:hover {
    box-shadow: 0 4px 16px rgba(212,165,116,0.18), 0 2px 8px rgba(0,0,0,0.08);
    border: 1.5px solid #dc3545;
}
.spfp-active-filter-card.spfp-color-card {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1.5px solid #22a94f;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: inline-block;
}
.spfp-active-filter-label {
    font-weight: 600;
    margin-right: 6px;
    letter-spacing: 0.01em;
}
.spfp-active-filter-remove {
    margin-left: 8px;
    color: #22a94f;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.spfp-active-filter-remove:hover {
    color: #dc3545;
}
/* --- Pagination Styles --- */
.spfp-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 32px;
    margin-bottom: 16px;
}
.spfp-page-btn {
    background-color: #22a94f;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(34,169,79,0.07);
}
.spfp-page-btn.spfp-active,
.spfp-page-btn:hover {
    background-color: #1c8c41;
}

@media (max-width: 767px) {
    .spfp-pagination {
        gap: 8px;
        margin-top: 20px;
    }
    .spfp-page-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

/* --- Responsive Grid: 2 columns on mobile --- */
@media (max-width: 767px) {
    .spfp-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Grid scroll fix for mobile: min-height and overflow */
.spfp-products-grid {
    min-height: 300px;
    overflow-x: visible;
    overflow-y: visible;
}
/* Smart Product Filters Pro - Styles */
/* Tüm class isimleri spfp- öneki ile benzersiz yapıldı */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

.spfp-container {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    padding: 0;
    margin: 0;
}

/* General layout matching the provided Figma design */
.spfp-product-list-container {
    display: flex;
    gap: 50px;
    padding: 2rem 5%; /* Responsive padding */
    max-width: 1920px;
    margin: auto;
}

/* --- Filter Sidebar Styles --- */
.spfp-filter-sidebar {
    width: 250px; /* Fixed width for desktop */
    flex-shrink: 0;
}

.spfp-filter-group {
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.spfp-filter-title {
    font-size: 15px;
    font-weight: 500;
    color: #374151; /* gray-700 */
    margin-bottom: 1rem;
}

.spfp-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 8px;
}

.spfp-filter-checkbox .spfp-checkbox-box {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #d1d5db; /* gray-300 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.spfp-filter-checkbox .spfp-checkbox-box.spfp-checked {
    background-color: #22a94f; /* Green */
    border-color: #22a94f;
}

.spfp-filter-checkbox .spfp-checkbox-box.spfp-checked::after {
    content: '✔';
    color: white;
    font-size: 12px;
}

.spfp-filter-checkbox .spfp-checkbox-label {
    font-size: 15px;
    color: #4b5563; /* gray-600 */
}

.spfp-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.spfp-color-swatch {
    position: relative;
    display: inline-block;
}

.spfp-color-tooltip {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 50%;
    bottom: 110%;
    transform: translateX(-50%) translateY(-6px);
    background: #222;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    transition: opacity 0.2s, transform 0.2s;
}

.spfp-color-swatch:hover .spfp-color-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-12px);
}

.spfp-color-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

.spfp-color-swatch-inner.spfp-split {
    position: relative;
    background: none !important;
}

.spfp-split-left, .spfp-split-right {
    position: absolute;
    top: 0; bottom: 0;
    width: 50%;
    height: 100%;
    border-radius: 50%;
    z-index: 1;
}

.spfp-split-left {
    left: 0;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.spfp-split-right {
    right: 0;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Çift renk desteği için gradient'ler */
/* .spfp-color-swatch-inner[style*="linear-gradient"] {
    background-size: 200% 100% !important;
    background-position: 0% 0% !important;
} */

.spfp-color-swatch-inner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #000;
    box-sizing: border-box;
    display: block;
    transition: border 0.2s;
}

.spfp-color-swatch.spfp-active .spfp-color-swatch-inner {
    border: 3px solid #22a94f !important;
}

/* --- Product Grid Styles --- */
.spfp-products-grid {
    flex-grow: 1;
}

.spfp-grid-container {
    display: grid;
    gap: 20px;
    /* Responsive grid columns */
    grid-template-columns: repeat(1, 1fr); /* Mobile default */
}

/* --- Responsive Breakpoints for Grid --- */
@media (min-width: 768px) { /* md */
    .spfp-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) { /* lg */
    .spfp-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Product Card Styles --- */
.spfp-product-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer; /* Tıklanabilir olduğunu göster */
}
.spfp-product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px); /* Hafif yukarı kaldırma efekti */
    border-color: #22a94f; /* Hover'da yeşil border */
}

.spfp-product-image {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-size: cover;
    background-position: center;
    cursor: pointer; /* Görsel de tıklanabilir */
    transition: transform 0.3s ease;
}

.spfp-product-card:hover .spfp-product-image {
    transform: scale(1.02); /* Hover'da hafif büyütme */
}

.spfp-product-details {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer; /* Detaylar kısmı da tıklanabilir */
}

.spfp-product-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start; /* Align text to the left */
    cursor: pointer; /* Bilgi alanı tıklanabilir */
}

.spfp-product-title {
    font-size: 16px;
    font-weight: 500;
    color: #337a5b; /* Dark Green */
    line-height: 1.4;
    cursor: pointer; /* Başlık tıklanabilir */
    transition: color 0.2s ease;
}

.spfp-product-card:hover .spfp-product-title {
    color: #22a94f; /* Hover'da daha parlak yeşil */
    text-decoration: underline; /* Link olduğunu belirtmek için */
}

.spfp-product-rating {
    display: flex;
    gap: 2px;
    color: #f59e0b; /* amber-500 */
}

.spfp-product-price {
    display: flex;
    align-items: center;
    gap: 7px;
}

.spfp-product-price .spfp-sale-price {
    font-size: 14px;
    font-weight: 700;
    color: #337a5b;
}

.spfp-product-price .spfp-regular-price {
    font-size: 12px;
    color: #6b7280; /* gray-500 */
    text-decoration: line-through;
    opacity: 0.7;
}

.spfp-add-to-cart-btn {
    background-color: #22a94f;
    border-radius: 12px;
    padding: 10px !important;
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    border: none;
    z-index: 10; /* Üstte olduğunu garanti et */
    position: relative; /* Tıklama alanını korumak için */
}
.spfp-add-to-cart-btn:hover {
    background-color: #1c8c41;
    transform: scale(1.05); /* Hover'da büyütme */
    box-shadow: 0 4px 12px rgba(34, 169, 79, 0.3); /* Gölge efekti */
}

.spfp-add-to-cart-btn:active {
    transform: scale(0.95); /* Tıklandığında küçültme */
}

/* Loading Spinner */
.spfp-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #22a94f;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spfp-spin 1s linear infinite;
    margin: 5rem auto;
}
@keyframes spfp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ürün kartı tıklama feedback'i */
.spfp-product-card:active {
    transform: translateY(-1px) scale(0.98);
}

/* Genel cursor iyileştirmeleri */
.spfp-product-card * {
    cursor: pointer; /* Tüm içerik tıklanabilir */
}

.spfp-add-to-cart-btn,
.spfp-add-to-cart-btn * {
    cursor: pointer !important; /* Sepet butonu */
}

/* Mobile filter toggle */
.spfp-mobile-filter-toggle {
    display: none; /* Hidden on desktop */
}

.spfp-no-products {
    grid-column: 1 / -1;
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    padding: 3rem 0;
}

/* Responsive adjustments for filters */
@media (max-width: 1023px) { /* Below lg */
    .spfp-product-list-container {
        flex-direction: column;
    }
    .spfp-filter-sidebar {
        width: 100%;
        display: none; /* Initially hidden on mobile */
    }
    .spfp-filter-sidebar.spfp-open {
        display: block; /* Show when toggled */
    }
    .spfp-mobile-filter-toggle {
        display: block;
        margin-bottom: 1rem;
        padding: 0.75rem 1.5rem;
        background-color: #22a94f;
        color: white;
        border-radius: 8px;
        text-align: center;
        cursor: pointer;
        border: none;
        width: 100%;
        font-size: 16px;
    }
    .spfp-mobile-filter-toggle:hover {
        background-color: #1c8c41;
    }
}
