/* 
 * Responsive Design Styles
 * Mobile-first approach
 */

/* Tablet - 768px ve altı */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 16px;
    }

    /* Navigation */
    .nav-wrapper {
        padding: 16px 0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 32px 20px;
        transition: var(--transition);
        z-index: 999;
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        display: block;
        padding: 16px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero */
    .hero-slider {
        height: 450px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 16px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .prev-btn {
        left: 16px;
    }

    .next-btn {
        right: 16px;
    }

    /* Categories */
    .categories-section {
        padding: 60px 0;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-card {
        height: 250px;
    }

    /* Products Grid */
    .featured-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    /* Features */
    .features-section {
        padding: 40px 0;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .feature-icon {
        font-size: 36px;
    }

    .feature-card h3 {
        font-size: 14px;
    }

    .feature-card p {
        font-size: 13px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Page Header */
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 32px;
    }

    /* Products Page */
    .products-page {
        padding: 24px 0 60px;
    }

    .products-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        z-index: 9999;
        border-radius: 0;
        border: none;
        transition: var(--transition);
        overflow-y: auto;
    }

    .filters-sidebar.active {
        left: 0;
        box-shadow: var(--shadow-xl);
    }

    .filter-close {
        display: block;
    }

    .filter-toggle {
        display: flex;
    }

    .products-toolbar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .products-count {
        order: 2;
        width: 100%;
    }

    .sort-select {
        flex: 1;
    }

    .products-content .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-card .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 13px !important;
        min-height: 36px;
    }
    
    .product-category {
        font-size: 10px;
    }
    
    .product-rating {
        margin-bottom: 8px;
    }
    
    .stars {
        font-size: 12px;
    }
    
    .rating-count {
        font-size: 11px;
    }
    
    .product-price {
        font-size: 16px !important;
    }
    
    .product-price-old {
        font-size: 13px;
    }

    /* Product Detail */
    .product-detail {
        padding: 24px 0 60px;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 60px;
    }

    .product-images {
        position: static;
    }

    .product-info .product-name {
        font-size: 24px;
    }

    .product-info .product-price {
        font-size: 24px;
    }

    .size-options {
        grid-template-columns: repeat(5, 1fr);
    }

    .product-tabs {
        margin-bottom: 60px;
    }

    .tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 12px 20px;
        white-space: nowrap;
    }

    /* Cart */
    .cart-section {
        padding: 24px 0 60px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cart-item {
        grid-template-columns: 90px 1fr;
        gap: 16px;
        padding: 16px;
    }

    .cart-item-image {
        width: 90px;
        height: 90px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .cart-summary {
        position: static;
        order: -1;
    }

    /* Checkout */
    .checkout-steps {
        padding: 24px 0;
    }

    .steps {
        max-width: 100%;
    }

    .step span {
        font-size: 11px;
    }

    .step-line {
        margin: 0 8px;
    }

    .checkout-section {
        padding: 24px 0 60px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .checkout-form {
        padding: 24px;
    }

    .checkout-form h2 {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .checkout-actions {
        flex-direction: column-reverse;
    }

    .checkout-summary {
        position: static;
        order: -1;
    }

    .modal-content {
        margin: 20px;
        padding: 32px;
    }

    .success-modal h2 {
        font-size: 22px;
    }
}

/* Mobile - 480px ve altı */
@media (max-width: 480px) {
    /* Hero */
    .hero-slider {
        height: 380px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 14px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 200px;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-content .products-grid {
        grid-template-columns: 1fr !important;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Product Detail */
    .thumbnail-images {
        grid-template-columns: repeat(3, 1fr);
    }

    .size-options {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-actions {
        flex-direction: column;
    }

    .wishlist-btn {
        width: 100%;
        height: 48px;
        border-radius: 4px;
    }

    /* Tabs */
    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* Cart */
    .cart-item {
        grid-template-columns: 70px 1fr;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-item-info h3 {
        font-size: 14px;
    }

    /* Checkout Steps */
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .step span {
        display: none;
    }

    .step-line {
        margin: 0 4px;
    }
}

/* Large Desktop - 1440px ve üzeri */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero-slider {
        height: 700px;
    }

    .hero-title {
        font-size: 72px;
    }

    .products-grid {
        gap: 40px;
    }

    .category-card {
        height: 400px;
    }
}

/* Utility Classes for Responsive */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .show-mobile {
        display: block;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .slider-btn,
    .slider-dots,
    .filter-toggle,
    .product-wishlist,
    .quick-view {
        display: none;
    }

    .container {
        max-width: 100%;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if dark mode support is needed */
    /*
    :root {
        --primary-color: #ffffff;
        --secondary-color: #1a1a1a;
        --text-color: #f5f5f5;
        --text-light: #cccccc;
        --border-color: #333333;
        --white: #000000;
    }
    */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
    }

    button, a {
        text-decoration: underline;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch target sizes */
    .icon-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .size-option-btn {
        min-height: 44px;
    }

    .color-option-btn {
        width: 44px;
        height: 44px;
    }

    /* Remove hover effects on touch devices */
    .product-card:hover {
        transform: none;
    }

    .product-wishlist {
        opacity: 1;
    }

    .quick-view {
        transform: translateY(0);
    }
}

