body { font-family: 'Bai Jamjuree', Helvetica, Arial, system-ui, -apple-system, sans-serif; }
footer .text-muted,
footer a.text-muted { color: rgba(255, 255, 255, 0.75) !important; }
footer a.text-muted:hover { color: #fff !important; }

/* Mobile navbar */
.navbar-toggler:focus,
.navbar-toggler:active {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}
@media (max-width: 991.98px) {
    .navbar .navbar-brand { max-width: 140px; }
    .navbar .navbar-brand span { font-size: 1rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mobile-nav-link { color: #212529; text-decoration: none; font-size: 1rem; min-height: 48px; padding-top: 12px; padding-bottom: 12px; display: flex; align-items: center; }
    .mobile-nav-link:hover { background: #f8f9fa; color: var(--primary); }
    .mobile-nav-link i { width: 24px; text-align: center; }
    .nav-actions { gap: 0.2rem !important; }
    .cart-btn { min-width: 48px; min-height: 48px; padding: 0.4rem 0.6rem !important; }
    .cart-btn i.bi-cart3 { font-size: 1.4rem !important; }
    .navbar-toggler { min-width: 48px; min-height: 48px; }
}
.product-card img { object-fit: cover; height: 220px; }
.product-card .card-footer .btn { font-size: 0.75rem; white-space: nowrap; padding: 0.35rem 0.5rem; }
.product-card .card-footer {
    flex-direction: column !important;
    gap: 0.4rem !important;
}
.product-card .card-footer .btn {
    width: 100% !important;
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}
@media (max-width: 576px) {
    .product-card .card-footer { flex-direction: column; }
    .product-card .card-footer .btn { width: 100%; }
}
@media (max-width: 991.98px) {
    .product-card .card-footer {
        flex-direction: column !important;
        gap: 0.4rem !important;
    }
    .product-card .card-footer .btn {
        width: 100%;
        min-width: 0;
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }
}
@media (min-width: 577px) and (max-width: 770px) {
    .product-card .card-footer {
        flex-direction: column !important;
        gap: 0.4rem !important;
    }
    .product-card .card-footer .btn {
        width: 100% !important;
        min-width: 0;
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }
}
@media (max-width: 400px) {
    .product-card .card-footer .btn { font-size: 0.7rem; padding: 0.3rem 0.4rem; }
}
/* Ana sayfada tek veya iki ürün varken kartlar büyük olmasın */
.product-row--single { align-items: flex-start; }
.product-row--single > [class*="col"] {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}
.product-row--double { align-items: flex-start; justify-content: center; }
.product-row--double > [class*="col"] { max-width: 280px; }
/* Home products: 992-1400px aralığında son satır kartları esnemesin */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .home-product-grid {
        justify-content: flex-start;
    }
    .home-product-grid > .col-6.col-md-4.col-lg-3 {
        flex: 0 0 25% !important;
        width: 25% !important;
        max-width: 25% !important;
    }
    .home-product-grid > .col-6.col-md-4.col-lg-3 .product-card {
        width: 100%;
    }
    /* Home cards: translated button texts can overflow at this width */
    .home-product-grid .product-card .card-footer {
        flex-direction: column;
        gap: 0.4rem !important;
    }
    .home-product-grid .product-card .card-footer .btn {
        width: 100%;
        min-width: 0;
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }
}
.badge-discount { position: absolute; top: 10px; left: 10px; }
/* Slider — masaüstü: büyük alan + cover; mobil: tam görsel (contain), kırpma yok */
.hero-slider {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.hero-slider .carousel-inner { width: 100%; max-width: 100%; overflow: hidden; }
.hero-slider .carousel-item { width: 100%; max-width: 100%; overflow: hidden; }
.hero-slider .slider-img {
    width: 100%;
    height: 85vh;
    min-height: 550px;
    max-height: 900px;
    object-fit: cover;
    object-position: center center;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
}
.hero-slider video.slider-img { object-fit: cover; object-position: center; }
.hero-slider .carousel-caption { text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.hero-slider .slider-title { font-size: clamp(1rem, 4vw, 1.5rem); }
.hero-slider .slider-subtitle { font-size: clamp(0.75rem, 3vw, 1rem); }
@media (min-width: 992px) and (max-width: 1700px) {
    .hero-slider .carousel-item {
        background: transparent;
        overflow: hidden;
    }
    .hero-slider .slider-img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        object-fit: contain;
        object-position: center center;
    }
    .hero-slider video.slider-img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        object-fit: contain;
        object-position: center center;
    }
}
@media (max-width: 991.98px) {
    .hero-slider .carousel-item {
        position: relative;
        height: auto;
        min-height: 0;
        background: #0f0f0f;
    }
    .hero-slider .carousel-item > a {
        display: block;
        width: 100%;
        line-height: 0;
    }
    /* Tam görsel: kırpma yok; oran korunur, kutuya sığana kadar küçülür */
    .hero-slider .slider-img {
        width: auto;
        max-width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100svh - 4rem);
        object-fit: contain;
        object-position: center center;
        margin: 0 auto;
    }
    .hero-slider video.slider-img {
        width: auto;
        max-width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100svh - 4rem);
        object-fit: contain;
        object-position: center;
        background: #000;
        display: block;
        margin: 0 auto;
    }
    body.body-with-banner .hero-slider .slider-img,
    body.body-with-banner .hero-slider video.slider-img {
        max-height: calc(100svh - 4.75rem);
    }
}
.star-rating i { font-size: 0.9rem; }
.quantity-input { width: 70px; }

/* Product page: variant/combo seçim butonları (tek tık) */
.combo-opt-btn, .variant-opt-btn { min-width: 2.5rem; }
.combo-opt-btn.active, .variant-opt-btn.active { background-color: var(--primary); border-color: var(--primary); color: #fff; }

/* Product page thumbnails */
.product-thumb { cursor: pointer; opacity: 0.7; transition: opacity 0.2s; background: #fff; }
.product-thumb:hover { opacity: 1; }
.product-thumb.active { opacity: 1; border-color: var(--primary) !important; border-width: 2px !important; }

/* Product carousel - video slides */
#productCarousel .carousel-item video { width: 100%; min-height: 300px; max-height: 500px; object-fit: contain; display: block; background: #000; }
#productCarousel .carousel-item .ratio { min-height: 300px; }
.table-cart img { width: 60px; height: 60px; object-fit: cover; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* Cart butonu - account ikonlarıyla aynı köşe ve boyut */
.navbar-main .cart-btn { border-radius: 8px !important; padding: 0.4rem 0.6rem !important; }

/* Cart butonu - account ikonları gibi hover (primary renk, hafif arka plan) */
.cart-btn {
    border: none !important;
    background: transparent !important;
    color: #374151 !important;
    transition: color 0.2s, background 0.2s;
}
.cart-btn i.bi-cart3 { color: #374151 !important; transition: color 0.2s; }
.cart-btn:hover {
    background: rgba(0,0,0,0.04) !important;
    border: none !important;
    color: var(--primary) !important;
}
.cart-btn:hover i.bi-cart3 { color: var(--primary) !important; }
.cart-count { top: 0px !important; right: 0px !important; left: auto !important; transform: none !important; }

/* Floating buttons - WhatsApp & Back to top */
.floating-buttons {
    z-index: 9999 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    pointer-events: none;
}
.floating-buttons > * { pointer-events: auto; }
#backToTop:hover { filter: brightness(1.15); color: #fff !important; }

/* Home brands marquee (kayan markalar) */
.brands-marquee-wrap { margin: 0 -1rem; }
.brands-marquee { animation: brands-scroll 40s linear infinite; width: max-content; }
.brands-marquee:hover { animation-play-state: paused; }
.brands-marquee-item:hover img { filter: grayscale(0); opacity: 1; }
@keyframes brands-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Home categories & types */
.category-card:hover img, .type-card:hover img { transform: scale(1.05); }
.category-card, .type-card { transition: box-shadow 0.3s; }
.category-card:hover, .type-card:hover { box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.15) !important; }

/* Footer üstü özellik şeridi (shipping, support, best seller, secure) */
.footer-features { border-top: 1px solid rgba(0,0,0,0.08); border-bottom: 1px solid rgba(0,0,0,0.08); background: #f8fafc; }
.footer-features .footer-feature-item { padding: 1.25rem 0.75rem; text-align: center; }
.footer-features .footer-feature-item i { font-size: 1.75rem; color: var(--primary); margin-bottom: 0.5rem; }
.footer-features .footer-feature-item .small { color: #64748b; }

/* Products page: mobilde ürünler önce, filtre butonu */
.products-toolbar { gap: 0.5rem; }
.products-sort-select { min-width: 140px; }
@media (max-width: 991.98px) {
    .products-toolbar .h5 { font-size: 1.1rem; }
    .products-toolbar .btn-outline-primary { white-space: nowrap; }
}
.products-sidebar-card .card-header { font-weight: 600; }

/* 992–1400px: navbar’da arama kutusu yok, sadece sağda arama butonu (dil yanında) */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .navbar-main .search-wrap { display: none !important; }
    .navbar-main .search-toggle-mid { display: flex !important; align-items: center; justify-content: center; }
    .navbar-main .search-toggle-mid:hover { background: rgba(0,0,0,0.06); color: var(--bs-primary); }
}
@media (min-width: 1400px) {
    .navbar-main .search-toggle-mid { display: none !important; }
}

/* Ensure mobile search bar sits below fixed navbar */
@media (max-width: 991.98px) {
    .mobile-search-wrap { margin-top: 0.5rem; }
}

/* Header altı arama çubuğu paneli (992–1400px’te butona basınca açılır) */
.search-bar-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, box-shadow 0.35s ease;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.search-bar-panel.open {
    max-height: 160px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.search-bar-panel-inner { background: linear-gradient(180deg, #f8fafc 0%, #fff 100%); }
.search-bar-input-group {
    border-radius: 14px;
    overflow: hidden;
    max-width: 640px;
    margin: 0 auto;
    border: 1px solid rgba(0,0,0,0.08);
}
.search-bar-input-group .form-control {
    font-size: 1.05rem;
    border: none;
}
.search-bar-input-group .form-control:focus {
    box-shadow: none;
    outline: none;
}
.search-bar-input-group .input-group-text { border: none; background: #fff; color: #64748b; }
.search-bar-input-group .btn-primary { min-width: 100px; }
.search-bar-panel .btn-outline-secondary { border-color: #dee2e6; }
.search-bar-panel .btn-outline-secondary:hover { background: #f1f3f5; }
