/* ---- Base ---- */
html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }
body { margin-bottom: 0; font-family: 'Segoe UI', sans-serif; }

/* ---- Navbar ---- */
#mainNav {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    z-index: 1030;
}
#mainNav .navbar-brand { color: #fff; letter-spacing: 0.5px; }
#mainNav .nav-link { color: rgba(255,255,255,0.85) !important; transition: color .2s; }
#mainNav .nav-link:hover { color: #f0c040 !important; }

/* ---- Hero Slider ---- */
.hero-slider-section { position: relative; }
.hero-swiper { width: 100%; height: clamp(320px, 60vh, 600px); }
.slider-item { width: 100%; height: 100%; }
.slider-img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}
.slider-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center;
}
.slider-content {
    padding: 2rem 3rem;
    max-width: 600px;
}
.swiper-button-next, .swiper-button-prev { color: #fff !important; }
.swiper-pagination-bullet-active { background: #f0c040 !important; }

/* ---- Category Pills ---- */
.category-pill {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    font-size: 1rem;
}
.category-pill:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.category-pill.kadin   { background:#f8d7da; color:#842029; }
.category-pill.erkek   { background:#cfe2ff; color:#084298; }
.category-pill.aksesuar{ background:#d1e7dd; color:#0a3622; }
.category-pill.cocuk   { background:#fff3cd; color:#664d03; }

/* ---- Section titles ---- */
.section-title { position: relative; padding-bottom: 10px; }
.section-title::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: #f0c040; border-radius: 2px;
}

/* ---- Product Card ---- */
.product-card { transition: transform .25s, box-shadow .25s; border-radius: 12px; overflow: hidden; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important; }
.product-img-wrap { height: 220px; background: #f5f5f5; overflow: hidden; position: relative; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img { transform: scale(1.05); }
.product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.out-of-stock-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 600; font-size: 1.1rem;
}

/* ---- Sale Banner ---- */
.sale-banner {
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    border-radius: 16px;
    margin-left: 1rem; margin-right: 1rem;
}

/* ---- Product Detail ---- */
.product-detail-img-wrap { position: relative; }
.product-detail-img-wrap img { border-radius: 12px; max-height: 500px; object-fit: cover; width: 100%; }

/* ---- Cart ---- */
.cart-item:last-child { border-bottom: 0 !important; }

/* ---- Footer ---- */
.footer { background: #1a1a2e; color: #fff; }
.footer h5, .footer h6 { color: #fff; }
.footer-link { color: #fff; text-decoration: none; display: block; margin-bottom: 4px; transition: color .2s; }
.footer-link:hover { color: #f0c040; }
.footer hr { border-color: rgba(255,255,255,0.2); }

/* ---- Kargo Marquee (Kayan Yazı) ---- */
.shipping-marquee {
    overflow: hidden;
    white-space: nowrap;
}

.shipping-marquee .marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ---- Renk / Beden seçici (detay sayfası) ---- */
.color-swatch-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s, border-color .15s;
    padding: 0;
}
.color-swatch-btn:hover { transform: scale(1.15); }
.color-swatch-btn.active { border-color: #1a1a2e; box-shadow: 0 0 0 2px #fff inset; }

.size-select-btn {
    min-width: 46px; padding: 6px 10px;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    font-size: 0.875rem; font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.size-select-btn:hover { border-color: #1a1a2e; background: #f8f9fa; }
.size-select-btn.active { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }

/* ---- Renk / Beden (admin panel) ---- */
.color-checkbox-grid { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.color-check-item { margin: 0; }
.color-dot {
    display: inline-block;
    width: 16px; height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}
.size-badge { font-size: 0.8rem; }

/* ---- Renk noktası (ürün kartı) ---- */
.color-dot-sm {
    display: inline-block;
    width: 14px; height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Utility ---- */
.object-fit-cover { object-fit: cover; }

/* ---- Upload Drop Zone ---- */
.upload-drop-zone {
    border: 2px dashed #ced4da; border-radius: 12px;
    padding: 2rem; text-align: center;
    cursor: pointer; transition: border-color .2s, background .2s;
    background: #fafafa;
}
.upload-drop-zone:hover, .upload-drop-zone.dragover {
    border-color: #1a1a2e; background: #f0f0f8;
}

/* ---- Yeni resim önizleme grid ---- */
.preview-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.preview-item {
    position: relative; width: 110px; height: 110px;
    border-radius: 8px; overflow: hidden;
    border: 2px solid #dee2e6;
}
.preview-item.main-preview { border-color: #1a1a2e; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.main-badge {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(26,26,46,.75); color: #fff;
    font-size: 0.65rem; text-align: center; padding: 2px 0;
}
.remove-btn {
    position: absolute; top: 3px; right: 3px;
    background: rgba(220,53,69,.85); color: #fff;
    border: none; border-radius: 50%;
    width: 20px; height: 20px; font-size: 0.7rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; line-height: 1;
}

/* ---- Mevcut resim yönetim grid (Edit) ---- */
.existing-images-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.existing-img-item {
    position: relative; width: 110px;
    border-radius: 8px; overflow: hidden;
    border: 2px solid #dee2e6;
}
.existing-img-item.is-main { border-color: #f0c040; }
.existing-img-item.is-slider { border-color: #ffc107; box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3); }
.existing-img-item.is-slider::before {
    content: 'Slider';
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ffc107;
    color: #000;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}
.img-actions .btn-warning.active {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

/* ---- Sosyal Medya Linkleri (Footer) ---- */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #f0c040;
    color: #1a1a2e !important;
    text-decoration: none !important;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.25rem;
    color: #fff;
}

.social-link:hover i {
    color: #1a1a2e;
}

.existing-img-item img { width: 100%; height: 110px; object-fit: cover; display: block; }
.img-actions {
    display: flex; gap: 4px; justify-content: center;
    padding: 4px; background: #f8f9fa;
}
.btn-xs { padding: 2px 6px; font-size: 0.7rem; border-radius: 4px; border: none; cursor: pointer; }
.btn-xs.btn-success { background:#198754; color:#fff; }
.btn-xs.btn-danger  { background:#dc3545; color:#fff; }
.main-img-badge {
    font-size: 0.65rem; color: #856404;
    background: #fff3cd; border-radius: 4px;
    padding: 2px 5px; white-space: nowrap;
}

/* ════════════════════════════════════
   Ürün Detay — Galeri
   ════════════════════════════════════ */

/* Ana resim kapsayıcı */
.gallery-wrap { position: sticky; top: 80px; }
.gallery-main-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f5f5f7;
    aspect-ratio: 4 / 5;   /* 800x1000 standart orana uygun */
}

/* Slaytlar — fade ile üst üste */
.gallery-img-container {
    position: relative;
    width: 100%; height: 100%;
}
.gallery-slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    border-radius: 0;
}
.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
.gallery-slide.leaving {
    opacity: 0;
    z-index: 1;
}

/* Rozet konumları */
.gallery-badge-tl { position: absolute; top: 12px; left: 12px; z-index: 10; font-size: .8rem; }
.gallery-badge-tr { position: absolute; top: 12px; right: 12px; z-index: 10; font-size: .8rem; }

/* Resim sayacı */
.gallery-counter {
    position: absolute; bottom: 12px; right: 12px; z-index: 10;
    background: rgba(0,0,0,.45); color: #fff;
    font-size: .75rem; padding: 3px 10px;
    border-radius: 20px; backdrop-filter: blur(4px);
    pointer-events: none;
}

/* Önceki / Sonraki ok butonları */
.gallery-arrow {
    position: absolute; top: 50%; z-index: 10;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%; border: none;
    background: rgba(255,255,255,.85);
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #1a1a2e;
    cursor: pointer;
    transition: background .2s, transform .2s;
    backdrop-filter: blur(4px);
}
.gallery-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

/* Thumbnail buton şeridi */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.gallery-thumb-btn {
    flex-shrink: 0;
    width: 76px; height: 76px;
    border-radius: 10px;
    overflow: hidden;
    border: 2.5px solid #dee2e6;
    background: none;
    padding: 0; cursor: pointer;
    position: relative;
    transition: border-color .2s, transform .15s, box-shadow .2s;
}
.gallery-thumb-btn img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
    transition: transform .25s;
}
.gallery-thumb-btn:hover {
    border-color: #888;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.gallery-thumb-btn:hover img { transform: scale(1.06); }
.gallery-thumb-btn.active {
    border-color: #1a1a2e;
    box-shadow: 0 0 0 3px rgba(26,26,46,.15);
}

/* Ana görsel nokta işareti (thumbnail üzerinde) */
.thumb-main-dot {
    position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; border-radius: 50%;
    background: #f0c040;
    box-shadow: 0 0 0 2px rgba(255,255,255,.8);
}

/* ============================================
   YENİ ÜRÜN KARTI V2 - TAM EKRAN RESİM
   ============================================ */

.product-card-v2 {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.product-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Tam Ekran Resim Container */
.product-img-fullscreen {
    position: relative;
    width: 100%;
    min-height: 400px;
    max-height: 500px;
    overflow: hidden;
}

.product-img-cover {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    transition: transform 0.5s ease;
}

.product-card-v2:hover .product-img-cover {
    transform: scale(1.08);
}

/* Etiketler */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.product-badges .badge {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Stok Yok Overlay */
.out-of-stock-overlay-v2 {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.out-of-stock-overlay-v2 span {
    background: #dc3545;
    color: #fff;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    transform: rotate(-5deg);
    box-shadow: 0 4px 15px rgba(220,53,69,0.4);
}

/* Bant Bilgi */
.product-info-band {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    padding: 60px 16px 16px;
    z-index: 2;
}

.info-band-content {
    color: #fff;
}

.info-category {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.info-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Renk Noktaları */
.info-colors {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.color-dot-band {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.color-more {
    font-size: 0.65rem;
    opacity: 0.8;
    margin-left: 4px;
}

/* Fiyat */
.info-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-normal {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.price-discount {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ff6b6b;
}

.price-original {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-decoration: line-through;
}

/* Gölgeli İncele Butonu */
.btn-inspect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: rgba(255,255,255,0.95);
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.2),
        0 8px 25px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-inspect:hover {
    background: #fff;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.25),
        0 12px 35px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-inspect:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.2),
        inset 0 1px 3px rgba(0,0,0,0.1);
}

.btn-inspect i {
    font-size: 1rem;
}

.btn-inspect.disabled {
    background: rgba(255,255,255,0.5);
    color: rgba(255,255,255,0.5);
    cursor: not-allowed;
    box-shadow: none;
}

/* ============================================
   MOBİL ALT MENÜ
   ============================================ */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-size: 11px;
    flex: 1;
    height: 100%;
    transition: color 0.2s;
    position: relative;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
    color: #1a1a2e;
    text-decoration: none;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

/* Ana sayfa butonu - ortada büyük */
.mobile-nav-home {
    position: relative;
    top: -15px;
}

.mobile-home-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-bottom: 2px;
}

.mobile-home-circle i {
    color: #fff;
    font-size: 24px;
    margin-bottom: 0;
}

/* Sepet badge */
.mobile-cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Mobil menü için body padding */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 60px;
    }
}

/* ============================================
   SLIDER BÜYÜK EKRAN OPTİMİZASYONU
   ============================================ */

/* Varsayılan slider img stilleri */
.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Büyük ekranlarda zoom azaltma - contain kullan */
@media (min-width: 1200px) {
    .slider-img {
        object-fit: contain !important;
        background-color: #f5f5f5;
    }
    
    .slider-item {
        background-color: #f5f5f5;
    }
}

/* Tablet ve orta ekranlar */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .slider-img {
        object-fit: cover;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .product-img-fullscreen {
        aspect-ratio: 4/5;
    }
    
    .info-title {
        font-size: 0.9rem;
    }
    
    .price-normal, .price-discount {
        font-size: 1rem;
    }
    
    .btn-inspect {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}


/* Mobil: thumbnail daha küçük */
@media (max-width: 575px) {
    .gallery-thumb-btn { width: 60px; height: 60px; border-radius: 8px; }
    .gallery-arrow { width: 34px; height: 34px; font-size: .95rem; }
}
