/* ================================================== */
/* PRESTASHOP 8.1 CLASSIC CHILD THEMA CUSTOM CSS */
/* ================================================== */

/* === FULL WIDTH FIX === */
.container,
.container-fluid,
#wrapper,
.page-container {
    max-width: 100% !important;
    width: 100% !important;
}

/* Header ve Footer Genişlik */
.header-container,
.footer-container,
#header,
#footer {
    max-width: 100% !important;
    width: 100% !important;
}

/* Content Alanları */
#content,
#main,
.main-content,
#content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
}

/* Section ve Bloklar */
section,
.block,
.module-container {
    max-width: 100% !important;
    width: 100% !important;
}

/* === ÜRÜN LİSTESİ İYİLEŞTİRMELERİ === */
/* Mevcut ürün düzenini koruyarak iyileştirme */
.products.row {
    margin-left: -10px !important;
    margin-right: -10px !important;
}

.product-miniature {
    margin-bottom: 20px !important;
    transition: all 0.3s ease !important;
}

/* Ürün kartı hover efekti */
.product-miniature:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
}

/* Ürün görselleri */
.product-thumbnail img,
.product-cover img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* === RESPONSIVE AYARLAR === */
/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .products.row {
        margin-left: -12px !important;
        margin-right: -12px !important;
    }
    
    .product-miniature {
        padding: 15px !important;
    }
}

/* Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Mobile (767px ve altı) */
@media (max-width: 767px) {
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .products.row {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }
    
    .product-miniature {
        margin-bottom: 15px !important;
        padding: 10px !important;
    }
}

/* === GÖRSEL OPTİMİZASYONU === */
/* Banner ve slider görselleri */
.banner img,
.carousel img,
.slide img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

/* === NAVIGATION DÜZENLEMELERİ === */
/* Menu genişlikleri */
.main-menu,
.top-menu,
.navigation {
    max-width: 100% !important;
}

/* === FOOTER DÜZENLEMESİ === */
.footer-container {
    max-width: 100% !important;
}

/* === EKLENTİLER İÇİN === */
/* Carousel ve slider'lar */
.carousel-container,
.slider-container {
    max-width: 100% !important;
    width: 100% !important;
}

/* === HATA DÜZELTMELERİ === */
/* Olası margin/padding sorunları için */
.row {
    max-width: 100% !important;
}

/* Bootstrap column padding reset */
[class*="col-"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* === PERFORMANS İYİLEŞTİRMELERİ === */
/* Görsel yükleme optimizasyonu */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* === CROSS-BROWSER UYUM === */
/* Tüm tarayıcılar için */
* {
    box-sizing: border-box !important;
}

/* === YAZI TİPİ OPTİMİZASYONU === */
/* Okunabilirlik için */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    line-height: 1.5 !important;
}

/* === BUTON İYİLEŞTİRMELERİ === */
.btn-primary {
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* === FORM ELEMENTLERİ === */
/* Input ve select'ler için */
.form-control {
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
}

.form-control:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25) !important;
}

/* === LOADING OPTİMİZASYONU === */
/* Yükleme animasyonları */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-miniature {
    animation: fadeIn 0.5s ease-in-out;
}

/* === ACCESSIBILITY (ERIŞILEBİLİRLİK) === */
/* Görme engelli kullanıcılar için */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === PRINT STILLERİ === */
@media print {
    .container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .product-miniature {
        break-inside: avoid !important;
    }
}

/* === DARK MODE DESTEĞİ === */
@media (prefers-color-scheme: dark) {
    /* Otomatik dark mode desteği */
    .product-miniature {
        background-color: #2d2d2d !important;
        border-color: #444 !important;
    }
}

/* === SON KONTROLLER === */
/* Tüm elementlerin maksimum genişlik kontrolü */
* {
    max-width: 100% !important;
}

/* Özel durumlar için */
img, table, video, iframe {
    max-width: 100% !important;
    height: auto !important;
}