/* ============================================================
   MOBILE.CSS — Zirve Optik
   Tüm mobil responsive stiller bu dosyada toplanmıştır.
   Bu dosya sadece max-width: 1024px altında yüklenir (mobil + tablet + landscape).
   ============================================================ */

/* ===== GLOBAL ===== */
html, body { overflow-x: hidden; max-width: 100vw; }
.container { padding: 6px 10px; }

/* ===== TOP BAR ===== */
.top-bar { padding: 3px 0; font-size: 0.7rem; }
.top-bar .container {
    display: flex !important; justify-content: space-between !important;
    align-items: center !important;
}
.top-bar .contact-info {
    width: 100%; display: flex !important;
    justify-content: space-between !important; gap: 0 !important;
}
.top-bar .contact-info a { font-size: 0.7rem; }
.top-links { display: none !important; }
.main-header { padding: 0; }

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
    display: flex !important; align-items: center; justify-content: center;
    flex-shrink: 0; order: 0;
    background: transparent;
    border: 2px solid var(--shop-primary);
    color: var(--shop-primary) !important;
    font-size: 1.1rem; cursor: pointer;
    padding: 3px 5px; width: auto; height: auto;
    line-height: 1; border-radius: 4px;
    z-index: 100; position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none; -webkit-user-select: none;
    transition: all 0.2s;
}
.hamburger-btn:hover { background: var(--shop-primary); color: white !important; }

/* ===== SLIDE DRAWER MENU ===== */
.mobile-menu-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.35); z-index: 9999;
    opacity: 0; transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active { display: block !important; opacity: 1; }

.mobile-menu-drawer {
    position: fixed; top: 0; left: 0;
    width: 280px; height: 100%;
    background: #ffffff; z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 4px 0 25px rgba(0,0,0,0.15);
}
.mobile-menu-drawer.active { display: block !important; transform: translateX(0); }

.mobile-menu-header {
    display: flex; justify-content: space-between;
    align-items: center; padding: 15px 20px;
    border-bottom: 1px solid #eee; background: #fafafa;
}
.mobile-menu-header img { height: 28px; }
.mobile-menu-close {
    background: transparent; border: none;
    color: #666; font-size: 1.4rem;
    cursor: pointer; padding: 5px; transition: color 0.2s;
}
.mobile-menu-close:hover { color: var(--shop-primary); }

