/* Luxeva — minimal override katmanı.
   Bootstrap 4 + luxeva-skin.min.css üstüne MyTicaret'e özel ufak ayarlar.
   Renk / tipografi genel tanımları theme.json / luxeva-skin.min.css tarafındadır. */

:root {
    --lx-accent: #114469;
    --lx-accent-hover: #0d3552;
    --lx-text: #222529;
    --lx-muted: #666;
}

/* ────────────────────────────────────────────────────────────────────────
   Tipografi — Glamora ile aynı ölçek.
   Luxeva-skin.min.css "html{font-size:62.5%}" + "body{font-size:1.4rem}"
   (=14px masaüstü) kullanıyor; mobilde ise "html{font-size:9px}" ile
   body 12.6px'e düşüyor. Glamora'da html dokunulmaz, body daima 14px.
   Aşağıdaki kurallar Luxeva body ve metin ölçeğini Glamora seviyesine çeker
   ve küçük inline/rem tanımlarını Glamora'daki 13px small eşdeğerine getirir.
   ──────────────────────────────────────────────────────────────────────── */

/* Skin'in mobil html shrink kuralını iptal et (12.6px → 14px body için şart) */
@media (max-width: 767.98px) {
    html { font-size: 62.5% !important; } /* masaüstü ile aynı: 1rem = 10px */
}

/* Gövde metni — Glamora gibi daima 14px / 1.6 line-height */
body {
    font-size: 14px !important;
    line-height: 1.6;
}

/* Form alanları — iOS Safari odaklanınca otomatik zoom yapmasın (≥16px şart) */
input, select, textarea { font-size: 14px; }
@media (max-width: 767.98px) {
    input, select, textarea { font-size: 16px; }
}

/* ────────────────────────────────────────────────────────────────────────
   Küçük yazı tabanı — Glamora small eşdeğeri (13px).
   Bootstrap .small/.badge/form-text ve skin'in rem tabanlı ufak yazıları
   hepsi Glamora ile aynı 13px noktasına gelir.
   ──────────────────────────────────────────────────────────────────────── */
.small,
small,
p.small,
span.small,
div.small,
li.small,
.text-muted.small,
.custom-control-label.small,
.form-text,
.badge,
.badge-pill,
.table-sm,
.table-sm th,
.table-sm td {
    font-size: 13px !important;
    line-height: 1.5;
}

/* Şablonlardaki inline küçük font-size tanımlarını 13px'e çek (Glamora small) */
[style*="font-size:9px"],  [style*="font-size: 9px"],
[style*="font-size:10px"], [style*="font-size: 10px"],
[style*="font-size:11px"], [style*="font-size: 11px"],
[style*="font-size:12px"], [style*="font-size: 12px"],
[style*="font-size:12.5px"], [style*="font-size: 12.5px"],
[style*="font-size:0.6"],  [style*="font-size: 0.6"],
[style*="font-size:0.7"],  [style*="font-size: 0.7"],
[style*="font-size:0.8"],  [style*="font-size: 0.8"],
[style*="font-size:0.9"],  [style*="font-size: 0.9"] {
    font-size: 13px !important;
}

/* Theme editor preview helpers */
[data-myt-section] { position: relative; }
[data-myt-section].is-hovered { outline: 2px dashed rgba(17,68,105,.4); outline-offset: -2px; }
[data-myt-section].is-selected { outline: 2px solid var(--lx-accent); outline-offset: -2px; }

/* Rozetler / etiketler */
.lx-disc-badge {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 6px;
}
.lx-pdp-kampanya-badge {
    position: absolute;
    max-width: 80px;
    height: auto;
    z-index: 2;
    pointer-events: none;
}
.lx-pc__kampanya-badge--tl { top: 6px; left: 6px; }
.lx-pc__kampanya-badge--tr { top: 6px; right: 6px; }
.lx-pc__kampanya-badge--br { bottom: 6px; right: 6px; }
.lx-pc__kampanya-badge--bl { bottom: 6px; left: 6px; }

