/**
 * Woo Filter Pro v1.4 - Stiller
 * WoodMart teması ile uyumlu, tema CSS'ini ezmiyor
 */

/* ===========================================
   ANA WRAPPER
   =========================================== */
.wfp-filter-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    font-family: inherit;
    box-sizing: border-box;
}

.wfp-filter-wrapper * {
    box-sizing: border-box;
}

.wfp-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f1f1;
}

.wfp-filter-title {
    font-size: 18px;
    margin: 0;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

/* Mobile toggle - masaüstünde GİZLİ */
.wfp-filter-wrapper .wfp-mobile-toggle {
    display: none !important;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    color: #555;
    font-size: 16px;
    line-height: 1;
    align-items: center;
    justify-content: center;
}

/* ===========================================
   FORM BÖLÜMLERİ
   =========================================== */
.wfp-filter-wrapper .wfp-filter-section {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f1f1f1;
}

.wfp-filter-wrapper .wfp-filter-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.wfp-filter-wrapper .wfp-filter-section h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
    color: #333;
    font-weight: 700;
    line-height: 1.3;
}

/* ===========================================
   ARAMA INPUT
   =========================================== */
.wfp-filter-wrapper .wfp-search-input,
.wfp-filter-wrapper .wfp-cat-search {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fafafa;
    transition: border 0.2s, background 0.2s;
    line-height: 1.4;
    height: auto;
    margin: 0;
}

.wfp-filter-wrapper .wfp-search-input:focus,
.wfp-filter-wrapper .wfp-cat-search:focus {
    border-color: #ed4949;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(237, 73, 73, 0.1);
}

.wfp-filter-wrapper .wfp-cat-search {
    margin-bottom: 10px;
    font-size: 13px;
    padding: 7px 10px;
}

/* ===========================================
   HİYERARŞİK KATEGORİ AĞACI
   =========================================== */
.wfp-filter-wrapper .wfp-category-tree {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.wfp-filter-wrapper .wfp-category-tree::-webkit-scrollbar {
    width: 6px;
}

.wfp-filter-wrapper .wfp-category-tree::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.wfp-filter-wrapper .wfp-category-tree::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.wfp-filter-wrapper .wfp-category-list,
.wfp-filter-wrapper .wfp-category-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wfp-filter-wrapper .wfp-category-children {
    display: none;
    padding-left: 18px;
    border-left: 1px dashed #e0e0e0;
    margin-left: 10px;
    margin-top: 2px;
}

.wfp-filter-wrapper .wfp-category-item.wfp-open > .wfp-category-children {
    display: block;
}

.wfp-filter-wrapper .wfp-category-item {
    margin: 1px 0;
    padding: 0;
    list-style: none;
}

.wfp-filter-wrapper .wfp-category-row {
    display: flex;
    align-items: center;
    padding: 3px 4px;
    border-radius: 4px;
    transition: background 0.15s;
}

.wfp-filter-wrapper .wfp-category-row:hover {
    background: #f7f7f7;
}

/* Aç-kapa butonu - KÜÇÜK ve sade */
.wfp-filter-wrapper .wfp-toggle-children {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    background: transparent !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    cursor: pointer;
    margin-right: 6px;
    padding: 0 !important;
    flex-shrink: 0;
    transition: all 0.15s;
    color: #666 !important;
    box-shadow: none !important;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1;
    font-family: inherit;
}

.wfp-filter-wrapper .wfp-toggle-children:hover {
    background: #f1f1f1 !important;
    border-color: #999 !important;
    color: #333 !important;
}

.wfp-filter-wrapper .wfp-toggle-icon {
    font-size: 12px;
    line-height: 1;
    font-weight: bold;
    color: inherit;
    display: block;
}

.wfp-filter-wrapper .wfp-toggle-spacer {
    display: inline-block;
    width: 18px;
    margin-right: 6px;
    flex-shrink: 0;
}

/* Kategori label */
.wfp-filter-wrapper .wfp-category-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    font-weight: normal;
    text-transform: none;
}

.wfp-filter-wrapper .wfp-category-input {
    margin: 0 8px 0 0;
    cursor: pointer;
    flex-shrink: 0;
    width: auto;
    height: auto;
}

.wfp-filter-wrapper .wfp-category-name {
    flex: 1;
    color: #333;
}

.wfp-filter-wrapper .wfp-category-count {
    color: #999;
    font-size: 11px;
    margin-left: 4px;
}

/* Arama sonucu vurgu */
.wfp-filter-wrapper .wfp-category-item.wfp-search-match > .wfp-category-row {
    background: #fff3cd;
}

/* ===========================================
   FİYAT SLİDERI (noUiSlider)
   =========================================== */
.wfp-filter-wrapper .wfp-price-slider-wrapper {
    padding: 8px 10px 18px 10px;
}

