/* ============================================================
 * Product Cards, WA FAB, Mobile Dock, Modals
 * Storefront Default Theme
 * Ownership:
 * - reusable UI components
 * - mobile dock visuals
 * - modal / offcanvas component skins
 * Layout primitives live in tokens.css
 * ============================================================ */

        .sf-card {
            border-radius: 18px;
            border: var(--sf-border);
            background: rgb(255, 255, 255, .05);
            overflow: hidden;
            transition: .15s ease;
            box-shadow: 0 10px 30px rgb(0, 0, 0, .22);
        }

        .sf-card:hover {
            transform: translateY(-2px);
            background: rgb(255, 255, 255, .07);
        }

        /* Görseli beyaz mat içine al (koyu kartta premium görünüm) */
        .sf-card .media {
            background: rgb(255, 255, 255, .04);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            position: relative;
        }

        .sf-imgmat {
            width: 100%;
            aspect-ratio: 2 / 3;
            max-height: 160px;
            background: #fff;
            border-radius: 14px;
            border: 1px solid rgb(0, 0, 0, .08);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .sf-imgmat img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            padding: 0;
        }

        .sf-badge-stockout {
            position: absolute;
            top: 10px;
            left: 10px;
            padding: 6px 10px;
            border-radius: 999px;
            font-weight: 900;
            font-size: 12px;
            color: #ffecec;
            background: rgb(239, 68, 68, .22);
            border: 1px solid rgb(239, 68, 68, .40);
            backdrop-filter: blur(8px);
        }

        .sf-card .body {
            padding: 12px;
        }

        .sf-card .name {
            font-weight: 800;
            font-size: 13px;
            line-height: 1.25;
            min-height: 34px;
        }

        .sf-card .meta {
            margin-top: 6px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .sf-price {
            font-weight: 900;
        }

        .sf-muted {
            color: var(--sf-muted);
            font-size: 12px;
        }

        /* Bilgilendirme / CMS sayfalarında alt başlık daha büyük */
        .sf-receipt .sf-muted {
            font-size: 15px;
            font-weight: 500;
            letter-spacing: 0.01em;
        }

        .sf-product-desc img {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
            margin: 6px 0;
        }

        .sf-add {
            border-radius: 12px;
            padding: 10px 10px;
            font-weight: 900;
            background: rgb(0 255 94 / 20%);
            border: 1px solid rgb(34, 197, 94, .40);
            color: #0a321c;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .sf-add:hover {
            filter: brightness(1.05);
        }

        .sf-category-pdf-row {
            margin: 8px 0 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
        }

        .sf-category-pdf-caption {
            font-size: 13px;
            font-weight: 700;
            color: #475569;
        }

        .sf-category-pdf-actions {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .sf-category-pdf-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border: 1px solid #cbd5e1;
            background: #fff;
            color: #0f172a;
            border-radius: 999px;
            padding: 7px 12px;
            font-size: 12px;
            font-weight: 700;
            line-height: 1;
            text-decoration: none;
            transition: .15s ease;
        }

        .sf-category-pdf-btn:hover {
            text-decoration: none;
            border-color: #0ea5e9;
            color: #0ea5e9;
        }

        .sf-wa-fab {
            position: fixed;
            right: 16px;
            bottom: 18px;
            z-index: 3000;
        }

        .sf-contact-fab {
            position: fixed;
            left: 16px;
            bottom: 18px;
            z-index: 3000;
        }

        body.sf-slip-open .sf-contact-fab,
        body.sf-side-menu-open .sf-contact-fab,
        body:has(#sfSlip.show) .sf-contact-fab,
        body:has(#sfSideMenu.show) .sf-contact-fab {
            z-index: 1020 !important;
            pointer-events: none !important;
        }

        .sf-contact-fab-label {
            position: absolute;
            left: 50%;
            bottom: 64px;
            transform: translateX(-50%);
            padding: 3px 8px;
            border-radius: 999px;
            background: #25d366;
            color: #fff;
            font-size: 11px;
            font-weight: 900;
            line-height: 1;
            white-space: nowrap;
            box-shadow: 0 6px 14px rgb(37, 211, 102, .28);
        }

        .sf-wa-fab-btn,
        .sf-contact-fab-btn {
            width: 58px;
            height: 58px;
            border: 0;
            border-radius: 14px;
            background: #050505;
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 12px 26px rgb(0, 0, 0, .28);
            position: relative;
            text-decoration: none;
        }

        .sf-wa-fab-btn i,
        .sf-contact-fab-btn i {
            font-size: 30px;
            line-height: 1;
        }

        .sf-contact-fab-btn:hover,
        .sf-contact-fab-btn:focus {
            color: #fff;
            text-decoration: none;
        }

        .sf-contact-fab-btn {
            border: 0;
            background: #25d366;
            color: #fff;
            box-shadow: 0 12px 26px rgb(37, 211, 102, .34);
        }

        .sf-contact-fab-btn i {
            font-size: 34px;
            color: #fff;
        }

        .sf-wa-fab-btn.sf-channel-viber {
            background: #7360f2;
            box-shadow: 0 12px 26px rgb(115, 96, 242, .32);
        }

        .sf-wa-fab-btn.sf-channel-telegram {
            background: #229ed9;
            box-shadow: 0 12px 26px rgb(34, 158, 217, .3);
        }

        .sf-wa-fab-btn.sf-channel-bank,
        .sf-wa-fab-btn.sf-channel-card {
            background: #2563eb;
            box-shadow: 0 12px 26px rgb(37, 99, 235, .3);
        }

        .sf-wa-fab-btn.sf-channel-cart {
            border-radius: 14px;
            background: #050505;
            box-shadow: 0 12px 26px rgb(0, 0, 0, .28);
        }

        .sf-wa-fab-btn:has(.sf-channel-logo--cart) {
            border-radius: 14px;
            background: #050505;
            box-shadow: 0 12px 26px rgb(0, 0, 0, .28);
        }

        .sf-wa-fab-count {
            position: absolute;
            right: -2px;
            top: -2px;
            min-width: 20px;
            height: 20px;
            border-radius: 999px;
            padding: 0 6px;
            background: #ef4444;
            color: #fff;
            border: 2px solid #fff;
            font-size: 11px;
            font-weight: 800;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .sf-mobile-dock {
            display: none;
        }

        @media (max-width: 992px) {
            body.sf-mobile-dock-on .sf-shell {
                padding-bottom: 10px;
            }

            body.sf-mobile-dock-on .sf-wa-fab {
                right: 10px;
                bottom: 84px;
            }

            body.sf-mobile-dock-on .sf-contact-fab {
                left: 10px;
                bottom: calc(104px + env(safe-area-inset-bottom, 0px));
            }

            body.sf-mobile-dock-on .sf-wa-fab {
                display: none !important;
                opacity: 0 !important;
                visibility: hidden !important;
                pointer-events: none !important;
            }

            body.sf-mobile-dock-on .sf-mobile-dock {
                position: fixed;
                left: 0;
                right: 0;
                bottom: 0;
                z-index: 1042;
                display: flex;
                align-items: stretch;
                gap: 0;
                padding: 0 0 env(safe-area-inset-bottom);
                border-top: 1px solid rgb(15, 23, 42, .12);
                background: rgb(255, 255, 255, .98);
                backdrop-filter: blur(8px);
            }

            .sf-mobile-dock > * {
                flex: 1 1 0;
                min-width: 0;
            }

            .sf-mobile-dock .dropdown {
                flex: 1 1 0;
                min-width: 0;
            }

            .sf-mobile-dock .dock-item {
                position: relative;
                width: 100%;
                min-height: 58px;
                border: 0;
                border-radius: 0;
                background: #14532d;
                color: #fff;
                display: inline-flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 2px;
                font-size: 10px;
                font-weight: 800;
                line-height: 1.05;
                border-right: 1px solid rgb(255, 255, 255, .12);
            }

            .sf-mobile-dock .dock-item:last-child {
                border-right: 0;
            }

            .sf-mobile-dock .dock-item i {
                font-size: 18px;
                line-height: 1;
            }

            .sf-mobile-dock .dock-item.active {
                color: #fff;
            }

            .sf-mobile-dock .dock-badge {
                position: absolute;
                right: 10px;
                top: 4px;
                min-width: 17px;
                height: 17px;
                border-radius: 999px;
                padding: 0 4px;
                background: #ef4444;
                color: #fff;
                font-size: 10px;
                font-weight: 800;
                border: 2px solid #fff;
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }
        }

        body.sf.modal-open, body.sf.modal-open[style] {
            padding-right: 0 !important;
        }

        body.sf.sf-modal-lock {
            position: fixed;
            overflow: hidden;
            width: 100%;
            left: 0;
            right: 0;
            padding-right: 0 !important;
        }

        .sf-mobile-search-modal .modal-content {
            border-radius: 16px;
            border: 1px solid rgb(15, 23, 42, .14);
        }

        .sf-mobile-search-modal .modal-header {
            padding: 12px 14px;
        }

        .sf-mobile-search-form {
            display: grid;
            gap: 10px;
        }

        .sf-mobile-search-form select,
        .sf-mobile-search-form input {
            width: 100%;
            border: 1px solid rgb(15, 23, 42, .16);
            border-radius: 12px;
            padding: 10px 12px;
            font-size: 14px;
            outline: none;
            background: #fff;
            color: #0f172a;
        }

        .sf-mobile-search-form button {
            border: 0;
            border-radius: 12px;
            padding: 10px 12px;
            font-size: 14px;
            font-weight: 800;
            background: #0ea5e9;
            color: #fff;
        }

        @media (max-width: 768px) {
            .sf-category-pdf-row {
                flex-direction: column;
                align-items: stretch;
                gap: 7px;
            }

            .sf-category-pdf-actions {
                width: 100%;
            }

            .sf-category-pdf-btn {
                justify-content: center;
                flex: 1 1 0;
            }

            body:not(.sf-mobile-dock-on) .sf-wa-fab {
                right: 12px;
                bottom: 14px;
            }

            body:not(.sf-mobile-dock-on) .sf-contact-fab {
                left: 12px;
                bottom: calc(96px + env(safe-area-inset-bottom, 0px));
            }

            body.sf .sf-contact-fab,
            body.sf.theme-default .sf-contact-fab,
            body.sf.theme-folder-default .sf-contact-fab {
                bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
            }

            body:not(.sf-mobile-dock-on) .sf-wa-fab {
                display: none !important;
                opacity: 0 !important;
                visibility: hidden !important;
                pointer-events: none !important;
            }

            .sf-wa-fab-btn,
            .sf-contact-fab-btn {
                width: 54px;
                height: 54px;
            }

            .sf-wa-fab-btn i,
            .sf-contact-fab-btn i {
                font-size: 28px;
            }

            .sf-contact-fab-btn i {
                font-size: 32px;
            }
        }

        .sf-primary {
            border: 0;
            border-radius: 999px;
            padding: 12px 14px;
            font-weight: 900;
            color: #071018;
            background: #55d355;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .sf-secondary {
            border: var(--sf-border);
            border-radius: 999px;
            padding: 12px 14px;
            font-weight: 900;
            color: #198754;
            background: rgb(255, 255, 255, .08);
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .offcanvas,
        .modal-content {
            background: #000;
            border: var(--sf-border);
            color: #fff;
            backdrop-filter: blur(16px);
        }

        .offcanvas-header,
        .modal-header {
            border-bottom: var(--sf-border);
        }

        .offcanvas-title {
            font-weight: 900;
        }

        .btn-close {
            filter: invert(1) grayscale(1);
            opacity: .85;
        }

/* ==========================================================================
   Electro product card — used by partials/product_card.blade.php
   ========================================================================== */

.electro-card-pad { padding: 3px; }

.electro-card {
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 10px;
    transition: all 0.3s ease;
}
.electro-card:hover { box-shadow: 0 8px 25px rgb(0,0,0,0.1); border-color: var(--primary); transform: translateY(-2px); }
.electro-card:hover .electro-img-box img { transform: scale(1.08); }

.electro-stock-badge {
    z-index: 5;
    font-size: 10px;
    background-color: #dc3545;
    color: #fff;
    padding: .25em .4em;
    border-radius: .25rem;
    font-weight: 700;
    line-height: 1;
}

.electro-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    border: 1px solid #ef4444;
    border-radius: 999px;
    padding: 10px 0;
    min-width: 58px;
    min-height: 58px;
    text-align: center;
    color: #fff;
    line-height: 1.05;
    font-weight: 900;
    background: #f00;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 10px 18px rgb(239, 68, 68, .24);
}

.electro-discount-badge small {
    display: block;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.electro-img-box { width: 100%; overflow: hidden; }
.electro-img-box img { max-height: 100%; max-width: 100%; transition: transform 0.4s ease; }

.electro-img-fallback { background: #f8fafc; }
.electro-img-fallback i { font-size: 28px; color: #cbd5e1; }
.electro-img-fallback span { font-size: 10px; color: #94a3b8; font-weight: 600; margin-top: 4px; }

.electro-card-cat {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.electro-card-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.electro-price-old {
    font-size: 11px;
    text-decoration: line-through;
    color: #6c757d;
    font-weight: 700;
}

.electro-price-current {
    font-size: 1.25rem;
    font-weight: 700;
}

.electro-price-savings {
    font-size: 11px;
    font-weight: 700;
}

/* Vitrin kartı: fiyat + sepet; dar ekranda taşma ve hizalama */
.electro-price-row {
    row-gap: 0.5rem;
}

.electro-price-col {
    min-width: 0;
}

@media (max-width: 480px) {
    .electro-card .electro-price-row {
        flex-direction: column;
        align-items: stretch;
    }

    .electro-card .electro-price-col {
        width: 100%;
    }

    .electro-card .electro-add-btn {
        align-self: flex-end;
        flex-shrink: 0;
    }

    .electro-card .electro-price-current {
        font-size: 1.1rem;
        word-break: break-word;
    }

    .sf-price-wrap.sf-price-sm .sf-price-band .sf-price-primary {
        font-size: 13px;
        white-space: normal;
    }
}

.electro-add-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background-color: var(--accent);
    border: none;
}

/* ==========================================================================
   Fix: dealer/new/soldout product card badges should always stay visible,
   including during hover (some hover overlays were occluding them).
   ========================================================================== */
body.sf .sf-pblock-card .sf-pblock-tag,
body.sf .sf-featured-card .sf-pblock-tag {
    z-index: 10;
    pointer-events: none;
    visibility: visible;
    opacity: 1;
}

body.sf .sf-pblock-card:hover .sf-pblock-tag,
body.sf .sf-pblock-card:focus-within .sf-pblock-tag,
body.sf .sf-featured-card:hover .sf-pblock-tag,
body.sf .sf-featured-card:focus-within .sf-pblock-tag {
    visibility: visible;
    opacity: 1;
    display: inline-flex;
}

body.sf .sf-pblock-card .sf-pblock-tag.sf-same-day-badge,
body.sf .sf-featured-card .sf-pblock-tag.sf-same-day-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    min-height: 34px;
    padding: 5px 9px 6px;
    border-radius: 999px;
    gap: 1px;
    text-align: center;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 7px 16px rgb(220, 38, 38, .22);
}

body.sf .sf-pblock-card .sf-pblock-tag.sf-same-day-badge span,
body.sf .sf-featured-card .sf-pblock-tag.sf-same-day-badge span {
    display: block;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

body.sf .sf-pblock-card .sf-pblock-tag.sf-same-day-badge small,
body.sf .sf-featured-card .sf-pblock-tag.sf-same-day-badge small {
    display: block;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .2px;
    opacity: .95;
    white-space: nowrap;
}

/* Çift para birimi: kırmızı şerit (1.) + koyu yeşil şerit (2.) + üstü çizili her sütun altında */
.sf-price-wrap {
    display: inline-flex;
    line-height: 1.2;
    max-width: 100%;
}

.sf-price-currency-code {
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #0f172a;
    opacity: 1;
}

.sf-price-wrap.sf-price-inline {
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.2em 0.35em;
}

.sf-price-bands {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.sf-price-right .sf-price-bands {
    align-items: flex-end;
}

.sf-price-tower {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: 100%;
}

.sf-price-right .sf-price-tower {
    align-items: flex-end;
    text-align: right;
}

.sf-price-sep {
    color: #cbd5e1;
    font-weight: 700;
    user-select: none;
}

/* Birincil tower: eski + yeni fiyat yan yana */
.sf-price-band .sf-price-tower-primary {
    flex-flow: row wrap;
    align-items: center;
    gap: 6px;
}

.sf-price-right .sf-price-band .sf-price-tower-primary {
    justify-content: flex-end;
}

/* Birincil: kırmızı şerit, beyaz, kalın */
.sf-price-band .sf-price-tower-primary .sf-price-primary {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    padding: 5px 7px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgb(0, 0, 0, 0.08);
    white-space: nowrap;
    line-height: 1.25;
}

.sf-price-sm.sf-price-band .sf-price-tower-primary .sf-price-primary {
    font-size: 11px;
    padding: 4px 6px;
}

.sf-price-lg.sf-price-band .sf-price-tower-primary .sf-price-primary {
    font-size: 14px;
    padding: 6px 9px;
}

/* Birincil eski (üstü çizili) — kırmızı şeridin SOLUNDA, satır içi */
.sf-price-band .sf-price-tower-primary .sf-price-strike-primary {
    display: inline-block;
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
}

.sf-price-sm.sf-price-band .sf-price-tower-primary .sf-price-strike-primary {
    font-size: 10px;
}

.sf-price-lg.sf-price-band .sf-price-tower-primary .sf-price-strike-primary {
    font-size: 13px;
}

/* İkincil: koyu yeşil şerit, beyaz, aynı ağırlık */
.sf-price-band .sf-price-tower-secondary .sf-price-secondary {
    display: inline-block;
    background: #14532d;
    color: #fff;
    font-weight: 800;
    font-size: 19px;
    padding: 5px 12px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgb(0, 0, 0, 0.1);
    white-space: nowrap;
    line-height: 1.25;
}

.sf-price-sm.sf-price-band .sf-price-tower-secondary .sf-price-secondary {
    font-size: 15px;
    padding: 4px 9px;
}

.sf-price-lg.sf-price-band .sf-price-tower-secondary .sf-price-secondary {
    font-size: 24px;
    padding: 6px 14px;
}

/* Üstü çizili: ilgili şeridin üstünde (eski liste fiyatı) */
.sf-price-strike {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    text-decoration: line-through;
    line-height: 1.2;
    margin-bottom: 2px;
}

.sf-price-sm .sf-price-strike {
    font-size: 10px;
}

.sf-price-lg .sf-price-strike {
    font-size: 12px;
}

/* Inline mod (eski · tek satır) — yeşil metin, şerit yok */
.sf-price-wrap.sf-price-inline .sf-price-primary {
    background: transparent;
    color: #16a34a;
    font-weight: 800;
    font-size: 18px;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.sf-price-wrap.sf-price-inline .sf-price-secondary {
    color: #94a3b8;
    font-weight: 600;
    padding: 0;
}

.sf-price-sm.sf-price-inline .sf-price-primary {
    font-size: 14px;
}

.sf-price-lg.sf-price-inline .sf-price-primary {
    font-size: 26px;
}

.sf-price-right {
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
}

.sf-price-right .sf-price-bands,
.sf-price-right .sf-price-tower {
    align-items: flex-end;
    text-align: right;
}