.mobile-menu-links { list-style: none; padding: 0; margin: 0; }
.mobile-menu-links li { border-bottom: 1px solid #f0f0f0; }
.mobile-menu-links a {
    color: #333; text-decoration: none;
    font-size: 0.9rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 14px 20px; display: flex;
    align-items: center; gap: 12px; transition: all 0.2s;
}
.mobile-menu-links a i { color: var(--shop-primary); width: 20px; text-align: center; font-size: 0.95rem; }
.mobile-menu-links a:hover,
.mobile-menu-links a:active {
    color: var(--shop-primary); background: #fdf5f5;
    border-left: 3px solid var(--shop-primary); padding-left: 17px;
}

.mobile-menu-footer {
    padding: 15px 20px; border-top: 1px solid #eee;
    margin-top: 10px; background: #fafafa;
}
.mobile-menu-footer a {
    color: #555; text-decoration: none; font-size: 0.8rem;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 0; transition: color 0.2s;
}
.mobile-menu-footer a i { color: var(--shop-primary); width: 18px; text-align: center; }
.mobile-menu-footer a:hover { color: var(--shop-primary); }


/* ===== HEADER ===== */
.main-header .container {
    display: flex !important; flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important; padding: 6px 10px !important;
}
.shop-logo { flex-shrink: 0; order: 1; }
.shop-logo img, .shop-logo-img {
    height: 28px !important; max-width: 90px !important; object-fit: contain;
}
.search-bar {
    flex: 1 !important; min-width: 0 !important;
    max-width: none !important; order: 2 !important;
}
.search-bar input {
    padding: 6px 30px 6px 10px !important; font-size: 0.75rem !important;
    border-radius: 20px; height: 30px;
}
.search-bar button { padding: 4px 8px !important; font-size: 0.85rem !important; right: 2px !important; }
.header-actions { gap: 8px !important; flex-shrink: 0; order: 3; }
.action-item span { display: none !important; }
.action-item i { font-size: 1rem; }
.action-item { gap: 0 !important; }
.badge-count { top: -6px !important; right: -6px !important; width: 15px; height: 15px; font-size: 0.6rem; }

/* Nav bar hidden on mobile */
.nav-bar { display: none !important; }


/* ===== HERO BANNER ===== */
.hero-slider-container { height: 180px; }
.hero-content { padding: 8px 12px 35px 12px; max-width: 100%; }
.hero-content h1 { font-size: 1.1rem; letter-spacing: 0.5px; margin-bottom: 4px; }
.hero-content p { font-size: 0.7rem; margin-bottom: 6px; }
.hero-btn { padding: 6px 16px; font-size: 0.65rem; border-radius: 20px; }
.slider-nav {
    width: 30px !important; height: 30px !important;
    min-width: 30px !important; min-height: 30px !important;
    max-width: 30px !important; max-height: 30px !important;
    border-radius: 50% !important; font-size: 0.85rem !important;
    padding: 0 !important; display: flex !important;
    align-items: center !important; justify-content: center !important;
}
.slider-nav.prev { left: 6px; }
.slider-nav.next { right: 6px; }
.dot { width: 7px; height: 7px; }

.hero-skeleton .sk-title { width: 140px; height: 20px; }
.hero-skeleton .sk-text { width: 180px; height: 10px; }
.hero-skeleton .sk-btn { width: 100px; height: 26px; }


/* ===== BRAND LOGO SLIDER ===== */
.brand-slider-container { padding: 2px 0; overflow: hidden; }
.brand-track img { height: 34px !important; }


/* ===== SECTION HEADINGS ===== */
.category-separator span { font-size: 1rem; letter-spacing: 0.5px; }
.category-separator::before, .category-separator::after { max-width: 50px; }


/* ===== FIX PARENT CONTAINERS FOR SLIDER OVERFLOW ===== */
.shop-main-wrapper {
    display: block !important;
    overflow: visible !important;
}
.shop-content-wrapper {
    display: block !important;
    flex: none !important;
    min-width: auto !important;
    width: 100% !important;
    overflow: visible !important;
}
#shopContent {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
}

/* ===== BRAND PRODUCT SECTIONS ===== */
.brand-section {
    margin-bottom: 20px;
    overflow: visible !important;
    margin-left: -20px;
    margin-right: -20px;
}
.brand-header {
    display: block !important;
    padding: 8px 15px !important;
    margin-bottom: 6px;
}
.brand-header h3 {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-align: left !important;
    color: #111 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 2px solid #c00;
    display: inline-block;
    padding-bottom: 4px !important;
}
.brand-divider { display: none !important; }
.brand-header-logo { display: none !important; }

/* Horizontal swipeable product slider */
.carousel-wrapper {
    width: 100% !important;
    overflow: visible !important;
}
.product-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory;
    padding: 5px 15px 10px 15px;
    scrollbar-width: none;
    touch-action: pan-x !important;
    -ms-touch-action: pan-x !important;
}
.product-slider::-webkit-scrollbar { display: none; }

/* Each card: fixed width, shows ~2.3 cards to hint scrollability */
.product-slider > .shop-card,
.product-slider .shop-card {
    min-width: 42vw !important;
    max-width: 42vw !important;
    width: 42vw !important;
    flex: 0 0 42vw !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start;
}
.carousel-btn { display: none !important; }


/* ===== PRODUCT GRID ===== */
#productGrid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }


