/*
 * MyTicaret Default Theme — Bootstrap 5 üstü ince katman
 * İş mantığı ve cart/checkout CSS content/ klasöründe kalır.
 */

/* ---- Genel ---- */
:root {
    --myt-primary:     #111827;
    --myt-primary-rgb: 17,24,39;
    --myt-accent:      #4f46e5;
    --myt-radius:      .5rem;
}

body.myt-body {
    background: #f8f9fa;
    overflow-x: clip;
    max-width: 100%;
}
html {
    overflow-x: clip;
    max-width: 100%;
}

/* Bootstrap .row negatif margin taşmasını kes */
.myt-main,
.myt-footer,
#myt-navbar .container {
    overflow-x: clip;
    max-width: 100%;
}

/* Footer — ödeme / güven logosu şeridi (beyaz PNG, koyu arka plan) */
.myt-footer-trust-band {
    max-height: 42px;
    width: auto;
    opacity: .92;
}

/* ---- Navbar ---- */
#myt-navbar { border-bottom: 1px solid rgba(0,0,0,.07); }
.myt-cart-badge-count:empty { display: none; }

/* Geniş menü 1366'da yatay taşmasın */
@media (min-width: 992px) {
    #navbarMain {
        min-width: 0;
        flex: 1 1 auto;
    }
    #navbarMain .navbar-nav {
        flex-wrap: wrap;
        max-width: 100%;
    }
    #myt-navbar .nav-link {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    #myt-navbar .myt-navbar-search-input {
        min-width: 0;
        max-width: 140px;
    }
}

/* ---- Hover gölge kart ---- */
.myt-hover-shadow { transition: box-shadow .2s ease, transform .2s ease; }
.myt-hover-shadow:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1) !important; transform: translateY(-2px); }

/* ---- Ürün kartı ---- */
.myt-product-card { border-radius: var(--myt-radius); }
.myt-product-card__title { line-height: 1.35; }
.myt-product-card .card-body { gap: .25rem; }

/* ---- Kategori kart ---- */
.myt-cat-card { transition: box-shadow .15s; }
.myt-cat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }

/* ---- Bölüm başlığı ---- */
.myt-section__title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--myt-accent);
    margin-top: .4rem;
    border-radius: 2px;
}

/* ---- Footer ---- */
.myt-footer a:hover { color: #fff !important; }

/* ---- Sepet sayfası — cart-page CSS content/css'den gelir ---- */

/* ---- CMS ---- */
.myt-cms-content img { max-width: 100%; height: auto; }
.myt-cms-content p { margin-bottom: 1rem; }

/* ---- Hesap sayfaları ---- */
.myt-account-body .myt-main { min-height: 70vh; }

/* ---- Ana sayfa hero — Bootstrap carousel fine-tune ---- */
.carousel-item img { display: block; }

/* ---- Küçük ekran düzeltmeleri ---- */
@media (max-width: 575.98px) {
    .myt-product-card__img-wrap { height: 140px !important; }
    #myt-hero-carousel .carousel-item { max-height: 260px !important; }
    #myt-hero-carousel .carousel-item img { max-height: 260px !important; }
}

/* ---- PDP paket (bundle) kutusu ---- */
.myt-bundle-pdp {
    border-radius: var(--myt-radius);
    border: 1px solid rgba(0, 0, 0, .06) !important;
}
.myt-bundle-pdp__icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--myt-accent) 0%, #6366f1 100%);
    box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
}
.myt-bundle-pdp__line {
    min-width: 0;
}
.myt-bundle-pdp__thumb {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    flex: 0 0 56px;
}
.myt-bundle-pdp__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.myt-bundle-pdp__thumb-ph {
    width: 100%;
    height: 100%;
    font-size: 11px;
}
.myt-bundle-pdp__qty {
    min-width: 108px;
    max-width: 140px;
}
.myt-bundle-pdp__qty .input-group-text {
    font-size: 11px;
    padding-left: .5rem;
    padding-right: .5rem;
}
.myt-bundle-pdp__actions .form-check-input.bundle-line-include {
    cursor: pointer;
    width: 2.25rem;
}

/* Üst navbar — arama / sepet rozeti (inline style yerine) */
#myt-navbar .myt-navbar-search-input {
    min-width: 160px;
}
#myt-navbar .myt-cart-badge-count {
    font-size: .65rem;
}

/* Sipariş takip — sonuç alanı; JS display:block ile gösterir */
#myt-track-result {
    margin-top: 1rem;
    display: none;
}
:root{ --myt-flt-accent: var(--myt-primary); --myt-pager-active: var(--myt-primary); }
