/* Dijital Vitrin (esnaf.blade.php) CSS */
:root { --esnaf-sticky-top: 82px; }

.esnaf-sticky-top {
    position: sticky;
    top: var(--esnaf-sticky-top);
    z-index: 1010;
    padding: 0px 0 8px;
    background: #101815;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
@media (max-width: 991.98px) {
    :root { --esnaf-sticky-top: 70px; }
}

.esnaf-card {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(0,0,0,.28);
    padding: 12px;
    backdrop-filter: blur(10px);
}
.esnaf-card .form-label { color: rgba(255,255,255,.75); font-size: .9rem; }
.esnaf-card .form-control,
.esnaf-card .form-control, .esnaf-card .form-select {
    background: rgba(255, 255, 255, .04) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #a3bd9a !important;
}
.esnaf-card .form-control::placeholder { color: rgba(248,250,252,.55) !important; }
.esnaf-card .form-control:focus,
.esnaf-card .form-select:focus {
    border-color: rgba(152,226,9,.75) !important;
    box-shadow: 0 0 0 3px rgba(152,226,9,.12) !important;
}
.esnaf-card .section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.esnaf-card .section-title h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}
.esnaf-card .section-title .hint {
    font-size: 12px;
    color: rgba(255,255,255,.65);
}

.esnaf-map-shell {
    margin-top: 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,.03);
    height: 280px;
    position: relative;
}
.esnaf-map-shell #map { width: 100%; height: 100%; }

/* Üst bar (sıralama + arama) hizalama */
.esnaf-topbar .form-select,
.esnaf-topbar .form-control {
    height: 40px;
    border-radius: 12px;
    font-size: 14px;
}
.esnaf-topbar .themeht-btn {
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
}
.esnaf-topbar { padding: 10px !important; }
.esnaf-topbar__right {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-items: center;
}
.esnaf-topbar__right .sort-filter { flex: 0 0 auto; }
.esnaf-topbar__right .search-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1 1 auto;
    min-width: 240px;
    max-width: 520px;
}
@media (max-width: 575.98px) {
    .esnaf-topbar__right { flex-wrap: wrap; justify-content: flex-start; }
    .esnaf-topbar{display: none;}
    .esnaf-topbar__right .search-wrap { min-width: 100%; max-width: 100%; }
}
.category-storybar {
    margin-top: 8px;
    border: 1px solid rgba(152, 226, 9, 0.22);
    border-radius: 16px;
    background: #0B0F0C;
    padding: 8px 8px;
    backdrop-filter: blur(10px);
}
.category-storybar__row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.category-storybar__btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.category-storybar__btn:hover { background: rgba(255,255,255,.10); }
.category-storybar__scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px;
    flex: 1;
}
.category-storybar__scroller::-webkit-scrollbar { height: 8px; }
.category-storybar__scroller::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 999px; }

.cat-story {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    color: #98e209;
    background: rgb(14 22 17);
    text-decoration: none;
    white-space: nowrap;
}
.cat-story:hover { background: rgba(255,255,255,.08); color: #fff; }
.cat-story.is-active { border-color: rgba(152,226,9,.55); box-shadow: 0 0 0 3px rgba(152,226,9,.10); }
.cat-story__avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    color: #98e209;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.77), rgba(69, 252, 13, 0.212));
}
.cat-story__label { font-weight: 700; font-size: 12px; }