/* ===== PRODUCT CARDS ===== */
.shop-card { padding: 0; border-radius: 8px; overflow: hidden; }
.card-img-wrapper {
    min-height: 0 !important; max-height: none !important;
    aspect-ratio: 1 / 1; overflow: hidden;
}
.card-img-wrapper img, .shop-card-img {
    max-height: none !important; width: 100% !important;
    height: 100% !important; object-fit: cover !important;
}
.shop-brand { font-size: 0.65rem; margin-top: 3px; }
.shop-title {
    font-size: 0.6rem !important; height: auto !important;
    min-height: 22px; line-height: 1.3 !important;
    overflow: hidden; display: -webkit-box !important;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    line-clamp: 2;
}
.current-price { font-size: 1.2rem !important; }
.add-to-cart-btn { font-size: 0.6rem !important; padding: 5px 3px !important; }
.new-badge { font-size: 0.5rem !important; padding: 1px 3px !important; }
.like-btn { font-size: 0.75rem !important; }

/* ===== FOOTER MOBILE ===== */
#footerLogo { height: 50px !important; }
.footer-col p { font-size: 0.72rem !important; }

/* ===== SORT BAR — Filtrele %40 | Göster %30 | Sırala %30 ===== */
.sort-bar-inner {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 6px 0;
    flex-wrap: nowrap !important;
}
.sort-bar-inner > div:not(.mobile-filter-btn):not(.sort-options) { display: none !important; }
#productCountText { display: none !important; }

.sort-options {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    flex: 1;
    min-width: 0;
}
.sort-options > div {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    padding: 0 4px;
    min-width: 0;
}
.sort-options label { font-size: 0.65rem !important; white-space: nowrap; flex-shrink: 0; }
.sort-options select {
    font-size: 0.65rem !important;
    padding: 4px 2px !important;
    min-width: 0 !important;
    flex: 1;
    max-width: 100%;
}

/* Mobile filter button */
.mobile-filter-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0 !important;
    font-size: 0.7rem !important;
    padding: 6px 6px !important;
    white-space: nowrap;
    flex: 0 0 40% !important;
    box-sizing: border-box;
    background: var(--shop-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

#horizontalFilterWrapper { display: none !important; }


/* ===== MOBILE FILTER PANEL ===== */
.mobile-filter-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 9998; display: none;
}
.mobile-filter-overlay.active { display: block; }

.mobile-filter-panel {
    position: fixed; bottom: 0; left: 0; right: 0;
    width: 100%;
    background: #fff; z-index: 9999;
    border-radius: 16px 16px 0 0;
    height: 65vh;
    display: flex; flex-direction: column;
    padding: 0; box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}
.mobile-filter-panel.active { transform: translateY(0); }

.mobile-filter-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.mobile-filter-header h3 { margin: 0; font-size: 1rem; color: #333; }
.mobile-filter-close {
    background: none; border: none; font-size: 1.3rem;
    cursor: pointer; padding: 4px; color: #666;
}

/* Scrollable filter content area */
#mobileFilterContent {
    display: block !important;
    flex: 1; overflow-y: auto;
    padding: 0 16px;
}

/* Filter content: single-column accordion layout */

/* Override all horizontal/flex layouts — force vertical list */
#mobileFilterContent .filter-tabs,
#mobileFilterContent .horizontal-filter-tabs,
#mobileFilterContent .horizontal-filters {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    overflow-x: visible !important;
    padding-bottom: 0;
}

/* Each dropdown: full width block */
#mobileFilterContent .filter-dropdown {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    position: relative !important;
    border-bottom: 1px solid #eee;
}

/* Dropdown button: full width accordion header */
#mobileFilterContent .filter-dropdown-btn {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 10px !important;
    font-size: 0.85rem !important;
    background: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    text-align: left !important;
    cursor: pointer;
    white-space: nowrap;
    color: #333;
}

/* Dropdown content: hidden by default */
#mobileFilterContent .filter-dropdown-content {
    position: static !important;
    display: none;
    width: 100% !important;
    max-height: 200px;
    overflow-y: auto;
    background: #fafafa;
    border: none;
    border-top: 1px solid #eee;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    transform: none !important;
}
/* Disable desktop :hover — only JS click controls visibility */
#mobileFilterContent .filter-dropdown:hover .filter-dropdown-content {
    display: none;
}
/* When JS adds .mobile-open class, show the content */
#mobileFilterContent .filter-dropdown-content.mobile-open {
    display: block !important;
}