.wfp-filter-wrapper .wfp-price-slider {
    height: 6px;
}

.wfp-filter-wrapper .noUi-target {
    background: #f1f1f1;
    border: none;
    box-shadow: none;
    border-radius: 3px;
}

.wfp-filter-wrapper .noUi-connect {
    background: #ed4949;
}

.wfp-filter-wrapper .noUi-horizontal .noUi-handle {
    width: 20px;
    height: 20px;
    top: -7px;
    right: -10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ed4949;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.wfp-filter-wrapper .noUi-handle::before,
.wfp-filter-wrapper .noUi-handle::after {
    display: none;
}

/* Fiyat gösterim */
.wfp-filter-wrapper .wfp-price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 13px;
    color: #555;
    flex-wrap: wrap;
}

.wfp-filter-wrapper .wfp-price-label {
    color: #999;
}

.wfp-filter-wrapper .wfp-price-min-display,
.wfp-filter-wrapper .wfp-price-max-display {
    color: #ed4949;
    font-weight: 600;
}

.wfp-filter-wrapper .wfp-price-separator {
    color: #ccc;
}

/* ===========================================
   ANA BUTONLAR (FİLTRELE / TEMİZLE)
   =========================================== */
.wfp-filter-wrapper .wfp-filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.wfp-filter-wrapper .wfp-filter-submit,
.wfp-filter-wrapper .wfp-filter-reset {
    flex: 1;
    border: none !important;
    padding: 10px 14px !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.2s;
    font-family: inherit;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
    height: auto !important;
    width: auto;
    min-width: 0;
    box-shadow: none !important;
}

.wfp-filter-wrapper .wfp-filter-submit {
    background: #ed4949 !important;
    color: #fff !important;
}

.wfp-filter-wrapper .wfp-filter-submit:hover {
    background: #d63a3a !important;
    color: #fff !important;
}

.wfp-filter-wrapper .wfp-filter-reset {
    background: #f1f1f1 !important;
    color: #555 !important;
}

.wfp-filter-wrapper .wfp-filter-reset:hover {
    background: #e1e1e1 !important;
    color: #333 !important;
}

/* Loading */
.wfp-filter-wrapper .wfp-loading-indicator {
    text-align: center;
    padding: 10px;
    color: #ed4949;
    font-weight: 600;
    margin-top: 10px;
}

/* ===========================================
   ÜRÜN LİSTESİ ([wfp_products])
   Tema CSS'ini ezmiyoruz, sadece grid ayarlıyoruz
   =========================================== */
.wfp-products-wrapper {
    width: 100%;
}

.wfp-products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.wfp-result-info {
    color: #666;
    font-size: 14px;
}

.wfp-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wfp-sort-wrapper label {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.wfp-sort-select {
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

/* Grid */
.wfp-products-grid {
    display: grid;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: opacity 0.2s;
}

.wfp-products-grid.wfp-columns-2 { grid-template-columns: repeat(2, 1fr); }
.wfp-products-grid.wfp-columns-3 { grid-template-columns: repeat(3, 1fr); }
.wfp-products-grid.wfp-columns-4 { grid-template-columns: repeat(4, 1fr); }
.wfp-products-grid.wfp-columns-5 { grid-template-columns: repeat(5, 1fr); }

/* Ürün kartı - SADECE temel görünüm, butonlara dokunmuyoruz */
.wfp-product-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    list-style: none;
    overflow: hidden;
}

.wfp-product-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* İndirim rozeti */
.wfp-product-item .wfp-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ed4949;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 3px;
    z-index: 2;
}

.wfp-product-item .wfp-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.wfp-product-item .wfp-product-image {
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 4px;
}

.wfp-product-item .wfp-product-image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.wfp-product-item:hover .wfp-product-image img {
    transform: scale(1.05);
}

