/* ============================================
   KAPSAMLI MOBİL RESPONSIVE STİLLER
   Root klasöründeki tüm sayfalar için
   ============================================ */

/* Header Mobil Uyumluluk */
@media (max-width: 768px) {
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .header-content {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        padding: 12px 16px;
        min-height: 70px;
    }
    
    .logo-section {
        flex-direction: row;
        gap: 8px;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .logo i {
        font-size: 1.2rem;
    }
    
    .slogan {
        display: none;
    }
    
    .header-search {
        display: none;
    }
    
    .header-search.mobile-visible {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .auth-buttons {
        gap: 6px;
    }
    
    .auth-buttons .btn {
        padding: 8px 10px;
        font-size: 0.75rem;
        min-width: auto;
    }
    
    .auth-buttons .btn span {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .cart-count-badge {
        font-size: 10px;
        padding: 1px 5px;
        min-width: 16px;
    }
}

/* Ana Sayfa (index.php) Mobil Uyumluluk */
@media (max-width: 768px) {
    .home-main {
        margin-top: 70px;
        padding: 16px 0;
    }
    
    .home-container {
        padding: 0 12px;
    }
    
    .home-section {
        margin-bottom: 32px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .brands-carousel {
        gap: 12px;
        padding: 8px 0;
    }
    
    .brand-card {
        min-width: 100px;
        padding: 12px;
    }
    
    .brand-avatar {
        width: 60px;
        height: 60px;
    }
    
    .brand-name {
        font-size: 0.8rem;
        margin-top: 6px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image-wrapper {
        height: 160px;
    }
    
    .product-image-wrapper img,
    .product-image-placeholder {
        height: 160px;
    }
    
    .product-title {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .product-brand,
    .product-category {
        font-size: 0.75rem;
    }
    
    .home-hero-slider {
        margin-bottom: 0;
    }
    
    .hero-slide-content {
        flex-direction: column !important;
        padding: 24px !important;
        gap: 20px !important;
    }
    
    /* Rastgele layout'lar mobilde de düzgün görünsün */
    .hero-layout-1 .hero-slide-content,
    .hero-layout-3 .hero-slide-content {
        flex-direction: column !important;
    }
    
    .hero-slide-logo {
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
        order: 1;
    }
    
    .hero-slide-text {
        text-align: center;
        order: 2;
    }
    
    .hero-ad-title {
        font-size: 1.4rem;
    }
    
    .hero-ad-subtitle {
        font-size: 1rem;
    }
    
    .hero-ad-subtitle2 {
        font-size: 0.9rem;
    }
    
    .store-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .store-card {
        padding: 16px;
    }
    
    .all-stores-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .all-store-pill {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .brands-carousel {
        gap: 8px;
    }
    
    .brand-card {
        min-width: 80px;
        padding: 8px;
    }
    
    .brand-avatar {
        width: 50px;
        height: 50px;
    }
    
    .all-stores-list {
        grid-template-columns: 1fr;
    }
}

/* Mağaza Sayfası (magaza.php) Mobil Uyumluluk */
@media (max-width: 768px) {
    .store-page {
        padding: 0 12px;
    }
    
    .store-header {
        padding: 16px;
        flex-direction: column;
        gap: 16px;
    }
    
    .store-header-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .store-logo-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .store-header-info h1 {
        font-size: 1.3rem;
    }
    
    .store-meta {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .store-header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .store-header-actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .store-info-section {
        padding: 16px;
        margin: 16px 0;
    }
    
    .store-info-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .store-info-block {
        padding: 16px;
    }
    
    .store-info-block h3 {
        font-size: 1rem;
    }
    
    .store-contact-item {
        font-size: 0.9rem;
    }
    
    .store-layout {
        grid-template-columns: 1fr;
        padding: 16px 12px;
        gap: 20px;
    }
    
    .store-filters {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .filter-block h3 {
        font-size: 1rem;
    }
    
    .filter-list {
        max-height: 200px;
        overflow-y: auto;
    }
    
    .filter-item {
        padding: 10px 0;
    }
    
    .filter-submit {
        width: 100%;
        margin-top: 12px;
    }
    
    .store-best-categories {
        margin-bottom: 24px;
    }
    
    .store-best-categories h3 {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    .best-category-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .best-category-card {
        padding: 12px;
    }
    
    .best-category-info {
        padding-right: 12px;
    }
    
    .best-category-image {
        width: 80px;
        height: 80px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .store-header {
        padding: 12px;
    }
    
    .store-logo-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .store-header-info h1 {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .best-category-card {
        flex-direction: column;
        text-align: center;
    }
    
    .best-category-info {
        padding-right: 0;
        padding-bottom: 8px;
    }
    
    .best-category-image {
        width: 100%;
        height: 120px;
        margin: 0 auto;
    }
}

/* Ürün Detay Sayfası (urun-detay.php) Mobil Uyumluluk - Geliştirilmiş */
@media (max-width: 768px) {
    .product-detail-layout {
        padding: 16px 12px;
    }
    
    .product-detail-left,
    .product-detail-right {
        padding: 16px;
    }
    
    .product-detail-image-main img {
        max-height: 400px;
    }
    
    .product-detail-title-main {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .product-detail-price-main {
        font-size: 1.5rem;
    }
    
    .product-detail-actions-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-detail-actions-row .btn {
        width: 100%;
    }
    
    .product-detail-description-section {
        padding: 16px;
        margin-top: 20px;
    }
    
    .product-detail-description-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .product-attributes-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .breadcrumb ol {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .product-detail-layout {
        padding: 12px 8px;
        gap: 12px;
    }
    
    .product-detail-left,
    .product-detail-right {
        padding: 12px;
    }
    
    .product-detail-image-main img {
        max-height: 300px;
    }
    
    .product-detail-title-main {
        font-size: 1.1rem;
    }
    
    .product-detail-price-main {
        font-size: 1.3rem;
    }
    
    .product-detail-qty-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .product-detail-qty-control {
        width: 100%;
    }
}

/* Sepet Sayfası (sepet.php) Mobil Uyumluluk */
@media (max-width: 768px) {
    .cart-page-container {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 16px 12px;
    }
    
    .cart-left {
        order: 2;
    }
    
    .cart-right {
        order: 1;
        position: sticky !important;
        top: 80px;
        z-index: 10;
    }
    
    .cart-header-banner {
        padding: 10px 12px;
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
    
    .cart-items {
        padding: 12px 16px;
    }
    
    .cart-seller-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .cart-item {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
    }
    
    .cart-item-img {
        width: 100%;
        max-width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .cart-item-info {
        width: 100%;
    }
    
    .cart-item-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .cart-item-meta {
        font-size: 0.8rem;
    }
    
    .cart-item-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .cart-item-bottom .cart-price {
        font-size: 1rem;
        text-align: left;
    }
    
    .cart-summary {
        padding: 16px;
    }
    
    .cart-summary h3 {
        font-size: 1.1rem;
    }
    
    .cart-summary-row {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    .cart-summary-row.total {
        font-size: 1.2rem;
    }
    
    .cart-checkout-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cart-page-container {
        padding: 12px 8px;
    }
    
    .cart-item-img {
        max-width: 100px;
        height: 100px;
    }
    
    .cart-item-title {
        font-size: 0.9rem;
    }
    
    .cart-item-bottom .cart-price {
        font-size: 0.95rem;
    }
    
    .cart-summary {
        padding: 12px;
    }
    
    .cart-summary h3 {
        font-size: 1rem;
    }
    
    .cart-summary-row.total {
        font-size: 1.1rem;
    }
}

/* Genel Mobil İyileştirmeler */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .home-main {
        padding-top: 20px;
    }
    
    .section-link {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Footer mobil uyumluluk */
    .main-footer {
        padding: 32px 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-section h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .home-container {
        padding: 0 8px;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}


   Root klasöründeki tüm sayfalar için
   ============================================ */

/* Header Mobil Uyumluluk */
@media (max-width: 768px) {
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .header-content {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        padding: 12px 16px;
        min-height: 70px;
    }
    
    .logo-section {
        flex-direction: row;
        gap: 8px;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .logo i {
        font-size: 1.2rem;
    }
    
    .slogan {
        display: none;
    }
    
    .header-search {
        display: none;
    }
    
    .header-search.mobile-visible {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .auth-buttons {
        gap: 6px;
    }
    
    .auth-buttons .btn {
        padding: 8px 10px;
        font-size: 0.75rem;
        min-width: auto;
    }
    
    .auth-buttons .btn span {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .cart-count-badge {
        font-size: 10px;
        padding: 1px 5px;
        min-width: 16px;
    }
}

/* Ana Sayfa (index.php) Mobil Uyumluluk */
@media (max-width: 768px) {
    .home-main {
        margin-top: 70px;
        padding: 16px 0;
    }
    
    .home-container {
        padding: 0 12px;
    }
    
    .home-section {
        margin-bottom: 32px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .brands-carousel {
        gap: 12px;
        padding: 8px 0;
    }
    
    .brand-card {
        min-width: 100px;
        padding: 12px;
    }
    
    .brand-avatar {
        width: 60px;
        height: 60px;
    }
    
    .brand-name {
        font-size: 0.8rem;
        margin-top: 6px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image-wrapper {
        height: 160px;
    }
    
    .product-image-wrapper img,
    .product-image-placeholder {
        height: 160px;
    }
    
    .product-title {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .product-brand,
    .product-category {
        font-size: 0.75rem;
    }
    
    .home-hero-slider {
        margin-bottom: 0;
    }
    
    .hero-slide-content {
        flex-direction: column !important;
        padding: 24px !important;
        gap: 20px !important;
    }
    
    /* Rastgele layout'lar mobilde de düzgün görünsün */
    .hero-layout-1 .hero-slide-content,
    .hero-layout-3 .hero-slide-content {
        flex-direction: column !important;
    }
    
    .hero-slide-logo {
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
        order: 1;
    }
    
    .hero-slide-text {
        text-align: center;
        order: 2;
    }
    
    .hero-ad-title {
        font-size: 1.4rem;
    }
    
    .hero-ad-subtitle {
        font-size: 1rem;
    }
    
    .hero-ad-subtitle2 {
        font-size: 0.9rem;
    }
    
    .store-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .store-card {
        padding: 16px;
    }
    
    .all-stores-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .all-store-pill {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .brands-carousel {
        gap: 8px;
    }
    
    .brand-card {
        min-width: 80px;
        padding: 8px;
    }
    
    .brand-avatar {
        width: 50px;
        height: 50px;
    }
    
    .all-stores-list {
        grid-template-columns: 1fr;
    }
}

/* Mağaza Sayfası (magaza.php) Mobil Uyumluluk */
@media (max-width: 768px) {
    .store-page {
        padding: 0 12px;
    }
    
    .store-header {
        padding: 16px;
        flex-direction: column;
        gap: 16px;
    }
    
    .store-header-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .store-logo-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .store-header-info h1 {
        font-size: 1.3rem;
    }
    
    .store-meta {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .store-header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .store-header-actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .store-info-section {
        padding: 16px;
        margin: 16px 0;
    }
    
    .store-info-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .store-info-block {
        padding: 16px;
    }
    
    .store-info-block h3 {
        font-size: 1rem;
    }
    
    .store-contact-item {
        font-size: 0.9rem;
    }
    
    .store-layout {
        grid-template-columns: 1fr;
        padding: 16px 12px;
        gap: 20px;
    }
    
    .store-filters {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .filter-block h3 {
        font-size: 1rem;
    }
    
    .filter-list {
        max-height: 200px;
        overflow-y: auto;
    }
    
    .filter-item {
        padding: 10px 0;
    }
    
    .filter-submit {
        width: 100%;
        margin-top: 12px;
    }
    
    .store-best-categories {
        margin-bottom: 24px;
    }
    
    .store-best-categories h3 {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    .best-category-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .best-category-card {
        padding: 12px;
    }
    
    .best-category-info {
        padding-right: 12px;
    }
    
    .best-category-image {
        width: 80px;
        height: 80px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .store-header {
        padding: 12px;
    }
    
    .store-logo-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .store-header-info h1 {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .best-category-card {
        flex-direction: column;
        text-align: center;
    }
    
    .best-category-info {
        padding-right: 0;
        padding-bottom: 8px;
    }
    
    .best-category-image {
        width: 100%;
        height: 120px;
        margin: 0 auto;
    }
}

/* Ürün Detay Sayfası (urun-detay.php) Mobil Uyumluluk - Geliştirilmiş */
@media (max-width: 768px) {
    .product-detail-layout {
        padding: 16px 12px;
    }
    
    .product-detail-left,
    .product-detail-right {
        padding: 16px;
    }
    
    .product-detail-image-main img {
        max-height: 400px;
    }
    
    .product-detail-title-main {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .product-detail-price-main {
        font-size: 1.5rem;
    }
    
    .product-detail-actions-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-detail-actions-row .btn {
        width: 100%;
    }
    
    .product-detail-description-section {
        padding: 16px;
        margin-top: 20px;
    }
    
    .product-detail-description-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .product-attributes-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .breadcrumb ol {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .product-detail-layout {
        padding: 12px 8px;
        gap: 12px;
    }
    
    .product-detail-left,
    .product-detail-right {
        padding: 12px;
    }
    
    .product-detail-image-main img {
        max-height: 300px;
    }
    
    .product-detail-title-main {
        font-size: 1.1rem;
    }
    
    .product-detail-price-main {
        font-size: 1.3rem;
    }
    
    .product-detail-qty-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .product-detail-qty-control {
        width: 100%;
    }
}

/* Sepet Sayfası (sepet.php) Mobil Uyumluluk */
@media (max-width: 768px) {
    .cart-page-container {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 16px 12px;
    }
    
    .cart-left {
        order: 2;
    }
    
    .cart-right {
        order: 1;
        position: sticky !important;
        top: 80px;
        z-index: 10;
    }
    
    .cart-header-banner {
        padding: 10px 12px;
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
    
    .cart-items {
        padding: 12px 16px;
    }
    
    .cart-seller-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
    }
    
    .cart-item {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
    }
    
    .cart-item-img {
        width: 100%;
        max-width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .cart-item-info {
        width: 100%;
    }
    
    .cart-item-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .cart-item-meta {
        font-size: 0.8rem;
    }
    
    .cart-item-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .cart-item-bottom .cart-price {
        font-size: 1rem;
        text-align: left;
    }
    
    .cart-summary {
        padding: 16px;
    }
    
    .cart-summary h3 {
        font-size: 1.1rem;
    }
    
    .cart-summary-row {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    .cart-summary-row.total {
        font-size: 1.2rem;
    }
    
    .cart-checkout-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cart-page-container {
        padding: 12px 8px;
    }
    
    .cart-item-img {
        max-width: 100px;
        height: 100px;
    }
    
    .cart-item-title {
        font-size: 0.9rem;
    }
    
    .cart-item-bottom .cart-price {
        font-size: 0.95rem;
    }
    
    .cart-summary {
        padding: 12px;
    }
    
    .cart-summary h3 {
        font-size: 1rem;
    }
    
    .cart-summary-row.total {
        font-size: 1.1rem;
    }
}

/* Genel Mobil İyileştirmeler */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .home-main {
        padding-top: 20px;
    }
    
    .section-link {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Footer mobil uyumluluk */
    .main-footer {
        padding: 32px 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-section h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .home-container {
        padding: 0 8px;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