/* Filter option items inside dropdown */
#mobileFilterContent .filter-option {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
#mobileFilterContent .filter-option:last-child { border-bottom: none; }
#mobileFilterContent .filter-option input[type="checkbox"] {
    width: 16px; height: 16px; flex-shrink: 0;
}
#mobileFilterContent .filter-option label {
    font-size: 0.85rem; cursor: pointer;
}


/* ===== FOOTER — 2x2 Grid ===== */
.footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 15px;
    text-align: left;
}
.footer-col:nth-child(1) { order: 1; } /* Logo - top left */
.footer-col:nth-child(2) { order: 3; } /* Hızlı Erişim - bottom left */
.footer-col:nth-child(3) { order: 4; } /* Müşteri Hizmetleri - bottom right */
.footer-col:nth-child(4) { order: 2; } /* Kategoriler - top right */
.footer-col h4 { font-size: 0.85rem; }
.footer-col ul { padding: 0; }
.footer-col ul li a { font-size: 0.75rem; }
.footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
.shop-footer { padding: 20px 0 12px 0; margin-top: 20px; }
.shop-footer .footer-col img { height: 25px !important; }
.social-icons { justify-content: center; }


/* ===== MODALS & PRODUCT DETAIL ===== */
#authModal > div { width: 94% !important; max-width: 380px !important; }
#cartModal > div { width: 94% !important; max-width: 94% !important; }

/* Product detail modal: full screen on mobile */
.product-detail-content {
    width: 100% !important; max-width: 100% !important;
    border-radius: 0; max-height: 100vh;
}
.product-detail-grid { flex-direction: column; }
.product-detail-image-container {
    min-width: 100% !important; flex: none !important;
    padding: 15px;
    border-radius: 0; border-right: none;
    border-bottom: 1px solid var(--shop-border);
}
.product-detail-image { max-height: 35vh; }
.product-detail-info {
    min-width: 100% !important; flex: none !important;
    padding: 15px;
}
.product-detail-close {
    top: 8px; right: 8px;
    width: 32px; height: 32px;
    font-size: 1.2rem;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50%;
    z-index: 20;
}
.pd-brand { font-size: 0.9rem; margin-bottom: 6px; }
.pd-title { font-size: 1.1rem; margin-bottom: 10px; }
.pd-price { font-size: 1.4rem; margin: 8px 0; }
.pd-attributes { margin-bottom: 15px; gap: 8px; }
.pd-attr-row { padding-bottom: 6px; }
.pd-attr-label { width: 100px; font-size: 0.8rem; }
.pd-attr-value { font-size: 0.8rem; }
.pd-action-area { flex-direction: column; gap: 10px; }
.pd-quantity-wrapper { width: 100%; height: 40px; }
.pd-qty-btn { width: 36px; }
.pd-qty-input { font-size: 0.95rem; }
.pd-add-to-cart-btn { min-width: 100% !important; height: 44px; font-size: 0.9rem; }


