/* ============================================
   STARK MENÜ - COMPREHENSIVE MOBILE RESPONSIVE
   Full Mobile/Tablet Compatibility 2026
   ============================================ */

/* ============================================
   GLOBAL MOBILE RESET & HELPERS
   ============================================ */
@media (max-width: 992px) {
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    body {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Touch-friendly tap targets */
    button, a, input, select, textarea {
        min-height: 44px;
    }
    
    input[type="checkbox"],
    input[type="radio"],
    .color-swatch,
    .thumbnail {
        min-height: auto;
    }
}

/* ============================================
   HEADER & NAVIGATION - MOBILE
   ============================================ */
@media (max-width: 992px) {
    /* Nav container mobile layout */
    .nav-container {
        width: 100%;
    }
    
    header {
        padding: 12px 16px !important;
    }
    
    header.scrolled {
        padding: 10px 16px !important;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo svg {
        width: 32px;
        height: 32px;
    }
    
    .logo-img {
        height: 55px;
    }
    
    header.scrolled .logo-img {
        height: 45px;
    }
    
    .loader-logo-img {
        height: 100px;
    }
    
    /* Nav actions visible on mobile */
    .nav-actions {
        display: flex;
        gap: 8px;
        order: 2;
        position: static;
        transform: none;
        margin-left: auto;
    }
    
    .nav-actions .search-toggle-btn,
    .nav-actions .cart-icon-link {
        width: 40px;
        height: 40px;
    }
    
    /* Hide "Giriş Yap" text on small screens */
    .header-cta {
        padding: 8px 14px;
        font-size: 0px;
        gap: 0;
    }
    
    .header-cta i {
        font-size: 16px;
    }
    
    .customer-dropdown-toggle {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .customer-name-short {
        display: none;
    }
    
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex !important;
        order: 3;
        z-index: 1001;
        padding: 10px;
        position: relative;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        position: absolute;
    }
    
    .mobile-menu-btn span:nth-child(1) {
        top: 13px;
    }
    
    .mobile-menu-btn span:nth-child(2) {
        top: 21px;
    }
    
    .mobile-menu-btn span:nth-child(3) {
        top: 29px;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        top: 21px;
        transform: rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        top: 21px;
        transform: rotate(-45deg);
    }
    
    /* Mobile Navigation Overlay */
    .nav-links {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(10, 10, 10, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 100px 30px 30px !important;
        flex-direction: column !important;
        gap: 0 !important;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: unset !important;
        justify-content: flex-start !important;
    }
    
    /* Sağ nav mobilde her zaman gizli - linkleri JS ile nav-left'e klonlanır */
    .nav-right {
        display: none !important;
    }
    
    .nav-links.mobile-open {
        display: flex !important;
        animation: mobileMenuSlideIn 0.3s ease-out;
    }
    
    /* Klonlanmış sağ nav linkleri (mobil menü içinde) */
    .mobile-right-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 4px;
        padding-top: 4px;
    }
    
    .mobile-right-links .nav-link {
        font-size: 1.1rem;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 0;
        width: 100%;
        display: block;
        letter-spacing: 1px;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-weight: 600;
        text-transform: uppercase;
    }
    
    .mobile-right-links .nav-link:hover,
    .mobile-right-links .nav-link.active {
        background: rgba(114, 47, 55, 0.15);
        padding-left: 28px;
    }
    
    @keyframes mobileMenuSlideIn {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-links .nav-link {
        font-size: 1.1rem;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 0;
        width: 100%;
        display: block;
        letter-spacing: 1px;
    }
    
    .nav-links .nav-link::after {
        display: none;
    }
    
    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        background: rgba(114, 47, 55, 0.15);
        padding-left: 28px;
    }
    
    /* Mobile Mega Menu */
    .nav-item-dropdown {
        width: 100%;
        display: block;
    }
    
    .nav-link.has-dropdown {
        justify-content: space-between;
        width: 100%;
    }
    
    .dropdown-arrow {
        transition: transform 0.3s ease;
    }
    
    .nav-item-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .mega-menu::before {
        display: none !important;
    }
    
    .mega-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        border: none !important;
        border-top: 1px solid rgba(114, 47, 55, 0.2) !important;
        box-shadow: none !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        background: rgba(20, 20, 20, 0.95) !important;
        /* Accordion behavior */
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.35s ease !important;
    }
    
    .nav-item-dropdown.active .mega-menu {
        max-height: 600px !important;
        overflow-y: auto !important;
    }
    
    .mega-menu-container {
        grid-template-columns: 1fr !important;
    }
    
    .mega-menu-categories {
        grid-template-columns: 1fr !important;
        border-right: none !important;
        padding: 12px !important;
    }
    
    .mega-menu-featured {
        display: none !important;
    }
    
    .mega-subcategories {
        position: static !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        grid-template-columns: 1fr !important;
        padding: 8px !important;
        margin-left: 16px !important;
        margin-top: 4px !important;
        background: rgba(0, 0, 0, 0.3) !important;
        max-height: none !important;
    }
    
    .mega-menu-footer {
        flex-direction: column !important;
        gap: 8px !important;
        padding: 12px !important;
    }
    
    .mega-view-all,
    .mega-catalog {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px !important;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 12px !important;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo svg {
        width: 28px;
        height: 28px;
    }
    
    .logo {
        gap: 8px;
    }
    
    .logo-img {
        height: 45px;
    }
    
    header.scrolled .logo-img {
        height: 38px;
    }
    
    .footer-logo-img {
        height: 45px;
    }
    
    .loader-logo-img {
        height: 80px;
    }
    
    .nav-actions {
        gap: 4px;
    }
    
    .nav-actions .search-toggle-btn,
    .nav-actions .cart-icon-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .cart-badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .header-cta {
        padding: 6px 12px;
        border-radius: 20px;
    }
}

/* ============================================
   HERO SECTION - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100svh; /* Safe viewport for mobile */
        padding: 0 16px;
    }
    
    .hero-content {
        padding: 0 8px;
    }
    
    .hero-badge {
        padding: 8px 16px;
        margin-bottom: 20px;
    }
    
    .hero-badge span {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 16px;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
        font-size: 0.85rem;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        margin-top: 30px;
    }
    
    .hero-stats .stat-item {
        min-width: 120px;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem !important;
    }
    
    .hero-stats .stat-label {
        font-size: 0.65rem !important;
        letter-spacing: 1px;
    }
    
    .hero-scroll {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .hero-stats .stat-number {
        font-size: 1.8rem !important;
    }
}

/* ============================================
   SECTIONS - MOBILE GENERAL
   ============================================ */
@media (max-width: 768px) {
    section {
        padding: 50px 16px !important;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.15rem; }
}

@media (max-width: 480px) {
    section {
        padding: 40px 12px !important;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
}

/* ============================================
   STATS SECTION - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .stats-section {
        padding: 60px 16px !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-item {
        padding: 20px 12px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}

/* ============================================
   CATEGORIES SECTION - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .categories-section {
        padding: 60px 16px !important;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .category-card {
        height: 280px;
    }
    
    .category-content {
        padding: 24px;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
}

/* ============================================
   PRODUCTS GRID - MOBILE
   ============================================ */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
    
    .products-catalog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
    
    .product-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 60px 16px !important;
    }
    
    .products-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .products-filter {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        flex-wrap: nowrap;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .products-cta {
        justify-content: center;
        margin-top: 24px;
    }

    .btn-view-all {
        width: min(100%, 320px);
        min-width: 0;
        padding: 14px 22px;
        font-size: 0.86rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .products-catalog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 14px;
    }
    
    .product-title {
        font-size: 0.95rem;
    }
    
    .product-card-price {
        font-size: 0.8rem;
    }
    
    .product-card-price .price-from {
        font-size: 0.6rem;
    }
    
    .product-desc {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .card-add-cart-btn {
        width: 100%;
        padding: 10px;
        font-size: 12px;
    }
    
    .product-overlay {
        opacity: 1;
        background: rgba(10, 10, 10, 0.4);
        pointer-events: auto;
    }
    
    .overlay-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 560px) {
    .products-section,
    .products-catalog-section {
        padding-bottom: 124px !important;
    }

    .products-grid,
    .products-catalog-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
        padding-bottom: 12px;
    }

    .products-grid .product-card,
    .products-catalog-grid .product-card {
        display: grid !important;
        grid-template-columns: 132px minmax(0, 1fr);
        min-height: 176px;
        border-radius: 18px;
        border-width: 1px;
        overflow: hidden;
    }

    .products-grid .product-card:hover,
    .products-catalog-grid .product-card:hover {
        transform: none;
    }

    .products-grid .product-card::before,
    .products-catalog-grid .product-card::before {
        display: none;
    }

    .products-grid .product-image,
    .products-catalog-grid .product-image {
        height: 100% !important;
        min-height: 176px;
    }

    .products-grid .product-image img,
    .products-catalog-grid .product-image img {
        transform: none !important;
    }

    .products-grid .product-image img.product-image-fallback,
    .products-catalog-grid .product-image img.product-image-fallback {
        padding: 24px 18px;
        object-fit: contain;
    }

    .products-grid .product-overlay,
    .products-catalog-grid .product-overlay {
        display: none !important;
    }

    .products-grid .product-info,
    .products-catalog-grid .product-info {
        min-width: 0;
        padding: 14px 14px 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .products-grid .product-category,
    .products-catalog-grid .product-category {
        margin-bottom: 6px;
        font-size: 0.62rem;
        letter-spacing: 0.7px;
        line-height: 1.2;
    }

    .products-grid .product-title-row,
    .products-catalog-grid .product-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }

    .products-grid .product-title,
    .products-catalog-grid .product-title {
        width: 100%;
        font-size: 1rem;
        line-height: 1.22;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .products-grid .product-card-price,
    .products-catalog-grid .product-card-price {
        width: 100%;
        align-items: flex-start;
        text-align: left;
        white-space: normal;
        gap: 3px;
        font-size: 0.9rem;
    }

    .products-grid .product-card-price .price-from,
    .products-catalog-grid .product-card-price .price-from {
        font-size: 0.55rem;
    }

    .products-grid .product-card-price .price-original,
    .products-catalog-grid .product-card-price .price-original {
        font-size: 0.7rem;
    }

    .products-grid .product-card-price .price-discounted,
    .products-catalog-grid .product-card-price .price-discounted {
        font-size: 1rem;
        line-height: 1.1;
    }

    .products-grid .product-card-price .price-agency-note,
    .products-catalog-grid .product-card-price .price-agency-note {
        max-width: 100%;
        padding: 3px 7px;
        font-size: 0.66rem;
        line-height: 1.2;
        border-radius: 8px;
    }

    .products-grid .product-desc,
    .products-catalog-grid .product-desc {
        display: none;
    }

    .products-grid .product-badge,
    .products-catalog-grid .product-badge {
        top: auto;
        bottom: 10px;
        left: 8px;
        max-width: calc(100% - 16px);
        padding: 5px 9px;
        font-size: 0.58rem;
        line-height: 1;
        letter-spacing: 0.35px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .products-grid .product-favorite-btn,
    .products-catalog-grid .product-favorite-btn {
        display: none !important;
    }

    .products-grid .product-footer,
    .products-catalog-grid .product-footer {
        margin-top: auto;
        padding-top: 10px;
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    .products-grid .card-add-cart-btn,
    .products-catalog-grid .card-add-cart-btn {
        min-height: 40px;
        padding: 9px 12px;
        border-radius: 10px;
        font-size: 0.78rem;
        line-height: 1.2;
    }
}

/* ============================================
   PRODUCTS FILTER - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .products-filter-section {
        padding: 20px 16px;
    }
    
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        justify-content: flex-start;
        gap: 8px;
        scrollbar-width: none;
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .filter-tab {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* ============================================
   PRODUCT DETAIL PAGE - MOBILE
   ============================================ */
@media (max-width: 992px) {
    .product-page-wrapper {
        padding-top: 70px;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .product-gallery .main-image {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .product-page-wrapper {
        padding-top: 60px;
    }
    
    .product-breadcrumb {
        padding: 12px 0;
    }
    
    .product-breadcrumb .breadcrumb {
        font-size: 12px;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .product-detail-section {
        padding: 30px 0 !important;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .product-gallery .main-image {
        border-radius: 12px;
        max-height: 350px;
    }
    
    .zoom-btn {
        width: 40px;
        height: 40px;
        bottom: 12px;
        right: 12px;
        font-size: 14px;
    }
    
    .thumbnail-gallery {
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    
    .thumbnail-gallery::-webkit-scrollbar {
        display: none;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        max-width: 60px;
        max-height: 60px;
    }
    
    .product-title-main {
        font-size: 24px !important;
        margin-bottom: 10px;
    }
    
    .product-short-desc {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .product-price-current {
        font-size: 26px;
    }
    
    .product-price-quote {
        font-size: 16px;
    }
    
    /* Product Options Mobile */
    .product-options-section {
        padding: 14px;
        margin-bottom: 20px;
    }
    
    .product-option-select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .product-color-options,
    .product-radio-options {
        gap: 8px;
    }
    
    .radio-option-item {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    /* Features */
    .product-features {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    
    .feature-item {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    /* Add to Cart */
    .product-add-to-cart {
        flex-direction: column !important;
        gap: 12px;
    }

    .product-add-to-cart .product-live-price {
        width: 100%;
        flex: none;
        align-items: center;
        text-align: center;
    }

    .product-add-to-cart .product-live-price-main-row {
        justify-content: center;
    }
    
    .product-add-to-cart .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .product-add-to-cart .btn-add-cart {
        width: 100%;
        justify-content: center;
    }
    
    .product-cta-buttons {
        flex-direction: column !important;
    }
    
    .product-cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Trust Badges */
    .product-trust-badges {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }
    
    .trust-badge-item {
        padding: 10px 6px;
        font-size: 0.75rem;
    }
    
    .trust-badge-item i {
        font-size: 1.2rem;
    }
    
    /* Tabs */
    .tab-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        scrollbar-width: none;
    }
    
    .tab-buttons::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 12px 16px !important;
        font-size: 13px !important;
    }
    
    .tab-content {
        padding: 20px 14px;
    }
    
    /* Related Products */
    .related-products-section {
        padding: 40px 16px !important;
    }
    
    .related-slider-wrapper {
        gap: 0;
    }
    
    .related-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    
    .related-slider::-webkit-scrollbar {
        display: none;
    }
    
    .related-track {
        transition: none;
    }
    
    .related-track .bestseller-card {
        scroll-snap-align: start;
        min-width: 260px;
        max-width: 260px;
    }
    
    /* Video Section */
    .product-video-section {
        margin-top: 20px;
    }
    
    .video-container {
        border-radius: 12px;
    }
    
    .video-container iframe,
    .video-container video {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    /* Image Modal */
    .image-modal .close-modal {
        top: 10px;
        right: 10px;
        font-size: 28px;
    }
    
    .modal-nav {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .product-title-main {
        font-size: 20px !important;
    }
    
    .product-price-current {
        font-size: 22px;
    }
    
    .product-features {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .product-trust-badges {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   CART DRAWER - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .cart-drawer {
        width: 100% !important;
        max-width: 100vw !important;
        right: -100% !important;
        /* Fix: mobile browsers hide content behind bottom bar with 100vh */
        height: 100% !important;
        height: 100dvh !important;
        max-height: -webkit-fill-available !important;
    }
    
    .cart-drawer.active {
        right: 0 !important;
    }
    
    .cart-drawer-header {
        padding: 16px 20px;
        flex-shrink: 0 !important;
    }
    
    .cart-drawer-header h3 {
        font-size: 18px;
    }
    
    .cart-drawer-body {
        padding: 12px;
        flex: 1 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .cart-drawer-item {
        padding: 12px;
        gap: 10px;
    }
    
    .cart-drawer-item-img {
        width: 56px;
        height: 56px;
    }
    
    .cart-drawer-footer {
        padding: 16px 20px !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        flex-shrink: 0 !important;
        position: sticky !important;
        bottom: 0 !important;
        background: linear-gradient(135deg, rgba(30, 15, 18, 0.98), rgba(20, 10, 12, 0.98)) !important;
        border-top: 1px solid rgba(114, 47, 55, 0.3) !important;
        z-index: 2 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4) !important;
    }

    .cart-drawer-total {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }
    
    .cart-drawer-checkout-btn {
        padding: 12px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }
}

/* ============================================
   SEPET (CART PAGE) - MOBILE
   ============================================ */
@media (max-width: 992px) {
    .cart-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .cart-summary-card {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .cart-section {
        padding: 90px 12px 40px !important;
    }
    
    .cart-title {
        font-size: 24px !important;
        margin-bottom: 20px;
    }
    
    .cart-content {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .cart-item {
        flex-wrap: wrap !important;
        gap: 12px !important;
        padding: 14px !important;
    }
    
    .cart-item-image {
        width: 70px !important;
        height: 70px !important;
    }
    
    .cart-item-info {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .cart-item-info h3 {
        font-size: 14px !important;
    }
    
    .cart-item-info .cart-item-category {
        font-size: 11px;
    }
    
    .cart-item-info .cart-item-price {
        font-size: 14px;
    }
    
    .cart-item-qty {
        order: 4;
    }
    
    .cart-item-subtotal {
        order: 5;
        min-width: auto !important;
        font-size: 14px !important;
    }
    
    .cart-item-remove {
        order: 3;
        position: absolute;
        top: 12px;
        right: 12px;
    }
    
    .cart-item {
        position: relative;
    }
    
    .quantity-selector-sm {
        border-radius: 8px;
    }
    
    .qty-btn-sm {
        width: 32px;
        height: 36px;
    }
    
    .qty-input-sm {
        width: 40px;
        height: 36px;
        font-size: 13px;
    }
    
    .cart-remove-btn {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
    
    .cart-summary-card {
        padding: 20px;
    }
    
    .cart-checkout-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .cart-empty {
        padding: 50px 16px;
    }
    
    .cart-empty i {
        font-size: 48px;
    }
    
    .cart-empty h2 {
        font-size: 20px;
    }
}

/* ============================================
   PAGE HERO - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .page-hero {
        min-height: 35vh;
        padding: 120px 16px 60px !important;
    }
    
    .page-title {
        font-size: 2rem !important;
        letter-spacing: -1px;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .breadcrumb {
        padding: 8px 16px;
        font-size: 0.75rem;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .page-header {
        padding: 120px 16px 60px !important;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 100px 12px 50px !important;
    }
    
    .page-title {
        font-size: 1.6rem !important;
    }
}

/* ============================================
   ABOUT SECTION - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 16px !important;
    }
    
    .about-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .about-title {
        font-size: 1.8rem !important;
    }
    
    .about-description {
        font-size: 0.95rem;
    }
    
    .about-image-main img {
        height: 280px !important;
    }
    
    .about-image-accent {
        width: 120px !important;
        height: 120px !important;
        bottom: -15px !important;
        right: -5px !important;
    }
    
    .about-experience-badge {
        width: 90px !important;
        height: 90px !important;
        top: -10px !important;
        left: -5px !important;
    }
    
    .about-experience-badge .years {
        font-size: 1.8rem !important;
    }
    
    .about-features-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .about-feature-card {
        padding: 16px;
        gap: 14px;
    }
    
    .about-stats-row {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .about-cta-row {
        flex-direction: column;
    }
    
    .about-cta-row .btn-primary,
    .about-cta-row .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   STORY SECTION - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .section-story {
        padding: 50px 16px !important;
    }
    
    .story-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .story-title {
        font-size: 1.6rem !important;
    }
    
    .story-milestones {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .milestone {
        flex: none;
    }
    
    .story-experience-badge {
        padding: 14px 16px;
    }
    
    .experience-number {
        font-size: 1.8rem;
    }
}

/* ============================================
   SERVICES SECTION - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .services-section {
        padding: 60px 16px !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .service-card {
        padding: 30px 24px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ============================================
   CTA SECTION - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 16px !important;
    }
    
    .cta-content h2 {
        font-size: 1.8rem !important;
    }
    
    .cta-content p {
        font-size: 0.95rem;
    }
    
    .cta-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-form input {
        padding: 14px 20px;
    }
    
    .cta-form button {
        padding: 14px 24px;
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   CONTACT PAGE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 16px !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .contact-info h2 {
        font-size: 1.8rem;
    }
    
    .contact-item {
        padding: 18px;
        gap: 14px;
    }
    
    .contact-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.1rem;
    }
    
    .contact-form-wrapper {
        padding: 24px 16px !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    .quick-links-section {
        padding: 60px 16px !important;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* ============================================
   GALLERY PAGE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .gallery-section {
        padding: 40px 12px !important;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .gallery-filter-section {
        padding: 20px 16px;
    }
    
    .gallery-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
    }
    
    .gallery-filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .gallery-filter-tab {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 10px 18px;
        font-size: 0.8rem;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: rgba(10, 10, 10, 0.5);
    }
    
    .gallery-overlay-content h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
}

/* ============================================
   BLOG PAGE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .featured-post-section {
        padding: 40px 16px !important;
    }
    
    .featured-post {
        grid-template-columns: 1fr !important;
    }
    
    .featured-post-image {
        height: 250px;
    }
    
    .featured-post-content {
        padding: 24px !important;
    }
    
    .featured-post-title {
        font-size: 1.4rem;
    }
    
    .blog-section {
        padding: 40px 16px !important;
    }
    
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .blog-header h2 {
        font-size: 1.6rem;
    }
    
    .blog-categories {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        scrollbar-width: none;
        gap: 6px;
    }
    
    .blog-categories::-webkit-scrollbar {
        display: none;
    }
    
    .blog-category-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 20px;
    }
}

/* ============================================
   BRANCHES PAGE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .branches-section {
        padding: 40px 16px !important;
    }
    
    .branches-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .branch-card {
        padding: 24px 20px;
    }
    
    .branch-card h3 {
        font-size: 1.2rem;
    }
    
    .branch-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .all-branches-map {
        padding: 40px 16px;
    }
    
    .map-container iframe {
        height: 280px !important;
    }
}

/* ============================================
   VALUES & TEAM SECTIONS - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .values-section,
    .team-section {
        padding: 60px 16px !important;
    }
    
    .values-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .value-card {
        padding: 30px 24px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .team-image {
        height: 200px;
    }
    
    .team-info {
        padding: 16px;
    }
    
    .team-info h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   FOOTER - MOBILE
   ============================================ */
@media (max-width: 992px) {
    footer {
        padding: 60px 20px 20px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 50px 16px 16px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .footer-brand {
        grid-column: auto;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 16px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 12px;
    }
    
    /* Footer Contact */
    .footer-contact-row {
        padding: 30px 0;
    }
    
    .footer-contact-row .footer-contact-grid {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }
    
    .footer-contact-item {
        min-width: auto !important;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    
    /* Footer Menu Gallery */
    .footer-menu-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    
    .footer-menu-item img {
        height: 80px !important;
    }
    
    .footer-menu-item span {
        font-size: 0.75rem !important;
        margin-top: 6px !important;
    }
    
    /* Footer Bottom */
    .footer-bottom {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .footer-bottom-links a {
        font-size: 0.8rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }

    .footer-payment-logos {
        margin-top: 18px;
        padding-top: 18px;
    }

    .footer-payment-band {
        width: min(100%, 456px);
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .footer-menu-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .footer-payment-band {
        padding: 7px 8px;
    }
}

/* ============================================
   AUTH PAGES - MOBILE
   ============================================ */
@media (max-width: 540px) {
    .auth-section {
        padding: 90px 12px 30px !important;
    }
    
    .auth-card {
        border-radius: 16px;
    }
    
    .auth-header {
        padding: 28px 20px 8px !important;
    }
    
    .auth-header h1 {
        font-size: 22px !important;
    }
    
    .auth-form {
        padding: 18px 20px 22px !important;
    }
    
    .auth-footer {
        padding: 0 20px 22px !important;
    }
    
    .auth-alert {
        margin: 0 20px 10px !important;
    }
    
    .auth-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .auth-field input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .auth-submit {
        padding: 13px 16px;
        font-size: 14px;
    }
}

/* ============================================
   ACCOUNT PAGES - MOBILE
   ============================================ */
@media (max-width: 900px) {
    .account-section {
        padding: 90px 12px 100px !important; /* Bottom padding so content is not behind nav */
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Hide desktop footer on account pages for the mobile app feel */
    .account-section ~ footer {
        display: none !important;
    }

    .account-container {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
        max-width: 100%;
    }
    
    .account-content {
        min-width: 0;
        max-width: 100%;
    }

    .account-sidebar {
        position: static !important;
    }
    
    .account-user-card {
        padding: 16px;
        border-radius: 16px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        margin-bottom: 8px;
    }
    
    .account-avatar {
        font-size: 36px;
    }
    
    /* Horizontal Scrolling Tab Navigation for Account Pages */
    .account-nav {
        display: flex !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px;
        gap: 4px;
        scrollbar-width: none;
        background: rgba(30, 30, 30, 0.5);
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .account-nav::-webkit-scrollbar {
        display: none;
    }
    
    .account-nav-item {
        white-space: nowrap;
        padding: 10px 14px !important;
        border-left: none !important;
        border-bottom: 3px solid transparent !important;
        border-radius: 8px;
        font-size: 13px;
        flex-shrink: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .account-nav-item i {
        margin-bottom: 0 !important;
        font-size: 16px !important;
    }
    
    .account-nav-item.active {
        border-left: none !important;
        border-bottom-color: var(--gold) !important;
    }
    
    .account-nav-item.logout {
        border-top: none !important;
        margin-top: 0 !important;
        padding-top: 10px !important;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    .account-page-title {
        font-size: 20px !important;
        margin-bottom: 15px !important;
        padding-left: 5px;
    }

    .account-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .account-stat-card {
        padding: 12px 10px !important;
        gap: 8px !important;
    }

    .account-stat-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .account-stat-num {
        font-size: 18px !important;
    }
    
    .account-stat-label {
        font-size: 11px !important;
    }

    /* Wrap tables to allow horizontal scrolling without breaking the layout */
    .account-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
        background: #1e1e1e;
        border-radius: 12px;
        padding-bottom: 5px;
    }

    .account-table {
        min-width: 500px; /* Forces table to preserve structure and allow horizontal scroll */
        font-size: 13px !important;
    }

    /* Convert quick links to stack on mobile */
    .account-quick-links, .quick-links, .address-grid, .order-addresses-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .account-quick-card {
        padding: 16px !important;
    }

    .order-addresses-grid {
        grid-template-columns: 1fr !important;
    }
    
    .profile-card.info-card .info-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {
    .account-page-title {
        font-size: 20px !important;
    }
    
    .account-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .account-table {
        font-size: 12px !important;
    }
    
    .account-table th,
    .account-table td {
        padding: 8px 10px !important;
    }
    
    .order-item-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .order-item-price {
        min-width: auto !important;
    }
    
    /* Address Form Mobile */
    .address-form-card {
        padding: 20px 16px;
    }
    
    .address-form .form-row,
    .profile-form .form-row {
        grid-template-columns: 1fr !important;
    }
    
    /* Profile Card */
    .profile-card {
        padding: 20px 16px;
    }
    
    /* Quote Cards */
    .quote-card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .stat-info h3 {
        font-size: 22px;
    }
}

/* ============================================
   SEARCH OVERLAY - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .search-overlay {
        display: none !important;
        padding-top: 5vh !important;
        align-items: flex-start !important;
    }
    
    .search-overlay.active {
        display: flex !important;
    }
    
    .search-overlay-inner {
        width: 95% !important;
    }
    
    .search-box {
        border-radius: 14px;
    }
    
    .search-box input {
        padding: 14px 14px 14px 44px !important;
        font-size: 15px !important;
    }
    
    .search-box-icon {
        left: 16px;
    }
    
    .search-close {
        top: -48px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }
    
    .search-kbd {
        display: none !important;
    }
    
    .search-results {
        max-height: 60vh;
    }
    
    .search-result-item {
        padding: 10px 14px;
        gap: 10px;
    }
    
    .search-result-icon {
        width: 36px;
        height: 36px;
    }
    
    .search-result-name {
        font-size: 13px;
    }
}

/* ============================================
   QUOTE MODAL - MOBILE
   ============================================ */
@media (max-width: 540px) {
    .quote-modal {
        width: 95% !important;
        max-width: 95% !important;
        margin: 0 auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .quote-modal-header {
        padding: 16px 18px;
    }
    
    .quote-modal-header h3 {
        font-size: 16px;
    }
    
    .quote-modal-form {
        padding: 18px;
    }
    
    .quote-modal-product {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .quote-modal-submit {
        padding: 12px;
        font-size: 14px;
    }
}

/* ============================================
   BRANCH WIDGET - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .branch-widget {
        bottom: 16px !important;
        right: 12px !important;
    }
    
    .branch-widget-toggle {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.3rem !important;
    }
    
    .branch-widget-tooltip {
        right: 60px !important;
        font-size: 0.78rem !important;
        padding: 8px 14px !important;
    }
    
    .branch-widget-panel {
        width: calc(100vw - 24px) !important;
        right: -6px !important;
        bottom: 65px !important;
        max-height: 65vh !important;
    }
}

/* ============================================
   BACK TO TOP & FLOATING BUTTONS - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .branch-widget {
        bottom: 80px !important;
        right: 12px !important;
    }

    .back-to-top {
        width: 44px !important;
        height: 44px !important;
        bottom: 145px !important;
        right: 12px !important;
        font-size: 0.9rem !important;
    }
    
    .whatsapp-button {
        width: 50px !important;
        height: 50px !important;
        bottom: 16px !important;
        left: 12px !important;
        font-size: 1.5rem !important;
    }
}

/* ============================================
   VIDEO MODAL - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .video-modal-content {
        width: 96% !important;
    }
    
    .video-modal-close {
        top: -40px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }
    
    .video-modal-wrapper video {
        max-height: 50vh !important;
    }
}

/* ============================================
   BESTSELLER SLIDER - MOBILE  
   ============================================ */
@media (max-width: 768px) {
    .section-products {
        padding-bottom: 30px !important;
    }

    .section-bestsellers {
        padding: 34px 12px 50px !important;
    }
    
    .bestseller-slider-wrapper {
        gap: 0;
    }
    
    .slider-nav-pill {
        margin-top: 16px;
    }
    
    .bestseller-slider {
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .bestseller-slider::-webkit-scrollbar {
        display: none;
    }
    
    .bestseller-track {
        transition: none !important;
    }
    
    .bestseller-card {
        scroll-snap-align: start;
        min-width: 260px !important;
        max-width: 260px !important;
    }
    
    .bestseller-card-image {
        height: 180px !important;
    }
}

/* ============================================
   ABOUT COMPACT - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .section-about-compact {
        padding: 50px 16px !important;
    }
    
    .about-compact-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .about-compact-title {
        font-size: 1.6rem !important;
    }
    
    .about-compact-features {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .about-compact-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .compact-stat {
        padding: 18px 10px !important;
    }
    
    .compact-stat .stat-num {
        font-size: 1.6rem !important;
    }
    
    .about-compact-buttons {
        flex-direction: column;
    }
    
    .about-compact-buttons a {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   LIGHTBOX - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .lightbox-modal .lightbox-content {
        width: 96% !important;
        max-height: 85vh;
    }
    
    .lightbox-modal .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ============================================
   CATALOG PAGE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .catalog-cta-section {
        padding: 50px 16px !important;
    }
    
    .catalog-cta-content h2 {
        font-size: 1.6rem;
    }
}

/* ============================================
   COOKIE CONSENT - MOBILE
   ============================================ */
@media (max-width: 768px) {
    #cookieConsent {
        flex-direction: column !important;
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        padding: 18px !important;
        border-radius: 14px !important;
        gap: 12px !important;
    }
}

/* ============================================
   CUSTOMER DROPDOWN - MOBILE  
   ============================================ */
@media (max-width: 768px) {
    .customer-dropdown-menu {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
        max-height: 70vh;
        overflow-y: auto;
        transform: translateY(100%) !important;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
    }
    
    .customer-dropdown.open .customer-dropdown-menu {
        transform: translateY(0) !important;
    }
    
    .customer-dd-item {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ============================================
   TABLE RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .account-table-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .account-table {
        min-width: 500px;
    }
    
    .specs-table {
        display: block;
        overflow-x: auto;
    }
}

/* ============================================
   SAFE AREA SUPPORT (iPhone notch etc.)
   ============================================ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .cart-drawer-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    footer {
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }
    
    .branch-widget {
        bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }
    
    .back-to-top {
        bottom: calc(145px + env(safe-area-inset-bottom)) !important;
    }
    
    .whatsapp-button {
        bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */
@media (max-width: 992px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .page-hero {
        min-height: 40vh !important;
        padding: 100px 20px 50px !important;
    }
    
    .nav-links {
        padding-top: 70px !important;
    }
}

/* ============================================
   PRINT STYLES (Hide mobile-only elements)
   ============================================ */
@media print {
    .mobile-menu-btn,
    .branch-widget,
    .back-to-top,
    .whatsapp-button,
    .cart-drawer,
    .cart-drawer-overlay,
    .search-overlay,
    .global-mobile-nav {
        display: none !important;
    }
}

/* ============================================
   GLOBAL MOBILE BOTTOM NAV (APP-LIKE)
   ============================================ */
.global-mobile-nav {
    display: none;
}

@media (max-width: 900px) {
    body {
        padding-bottom: 74px !important; /* Space for the bottom navbar */
    }
    
    footer {
        padding-bottom: 90px !important;
    }

    /* Hide redundant top header icons since we have a bottom nav */
    #favoritesHeaderBtn,
    #cartDrawerToggle,
    .customer-dropdown,
    .auth-btn {
        display: none !important;
    }

    .global-mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(22, 22, 22, 0.96);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px 20px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 9999;
        box-shadow: 0 -5px 25px rgba(0,0,0,0.4);
    }
    
    .global-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #888;
        font-size: 10px;
        font-weight: 500;
        min-width: 20%;
        gap: 6px;
        background: transparent;
        border: none;
        outline: none;
        cursor: pointer;
        transition: color 0.3s ease;
    }
    
    .global-nav-item i {
        font-size: 20px;
        transition: transform 0.3s ease, color 0.3s ease;
    }
    
    .global-nav-item.active {
        color: var(--gold);
    }
    
    .global-nav-item.active i {
        color: var(--gold);
        transform: translateY(-2px);
    }
    
    .global-nav-icon-wrapper {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .global-nav-badge {
        position: absolute;
        top: -6px;
        right: -8px;
        background: #e74c3c;
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        height: 16px;
        min-width: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border: 2px solid #161616;
    }

    /* ============================================
       APP-LIKE CHECKOUT UI (MOBILE)
       ============================================ */
    
    .checkout-container {
        padding: 0 !important;
    }
    
    .checkout-section {
        padding: 100px 0 200px !important;
        background: #000;
    }
    
    .checkout-header {
        margin-bottom: 20px;
        padding: 0 16px;
    }

    .checkout-card {
        border: none !important;
        border-radius: 20px;
        background: #111;
        margin: 0 16px 16px;
        padding: 20px 16px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }

    .checkout-stepper {
        padding: 0 16px 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        justify-content: space-between;
    }

    .checkout-nav {
        position: fixed;
        bottom: 74px;
        left: 0;
        right: 0;
        padding: 15px 16px;
        background: rgba(16, 16, 16, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 1000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px 24px 0 0;
        display: flex;
        gap: 10px;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    }

    .checkout-nav .btn-checkout-back,
    .checkout-nav .btn-checkout-next,
    .btn-checkout-submit {
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 54px;
        border-radius: 16px;
        font-weight: 700;
        transition: all 0.2s ease;
    }

    /* Premium Icon-only Back Button */
    .checkout-nav .btn-checkout-back {
        flex: 0 0 54px !important;
        max-width: 54px !important;
        background: #222 !important;
        color: #fff !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        padding: 0 !important;
        font-size: 0 !important; /* Hides the text */
    }
    
    .checkout-nav .btn-checkout-back i {
        font-size: 18px !important;
        margin: 0 !important;
    }
    
    /* Fat Primary CTA */
    .checkout-nav .btn-checkout-next,
    .btn-checkout-submit {
        flex: 1 !important;
        background: var(--gold) !important;
        color: #000 !important;
        font-size: 16px !important;
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    }

    .checkout-address-card {
        padding: 15px;
        border-radius: 16px;
        background: #1a1a1a;
        border-color: rgba(255,255,255,0.1);
    }
    
    .checkout-address-card.selected {
        border-color: var(--gold);
        background: rgba(212, 175, 55, 0.05);
    }

    /* Checkout Items Layout Overflow Fix */
    .checkout-item {
        flex-wrap: wrap !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }
    
    .checkout-item-img {
        width: 70px !important;
        height: 70px !important;
    }
    
    .checkout-item-info {
        min-width: calc(100% - 90px) !important;
        flex: unset !important;
    }

    .checkout-item-qty {
        width: 48% !important;
        margin-top: 8px !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(255,255,255,0.05);
        color: #fff !important;
        text-align: left;
    }

    .checkout-item-price {
        width: 48% !important;
        margin-top: 8px !important;
        padding-top: 8px !important;
        border-top: 1px solid rgba(255,255,255,0.05);
        text-align: right;
    }
    
    .checkout-opt-tag {
        white-space: normal !important;
        word-break: break-word;
    }

    .checkout-item-options {
        width: 100%;
        max-width: 100%;
    }

    .checkout-option-row {
        align-items: flex-start;
        gap: 6px;
    }

    /* Stepper Fixes */
    .checkout-step span {
        text-align: center;
        line-height: 1.2;
        max-width: 60px;
    }

    /* ============================================
       APP-LIKE PRODUCT DETAIL UI
       ============================================ */
    
    /* Product Options Layout Shift Fix */
    .product-options-section {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .product-select-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        gap: 10px !important;
    }
    
    .option-input {
        flex-wrap: wrap !important;
    }
    
    .radio-option-item, .checkbox-option-item {
        white-space: normal !important;
        word-break: break-word;
    }

    /* Sticky Bottom CTA for Add to Cart */
    .product-add-to-cart {
        position: fixed !important;
        bottom: 74px !important;
        left: 0;
        right: 0;
        margin: 0 !important;
        padding: 15px 16px !important;
        background: rgba(16, 16, 16, 0.95) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 1000 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.5) !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .product-add-to-cart .product-live-price {
        order: 1 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        min-height: auto !important;
        padding: 8px 12px !important;
        align-items: center !important;
        text-align: center !important;
        gap: 2px !important;
        border-radius: 14px !important;
    }

    .product-add-to-cart .product-live-price-main-row {
        justify-content: center !important;
    }

    .product-add-to-cart .product-live-price-current {
        font-size: 20px !important;
    }

    .product-add-to-cart .product-live-discount-badge {
        align-self: center !important;
    }

    .product-add-to-cart .quantity-selector {
        order: 2 !important;
        flex: 0 0 130px !important;
        max-width: 130px !important;
        height: 54px !important;
        background: #222 !important;
        border-radius: 14px !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        overflow: hidden !important;
    }

    .product-add-to-cart .quantity-selector .qty-btn {
        width: 40px !important;
        height: 54px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        color: rgba(255,255,255,0.8) !important;
        font-size: 16px !important;
    }

    .product-add-to-cart .quantity-selector .qty-input {
        flex: 1 !important;
        height: 54px !important;
        text-align: center !important;
        background: transparent !important;
        border: none !important;
        color: #fff !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 0 !important;
        -moz-appearance: textfield !important;
    }
    
    .product-add-to-cart .btn-add-cart {
        order: 3 !important;
        flex: 1 !important;
        height: 54px !important;
        border-radius: 14px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25) !important;
        margin: 0 !important;
    }
    
    .product-page-wrapper {
        padding-bottom: 240px !important;
    }
}
