/* Mobile Responsive Styles */
/* Bu dosya sadece mobil cihazlar için yüklenir */

/* =========================
   Mobile: max-width 768px
   ========================= */

@media (max-width: 768px) {
    /* Header */
    .site-header {
        padding: 0 !important;
        margin: 0 !important;
        height: auto;
    }
    
    .header-top {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: 0 !important;
        margin: 0 !important;
        height: 70px !important;
        max-height: 70px !important;
        min-height: 70px !important;
        border-bottom: none !important;
    }
    
    .header-top .container {
        display: grid !important;
        grid-template-columns: 60px 60px 1fr 120px !important;
        align-items: stretch !important;
        padding: 0 !important;
        margin: 0 auto !important;
        gap: 0 !important;
        height: 70px !important;
        max-width: 100% !important;
        max-height: 70px !important;
    }
    
    .mobile-menu-toggle {
        border-right: 1px solid #e0e0e0;
        padding: 0;
        margin: 0;
        width: 60px;
        height: 70px;
        grid-column: 1;
    }
    
    /* Mobile search icon */
    .mobile-search-icon {
        grid-column: 2;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 70px;
        border-right: 1px solid #e0e0e0;
        border: none;
        background: transparent;
        color: #333;
        cursor: pointer;
        padding: 0;
        margin: 0;
        transition: background 0.2s;
    }
    
    .mobile-search-icon:active {
        background: rgba(0,0,0,0.05);
    }
    
    .mobile-search-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .site-logo {
        grid-column: 3;
        justify-content: center;
        display: flex !important;
        align-items: center;
        padding: 12px 0;
        text-align: center;
    }
    
    .site-logo img {
        max-width: 200px !important;
        width: auto !important;
        height: auto !important;
        max-height: 48px !important;
        object-fit: contain;
    }
    
    .header-actions {
        grid-column: 4;
        border-left: 1px solid #e0e0e0;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        height: 70px;
    }
    
    /* Hide desktop search on mobile */
    .header-search.desktop-search,
    .header-search {
        display: none !important;
    }
    
    /* Mobile Search Overlay */
    .mobile-search-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 10000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-search-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .mobile-search-container {
        background: white;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 300px;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    
    .mobile-search-overlay.active .mobile-search-container {
        transform: translateY(0);
    }
    
    .mobile-search-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        background: var(--etsy-orange);
        color: white;
        font-size: 18px;
        font-weight: 600;
    }
    
    .mobile-search-close {
        background: none;
        border: none;
        color: white;
        font-size: 32px;
        cursor: pointer;
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .mobile-search-form {
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .mobile-search-input {
        width: 100%;
        padding: 16px 18px;
        border: 2px solid #ddd;
        border-radius: 8px;
        font-size: 16px;
        background: #f5f5f5;
        transition: all 0.2s;
    }
    
    .mobile-search-input:focus {
        outline: none;
        border-color: var(--etsy-orange);
        background: white;
        box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
    }
    
    .mobile-search-submit {
        width: 100%;
        padding: 16px;
        background: var(--etsy-orange);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .mobile-search-submit:active {
        background: #e06000;
    }
    
    .header-btn {
        padding: 0 !important;
        margin: 0 !important;
        width: 60px !important;
        height: 70px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        position: relative !important;
        border-right: 1px solid #e0e0e0 !important;
        color: transparent !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }
    
    .header-btn::before {
        content: '';
        display: block;
        width: 26px;
        height: 26px;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23333"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .header-btn svg {
        display: none !important;
    }
    
    .btn-primary {
        display: none !important;
    }
    
    .cart-btn {
        padding: 0;
        margin: 0;
        width: 60px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .cart-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .cart-badge {
        position: absolute;
        top: 2px;
        right: 2px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 700;
        border-radius: 9px;
    }
    
    /* Navigation - Hamburger Menu */
    .header-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 10000;
        transition: left 0.3s;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .header-nav.active {
        left: 0;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 0;
        padding: 0;
        min-width: auto;
    }
    
    .nav-link {
        padding: 16px 20px;
        font-size: 15px;
        white-space: normal;
        border-bottom: 1px solid var(--etsy-light-gray);
        display: block;
        width: 100%;
    }
    
    .nav-link:hover {
        background: var(--etsy-cream);
    }
    
    /* Hide mega menus on mobile */
    .mega-menu,
    .dropdown-menu {
        display: none !important;
    }
    
    .nav-dropdown .nav-link svg {
        display: none;
    }
    
    /* Mobile menu overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    /* Hamburger menu button */
    .mobile-menu-toggle {
        grid-column: 1;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 70px;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: background 0.2s;
        padding: 0;
        margin: 0;
    }
    
    .mobile-menu-toggle:active {
        background: rgba(0,0,0,0.05);
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2.5px;
        background: #222222;
        position: relative;
        transition: all 0.3s ease;
        border-radius: 1.5px;
    }
    
    .mobile-menu-toggle span::before,
    .mobile-menu-toggle span::after {
        content: '';
        position: absolute;
        left: 0;
        width: 24px;
        height: 2.5px;
        background: #222222;
        transition: all 0.3s ease;
        border-radius: 1.5px;
    }
    
    .mobile-menu-toggle span::before {
        top: -8px;
    }
    
    .mobile-menu-toggle span::after {
        top: 8px;
    }
    
    .mobile-menu-toggle.active span {
        background: transparent;
    }
    
    .mobile-menu-toggle.active span::before {
        top: 0;
        transform: rotate(45deg);
    }
    
    .mobile-menu-toggle.active span::after {
        top: 0;
        transform: rotate(-45deg);
    }
    
    /* Mobile menu header */
    .mobile-menu-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        background: var(--etsy-orange);
        color: white;
        position: sticky;
        top: 0;
        z-index: 10;
        font-size: 16px;
        font-weight: 600;
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        padding: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Brand Grid Section */
    .brand-grid-section {
        padding: 20px 0 !important;
    }
    
    .brand-grid-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .brand-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
    }
    
    .brand-item {
        padding: 15px 10px;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 20px 12px 40px !important;
    }
    
    .hero-title {
        font-size: 24px !important;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 13px !important;
    }
    
    /* Part Finder */
    .part-finder-section {
        padding: 20px 0;
    }
    
    .part-finder-card {
        padding: 20px 16px;
        border: none;
    }
    
    .part-finder-title {
        font-size: 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .part-finder-subtitle {
        font-size: 14px;
    }
    
    .part-finder-steps {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .finder-step {
        width: 100%;
    }
    
    .finder-label {
        font-size: 13px;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .finder-select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .finder-btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .finder-quick-search {
        flex-direction: column;
    }
    
    .finder-search-input {
        width: 100%;
        font-size: 14px;
    }
    
    .finder-quick-btn {
        width: 100%;
    }
    
    .popular-tags {
        flex-direction: column;
    }
    
    .popular-tag {
        text-align: center;
        width: 100%;
    }
    
    /* Brand Products Section */
    .brand-products-section {
        padding: 30px 0;
    }
    
    .brand-products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .brand-header-logo {
        max-height: 30px;
    }
    
    .brand-section-title {
        font-size: 20px;
    }
    
    .brand-products-list {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .brand-product-card {
        flex-direction: column;
    }
    
    .brand-product-image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .brand-product-info {
        width: 100%;
        text-align: center;
    }
    
    /* SEO Section */
    .seo-section {
        padding: 30px 0;
    }
    
    .seo-content {
        padding: 20px;
    }
    
    .seo-title {
        font-size: 20px;
    }
    
    .seo-text {
        font-size: 14px;
    }
    
    .seo-features {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .feature-box {
        padding: 16px;
    }
    
    .brands-showcase {
        display: none;
    }
    
    /* Products Page */
    .breadcrumb-nav {
        padding: 12px 0;
    }
    
    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    .products-layout {
        padding: 0;
    }
    
    .products-layout .container {
        padding: 0;
        max-width: 100%;
    }
    
    .layout-wrapper {
        display: block;
    }
    
    .filters-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: white !important;
        z-index: 10001 !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
        box-shadow: 2px 0 15px rgba(0,0,0,0.2) !important;
        display: block !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .filters-sidebar.active {
        left: 0 !important;
    }
    
    .mobile-filter-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: calc(100% - 24px);
        padding: 14px;
        background: #3B6BA8;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        margin: 12px 12px 16px 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .mobile-filter-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .mobile-filter-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        background: #3B6BA8;
        color: white;
        font-size: 18px;
        font-weight: 600;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .mobile-filter-close {
        background: none;
        border: none;
        color: white;
        font-size: 32px;
        cursor: pointer;
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .mobile-filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 10000;
    }
    
    .mobile-filter-overlay.active {
        display: block;
    }
    
    .products-main {
        padding: 12px;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .results-info p {
        font-size: 14px;
        margin: 0;
    }
    
    .view-switcher {
        display: none !important;
    }
    
    /* Force list view on mobile */
    .products-grid {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-card {
        display: grid !important;
        grid-template-columns: 120px 1fr !important;
        gap: 12px !important;
        padding: 12px !important;
        align-items: start;
    }
    
    .product-image-wrapper {
        width: 120px !important;
        height: 120px !important;
        grid-column: 1;
    }
    
    .product-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .product-content {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .product-name {
        font-size: 14px !important;
        line-height: 1.3;
        font-weight: 600;
        margin: 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    /* Featured Products - Single column on mobile */
    .featured-section {
        padding: 20px 0;
    }
    
    .featured-section .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    .featured-section .section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .featured-section .product-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
    }
    
    .featured-section .product-card {
        display: grid !important;
        grid-template-columns: 120px 1fr !important;
        gap: 12px !important;
        padding: 12px !important;
        align-items: start;
    }
    
    .featured-section .product-image {
        width: 120px !important;
        height: 120px !important;
        object-fit: contain;
        grid-column: 1;
    }
    
    .featured-section .product-info {
        grid-column: 2;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 0;
    }
    
    .featured-section .product-title {
        font-size: 14px !important;
        line-height: 1.3;
        font-weight: 600;
        margin: 0 0 8px 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: 3.9em;
    }
    
    .featured-section .product-price {
        font-size: 17px;
        font-weight: 700;
        margin: 0;
        margin-top: auto;
    }
    
    .breadcrumb-section {
        padding: 10px 12px;
    }
    
    .breadcrumb-section .container {
        padding: 0;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-title {
        font-size: 13px;
        line-height: 1.3;
        max-height: 2.6em;
    }
    
    .product-price-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 8px;
    }
    
    .price-line {
        display: flex;
        align-items: baseline;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .product-price {
        font-size: 17px;
        font-weight: 700;
        margin: 0;
    }
    
    .product-price-old {
        font-size: 14px;
        text-decoration: line-through;
        color: #999;
    }
    
    .price-info {
        font-size: 10px;
        color: #666;
        display: block;
        margin-top: 2px;
    }
    
    .product-actions {
        display: none !important;
    }
    
    .product-meta {
        font-size: 11px;
    }
    
    /* Hide list view details on mobile */
    .list-details {
        display: none !important;
    }
    
    /* Hide compatible section on mobile */
    .compatible-section,
    .product-meta-info {
        display: none !important;
    }
    
    /* Product Detail Page */
    .product-layout {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .gallery-side {
        max-width: 100%;
    }
    
    .main-image-wrapper {
        max-height: 300px;
    }
    
    .main-image {
        max-height: 300px;
    }
    
    .thumbnail-list {
        gap: 8px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .price-main {
        font-size: 28px;
    }
    
    .product-options {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .variant-options {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .variant-option {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 80px;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .quantity-box {
        width: 100%;
    }
    
    .btn-add-cart {
        width: 100%;
        padding: 14px;
    }
    
    /* Related Products */
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    /* Cart Sidebar */
    .cart-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Container */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Buttons */
    .btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .btn-sm {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* =========================
   Small Mobile: max-width 480px
   ========================= */

@media (max-width: 480px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-title {
        font-size: 20px !important;
    }
    
    .part-finder-title {
        font-size: 18px;
    }
    
    .brand-section-title {
        font-size: 18px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .related-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile Menu Toggle Button (hidden on desktop) */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

/* Desktop-only hides */
@media (min-width: 769px) {
    .mobile-menu-header { display: none !important; }
    .mobile-search-icon { display: none !important; }
    .mobile-search-overlay { display: none !important; }
    
    /* Show desktop search */
    .header-search.desktop-search {
        display: flex !important;
    }
}

/* Mobile Filter Toggle Button (hidden on desktop) */
.mobile-filter-toggle {
    display: none;
}

.mobile-filter-close {
    display: none;
}

.mobile-filter-close {
    display: none;
}
