/* ============================================
   MOBIL RESPONSIVE CSS
   Bu dosya tüm sayfalarda mobil uyumluluğu sağlar
   Modern ve Sade Tasarım - 2024
   ============================================ */

/* ===== MOBIL NAVIGATION ===== */
.mobile-menu-toggle {
    display: none;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--gray-700);
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    color: var(--primary);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Legacy classes - kept for backwards compatibility */
.mobile-categories-overlay,
.mobile-categories-panel,
.mobile-categories-header,
.mobile-categories-close,
.mobile-categories-list {
    display: none !important;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet ve Küçük Ekranlar */
@media (max-width: 1024px) {
    /* Header düzenlemeleri */
    .header-content {
        gap: 16px;
    }
    
    .header-search {
        max-width: 350px;
    }
    
    .action-btn span {
        display: none;
    }
    
    .action-btn {
        padding: 10px;
    }
    
    /* Ürün Grid - 4 kolon */
    .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 16px;
    }
    
    /* Tablet için ürün kartı yazılarını büyüt */
    .product-name {
        font-size: 15px !important;
        line-height: 1.3 !important;
    }
    
    .product-brand,
    .product-category {
        font-size: 12px !important;
    }
    
    .price-current {
        font-size: 17px !important;
        font-weight: 700 !important;
    }
    
    .price-old {
        font-size: 13px !important;
    }
    
    .price-discount {
        font-size: 11px !important;
        padding: 3px 6px !important;
    }
    
    .add-to-cart-btn,
    .btn-add-cart {
        font-size: 13px !important;
    }
    
    .product-meta {
        font-size: 13px !important;
    }
    
    .product-meta span {
        font-size: 13px !important;
    }
    
    .product-meta i {
        font-size: 12px !important;
    }
    
    .product-info {
        padding: 12px !important;
    }
    
    /* Sepet ikonu sayacı */
    .cart-count {
        display: flex !important;
        visibility: visible !important;
        font-size: 11px !important;
        width: 20px !important;
        height: 20px !important;
    }
    
    /* Tam genişlik için padding azalt */
    .category-page,
    .product-page,
    .checkout-page,
    .cart-page,
    .orders-page,
    .content-page,
    .error-page,
    main[class*="-page"],
    main[class*="-container"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .page-container,
    .orders-container,
    .checkout-container,
    .cart-container,
    .product-container,
    div[style*="max-width"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Tablet (Portrait) */
@media (max-width: 768px) {
    /* Mobil menü toggle göster */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Announcement bar */
    .announcement-bar {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    /* Header top bar gizle */
    .header-top-bar {
        display: none;
    }
    
    /* Header düzeni */
    .header-content {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 12px;
    }
    
    .logo-text {
        display: none;
    }
    
    /* Arama tam genişlik */
    .header-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }
    
    .search-wrapper input {
        padding: 12px 16px;
        padding-left: 44px;
        padding-right: 100px;
    }
    
    .search-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Header actions */
    .action-btn {
        padding: 8px;
    }
    
    .action-btn i {
        font-size: 20px;
    }
    
    .cart-btn {
        padding: 10px 14px;
    }
    
    /* Sepet ikonu sayacı */
    .cart-count {
        display: flex !important;
        visibility: visible !important;
        font-size: 10px !important;
        width: 18px !important;
        height: 18px !important;
        top: 4px !important;
        right: 6px !important;
    }
    
    /* Kategoriler navigasyon - Mobil için gizle */
    .categories-nav {
        display: none;
    }
    
    /* Tam genişlik için padding azalt */
    .category-page,
    .product-page,
    .checkout-page,
    .cart-page,
    .orders-page,
    .content-page,
    .error-page,
    .account-page,
    main[class*="-page"],
    main[class*="-container"],
    main[style*="padding"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .page-container,
    .orders-container,
    .checkout-container,
    .cart-container,
    .product-container,
    .account-container,
    .checkout-wrapper,
    div[style*="max-width"],
    div[style*="padding"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Ürün Grid - 2 kolon */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    /* Ürün kartları - Mobil optimizasyonu */
    .product-card {
        border-radius: 12px;
    }
    
    .product-image-wrapper,
    .product-image {
        height: 180px; /* tablet için optimize edilmiş yükseklik */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
        box-sizing: border-box;
        background: #fff;
    }

    .product-image-wrapper > a,
    .product-image > a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 13px;
        min-height: auto;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 4px;
    }
    
    .product-brand,
    .product-category {
        font-size: 9px;
        margin-bottom: 3px;
    }
    
    .product-meta {
        display: none;
    }
    
    .product-rating {
        margin-bottom: 4px;
    }
    
    .rating-stars {
        font-size: 9px;
    }
    
    .product-price-section,
    .product-price {
        padding-top: 8px;
    }
    
    .price-current {
        font-size: 14px !important;
    }
    
    .price-old {
        font-size: 10px !important;
    }
    
    .price-discount {
        font-size: 9px !important;
        padding: 2px 4px !important;
    }
    
    /* Sepete ekle butonları */
    .product-cart-row,
    .product-actions {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .qty-input {
        width: 40px !important;
        padding: 6px 2px !important;
        font-size: 11px !important;
    }
    
    .add-to-cart-btn,
    .btn-add-cart {
        flex: 1;
        padding: 8px 8px !important;
        font-size: 11px !important;
    }
    
    .add-to-cart-btn i,
    .btn-add-cart i {
        font-size: 11px !important;
    }
    
    /* Badge'ler */
    .product-badges {
        top: 8px;
        left: 8px;
    }
    
    .product-badge,
    .badge {
        padding: 4px 8px !important;
        font-size: 9px !important;
    }
    
    .product-wishlist {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
    }
    
    .product-wishlist i {
        font-size: 12px;
    }
    
    /* Quick actions - hide only icon buttons; keep container in case cart row is placed here */
    .product-quick-actions {
        display: flex !important;
    }

    .product-quick-actions .quick-action-btn {
        display: none !important;
    }

    /* Force cart controls visible on mobile */
    .product-cart-row {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .product-cart-row .qty-control {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
    }

    .product-cart-row .qty-input {
        display: inline-block !important;
        width: 50px !important;
        padding: 8px 4px !important;
        font-size: 12px !important;
    }

    .product-cart-row .add-to-cart-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        padding: 10px !important;
        font-size: 12px !important;
        min-height: 38px !important;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 16px;
    }
    
    .hero-slide {
        height: 300px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .hero-description {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .hero-badge {
        padding: 6px 12px;
        font-size: 10px;
        margin-bottom: 12px;
    }
    
    .hero-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .hero-arrows {
        display: none;
    }
    
    .hero-nav {
        left: 20px;
        bottom: 16px;
    }
    
    .hero-dot {
        width: 8px;
        height: 8px;
    }
    
    .hero-dot.active {
        width: 24px;
    }
    
    /* Section başlıkları */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .section-link {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Features Section */
    .features-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .feature-card {
        padding: 12px 8px;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .feature-card h4 {
        font-size: 11px;
    }
    
    /* Brands */
    .brands-section {
        padding: 16px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .brand-card {
        padding: 10px;
        min-height: 50px;
    }
    
    /* Category Page */
    .category-page {
        padding: 0 8px !important;
    }
    
    .category-hero {
        padding: 20px;
        border-radius: 16px;
    }
    
    .category-hero h1 {
        font-size: 22px;
    }
    
    .category-hero p {
        font-size: 13px;
    }
    
    .category-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .category-stat {
        font-size: 12px;
    }
    
    /* Subcategories */
    .subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .subcategory-card {
        padding: 12px;
        font-size: 13px;
    }
    
    /* Filter Bar */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }
    
    .filter-bar-left,
    .filter-bar-right {
        justify-content: space-between;
    }
    
    .product-count {
        font-size: 13px;
    }
    
    .sort-select {
        min-width: 100%;
        padding: 10px 12px;
    }
    
    .view-toggle {
        display: none;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 12px;
        padding: 12px 0;
        flex-wrap: wrap;
    }
    
    /* Empty State */
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-state-icon {
        font-size: 48px;
        width: 64px;
        height: 64px;
    }
    
    .empty-state h3 {
        font-size: 18px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
    
    /* Main Content padding */
    .main-content {
        padding: 0 8px !important;
    }
    
    /* Tüm sayfalar için padding azalt */
    .product-page,
    .checkout-page,
    .cart-page,
    .orders-page,
    .content-page,
    .error-page,
    .account-page {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* Mobil Küçük Ekranlar (480px ve altı) */
@media (max-width: 480px) {
    /* Tam genişlik için padding azalt */
    .category-page,
    .product-page,
    .checkout-page,
    .cart-page,
    .orders-page,
    .content-page,
    .error-page,
    .account-page,
    main[class*="-page"],
    main[class*="-container"],
    main[style*="padding"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .page-container,
    .orders-container,
    .checkout-container,
    .cart-container,
    .product-container,
    .account-container,
    .checkout-wrapper,
    div[style*="max-width"],
    div[style*="padding"] {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Header */
    .header-content {
        padding: 10px 12px;
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .action-btn {
        padding: 6px;
    }
    
    .action-btn i {
        font-size: 18px;
    }
    
    .cart-btn {
        padding: 8px 10px;
    }
    
    .cart-count {
        width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
        top: 2px !important;
        right: 4px !important;
        display: flex !important;
        visibility: visible !important;
    }
    
    /* Ürün Grid - Hala 2 kolon ama daha kompakt */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    /* Ürün kartları - Daha kompakt */
    .product-card {
        border-radius: 10px;
    }
    
    .product-image-wrapper,
    .product-image {
        height: 180px !important;
        max-height: 180px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 4px !important;
        box-sizing: border-box !important;
        background: #fff !important;
        border-radius: 8px !important;
        min-height: unset !important;
    }

    .product-image-wrapper img,
    .product-image img {
        height: 100% !important;
        max-height: 180px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    .product-image-wrapper > a,
    .product-image > a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    
    .product-info {
        padding: 8px 8px 10px 8px !important;
    }
    
    .product-name {
        font-size: 12px !important;
        line-height: 1.25 !important;
        margin-bottom: 5px !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .price-current {
        font-size: 14px !important;
    }
    
    .price-old {
        font-size: 9px !important;
    }

    /* Göster stok kodu / stok adedi */
    .product-meta {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important;
        font-size: 11px !important;
        color: var(--gray-500) !important;
        margin-bottom: 5px !important;
    }

    .product-meta span {
        font-size: 11px !important;
        color: var(--gray-500) !important;
    }
    
    /* Sepete ekle - göster: miktar ve buton metni görünür */
    .add-to-cart-btn span,
    .btn-add-cart span {
        display: inline-block !important;
        margin-left: 5px !important;
        font-size: 12px !important;
    }

    /* Miktar inputu görünür yap */
    .qty-input {
        display: inline-block !important;
        width: 50px !important;
        padding: 7px 5px !important;
        font-size: 12px !important;
        margin-right: 6px !important;
        box-sizing: border-box !important;
    }
    
    .add-to-cart-btn,
    .btn-add-cart {
        display: flex !important;
        align-items: center !important;
        padding: 9px !important;
        width: 100%;
        justify-content: center;
    }
    
    .add-to-cart-btn i,
    .btn-add-cart i {
        font-size: 14px !important;
    }
    
    /* Hero */
    .hero-section {
        padding: 12px;
    }
    
    .hero-slide {
        height: 250px;
    }
    
    .hero-content {
        padding: 16px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .hero-btn {
        padding: 10px 16px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
    
    .hero-btn-secondary {
        display: none;
    }
    
    /* Section */
    .section {
        margin: 30px 0;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .section-subtitle {
        font-size: 12px;
    }
    
    .section-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    /* Features */
    .features-section {
        gap: 6px;
    }
    
    .feature-card {
        padding: 10px 6px;
    }
    
    .feature-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .feature-card h4 {
        font-size: 10px;
    }
    
    /* Brands */
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Category Page */
    .category-page {
        padding: 0 8px !important;
    }
    
    .category-hero {
        padding: 16px;
    }
    
    .category-hero h1 {
        font-size: 18px;
    }
    
    /* Subcategories - Yatay scroll */
    .subcategories-grid {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .subcategories-grid::-webkit-scrollbar {
        display: none;
    }
    
    .subcategory-card {
        flex: 0 0 auto;
        min-width: 120px;
        padding: 10px 14px;
        font-size: 12px;
    }
    
    /* Filter Bar */
    .filter-bar {
        padding: 10px;
    }
    
    .sort-select {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    /* Main Content */
    .main-content {
        padding: 0 8px !important;
    }
    
    /* Tüm sayfalar için padding azalt */
    .product-page,
    .checkout-page,
    .cart-page,
    .orders-page,
    .content-page,
    .error-page,
    .account-page {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 11px;
        gap: 6px;
    }
    
    /* Empty State */
    .empty-state {
        padding: 30px 16px;
    }
    
    .empty-state-icon {
        font-size: 40px;
        width: 56px;
        height: 56px;
    }
    
    .empty-state h3 {
        font-size: 16px;
    }
    
    .empty-state p {
        font-size: 13px;
    }
    
    .empty-state a {
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* ===== ACCOUNT PAGES MOBILE ===== */
@media (max-width: 768px) {
    /* Account Sidebar */
    .account-container,
    .account-wrapper {
        flex-direction: column;
    }
    
    .account-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .account-sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .account-sidebar-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 16px;
        border-radius: 50px;
        font-size: 13px;
    }
    
    .account-main {
        width: 100%;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* Forms */
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
    
    /* Orders */
    .orders-list {
        gap: 12px;
    }
    
    .order-card {
        padding: 12px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .order-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .order-products {
        flex-direction: column;
    }
    
    .order-product {
        width: 100%;
    }
    
    /* Addresses */
    .addresses-grid {
        grid-template-columns: 1fr;
    }
    
    /* Modals */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-footer button {
        width: 100%;
    }
}

/* ===== CHECKOUT MOBILE ===== */
@media (max-width: 768px) {
    .checkout-container {
        flex-direction: column;
    }
    
    .checkout-main {
        width: 100%;
    }
    
    .checkout-sidebar {
        width: 100%;
        position: static;
    }
    
    /* Steps */
    .checkout-steps {
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
        gap: 8px;
    }
    
    .checkout-step {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    /* Address Cards */
    .address-options {
        grid-template-columns: 1fr;
    }
    
    /* Payment Cards */
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    /* Card Form */
    .card-row {
        flex-direction: column;
    }
    
    /* Order Summary */
    .checkout-sidebar {
        padding: 16px;
    }
    
    .order-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===== CART MOBILE ===== */
@media (max-width: 768px) {
    .cart-container {
        flex-direction: column;
    }
    
    .cart-main {
        width: 100%;
    }
    
    .cart-sidebar {
        width: 100%;
    }
    
    .cart-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .cart-item-image {
        width: 100%;
        height: 150px;
    }
    
    .cart-item-info {
        width: 100%;
    }
    
    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .qty-controls {
        order: 1;
    }
    
    .item-total {
        order: 2;
    }
    
    .remove-btn {
        order: 3;
    }
}

/* ===== LOGIN/REGISTER MOBILE ===== */
@media (max-width: 768px) {
    .auth-container {
        padding: 20px 16px;
    }
    
    .auth-box {
        padding: 24px 20px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-form {
        gap: 16px;
    }
    
    .auth-form .input-group input {
        padding: 14px 16px 14px 48px;
    }
    
    .btn-auth {
        padding: 14px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
}

/* ===== PRODUCT DETAIL MOBILE ===== */
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
    }
    
    .product-gallery {
        width: 100%;
    }
    
    .product-main-image {
        height: 300px;
    }
    
    .product-thumbnails {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .product-info-section {
        width: 100%;
        padding: 16px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-price-display {
        font-size: 24px;
    }
    
    .product-actions-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .add-to-cart-main {
        width: 100%;
    }
}

/* ===== ORDER SUCCESS MOBILE ===== */
@media (max-width: 768px) {
    .success-container {
        padding: 16px;
    }
    
    .success-card {
        padding: 24px 16px;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    .success-title {
        font-size: 22px;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .success-actions a {
        width: 100%;
    }
}

/* ===== ORDER DETAIL MOBILE ===== */
@media (max-width: 768px) {
    .order-detail-container {
        flex-direction: column;
    }
    
    .order-detail-main {
        width: 100%;
    }
    
    .order-detail-sidebar {
        width: 100%;
    }
    
    .order-detail-header {
        padding: 20px 16px;
    }
    
    .order-detail-header h1 {
        font-size: 20px;
    }
    
    .order-items-list {
        padding: 12px;
    }
    
    .order-item-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .order-timeline {
        padding: 16px;
    }
}

/* ===== PAGE TEMPLATE MOBILE ===== */
@media (max-width: 768px) {
    .page-container {
        padding: 16px;
    }
    
    .page-content {
        padding: 24px 16px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .page-article {
        font-size: 15px;
    }
}

/* ===== FOOTER MOBILE ===== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-column h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .footer-links {
        columns: 2;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .footer-payments {
        justify-content: center;
    }
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    /* Minimum touch target sizes */
    a, button, input[type="submit"], input[type="button"], 
    .btn, .action-btn, .nav-category-item, 
    .subcategory-card, .mobile-category-link {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    @media (hover: none) {
        .product-card:hover {
            transform: none;
            box-shadow: var(--shadow-sm);
        }
        
        .btn:hover, .action-btn:hover {
            transform: none;
        }
    }
    
    /* Active states for touch */
    .product-card:active {
        transform: scale(0.98);
    }
    
    .btn:active, .action-btn:active {
        transform: scale(0.95);
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-slide {
        height: 200px;
    }
    
    .hero-content {
        padding: 16px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .hero-description {
        display: none;
    }
}

/* ===== SAFE AREA (iPhone X+) ===== */
@supports (padding: env(safe-area-inset-bottom)) {
    .mobile-categories-panel {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .checkout-sidebar,
    .cart-sidebar {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .mobile-menu-toggle,
    .mobile-categories-overlay,
    .mobile-categories-panel,
    .announcement-bar,
    .header-actions,
    .hero-section {
        display: none !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
/* ===== BUNDLE DISCOUNT SECTION (INDEX) ===== */
.bundle-discount-section {
    /* Görsel blok: flash-sale ile benzer yapı, farklı renk paleti */
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 60%, #7c3aed 100%);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 16px auto;
    max-width: 1400px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(19, 78, 96, 0.12);
}

.bundle-discount-section::before {
    content: '';
    position: absolute;
    top: -35%;
    right: -10%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

.bundle-discount-section .bundle-campaign {
    max-width: none;
    margin: 0;
}

/* Başlık: index section düzeni */
.bundle-discount-section .bundle-campaign-title-row {
    margin-bottom: 16px;
}

.bundle-discount-section .bundle-campaign-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.2px;
}

/* Carousel: index'in mevcut wrapper'ını kullan, sadece bu blokta 3 kolon yap */
.bundle-discount-section .bundle-carousel.products-carousel-wrapper {
    --carousel-cols: 3;
    --carousel-gap: 16px;
    overflow: visible; /* allow nav buttons to be visible outside inner grid */
}

/* Mobilde paket kartları daha geniş olmalı (3 kolonda çok daralıyor) */
@media (max-width: 768px) {
    .bundle-discount-section .bundle-carousel.products-carousel-wrapper {
        --carousel-cols: 2;
        --carousel-gap: 12px;
    }
}

@media (max-width: 480px) {
    .bundle-discount-section .bundle-carousel.products-carousel-wrapper {
        --carousel-cols: 1;
        --carousel-gap: 12px;
    }
}

/* Kart genişliği: ürün carousel formülü ile aynı (ekranda 3 paket) */
.bundle-discount-section .products-carousel-wrapper:not(.products-display-all) .products-grid .bundle-package-card {
    scroll-snap-align: start;
    flex: 0 0 calc((100% - (var(--carousel-cols) - 1) * var(--carousel-gap)) / var(--carousel-cols)) !important;
    width: calc((100% - (var(--carousel-cols) - 1) * var(--carousel-gap)) / var(--carousel-cols)) !important;
    min-width: calc((100% - (var(--carousel-cols) - 1) * var(--carousel-gap)) / var(--carousel-cols)) !important;
    max-width: calc((100% - (var(--carousel-cols) - 1) * var(--carousel-gap)) / var(--carousel-cols)) !important;
}

/* Kart görünümü: product-card hissi */
.bundle-discount-section .bundle-package-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    padding: 12px;
    gap: 10px;
}

.bundle-discount-section .bundle-package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* Üst satır */
.bundle-discount-section .bundle-package-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bundle-discount-section .bundle-package-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--gray-900);
}

.bundle-discount-section .bundle-package-stock {
    font-size: 12px;
    font-weight: 700;
    color: var(--success);
    background: rgba(16,185,129,0.08); /* soft green background */
    border: 1px solid rgba(16,185,129,0.16);
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Ürün kutuları: 3'lü grid (paket içeriği) */
.bundle-discount-section .bundle-products-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.bundle-discount-section .bundle-product-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bundle-discount-section .bundle-product-box-image {
    position: relative;
    width: 100%;
    height: 110px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}

.bundle-discount-section .bundle-product-box-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.bundle-discount-section .bundle-product-box-qty {
    position: absolute;
    left: 8px;
    bottom: 8px;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.bundle-discount-section .bundle-product-box-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 30px;
}

/* Fiyat satırı */
.bundle-discount-section .bundle-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.bundle-discount-section .bundle-price-normal {
    font-size: 12px;
    color: var(--gray-500);
}

.bundle-discount-section .bundle-price-normal span {
    text-decoration: line-through;
}

.bundle-discount-section .bundle-price-final {
    font-size: 14px;
    color: var(--primary);
}

/* Aksiyonlar: input + buton (kartın en altında kalsın) */
.bundle-discount-section .bundle-actions-row {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.bundle-discount-section .bundle-qty-input {
    width: 70px;
    flex: 0 0 auto;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-900);
    padding: 10px 10px;
    font-weight: 700;
}

.bundle-discount-section .bundle-qty-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.bundle-discount-section .bundle-add-to-cart-btn {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 800;
    cursor: pointer;
    background: var(--primary);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition);
}

.bundle-discount-section .bundle-add-to-cart-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.bundle-discount-section .bundle-add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    /* mobilde kart içinde 2 ürün kutusu daha iyi okunuyor */
    .bundle-discount-section .bundle-products-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bundle-discount-section .bundle-product-box-image {
        height: 100px;
    }
}

/* Bundle carousel nav button fixes: okların üst üste binmesini önle */
.bundle-discount-section .carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    opacity: 0.9;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 12px rgba(2,6,23,0.08);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* doğru sınıf isimleri: .carousel-prev / .carousel-next */
.bundle-discount-section .carousel-nav-btn.carousel-prev {
    left: 12px;
}

.bundle-discount-section .carousel-nav-btn.carousel-next {
    right: 12px;
}

/* Ensure wrapper doesn't clip visible controls when page uses negative margins */
.bundle-discount-section { overflow: visible; }

@media (max-width: 768px) {
    /* Mobilde okları gizle, swipe yeterli */
    .bundle-discount-section .carousel-nav-btn { display: none; }
}

/* Hide number input spinners on mobile for quantity fields */
input[type="number"].qty-input,
input[type="number"].qty-input-inline,
input[type="number"].bundle-qty-input {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"].qty-input::-webkit-outer-spin-button,
input[type="number"].qty-input::-webkit-inner-spin-button,
input[type="number"].qty-input-inline::-webkit-outer-spin-button,
input[type="number"].qty-input-inline::-webkit-inner-spin-button,
input[type="number"].bundle-qty-input::-webkit-outer-spin-button,
input[type="number"].bundle-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}