/* Mobil: kategori story (tek satır, yatay kaydır) */
@media (max-width: 575.98px) {
    .category-storybar { border-radius: 14px; padding: 6px; }
    .category-storybar__btn { display: none; }
    .category-storybar__scroller {
        display: flex;
        gap: 12px;
        padding: 6px 4px;
        scroll-snap-type: x mandatory;
    }
    .product-item .product-img {
        height: 140px!important;}
    .cat-story {
        flex-direction: column;
        gap: 6px;
        padding: 0;
        background: transparent;
        border: 0;
        width: 74px;
        scroll-snap-align: start;
    }

    .cat-story__avatar {
        width: 34px;
        height: 34px;
        font-size: 9px;
        color: #98e209;
        background: rgb(14 22 17);
        border: 1px solid rgba(255,255,255,.12);
        box-shadow: 0 10px 20px rgba(0,0,0,.25);
    }
    .cat-story.is-active { box-shadow: none; border: 0; }
    .cat-story.is-active .cat-story__avatar {
        border-color: rgba(152,226,9,.45);
        box-shadow: 0 0 0 3px rgba(152,226,9,.12), 0 10px 20px rgba(0,0,0,.25);
    }
    .cat-story__label {
        font-size: 12px;
        font-weight: 700;
        color: rgb(122 122 122);
        text-align: center;
        max-width: 74px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
.cat-story__label{ color: rgb(122 122 122);}
.product-desc .product-meta {
    color: rgba(255,255,255,.65);
    font-size: 12px;
}
.product-link .add-cart {
    white-space: nowrap;
}
.themeht-sidebar .widget-title {
    margin-bottom: 14px;
}
.widget .form-control, .widget .form-select {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    color: #f8fafc;
}
.widget .form-control::placeholder { color: rgba(248,250,252,.55); }
.esnaf-topbar .form-select, .esnaf-topbar .form-control::placeholder { color: #a3bd9a; }
.widget .form-control:focus, .widget .form-select:focus {
    border-color: rgba(152,226,9,.75);
    box-shadow: 0 0 0 3px rgba(152,226,9,.12);
}
.widget .form-check-label { color: rgba(255,255,255,.75); }

/* Ürün görsel placeholder (resim yoksa beyaz blok) */
.product-item .product-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
}
.product-item .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: rgba(2,6,23,.55);
    font-size: 40px;
}
.pilot-strip {
    margin-top: 0;
    border: 1px solid rgba(152, 226, 9, 0.12);
    border-radius: 16px;
    background: #0F140F;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.pilot-strip__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px;
}
.pilot-strip__marquee {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.filter-map-wrap__right .esnaf-map-shell {
    opacity: 0.8;
}
.leaflet-control-attribution{display: none!important;}

/* Ücretsiz/onaylı (Temel) işletmeler: listede silik görünüm */
.business-card--basic {
    opacity: .72;
    transition: opacity .18s ease, transform .18s ease;
}
.business-card--basic:hover {
    opacity: .9;
}
.business-card--basic .product-img img {
    filter: grayscale(.35) saturate(.85);
}
.business-badge-basic{
    background: rgba(148, 163, 184, .16);
    color: rgba(248, 250, 252, .92);
    border: 1px solid rgba(148, 163, 184, .28);
}
.pilot-strip__track {
    display: inline-flex;
    gap: 28px;
    white-space: nowrap;
    will-change: transform;
    animation: pilotScroll 26s linear infinite;
}
@keyframes pilotScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.pilot-strip__item {
    color: #CDEB7A;
    font-size: 14px;
}
.pilot-strip__item strong { color: #fff; }
.pilot-strip__actions .themeht-btn { height: 40px; border-radius: 12px; padding: 8px 12px; }
.pilot-strip__actions { flex: 0 0 auto; }
.pilot-btn-label { margin-left: 6px; }
@media (max-width: 575.98px) {
    .pilot-strip__actions .themeht-btn { height: 32px; padding: 6px 10px; }
    .pilot-btn-label { display: none; }
    .pilot-strip { border-radius: 14px; }
    .pilot-strip__inner { gap: 8px; padding: 6px 6px; }
    .pilot-strip__item { font-size: 14px; }
}
@media (max-width: 575.98px) {
    .esnaf-card { padding: 10px; border-radius: 16px; }
    .esnaf-card .section-title { margin-bottom: 8px; }
    .esnaf-card .section-title h2 { font-size: 14px; }
    .esnaf-card .form-label { font-size: 12px; }
    .esnaf-map-shell { height: 180px; margin-top: 0; border-radius: 16px; }
    .esnaf-card .themeht-btn { height: 34px; border-radius: 12px; padding: 8px 10px; }
    .esnaf-card .themeht-btn .btn-text { font-size: 12px; }
    .esnaf-card .section-title { display: none; }
}

.filter-map-wrap { display: block; }
@media (max-width: 575.98px) {
    .esnaf-mobile-fullbleed {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding-left: 12px;
        padding-right: 12px;
    }
    .filter-map-wrap {
        display: flex;
        gap: 8px;
        align-items: stretch;
    }
    .filter-map-wrap__left { flex: 0 0 34%; min-width: 0; margin-left: 5px;}
    .filter-map-wrap__right { flex: 1 1 auto; min-width: 0;margin-right: 5px;}
    .filter-map-wrap__right .esnaf-map-shell { height: 135px; }
    .filter-map-wrap__left .row.g-2 { margin-bottom: 0; }
    /* mobilde kart hissini azalt */
    .esnaf-card { background: transparent; border: 0; padding: 0; backdrop-filter: none; }
    .filter-map-wrap__left .form-select {
        height: 34px;
        font-size: 12px;
        border-radius: 12px;
        padding-right: 28px;
    }
    .filter-map-wrap__left .form-label { display: none; }
    .filter-map-wrap__left .themeht-btn {
        height: 32px;
        padding: 0 10px;
        border-radius: 12px;
        justify-content: center;
    }
    .filter-map-wrap__left .themeht-btn .btn-text { font-size: 12px; display: inline-flex; align-items: center; }
    .filter-map-wrap__left .themeht-btn i { font-size: 14px; }
    .filter-map-wrap__left .btn-label { font-size: 11px; margin-left: 6px; }
    .filter-map-wrap__left .d-flex.gap-2.flex-wrap.mt-3 { margin-top: 6px !important; }
    .filter-map-wrap__right .esnaf-map-shell {
        border-radius: 16px;
        border-color: rgba(255,255,255,.08);
    }

    .esnaf-mobile-actions {
        display: flex;
        gap: 8px;
        align-items: stretch;
        margin-top: 10px;
    }
    .esnaf-mobile-actions > a,
    .esnaf-mobile-actions > button {
        flex: 1 1 0;
        min-width: 0;
    }
    .esnaf-mobile-actions .themeht-btn {
        height: 34px;
        border-radius: 12px;
        padding: 8px 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        white-space: nowrap;
    }
    .esnaf-mobile-actions .themeht-btn .btn-text { font-size: 12px; }

    /* Mobil: Filtre paneli (aşağı doğru, tam genişlik) */
    .esnaf-mobile-filterpanel {
        margin-top: 10px;
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 16px;
        background: rgba(0,0,0,.22);
        padding: 12px;
    }
    .esnaf-mobile-filterpanel .form-control,
    .esnaf-mobile-filterpanel .form-select {
        height: 36px;
        border-radius: 12px;
        font-size: 12px;
    }
    .mobile-filter-label { display: none; }
    .mobile-stock-grid { display: flex; gap: 10px; flex-wrap: wrap; }
    .mobile-stock-grid .form-check { margin: 0; }
    .mobile-stock-grid .form-check-label { font-size: 12px; }
}

/* Mağaza Detay (esnaf-business.blade.php) CSS */
.offcanvas.text-bg-dark .form-control,
.offcanvas.text-bg-dark .form-select {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    color: rgba(248,250,252,.92) !important;
}
.offcanvas.text-bg-dark .form-control::placeholder { color: rgba(248,250,252,.55) !important; }
.offcanvas.text-bg-dark .form-label { color: rgba(248,250,252,.85) !important; }

/* Mobil filtre offcanvas - tema ile uyumlu (themeht-sidebar benzeri) */
.mobile-filters-offcanvas.offcanvas-theme-dark {
    background: #0B0F0C !important;
    border-top: 1px solid rgba(255,255,255,.10);
    border-radius: 18px 18px 0 0;
}
.mobile-filters-offcanvas.offcanvas-theme-dark .offcanvas-header {
    background: transparent;
    color: #f8fafc;
}
.mobile-filters-offcanvas.offcanvas-theme-dark .themeht-sidebar .widget-title {
    color: rgba(255,255,255,.9);
    font-weight: 700;
}
.mobile-filters-offcanvas.offcanvas-theme-dark .form-control,
.mobile-filters-offcanvas.offcanvas-theme-dark .form-select {
    background: rgba(255,255,255,.04) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: #f8fafc !important;
}
.mobile-filters-offcanvas.offcanvas-theme-dark .form-control::placeholder {
    color: rgba(248,250,252,.55) !important;
}
.mobile-filters-offcanvas.offcanvas-theme-dark .form-control:focus,
.mobile-filters-offcanvas.offcanvas-theme-dark .form-select:focus {
    border-color: rgba(152,226,9,.75) !important;
    box-shadow: 0 0 0 3px rgba(152,226,9,.12) !important;
}
.mobile-filters-offcanvas.offcanvas-theme-dark .form-check-label {
    color: rgba(255,255,255,.75) !important;
}
.mobile-filters-offcanvas.offcanvas-theme-dark .btn-outline-secondary {
    border-color: rgba(255,255,255,.25);
    color: rgba(255,255,255,.85);
}
.mobile-filters-offcanvas.offcanvas-theme-dark .btn-outline-secondary:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.35);
    color: #fff;
}

.businessBannerSwiper {
    /* İnce-uzun banner görünümü */
    --biz-banner-h: 132px;
}

.businessBannerSwiper .swiper-slide {
    height: var(--biz-banner-h);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.businessBannerSwiper .swiper-slide > a,
.businessBannerSwiper .swiper-slide > img {
    display: block;
    width: 100%;
    height: 100%;
}
.businessBannerSwiper .swiper-slide img {
    width: 100% !important;
    height: 100% !important; /* bootstrap .img-fluid => height:auto override */
    max-width: 100% !important;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important; /* radius slide container'da */
}

.businessBannerSwiper .swiper-pagination {
    bottom: 8px !important;
}

.businessBannerSwiper .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.9);
}
.businessBannerSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #98e209;
}