/* Bundle PDP ince ayarlar */
.lx-bundle-pdp { border: 1px solid rgba(17,68,105,.15); border-radius: 8px; background: #fff; }
.lx-bundle-pdp__icon { background: rgba(17,68,105,.08); color: var(--lx-accent); width: 36px; height: 36px; }
.lx-bundle-pdp__thumb,
.lx-bundle-pdp__thumb-ph { width: 56px; height: 56px; background: #f7f7f7; color: #ccc; }
.lx-bundle-pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lx-bundle-pdp__badge { background: var(--lx-accent); color: #fff; font-size: 13px; border: 0; }
.lx-bundle-pdp__qty { max-width: 140px; margin-left: auto; }
.lx-bundle-pdp__qty-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(17,68,105,.08); color: var(--lx-accent); font-size: 13px; font-weight: 600; }

/* Mobil kategori chip genişliği düzeltmesi */
.btn-altkategori { text-transform: none; }

/* Sepet summary vurgular */
.cart-summary .sepetGenelToplam { color: var(--lx-accent) !important; }

/* Stok mesajları */
.lx-stock-yes { color: #198754; }
.lx-stock-no  { color: #dc3545; }

/* PDP fiyat kırmızı vurgu */
.lx-pdp-price-main.red,
.price-box .new-price.red { color: #dc3545; }

/* Newsletter-popup eski modal kalıntısı — temizle */
.newsletter-popup, .mfp-hide { display: none !important; }

/* Header sepet: flex satırında <a> bazen genişleyebiliyor; rozet yalnızca ikon kutusuna göre */
.header-right > .header-icon {
    flex: 0 0 auto;
}
.lx-cart-nav {
    display: inline-flex;
    align-items: center;
}
/* Sepet rozeti: .dropdown-toggle + .badge-circle top/right hizası */
.lx-cart-nav__icon-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}
.lx-cart-nav__icon-wrap .cart-count.badge-circle {
    position: absolute;
    top: 1px;
    right: 0;
    left: auto;
    z-index: 2;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 2px;
    line-height: 1.6rem;
    font-size: 1.1rem;
    border-radius: 50%;
    background: #ff5b5b;
    color: #fff;
    text-align: center;
    font-family: "Playfair Display", sans-serif;
    font-weight: 600;
    pointer-events: none;
    box-sizing: border-box;
}
.lx-cart-nav__icon-wrap .cart-count.badge-circle:empty { display: none; }

/* Footer newsletter gömme input grubunda ince ayar */
.footer-submit-wrapper { display: flex; }
.footer-submit-wrapper > input[type="email"] { flex: 1; }

/* Sıralama butonları dar ekranda daha iyi sığsın */
@media (max-width: 575.98px) {
    .btn-siralama { font-size: .85rem !important; padding: 4px 6px !important; }
    .toolbox-left .row { flex-wrap: wrap; }
}

/* Merkezlenmiş sayfa başlığı */
.page-header h1 { font-family: "Playfair Display", serif; font-style: italic; color: var(--lx-accent); }

/* ────────────────────────────────────────────────────────────────────────
   PDP galerisi (Luxeva — Owl bağımsız)
   Owl Carousel Luxeva build'ine dahil değil. Ana görsel tek <img>, thumb'lar
   onclick="lxThumb(this)" ile src/srcset'i değiştirir.
   ──────────────────────────────────────────────────────────────────────── */
.product-single-gallery .lx-gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #fafafa;
}
.product-single-gallery .lx-gallery-main .product-single-image {
    display: block;
    width: 100%;
    height: auto;
    /* HTML'de width/height="468" attribute'ları CLS için bırakıldı; ancak
       bu 1:1 implicit aspect-ratio uygulayıp dikey görselleri kare kutuya
       cover ile kırpıyordu. aspect-ratio:auto ile gerçek oran kullanılır,
       contain ile dikey/yatay görsel kırpılmadan tam gösterilir. */
    aspect-ratio: auto;
    object-fit: contain;
    max-height: 80vh;
}
.product-single-gallery .lx-gallery-main .prod-full-screen {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lx-accent);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    cursor: pointer;
    z-index: 2;
}
.product-single-gallery .lx-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 0;
}
.product-single-gallery .lx-gallery-thumbs .lx-gallery-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s ease, transform .15s ease;
    box-sizing: border-box;
}
.product-single-gallery .lx-gallery-thumbs .lx-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-single-gallery .lx-gallery-thumbs .lx-gallery-thumb:hover {
    border-color: rgba(17,68,105,.3);
}
.product-single-gallery .lx-gallery-thumbs .lx-gallery-thumb.active {
    border-color: var(--lx-accent);
}
.product-single-gallery .lx-gallery-thumbs .lx-gallery-thumb:focus {
    outline: none;
    border-color: var(--lx-accent);
    box-shadow: 0 0 0 2px rgba(17,68,105,.15);
}
@media (max-width: 575.98px) {
    .product-single-gallery .lx-gallery-thumbs .lx-gallery-thumb { width: 56px; height: 56px; }
}

/* PDP marka logosu — en fazla 80px genişlik */
.ratings-container .lx-pdp-marka-logo {
    max-width: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