/* ===== PRODUCT PAGE (standalone /urun/ page — uses pg-* classes) ===== */
.product-page-container {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 10px 0 !important;
}
.pg-gallery { gap: 10px; }
.pg-main-image { border-radius: 8px; }
.pg-main-image img { max-height: 40vh; }
.pg-discount-badge { top: 10px; left: 10px; font-size: 0.75rem; padding: 4px 8px; }
.pg-thumbnails { gap: 6px; }
.pg-thumb { width: 55px; height: 55px; border-radius: 6px; }
.pg-brand { font-size: 0.9rem; }
.pg-title { font-size: 1.3rem !important; margin-bottom: 10px; }
.pg-price-wrap { margin-bottom: 15px; padding-bottom: 12px; gap: 10px; }
.pg-current-price { font-size: 1.6rem !important; }
.pg-old-price { font-size: 1rem; }
.pg-actions { flex-direction: column; gap: 10px; }
.pg-qty { height: 44px; width: 100%; justify-content: center; }
.pg-qty button { width: 40px; }
.pg-qty input { width: 50px; font-size: 1rem; }
.pg-add-btn {
    height: 48px !important; font-size: 1rem;
    width: 100%; border-radius: 8px;
}
#pgServicesGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important; margin-top: 10px !important;
}
#pgServicesGrid > div { padding: 10px 8px !important; font-size: 0.8rem !important; }
#pgServicesGrid > div i { font-size: 1.1rem !important; }
.pg-tabs { margin-top: 20px; }
.pg-tab-headers { gap: 15px; margin-bottom: 15px; }
.pg-tab-btn { font-size: 0.9rem; }
.pg-tab-pane { font-size: 0.85rem; line-height: 1.6; }
.pg-attr-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
}
.pg-attr-item { padding: 10px; }
.pg-attr-label { font-size: 0.75rem; }
.pg-attr-val { font-size: 0.85rem; }
/* Dimensions section */
#pgDimensions { flex-wrap: wrap; gap: 8px !important; padding-top: 15px !important; }
.pg-dim-item img { height: 30px !important; }


/* ===== BREADCRUMBS ===== */
.breadcrumb { font-size: 0.7rem; padding: 6px 0; }
.breadcrumb a { font-size: 0.7rem; }


/* ===== PAGINATION ===== */
.pagination-container { gap: 3px !important; }
.pagination-btn { min-width: 28px; padding: 5px 6px; font-size: 0.7rem; }


/* ===== ACCOUNT PAGE (hesabim) ===== */
.account-header { flex-direction: column; text-align: center; gap: 10px; padding: 15px; }
.account-tabs {
    flex-wrap: wrap !important; gap: 4px;
    justify-content: center;
}
.account-tab {
    font-size: 0.75rem !important; padding: 8px 10px !important;
    flex: 0 0 auto;
}
.profile-form { padding: 15px; }
.profile-form input,
.profile-form textarea { font-size: 0.85rem; }
.fav-card img { height: 120px; }
.order-card { padding: 12px; }
.order-top { flex-direction: column; gap: 8px; }
.order-id { font-size: 0.85rem; }
.order-items li { font-size: 0.8rem; padding: 6px 0; }


/* ===== CONTACT PAGE (iletisim) ===== */
.contact-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
}
.contact-form { padding: 15px; }
.contact-form input,
.contact-form textarea { font-size: 0.85rem; }
.contact-info-card { padding: 15px; }
.contact-map { height: 200px !important; }
.contact-map iframe { height: 200px !important; }


/* ===== BRANDS PAGE (markalarimiz) ===== */
.brands-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
}
.brand-card { padding: 10px; }
.brand-card img { max-height: 40px; }


/* ===== INFO PAGES (iade, kargo, sss, gizlilik) ===== */
.info-page-container,
.static-page-container,
.page-content {
    padding: 15px !important;
}
.info-page-container h1,
.static-page-container h1,
.page-content h1 {
    font-size: 1.3rem !important;
}
.info-page-container h2,
.static-page-container h2,
.page-content h2 {
    font-size: 1.1rem !important;
}
.info-page-container p,
.static-page-container p,
.page-content p {
    font-size: 0.85rem; line-height: 1.6;
}
.faq-question { font-size: 0.85rem; padding: 10px; }
.faq-answer { font-size: 0.8rem; padding: 10px; }


/* ===== CART MODAL ===== */
.cart-item { flex-direction: column; gap: 8px; }
.cart-item-img { width: 60px; height: 60px; }
.cart-item-details { font-size: 0.8rem; }
.cart-total { font-size: 1.1rem; }
.checkout-btn { font-size: 0.9rem; padding: 12px; }