.businessBannerSwiper .swiper-button-prev,
.businessBannerSwiper .swiper-button-next {
    width: 34px;
    height: 34px;
    display: none!important;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.businessBannerSwiper .swiper-button-prev::after,
.businessBannerSwiper .swiper-button-next::after {
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 991.98px) {
    .businessBannerSwiper { --biz-banner-h: 112px; }
}

@media (max-width: 575.98px) {
    .businessBannerSwiper { --biz-banner-h: 92px; }
    .businessBannerSwiper .swiper-button-prev,
    .businessBannerSwiper .swiper-button-next {
        display: none; /* mobilde minimal */
    }
}

.biz-hero {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}
.biz-hero__cover {
    height: 320px;
    background: #0b0b10;
    position: relative;
}
.biz-hero__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .92;
}
.biz-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.75) 100%);
}
.biz-hero__row {
    width: 100%;
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
}
.biz-hero__left { min-width: 0; }
.biz-hero__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.biz-hero__logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    backdrop-filter: blur(8px);
}
.biz-hero__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-hero__logo span { color: rgba(255,255,255,.92); font-weight: 900; letter-spacing: -0.5px; }
.biz-hero__title {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 0;
}
.biz-hero__meta {
    color: rgba(255,255,255,.85);
    font-size: 0.95rem;
    margin-top: 6px;
}
.biz-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.92);
    margin-right: 8px;
}
.biz-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}
.biz-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.biz-social a {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
}
.biz-social a:hover { background: rgba(255,255,255,.18); }
.biz-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    background: #fff;
    padding: 16px;
}
.biz-card .form-control, .biz-card .form-select {
    border-radius: 14px;
}
/* Tek vitrin (slider yok) */
.biz-hero__inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
}
@media (max-width: 991.98px) {
    .biz-hero__inner { grid-template-columns: 1fr; }
}
.biz-hero__media {
    position: relative;
    min-height: 280px;
    background: #0b0b10;
}
.biz-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.biz-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.05) 45%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}
.biz-hero__content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}
.biz-kv {
    display: grid;
    gap: 10px;
}
.biz-kv__row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #374151;
    font-size: 0.95rem;
}
.biz-kv__row i {
    margin-top: 2px;
    color: #7c3aed;
}
.biz-social--light a {
    background: rgba(124,58,237,.10);
    border: 1px solid rgba(124,58,237,.18);
    color: #7c3aed;
    backdrop-filter: none;
}
.biz-social--light a:hover { background: rgba(124,58,237,.14); }
.biz-badge--light {
    background: rgba(17,24,39,.04);
    border: 1px solid rgba(17,24,39,.08);
    color: #111827;
}