.wfp-product-item .wfp-product-title {
    font-size: 14px;
    margin: 10px 0 8px 0;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.wfp-product-item .wfp-product-price {
    color: #ed4949;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 15px;
}

.wfp-product-item .wfp-product-price del {
    color: #999;
    font-weight: 400;
    font-size: 13px;
    margin-right: 4px;
}

.wfp-product-item .wfp-product-price ins {
    text-decoration: none;
    color: #ed4949;
}

.wfp-product-item .wfp-product-actions {
    margin-top: 10px;
}

/*
   SEPETE EKLE BUTONUNA DOKUNMUYORUZ!
   WoodMart teması zaten kendi stilini uygulayacak.
*/
.wfp-product-item .wfp-product-actions .button,
.wfp-product-item .wfp-product-actions a.button {
    display: inline-block;
    margin-top: 0;
}

/*
   "Sepetim" linkini sepet İKONU olarak göster.
   WooCommerce sepete ekleyince <a class="added_to_cart">Sepetim</a>
   şeklinde link ekliyor — onu yazıdan ikona çeviriyoruz.
*/
.wfp-product-item .added_to_cart {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 6px !important;
    padding: 0 !important;
    background: #ed4949 !important;
    color: #fff !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-size: 0 !important; /* "Sepetim" yazısını gizle */
    line-height: 1 !important;
    vertical-align: middle;
    border: none !important;
    transition: background 0.2s, transform 0.2s;
    box-shadow: none !important;
    position: relative;
}

.wfp-product-item .added_to_cart:hover {
    background: #d63a3a !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Sepet ikonu (SVG, base64 ile gömülü - dış kaynağa ihtiyaç yok) */
.wfp-product-item .added_to_cart::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* "Sepetim" yazısını tamamen sıfırla (sadece ikon görünsün) */
.wfp-product-item .added_to_cart {
    text-indent: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* Tooltip — fareyle üzerine gelince küçük etiket göster */
.wfp-product-item .added_to_cart::after {
    content: "Sepete eklendi";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 5px;
}

.wfp-product-item .added_to_cart:hover::after {
    opacity: 1;
}

/* ===========================================
   INFINITE SCROLL
   =========================================== */
.wfp-scroll-trigger {
    height: 20px;
    width: 100%;
    margin-top: 30px;
}

.wfp-scroll-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 20px;
    color: #666;
    font-size: 14px;
}

.wfp-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f1f1f1;
    border-top-color: #ed4949;
    border-radius: 50%;
    animation: wfp-spin 0.8s linear infinite;
}

@keyframes wfp-spin {
    to { transform: rotate(360deg); }
}

.wfp-scroll-end {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 14px;
    font-style: italic;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.wfp-scroll-end::before {
    content: "✓ ";
    color: #ed4949;
    font-weight: bold;
    font-style: normal;
}

/* Boş/hata durumları */
.wfp-no-products,
.wfp-error {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 4px;
    color: #666;
    grid-column: 1 / -1;
}

.wfp-error {
    background: #fef1f1;
    color: #c00;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 992px) {
    .wfp-products-grid.wfp-columns-4,
    .wfp-products-grid.wfp-columns-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobile toggle butonunu SADECE mobilde göster */
    .wfp-filter-wrapper .wfp-mobile-toggle {
        display: inline-flex !important;
    }

    /* Filtre gövdesi mobilde AÇIK başlasın, toggle ile kapatılabilsin */
    .wfp-filter-wrapper .wfp-filter-body {
        display: block;
    }

    .wfp-filter-wrapper.wfp-mobile-closed .wfp-filter-body {
        display: none;
    }

    .wfp-products-grid.wfp-columns-3,
    .wfp-products-grid.wfp-columns-4,
    .wfp-products-grid.wfp-columns-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .wfp-products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .wfp-category-tree {
        max-height: 300px;
    }
}

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

    .wfp-filter-wrapper {
        padding: 15px;
    }
}

/* ===========================================
   HIZLI BAKIŞ (Quick View)
   Buskirala stili: ürün kartının sağ üstünde her zaman görünür pill buton
   =========================================== */

.wfp-product-item {
    position: relative;
}

/* Buton — buskirala'daki stille birebir, sadece renk #ed4949 */
.wfp-quickview-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 5 !important;
    background: #ed4949 !important;
    color: #fff !important;
    border: 1px solid #ed4949 !important;
    border-radius: 30px !important;
    margin: 0 !important;
    padding: 7px 13px 7px 11px !important;
    font-family: inherit !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 6px rgba(237, 73, 73, 0.30) !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    -webkit-tap-highlight-color: transparent !important;
    pointer-events: auto !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.wfp-quickview-btn span {
    color: #fff !important;
    text-decoration: none !important;
}

.wfp-quickview-btn svg {
    flex-shrink: 0;
    width: 15px !important;
    height: 15px !important;
    stroke: #fff !important;
    fill: none !important;
    color: #fff !important;
}

/* Hover: beyaza dönsün (buskirala'daki gibi) */
.wfp-quickview-btn:hover,
.wfp-quickview-btn:hover span {
    background: #fff !important;
    color: #222 !important;
    border-color: #eaeaea !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
}

.wfp-quickview-btn:hover svg {
    stroke: #222 !important;
    color: #222 !important;
}

.wfp-quickview-btn:active {
    transform: scale(0.97);
}

/* Sale badge ile Hızlı Bakış butonu aynı hizada — solda badge, sağda buton */

/* ===========================================
   HIZLI BAKIŞ MODAL
   =========================================== */

.wfp-quickview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.wfp-quickview-overlay.wfp-qv-open {
    display: flex;
}

body.wfp-qv-body-locked {
    overflow: hidden;
}

.wfp-quickview-card {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 920px;
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: wfp-qv-in 0.3s ease;
}

@keyframes wfp-qv-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.wfp-qv-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    font-size: 24px;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.25s;
    line-height: 1;
    padding: 0;
}

