/* Cepte Market: marketpro'da karşılığı olmayan küçük parçalar. Renkler şablonun değişkenlerinden gelir. */
[hidden] { display: none !important; }

.sf-branch-bar { background: var(--main-color-50, #e7f9ef); border-bottom: 1px solid #e6e6e6; font-size: 14px; color: #121535; }
.sf-branch-bar .container { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.sf-branch-bar b { font-weight: 600; }
.sf-branch-bar .sf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #299e60; margin-right: 6px; vertical-align: middle; }
.sf-branch-bar .sf-dot.off { background: #fa6400; }
.sf-branch-bar button { color: var(--main-color, #299e60); font-weight: 600; text-decoration: underline; }

.sf-modal { position: fixed; inset: 0; z-index: 10050; background: rgba(18, 21, 53, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sf-modal__box { position: relative; background: #fff; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; }
.sf-modal__close { position: absolute; top: 16px; right: 16px; }
.sf-modal select.common-input { appearance: auto; }

.sf-alert { border-radius: 8px; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.sf-alert.ok { background: var(--main-color-50, #e7f9ef); color: var(--main-color-800, #1e7a49); }
.sf-alert.no { background: #fdecec; color: #c62828; }
.sf-alert.warn { background: #fff0e5; color: #a64300; }

.sf-toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); background: #121535; color: #fff; padding: 12px 22px; border-radius: 50rem; font-size: 14px; z-index: 10060; opacity: 0; pointer-events: none; transition: all .25s; max-width: calc(100vw - 32px); }
.sf-toast.on { opacity: 1; transform: translate(-50%, 0); }

.product-card__thumb img { max-height: 180px; object-fit: contain; }
.list-grid-wrapper .product-card__thumb img { height: 180px; width: 100%; }
.new-arrival__slider .product-card__thumb img, .recommended .product-card__thumb img { height: 160px; width: 100%; }
.product-card__stepper { display: flex; align-items: center; justify-content: space-between; border-radius: 50rem; background: var(--main-color, #299e60); color: #fff; padding: 4px; }
.product-card__stepper button { width: 36px; height: 36px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.product-card__stepper button:hover { background: rgba(255, 255, 255, .18); }
.product-card__stepper span { font-weight: 600; }
.product-card .sf-oos { position: absolute; top: 52px; right: 8px; background: #121535; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 4px; z-index: 2; }
.product-card.is-oos .product-card__thumb img { opacity: .45; }

.product-details__thumb img { max-height: 420px; object-fit: contain; }
.product-details__images-slider img { max-height: 100px; object-fit: contain; }

.sf-feature-thumb img { width: 72%; height: 72%; object-fit: contain; }

.sf-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #e6e6e6; border-radius: 8px; padding: 14px 16px; cursor: pointer; margin-bottom: 12px; transition: border-color .2s; }
.sf-option:hover, .sf-option.on { border-color: var(--main-color, #299e60); }
.sf-option.on { background: var(--main-color-50, #e7f9ef); }
.sf-option.dis { opacity: .5; cursor: not-allowed; }
.sf-option input { margin-top: 4px; accent-color: var(--main-color, #299e60); }
.sf-option small { display: block; color: #666; margin-top: 2px; }
.sf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.sf-chip { border: 1px solid #e6e6e6; border-radius: 50rem; padding: 8px 16px; font-size: 14px; background: #fff; }
.sf-chip.on { background: var(--main-color, #299e60); border-color: var(--main-color, #299e60); color: #fff; }
.sf-chip:disabled { opacity: .45; cursor: not-allowed; }
.sf-chip small { display: block; font-size: 11px; opacity: .8; }

.sf-status { display: inline-block; padding: 4px 12px; border-radius: 50rem; font-size: 12px; font-weight: 600; color: #fff; }
.sf-empty { text-align: center; padding: 48px 16px; color: #666; }
.sf-empty i { font-size: 48px; color: var(--main-color, #299e60); display: block; margin-bottom: 12px; }

.payment-item__content { display: none; }
.payment-item.on .payment-item__content { display: block; }

/* Favori (kalp) düğmesi: ürün kartının sağ üst köşesi */
.product-card .sf-fav { position: absolute; top: 8px; right: 8px; z-index: 3; transition: color .2s, transform .2s; }
.product-card .sf-fav:hover { transform: scale(1.08); }
[data-fav] .ph-fill.ph-heart { color: inherit; }
.sf-fav .ph-fill.ph-heart { color: var(--main-color, #299e60); }

/* Panelden gelen içerik (sayfa gövdesi, SSS cevabı, kampanya açıklaması) */
.sf-prose h2 { font-size: 22px; margin: 32px 0 16px; }
.sf-prose h3 { font-size: 18px; margin: 24px 0 12px; }
.sf-prose h2:first-child, .sf-prose h3:first-child { margin-top: 0; }
.sf-prose p { margin-bottom: 16px; }
.sf-prose ul, .sf-prose ol { margin: 0 0 16px 20px; }
.sf-prose ul { list-style: disc; }
.sf-prose ol { list-style: decimal; }
.sf-prose li { margin-bottom: 6px; }
.sf-prose a { color: var(--main-color, #299e60); text-decoration: underline; }
.sf-prose table { width: 100%; margin-bottom: 16px; border-collapse: collapse; }
.sf-prose td, .sf-prose th { border: 1px solid #e6e6e6; padding: 8px 12px; }

/* SSS: şablonda akordeon yok; yerel details/summary */
.sf-faq summary { list-style: none; }
.sf-faq summary::-webkit-details-marker { display: none; }
.sf-faq[open] { border-color: var(--main-color, #299e60); }
.sf-faq[open] summary i { transform: rotate(45deg); }
.sf-faq summary i { transition: transform .2s; }

.sf-campaign-img img { width: 100%; max-height: 360px; object-fit: cover; }
.cart-table td .product-card__stepper { min-width: 140px; }
/* Sipariş durum adımları: dar ekranda da 4 sütun yan yana */
.sf-steps { display: flex; gap: 8px; }
.sf-steps > div { flex: 1 1 0; min-width: 0; }
@media (max-width: 575px) { .sf-steps h6 { font-size: 13px; } .sf-steps .w-48 { width: 40px; height: 40px; font-size: 20px; } }

/* Mağaza teması (head.html → PTS_THEME): şablonda .bg-color-one sabit yeşil yazılı; özel ana renk seçildiğinde yalnız rengi değişkene bağlanır */
:root[data-sf-theme] .bg-color-one { background-color: var(--bg-color-one) !important; }

/* İletişim formu bal küpü (botlar doldurur, insanlar görmez) */
.sf-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Ana sayfa ürün şeridi (panel bölümü): şablon kartıyla yatay kaydırmalı satır; oklar sf.js [data-hs] */
.sf-hscroll{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 5 * 16px) / 6);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 0}
.sf-hscroll::-webkit-scrollbar{display:none}
.sf-hscroll>*{scroll-snap-align:start;min-width:0}
.sf-hscroll .product-card{height:100%}
@media (max-width:1599px){.sf-hscroll{grid-auto-columns:calc((100% - 4 * 16px) / 5)}}
@media (max-width:1399px){.sf-hscroll{grid-auto-columns:calc((100% - 3 * 16px) / 4)}}
@media (max-width:991px){.sf-hscroll{grid-auto-columns:calc((100% - 2 * 16px) / 3)}}
@media (max-width:575px){.sf-hscroll{grid-auto-columns:calc((100% - 16px) / 2)}}

/* ------------------------------------------------------------------ Telefon / dar ekran uyumu
   Şablonun kendi kırılımları (md ≥576, lg ≥768, xl ≥992 / 1200) korunur; burada yalnız şablonda eksik kalan parçalar var. */

/* Logo: genişliği şablonun .logo img kuralı belirler (200px, ≤425px'te 148px); başka yerde kabından taşmaz */
:where(img[data-sf-logo], img[data-logo-dark]) { max-width: 100%; }

/* Üst bilgideki teslimat adresi kutusu: uzun mahalle adı satırı itmesin, üç noktayla kısalsın */
.location-box { min-width: 0; max-width: 100%; }
.location-box [data-sf="address-text"] { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
@media (max-width: 575px) { .location-box [data-sf="address-text"] { max-width: 120px; } }

/* Ürün ızgarası: şablonun "w-6/12" (telefonda iki sütun) sınıfı .row>* kuralına yeniliyor; 575px altında iki sütun geri gelir */
@media (max-width: 575px) {
  .row > .w-6\/12 { width: 50%; }
  .list-grid-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .list-grid-wrapper .product-card__thumb, .row > .w-6\/12 .product-card__thumb { height: 140px; min-height: 0; }
  .list-grid-wrapper .product-card__thumb img, .row > .w-6\/12 .product-card__thumb img { height: 120px; max-height: 120px; }
  .product-card .product-card__cart { padding-left: 12px; padding-right: 12px; }
  .product-card .title { font-size: 15px; }
}

/* Tablolar (sepet, siparişler, sipariş detayı, puan hareketleri, favoriler): 1400px altında tablo sütununa sığmıyor (şablonda yatay kaydırma, son sütun görünmüyordu);
   satırlar alt alta dizilir (sf.js stackTables) */
@media (max-width: 1399px) {
  table.sf-stack, table.sf-stack tbody { display: block; width: 100%; min-width: 0 !important; }
  table.sf-stack thead { display: none; }
  table.sf-stack tbody tr { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; padding: 16px 0; }
  table.sf-stack tbody tr td { display: block; padding: 0 !important; border: 0 !important; text-align: start; }
  table.sf-stack td.sf-cell-main { flex: 1 1 100%; }
  table.sf-stack td.sf-cell-end { order: 9; margin-inline-start: auto; }
  table.sf-stack td[data-th]::before { content: attr(data-th); display: block; font-size: 12px; font-weight: 500; color: #888; margin-bottom: 4px; }
  table.sf-stack .table-product { gap: 12px; }
  table.sf-stack .table-product__thumb { width: 64px; height: 64px; max-width: 64px; flex-shrink: 0; }
  table.sf-stack .table-product__thumb img { max-width: 48px; }
  table.sf-stack .table-product .title, table.sf-stack .text-lg { font-size: 15px; }
  table.sf-stack.rounded-8 { padding: 0 16px; }
}
@media (max-width: 767px) {
  .cart-table.px-40, .cart-table.px-24 { padding-left: 16px !important; padding-right: 16px !important; }
  .cart-table.py-48, .cart-table.py-32 { padding-top: 16px !important; padding-bottom: 16px !important; }
  .cart-sidebar.px-24 { padding: 24px 16px !important; }
}

/* Hesabım menüsü: xl altında yan menü yerine yatay kaydırılan sekme şeridi */
@media (max-width: 1199px) {
  .sf-account-box { padding: 16px !important; margin-bottom: 8px; }
  .sf-account-box > h6 { font-size: 16px; padding-bottom: 12px; margin-bottom: 12px; }
  .sf-account-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 2px; }
  .sf-account-nav::-webkit-scrollbar { display: none; }
  .sf-account-nav > li { margin: 0 !important; flex-shrink: 0; }
  .sf-account-nav > li > a, .sf-account-nav > li > button { border: 1px solid #e6e6e6; border-radius: 50rem; padding: 8px 14px; white-space: nowrap; font-size: 14px; }
  .sf-account-nav > li > a.text-main-600 { border-color: var(--main-color, #299e60); background: var(--main-color-50, #e7f9ef); }
}
@media (max-width: 767px) {
  .account [data-sf="account-content"] .px-24 { padding-left: 16px !important; padding-right: 16px !important; }
  .account [data-sf="account-content"] .py-32, .account [data-sf="account-content"] .py-40 { padding-top: 20px !important; padding-bottom: 20px !important; }
}

/* Sipariş adımları telefonda: etiket kelime ortasından bölünmesin */
@media (max-width: 575px) {
  .sf-steps { gap: 4px; }
  .sf-steps h6 { font-size: 12px !important; word-break: keep-all; overflow-wrap: normal; hyphens: auto; }
}

/* Ödeme özeti: tutar kendi içinde bölünmesin */
[data-sf="co-summary"] .flex-between > span:last-child, [data-sf="co-summary"] .flex-between > div + span { white-space: nowrap; flex-shrink: 0; }
[data-sf="co-summary"] .w-144 { width: auto; max-width: 144px; }
@media (max-width: 1399px) { table.sf-stack td.sf-cell-end ~ td.sf-cell-end { margin-inline-start: 0; } }
.product-card__stepper span { white-space: nowrap; }
@media (max-width: 575px) {
  .product-card__stepper span { font-size: 14px; }
  .product-card__stepper button { width: 32px; height: 32px; }
  /* Ana slider: telefonda oklar düğmenin üstüne biniyor; kaydırma parmakla yapılır */
  .banner-item .slick-arrow { display: none !important; }
}
/* Marka kutuları (Modern / Zarif): şablonda width:100% olduğu için telefonda her marka ayrı satıra düşüyor; iki sütun */
@media (max-width: 575px) { .flex-wrap > .top-brand__item { width: calc(50% - 6px); max-width: none; } }
/* Ürün ızgarası (.row.g-12): şablon sütun boşluğunu yalnız kendi bölüm sınıflarında (recommended, hot-deals…) sıfırlıyor; diğer temaların
   bölümlerinde 12px sütun boşluğu yüzdelik sütunlara eklenip bir kartı alt satıra itiyordu. Boşluk sütun dolgusundan gelir. */
.row.g-12.sf-grid { column-gap: 0 !important; }
/* Sepet özeti: tutar kendi içinde bölünmesin */
.cart-sidebar .flex-between > span:last-child { white-space: nowrap; }

/* Sepete eklendi (SweetAlert2 köşe bildirimi) */
.swal2-container.swal2-top-end { padding-top: 90px; }
.swal2-popup.swal2-toast { width: 340px; padding: 14px 16px; align-items: flex-start; }
.swal2-popup.swal2-toast .swal2-html-container { margin: 6px 0 0; grid-column: 1 / -1; }
.swal2-popup.swal2-toast .swal2-actions { grid-column: 1 / -1; justify-content: stretch; margin: 10px 0 0; }
.swal2-popup.swal2-toast .swal2-confirm { flex: 1; font-weight: 600; }
.sf-swal-item { display: flex; gap: 12px; align-items: center; text-align: left; }
.sf-swal-item img { width: 52px; height: 52px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid #eee; flex: 0 0 52px; }
.sf-swal-item b { display: block; font-size: 14px; line-height: 1.3; }
.sf-swal-item small { display: block; color: #6b7280; margin-top: 2px; }
@media (max-width: 575px) { .swal2-container.swal2-top-end { padding: 70px 10px 0; } .swal2-popup.swal2-toast { width: 100%; } }
.swal2-popup.swal2-toast { font-size: 15px; }
.swal2-popup.swal2-toast .swal2-title { font-size: 16px; margin: 0 8px; }
.swal2-popup.swal2-toast .swal2-html-container { font-size: 14px; }
.swal2-popup.swal2-toast .swal2-confirm { font-size: 15px; padding: 10px 16px; }
.swal2-popup.swal2-toast .swal2-close { font-size: 26px; }
.swal2-popup.swal2-toast .swal2-icon { width: 28px; height: 28px; margin: 0; font-size: 10px; }

/* Güvenli alanlar (çentik / ana ekran çubuğu): head.html viewport-fit=cover; sabit alt öğeler alt boşluğu, sabit üst bilgi üst boşluğu alır. Tüm temalar (marketpro + Ekomart) */
.sf-toast { bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.sf-modal { padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sf-modal__box { max-height: calc(100vh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
.progress-wrap { margin-bottom: env(safe-area-inset-bottom, 0px); margin-right: env(safe-area-inset-right, 0px); }
.header.fixed-header, .header--sticky.sticky, .header-primary-sticky.sticky { padding-top: env(safe-area-inset-top, 0px); }
.mobile-menu, .side-bar, #side-bar { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.bottom-footer, .rts-copyright-area, .copyright-area-one { padding-bottom: env(safe-area-inset-bottom, 0px); }
/* Sabit alt menü / yapışkan alt çubuk için ortak sınıf */
.sf-safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }
@supports (padding: max(0px)) { body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); } }

/* Arama önerileri (üst bilgi arama kutuları; iki aile ortak) */
.sf-suggest-host { position: relative; }
.sf-suggest { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 1050; background: #fff; border: 1px solid #e6e6e6; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.08); max-height: 420px; overflow-y: auto; text-align: left; min-width: 260px; }
.sf-suggest[hidden] { display: none; }
.sf-suggest__group { padding: 8px 12px 4px; font-size: 12px; font-weight: 600; color: #8a8f98; text-transform: uppercase; letter-spacing: .5px; }
.sf-suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; color: #1a1a1a; font-size: 14px; line-height: 1.3; text-decoration: none; }
.sf-suggest__item:hover, .sf-suggest__item:focus { background: #f5f6f7; }
.sf-suggest__item img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.sf-suggest__item i { font-size: 18px; color: var(--main-600, var(--color-primary, #299e60)); }
.sf-suggest__item span { flex-grow: 1; }
.sf-suggest__item b { flex-shrink: 0; font-weight: 600; }
/* Sipariş tercihleri (iki aile ortak): hazırlama seçimi, sepet satırı tercihleri */
select.common-input.sf-select { appearance: auto; }
.sf-item-prefs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; max-width: 300px; }
.sf-item-prefs .sf-mini { height: 36px; padding: 0 10px; border: 1px solid #e6e6e6; border-radius: 6px; background: #fff; font-size: 13px; color: inherit; max-width: 220px; width: auto; appearance: auto; }
.sf-item-prefs input.sf-mini { min-width: 0; flex: 1 1 120px; }
.sf-item-prefs__sub span { white-space: nowrap; }
.sf-item-prefs__sub { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #666; font-weight: 400; }
.sf-item-prefs__text { color: #666; }