/* ===== SEARCH RESULTS ===== */
.search-results {
    width: calc(100vw - 20px) !important;
    left: 10px !important; right: 10px !important;
}
.search-result-item { padding: 8px; gap: 8px; }
.search-result-item img { width: 40px; height: 40px; }
.search-result-item span { font-size: 0.8rem; }


/* ===== SMALL PHONE (max-width: 380px) ===== */
@media (max-width: 380px) {
    .shop-logo img, .shop-logo-img { height: 24px !important; max-width: 75px !important; }
    .hamburger-btn { font-size: 1rem; }
    .header-actions { gap: 6px !important; }
    .action-item i { font-size: 0.9rem; }
    .search-bar input { font-size: 0.7rem !important; height: 28px; }
    .hero-slider-container { height: 150px; }
    .hero-content h1 { font-size: 0.9rem; }
    .hero-content p { font-size: 0.6rem; }
    .hero-btn { padding: 5px 12px; font-size: 0.6rem; }
    .slider-nav {
        width: 26px !important; height: 26px !important;
        min-width: 26px !important; min-height: 26px !important;
        max-width: 26px !important; max-height: 26px !important;
        font-size: 0.7rem !important;
    }
    .product-detail-image { max-height: 25vh; }
    .pd-title { font-size: 1rem; }
    .pd-price { font-size: 1.2rem; }
    .brands-grid { grid-template-columns: repeat(2, 1fr) !important; }
}


/* ============================================================
   LANDSCAPE MODE — Telefon yatay çevrildiğinde
   ============================================================ */
@media (orientation: landscape) and (max-height: 500px) {
    /* Hero slider: shorter for landscape */
    .hero-slider-container { height: 35vh !important; }
    .hero-content h1 { font-size: 1rem; }
    .hero-btn { padding: 5px 14px; font-size: 0.7rem; }

    /* Header: more compact */
    .main-header { padding: 2px 0 !important; }
    .header-row { padding: 3px 10px !important; }
    .top-bar { padding: 2px 10px !important; font-size: 0.65rem !important; }

    /* Product grid: 3 columns in landscape */
    #productGrid { grid-template-columns: repeat(3, 1fr) !important; }

    /* Slider cards: narrower in landscape (show more) */
    .product-slider > .shop-card,
    .product-slider .shop-card {
        min-width: 28vw !important;
        max-width: 28vw !important;
        flex: 0 0 28vw !important;
    }

    /* Card images: shorter */
    .card-img-wrapper { aspect-ratio: 4/3 !important; }

    /* Footer: 4 columns */
    .footer-grid { grid-template-columns: repeat(4, 1fr) !important; }

    /* Product detail: side by side */
    .pg-top { flex-direction: row !important; }
    .pg-gallery { width: 50% !important; max-height: 50vh; }
    .pg-info { width: 50% !important; }

    /* Brand logo slider */
    .brand-track img { height: 28px !important; }

    /* Filter panel: max-height */
    .mobile-filter-panel { max-height: 60vh !important; }
}

/* Tablet portrait (769px-1024px) — wider than phone but still mobile layout */
@media (min-width: 769px) and (max-width: 1024px) {
    .container { padding: 10px 20px; }

    /* Product grid: 3 columns on tablet */
    #productGrid { grid-template-columns: repeat(3, 1fr) !important; }

    /* Slider cards: show more on tablet */
    .product-slider > .shop-card,
    .product-slider .shop-card {
        min-width: 28vw !important;
        max-width: 28vw !important;
        flex: 0 0 28vw !important;
    }

    /* Hero slider: taller on tablet */
    .hero-slider-container { height: 250px; }

    /* Card images */
    .card-img-wrapper { aspect-ratio: 1/1; }

    /* Footer grid: 4 columns */
    .footer-grid { grid-template-columns: repeat(4, 1fr) !important; }

    /* Product detail */
    .pg-top { flex-direction: row !important; }
    .pg-gallery { width: 50% !important; }
    .pg-info { width: 50% !important; }
}