.wfp-qv-close:hover {
    background: #ed4949;
    color: #fff;
    transform: rotate(90deg);
}

.wfp-qv-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    overflow: auto;
    min-height: 0;
}

/* Sol: Görsel */
.wfp-qv-left {
    background: #f7f9fd;
    padding: 30px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.wfp-qv-main {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #eee;
    padding: 15px;
    box-sizing: border-box;
}

.wfp-qv-main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Sağ: Bilgiler */
.wfp-qv-right {
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.wfp-qv-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px 0;
    line-height: 1.3;
    padding-right: 30px;
}

.wfp-qv-category {
    font-size: 13px;
    color: #777;
    margin-bottom: 14px;
}

.wfp-qv-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.wfp-qv-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wfp-qv-stock-in {
    background: #e8f5e9;
    color: #2e7d32;
}

.wfp-qv-stock-out {
    background: #ffebee;
    color: #c62828;
}

.wfp-qv-sku {
    background: #f0f4f8;
    color: #455a64;
}

.wfp-qv-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.wfp-qv-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #fff5f2;
    border-radius: 8px;
    border: 1px dashed #fad5c4;
    flex-wrap: wrap;
}

.wfp-qv-price-label {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}

.wfp-qv-price {
    font-size: 22px;
    font-weight: 800;
    color: #ed4949;
    line-height: 1;
}

.wfp-qv-price del {
    color: #999;
    font-weight: 400;
    font-size: 14px;
    margin-right: 6px;
}

.wfp-qv-price ins {
    text-decoration: none;
    color: #ed4949;
}

.wfp-qv-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.wfp-qv-add-to-cart-link {
    flex: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px !important;
    background: #ed4949 !important;
    color: #fff !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: all 0.2s !important;
    border: none !important;
    line-height: 1 !important;
    cursor: pointer;
}

.wfp-qv-add-to-cart-link:hover {
    background: #d63a3a !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.wfp-qv-add-to-cart-link svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    flex-shrink: 0;
}

.wfp-qv-details-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #f1f1f1;
    color: #555 !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}

.wfp-qv-details-link:hover {
    background: #e1e1e1;
    color: #333 !important;
}

/* Mobile — Modal tam ekran */
@media (max-width: 768px) {
    .wfp-quickview-overlay {
        padding: 0;
        align-items: stretch;
    }

    .wfp-quickview-card {
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .wfp-qv-body {
        grid-template-columns: 1fr;
    }

    .wfp-qv-left {
        padding: 50px 20px 15px;
    }

    .wfp-qv-main {
        min-height: 240px;
    }

    .wfp-qv-right {
        padding: 20px;
    }

    .wfp-qv-title {
        font-size: 17px;
    }

    .wfp-qv-actions {
        flex-direction: column;
    }

    .wfp-quickview-btn {
        font-size: 11px !important;
        padding: 6px 11px 6px 9px !important;
        gap: 5px !important;
    }

    .wfp-quickview-btn svg {
        width: 13px !important;
        height: 13px !important;
    }
}

/* ===========================================
   HIZLI BAKIŞ MODAL — Sepete Eklendi İkonu
   WooCommerce, "Sepete Ekle"den sonra <a class="added_to_cart">Sepetim</a>
   linkini ekliyor. Onu CSS ile sepet ikonuna dönüştürüyoruz
   (listelemedeki davranışla aynı).
   =========================================== */

.wfp-qv-actions .added_to_cart {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0 !important;
    margin: 0 !important;
    background: #ed4949 !important;
    color: #fff !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 0 !important; /* "Sepetim" yazısını gizle */
    line-height: 1 !important;
    border: none !important;
    transition: all 0.2s !important;
    flex-shrink: 0;
    position: relative;
    box-shadow: none !important;
    animation: wfp-qv-cart-pop 0.4s ease;
    vertical-align: middle;
}

@keyframes wfp-qv-cart-pop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.wfp-qv-actions .added_to_cart:hover {
    background: #d63a3a !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Sepet ikonu (SVG base64) - "Sepetim" yazısı yerine */
.wfp-qv-actions .added_to_cart::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Tooltip — fareyle gelince "Sepete git" yazsın */
.wfp-qv-actions .added_to_cart::after {
    content: "Sepete git";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 5px;
}

.wfp-qv-actions .added_to_cart:hover::after {
    opacity: 1;
}

/* Mobilde tam genişlik düzenine uy */
@media (max-width: 768px) {
    .wfp-qv-actions .added_to_cart {
        width: 100%;
        height: 44px;
    }

    .wfp-qv-actions .added_to_cart::after {
        display: none;
    }
}
