/*
 * ═══════════════════════════════════════════════════════════════
 * RESPONSIVE FIXES - Comprehensive Mobile & Tablet Optimization
 * إصلاحات شاملة للتصميم المتجاوب
 * ═══════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR Z-INDEX FIX - جعل السايدبار أعلى من الهيدر
   ═══════════════════════════════════════════════════════════════ */
.aiz-top-menu-sidebar {
    z-index: 9999 !important;
}

.aiz-top-menu-sidebar .overlay {
    z-index: 9998 !important;
}

.aiz-top-menu-sidebar .collapse-sidebar {
    z-index: 9999 !important;
    position: relative !important;
}

/* Ensure sidebar is above header */
header,
header.sticky-top,
.logo-bar-area,
.modern-header {
    z-index: 1020 !important;
}

.top-banner {
    z-index: 1035 !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV BAR - إصلاح لون الأيقونات
   ═══════════════════════════════════════════════════════════════ */
.aiz-mobile-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}


/* ═══════════════════════════════════════════════════════════════
   SIDEBAR Z-INDEX FIX - جعل السايدبار أعلى من الهيدر
   ═══════════════════════════════════════════════════════════════ */
.aiz-top-menu-sidebar {
    z-index: 9999 !important;
}

.aiz-top-menu-sidebar .overlay {
    z-index: 9998 !important;
}

.aiz-top-menu-sidebar .collapse-sidebar {
    z-index: 9999 !important;
    position: relative !important;
}

/* Ensure sidebar is above header */
header,
header.sticky-top,
.logo-bar-area,
.modern-header {
    z-index: 1020 !important;
}

.top-banner {
    z-index: 1035 !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV BAR - إصلاح لون الأيقونات
   ═══════════════════════════════════════════════════════════════ */
.aiz-mobile-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}


/* ═══════════════════════════════════════════════════════════════
   GLOBAL RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

/* Container Padding Fixes */
.container,
.container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

@media (max-width: 575.98px) {
    .container,
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER & NAVIGATION RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

/* Mobile Header (Small Screens) */
@media (max-width: 575.98px) {
    header {
        padding: 8px 0 !important;
    }

    .logo-bar-area {
        padding: 10px 0 !important;
    }

    .header-logo img,
    .header-logo-container img {
        max-height: 35px !important;
        height: auto !important;
    }

    /* Mobile Menu Button */
    .mobile-menu-toggle {
        padding: 6px !important;
        margin-right: 8px !important;
    }

    .mobile-menu-toggle svg {
        width: 24px !important;
        height: 24px !important;
    }

    /* Search Icon & Cart Icon */
    .d-lg-none a {
        padding: 6px !important;
    }

    .d-lg-none svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Cart Badge */
    .badge-primary {
        font-size: 9px !important;
        padding: 2px 5px !important;
        min-width: 16px !important;
        height: 16px !important;
        line-height: 1.2 !important;
    }
}

/* Tablet Header */
@media (min-width: 576px) and (max-width: 991.98px) {
    header {
        padding: 10px 0 !important;
    }

    .header-logo img {
        max-height: 40px !important;
    }
}

/* Menu Bar Responsive */
@media (max-width: 991.98px) {
    .modern-menu-bar {
        display: none !important;
    }

    .d-none.d-lg-block {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .modern-menu-bar {
        padding: 0 !important;
    }

    .modern-menu-bar .container {
        padding: 0 15px !important;
    }

    .header_menu_links {
        padding: 12px 16px !important;
        font-size: 13px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH BOX RESPONSIVE FIXES - إصلاح إظهار البحث
   ═══════════════════════════════════════════════════════════════ */

/*
  NOTE:
  The search toggle relies on `.front-header-search.active` (added via `data-toggle="class-toggle"`).
  Do NOT force-hide `.front-header-search` or `.modern-search-box` with `display:none !important;`
  otherwise the search overlay can never appear on mobile.
*/

/* Make the mobile search icon a 44x44 centered tap target */
header .modern-header a[data-toggle="class-toggle"][data-target=".front-header-search"] {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .hero-2026 {
        min-height: auto !important;
        padding: 40px 0 30px !important;
    }

    .hero-2026 .hero-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 16px !important;
    }

    .hero-2026 .hero-description {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
        padding: 0 10px !important;
    }

    .hero-2026 .hero-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        padding: 0 15px !important;
    }

    .hero-2026 .hero-buttons .btn-2026 {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    .hero-2026 .hero-image {
        margin-top: 20px !important;
    }

    .hero-2026 .hero-image img {
        max-width: 100% !important;
        border-radius: 16px !important;
    }

    .hero-2026 .floating-card {
        display: none !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-2026 {
        min-height: auto !important;
        padding: 60px 0 40px !important;
    }

    .hero-2026 .hero-title {
        font-size: 32px !important;
    }

    .hero-2026 .hero-description {
        font-size: 16px !important;
    }

    .hero-2026 .hero-buttons {
        justify-content: center !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT CARDS RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

/* Mobile Product Cards */
@media (max-width: 575.98px) {
    .products-grid-2026 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 8px !important;
    }

    .product-card-2026 {
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .product-card-2026 .card-image-wrapper {
        aspect-ratio: 1/1 !important;
    }

    .product-card-2026 .card-image-wrapper img {
        padding: 8px !important;
    }

    .product-card-2026 .card-info {
        padding: 12px !important;
        gap: 8px !important;
    }

    .product-card-2026 .card-title {
        font-size: 12px !important;
        line-height: 1.4 !important;
        height: auto !important;
        min-height: 34px !important;
        margin-bottom: 4px !important;
    }

    .product-card-2026 .card-rating {
        margin-bottom: 4px !important;
    }

    .product-card-2026 .card-rating .stars svg {
        width: 10px !important;
        height: 10px !important;
    }

    .product-card-2026 .card-rating .count {
        font-size: 9px !important;
    }

    .product-card-2026 .card-price {
        padding-top: 8px !important;
        margin-top: 8px !important;
        gap: 6px !important;
    }

    .product-card-2026 .price-current {
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    .product-card-2026 .price-old {
        font-size: 11px !important;
    }

    .product-card-2026 .card-badges {
        top: 6px !important;
        left: 6px !important;
        gap: 4px !important;
    }

    .product-card-2026 .badge-discount,
    .product-card-2026 .badge-new,
    .product-card-2026 .badge-hot {
        padding: 3px 6px !important;
        font-size: 9px !important;
    }

    .product-card-2026 .card-quick-actions {
        display: none !important;
    }

    .product-card-2026 .card-add-to-cart {
        padding: 10px !important;
        font-size: 11px !important;
        transform: translateY(0) !important;
        position: relative !important;
        opacity: 1 !important;
    }

    .product-card-2026:hover {
        transform: none !important;
    }
}

/* Tablet Product Cards */
@media (min-width: 576px) and (max-width: 991.98px) {
    .products-grid-2026 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
        padding: 0 12px !important;
    }

    .product-card-2026 .card-title {
        font-size: 14px !important;
    }

    .product-card-2026 .price-current {
        font-size: 16px !important;
    }
}

/* Desktop Product Cards */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .products-grid-2026 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

@media (min-width: 1200px) {
    .products-grid-2026 {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 24px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY CARDS RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    #featured_categories_section {
        padding: 0 8px !important;
    }

    #featured_categories_section > div {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .category-card-2026 {
        padding: 12px 8px !important;
        border-radius: 12px !important;
    }

    .category-card-2026 .category-icon {
        width: 50px !important;
        height: 50px !important;
        margin: 0 auto 8px !important;
    }

    .category-card-2026 .category-icon img {
        width: 32px !important;
        height: 32px !important;
    }

    .category-card-2026 .category-name {
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin-top: 4px !important;
    }

    .category-card-2026 .category-count {
        font-size: 9px !important;
        margin-top: 2px !important;
    }

    .category-card-2026:hover {
        transform: translateY(-4px) scale(1.02) !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    #featured_categories_section > div {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px !important;
    }

    .category-card-2026 {
        padding: 16px 12px !important;
    }

    .category-card-2026 .category-icon {
        width: 60px !important;
        height: 60px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FEATURE CARDS RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .features-2026 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 20px 8px !important;
    }

    .feature-card-2026 {
        flex-direction: column !important;
        text-align: center !important;
        padding: 12px 8px !important;
        border-radius: 12px !important;
    }

    .feature-card-2026 .feature-icon {
        width: 40px !important;
        height: 40px !important;
        margin: 0 auto 8px !important;
    }

    .feature-card-2026 .feature-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .feature-card-2026 .feature-content h4 {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }

    .feature-card-2026 .feature-content p {
        font-size: 10px !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .features-2026 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        padding: 30px 12px !important;
    }

    .feature-card-2026 {
        padding: 16px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .section-header-2026 {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-bottom: 20px !important;
        gap: 12px !important;
        padding: 0 8px !important;
    }

    .section-header-2026 .section-title-group {
        width: 100% !important;
    }

    .section-header-2026 .section-subtitle {
        font-size: 10px !important;
        letter-spacing: 1px !important;
        margin-bottom: 4px !important;
    }

    .section-header-2026 .section-subtitle::before {
        width: 16px !important;
        height: 2px !important;
    }

    .section-header-2026 .section-title {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    .section-header-2026 .section-link {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        font-size: 12px !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .section-header-2026 {
        margin-bottom: 24px !important;
        padding: 0 12px !important;
    }

    .section-header-2026 .section-title {
        font-size: 22px !important;
    }

    .section-header-2026 .section-link {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FLASH DEAL SECTION RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .flash-deal-2026 {
        padding: 20px 12px !important;
        border-radius: 16px !important;
        margin: 0 8px !important;
    }

    .flash-deal-2026 .flash-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-bottom: 16px !important;
        gap: 12px !important;
    }

    .flash-deal-2026 .flash-title h2 {
        font-size: 18px !important;
    }

    .flash-deal-2026 .flash-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .flash-deal-2026 .countdown-wrapper {
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .flash-deal-2026 .countdown-item {
        min-width: 60px !important;
        padding: 10px 8px !important;
        flex: 1 1 calc(25% - 6px) !important;
        max-width: calc(25% - 6px) !important;
    }

    .flash-deal-2026 .countdown-number {
        font-size: 18px !important;
    }

    .flash-deal-2026 .countdown-label {
        font-size: 9px !important;
        margin-top: 4px !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .flash-deal-2026 {
        padding: 30px 20px !important;
    }

    .flash-deal-2026 .flash-title h2 {
        font-size: 22px !important;
    }

    .flash-deal-2026 .countdown-item {
        min-width: 70px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER RESPONSIVE FIXES - إصلاح تخطيط الفوتر وتحسين المظهر
   ═══════════════════════════════════════════════════════════════ */

/* Footer Base Styles */
.footer-new {
    background: var(--brand-secondary-dark, #191c20) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 60px 0 30px !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Hide any unwanted elements in footer */
.footer-new .absolute-top-right,
.footer-new .absolute-top-left,
.footer-new [class*="icon-bg"]:not(.policy-section [class*="icon-bg"]) {
    display: none !important;
}

/* Remove any gray squares or unwanted icons */
.footer-new > .container > .row > [class*="col-"] > [style*="background"]:not(.social):not(.mt-3) {
    display: none !important;
}

/* Clean up footer layout - remove any empty or broken elements */
.footer-new .row > [class*="col-"]:empty {
    display: none !important;
}

/* Ensure proper spacing between footer sections */
.footer-new .row > [class*="col-lg-4"]:first-child {
    margin-bottom: 0 !important;
}

.footer-new .row > [class*="col-lg-2"] {
    margin-bottom: 0 !important;
}

/* Fix links styling */
.footer-new a {
    transition: all 0.3s ease !important;
}

.footer-new a:hover {
    color: #e21d1d !important;
    text-decoration: none !important;
}

/* Improve contact info display */
.footer-new .col-lg-4:last-child p {
    margin-bottom: 10px !important;
    line-height: 1.8 !important;
}

.footer-new .col-lg-4:last-child a {
    color: rgba(255, 255, 255, 0.8) !important;
    word-break: break-word !important;
}

.footer-new .col-lg-4:last-child a:hover {
    color: #e21d1d !important;
}

.footer-new .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* Footer Grid Layout Fixes */
.footer-new .row,
.footer-modern .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    align-items: flex-start !important;
}

.footer-new .row > [class*="col-"],
.footer-modern .row > [class*="col-"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
    position: relative !important;
}

/* Footer Typography */
.footer-new h6 {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.footer-new p.text-light,
.footer-new .text-light {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin-bottom: 12px !important;
}

.footer-new ul.list-unstyled {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-new ul.list-unstyled li {
    margin-bottom: 12px !important;
}

.footer-new ul.list-unstyled li a {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.footer-new ul.list-unstyled li a:hover {
    color: #e21d1d !important;
    padding-right: 8px !important;
    transform: translateX(-4px) !important;
}

[dir="rtl"] .footer-new ul.list-unstyled li a:hover {
    padding-right: 0 !important;
    padding-left: 8px !important;
    transform: translateX(4px) !important;
}

/* Footer Logo */
.footer-new .col-lg-4:first-child img {
    max-height: 50px !important;
    height: auto !important;
    margin-bottom: 16px !important;
}

/* Social Links */
.footer-new .social {
    display: flex !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

.footer-new .social .list-inline-item {
    margin: 0 !important;
}

.footer-new .social .list-inline-item a {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.footer-new .social .list-inline-item a:hover {
    background: #e21d1d !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(226, 29, 29, 0.4) !important;
}

/* App Store Buttons */
.footer-new .col-lg-4:last-child .mt-3 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 20px !important;
}

.footer-new .col-lg-4:last-child .mt-3 img {
    height: 44px !important;
    width: auto !important;
    border-radius: 8px !important;
    transition: transform 0.3s ease !important;
}

.footer-new .col-lg-4:last-child .mt-3 img:hover {
    transform: scale(1.05) !important;
}

/* Copyright */
.footer-new .row.mt-4 {
    margin-top: 40px !important;
    padding-top: 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-new .row.mt-4 .col-12 {
    text-align: center !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 13px !important;
}

/* Mobile Footer (Small Screens) */
@media (max-width: 575.98px) {
    .footer-modern,
    .footer-new {
        padding: 40px 0 30px !important;
    }

    .footer-modern .container,
    .footer-new .container {
        padding: 0 15px !important;
    }

    /* Force columns to full width on mobile */
    .footer-new .row > [class*="col-lg-"],
    .footer-new .row > [class*="col-md-"],
    .footer-new .row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-bottom: 32px !important;
        text-align: center !important;
    }

    .footer-new .row > [class*="col-lg-"]:last-child,
    .footer-new .row > [class*="col-md-"]:last-child,
    .footer-new .row > [class*="col-"]:last-child {
        margin-bottom: 0 !important;
    }

    .footer-modern .footer-brand,
    .footer-new .footer-brand {
        text-align: center !important;
        margin-bottom: 24px !important;
    }

    .footer-modern .footer-brand img,
    .footer-new .footer-brand img {
        max-height: 45px !important;
        margin: 0 auto !important;
    }

    .footer-modern .brand-desc,
    .footer-new .brand-desc,
    .footer-new p.text-light {
        font-size: 13px !important;
        line-height: 1.7 !important;
        margin-top: 16px !important;
        text-align: center !important;
        max-width: 100% !important;
    }

    .footer-new h6 {
        font-size: 15px !important;
        margin-bottom: 16px !important;
        text-align: center !important;
        font-weight: 700 !important;
    }

    .footer-new ul.list-unstyled {
        text-align: center !important;
        display: inline-block !important;
    }

    .footer-new ul.list-unstyled li {
        margin-bottom: 10px !important;
        text-align: center !important;
    }

    .footer-new ul.list-unstyled li a {
        font-size: 13px !important;
        text-align: center !important;
    }

    .footer-modern .footer-apps,
    .footer-new .footer-apps {
        text-align: center !important;
        margin-top: 24px !important;
    }

    .footer-modern .app-btn,
    .footer-new .app-btn {
        width: 150px !important;
        margin: 0 auto 12px !important;
        padding: 8px 12px !important;
    }

    .footer-modern .app-btn img,
    .footer-new .app-btn img {
        height: 40px !important;
    }

    .footer-modern .social,
    .footer-new .social {
        justify-content: center !important;
        margin-top: 24px !important;
    }

    .footer-modern .social .list-inline-item a,
    .footer-new .social .list-inline-item a {
        width: 38px !important;
        height: 38px !important;
        margin: 0 6px !important;
    }

    /* Contact section */
    .footer-new .col-lg-4.text-lg-left {
        text-align: center !important;
    }

    .footer-new .col-lg-4:last-child .mt-3 {
        justify-content: center !important;
    }

    .policy-section {
        padding: 24px 12px !important;
    }

    .policy-section .policy-card {
        padding: 16px !important;
        margin-bottom: 12px !important;
    }

    .policy-section .icon-bg {
        width: 48px !important;
        height: 48px !important;
        margin-bottom: 12px !important;
    }

    .policy-section h3 {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    .policy-section p {
        font-size: 12px !important;
    }
}

/* Tablet Footer (Medium Screens) */
@media (min-width: 576px) and (max-width: 991.98px) {
    .footer-modern,
    .footer-new {
        padding: 50px 0 35px !important;
    }

    /* Two columns layout on tablet */
    .footer-new .row > .col-lg-4:first-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 40px !important;
        text-align: center !important;
    }

    .footer-new .row > .col-lg-2 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 30px !important;
        text-align: center !important;
    }

    .footer-new .row > .col-lg-4:last-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-top: 20px !important;
        text-align: center !important;
    }

    .footer-modern .footer-brand,
    .footer-new .footer-brand {
        text-align: center !important;
    }

    .footer-new h6 {
        font-size: 16px !important;
        margin-bottom: 18px !important;
        text-align: center !important;
    }

    .footer-new ul.list-unstyled {
        text-align: center !important;
    }

    .footer-new ul.list-unstyled li {
        text-align: center !important;
    }

    .footer-new .col-lg-4.text-lg-left {
        text-align: center !important;
    }

    .footer-new .col-lg-4:last-child .mt-3 {
        justify-content: center !important;
    }
}

/* Desktop Footer (Large Screens) */
@media (min-width: 992px) {
    .footer-new {
        padding: 70px 0 40px !important;
    }

    .footer-new .row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
    }

    /* First column - Logo & About */
    .footer-new .row > .col-lg-4:first-child {
        flex: 0 0 30% !important;
        max-width: 30% !important;
        text-align: right !important;
        padding-right: 20px !important;
    }

    [dir="rtl"] .footer-new .row > .col-lg-4:first-child {
        text-align: left !important;
        padding-right: 15px !important;
        padding-left: 20px !important;
    }

    /* Middle columns - Links & Services */
    .footer-new .row > .col-lg-2 {
        flex: 0 0 18% !important;
        max-width: 18% !important;
        text-align: right !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    [dir="rtl"] .footer-new .row > .col-lg-2 {
        text-align: left !important;
    }

    /* Last column - Contact */
    .footer-new .row > .col-lg-4:last-child {
        flex: 0 0 34% !important;
        max-width: 34% !important;
        text-align: right !important;
        padding-left: 20px !important;
    }

    [dir="rtl"] .footer-new .row > .col-lg-4:last-child {
        text-align: left !important;
        padding-left: 15px !important;
        padding-right: 20px !important;
    }

    .footer-new h6 {
        text-align: right !important;
        margin-bottom: 20px !important;
    }

    [dir="rtl"] .footer-new h6 {
        text-align: left !important;
    }

    .footer-new ul.list-unstyled {
        text-align: right !important;
    }

    [dir="rtl"] .footer-new ul.list-unstyled {
        text-align: left !important;
    }

    .footer-new .col-lg-4.text-lg-left {
        text-align: right !important;
    }

    [dir="rtl"] .footer-new .col-lg-4.text-lg-left {
        text-align: left !important;
    }

    /* Ensure columns are side by side */
    .footer-new .row > [class*="col-lg-"] {
        display: block !important;
        float: none !important;
    }
}

/* Extra Large Screens */
@media (min-width: 1200px) {
    .footer-new .container {
        max-width: 1140px !important;
    }

    .footer-new .row > .col-lg-4:first-child {
        flex: 0 0 28% !important;
        max-width: 28% !important;
    }

    .footer-new .row > .col-lg-2 {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }

    .footer-new .row > .col-lg-4:last-child {
        flex: 0 0 32% !important;
        max-width: 32% !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .btn-2026 {
        padding: 10px 16px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
    }

    .btn-primary-2026,
    .btn-secondary-2026,
    .btn-ghost-2026 {
        width: 100% !important;
        max-width: 100% !important;
    }

    .btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
    }

    .btn-primary,
    .btn-secondary {
        width: 100% !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .btn-2026 {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FORMS RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .form-control {
        padding: 10px 14px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .form-group label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }

    .newsletter-2026 {
        padding: 30px 15px !important;
        border-radius: 16px !important;
        margin: 0 8px !important;
    }

    .newsletter-2026 h2 {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }

    .newsletter-2026 p {
        font-size: 13px !important;
        margin-bottom: 20px !important;
    }

    .newsletter-2026 .newsletter-form {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .newsletter-2026 .newsletter-input {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    .newsletter-2026 .newsletter-btn {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MODAL RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }

    .modal-content {
        border-radius: 16px !important;
    }

    .modal-header {
        padding: 16px !important;
        border-bottom: 1px solid #e8eaf0 !important;
    }

    .modal-header .close {
        font-size: 24px !important;
        padding: 8px !important;
    }

    .modal-body {
        padding: 16px !important;
    }

    .modal-footer {
        padding: 12px 16px !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .modal-footer .btn {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TABLES RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 767.98px) {
    .table-responsive {
        border-radius: 12px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .table-modern {
        min-width: 600px !important;
    }

    .table-modern thead th {
        padding: 10px 12px !important;
        font-size: 11px !important;
    }

    .table-modern tbody td {
        padding: 12px !important;
        font-size: 13px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CARDS RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .card,
    .aiz-card {
        border-radius: 12px !important;
        margin-bottom: 12px !important;
    }

    .card-header {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    .card-body {
        padding: 16px !important;
    }

    .card-footer {
        padding: 12px 16px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .pagination {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    .pagination .page-link {
        min-width: 36px !important;
        min-height: 36px !important;
        line-height: 36px !important;
        font-size: 12px !important;
        padding: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMB RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .breadcrumb {
        font-size: 11px !important;
        padding: 8px 0 !important;
        flex-wrap: wrap !important;
    }

    .breadcrumb-item {
        padding: 0 4px !important;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 4px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ALERTS RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .alert {
        padding: 12px 16px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }

    .alert-success,
    .alert-danger,
    .alert-warning,
    .alert-info {
        border-left-width: 3px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   NAV TABS RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .nav-tabs {
        flex-wrap: wrap !important;
        border-radius: 12px !important;
        padding: 4px !important;
    }

    .nav-tabs .nav-item {
        flex: 1 1 auto !important;
        min-width: calc(50% - 4px) !important;
        margin: 2px !important;
    }

    .nav-tabs .nav-link {
        padding: 8px 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        text-align: center !important;
    }

    .tab-content {
        padding: 16px 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DROPDOWN MENU RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    .dropdown-menu {
        max-width: calc(100vw - 30px) !important;
        margin-top: 8px !important;
        border-radius: 12px !important;
        padding: 8px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    }

    .dropdown-item {
        padding: 10px 14px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   BACK TO TOP BUTTON RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    #back-to-top,
    .back-to-top {
        width: 40px !important;
        height: 40px !important;
        right: 12px !important;
        bottom: 70px !important;
        border-radius: 50% !important;
    }

    [dir="rtl"] #back-to-top,
    [dir="rtl"] .back-to-top {
        left: 12px !important;
        right: auto !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE SIDEBAR RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    .aiz-top-menu-sidebar .collapse-sidebar {
        width: 85% !important;
        max-width: 320px !important;
    }

    .aiz-top-menu-sidebar .sidebar-user-section {
        padding: 20px 16px !important;
    }

    /* Mobile sidebar close button sizing + centering */
    .aiz-top-menu-sidebar button.btn.hide-top-menu-bar {
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Guest auth buttons container: center items + tighten gap */
    .aiz-top-menu-sidebar .sidebar-user-section .d-grid.gap-2.d-flex.justify-content-center {
        align-items: center !important;
        gap: 5px !important;
    }

    .aiz-top-menu-sidebar .header_menu_links {
        padding: 12px 16px !important;
        font-size: 13px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   COLOR CONTRAST FIXES FOR MOBILE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
    /* Ensure text is readable on mobile */
    body {
        color: #1a1a1a !important;
        background: #ffffff !important;
    }

    /* Header text contrast */
    header,
    .modern-header {
        background: #191c20 !important;
    }

    header .text-white,
    .modern-header .text-white {
        color: #ffffff !important;
    }

    /* Button contrast */
    .btn-primary,
    .btn-primary-2026 {
        background: linear-gradient(135deg, #e21d1d 0%, #ff4757 100%) !important;
        color: #ffffff !important;
        border: none !important;
    }

    .btn-primary:hover,
    .btn-primary-2026:hover {
        background: linear-gradient(135deg, #c91515 0%, #e21d1d 100%) !important;
        color: #ffffff !important;
    }

    /* Link colors */
    a {
        color: #e21d1d !important;
    }

    a:hover {
        color: #c91515 !important;
    }

    /* Card backgrounds */
    .card,
    .aiz-card,
    .product-card-2026 {
        background: #ffffff !important;
        border-color: #e8eaf0 !important;
    }

    /* Text colors */
    .text-dark,
    .text-dark-custom {
        color: #1a1a1a !important;
    }

    .text-secondary {
        color: #64748b !important;
    }

    .text-muted {
        color: #94a3b8 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SPACING FIXES FOR MOBILE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    /* Section spacing */
    section {
        padding: 30px 0 !important;
    }

    /* Container spacing */
    .container > section,
    .container > div {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Margin fixes */
    .mb-4 {
        margin-bottom: 16px !important;
    }

    .mb-5 {
        margin-bottom: 20px !important;
    }

    .mt-4 {
        margin-top: 16px !important;
    }

    .mt-5 {
        margin-top: 20px !important;
    }

    /* Padding fixes */
    .p-4 {
        padding: 16px !important;
    }

    .p-5 {
        padding: 20px !important;
    }

    .px-4 {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .py-4 {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RTL SUPPORT FOR RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 575.98px) {
    [dir="rtl"] .hero-2026 .hero-content {
        text-align: right !important;
    }

    [dir="rtl"] .section-header-2026 {
        align-items: flex-end !important;
    }

    [dir="rtl"] .section-header-2026 .section-link {
        flex-direction: row-reverse !important;
    }

    [dir="rtl"] .product-card-2026 .card-badges {
        right: 6px !important;
        left: auto !important;
    }

    [dir="rtl"] .flash-deal-2026 .flash-header {
        flex-direction: row-reverse !important;
    }

    [dir="rtl"] .footer-modern .footer-brand,
    [dir="rtl"] .footer-new .footer-brand {
        text-align: right !important;
    }

    [dir="rtl"] .footer-modern .brand-desc,
    [dir="rtl"] .footer-new .brand-desc {
        text-align: right !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES FOR RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Hide on mobile */
@media (max-width: 575.98px) {
    .d-mobile-none {
        display: none !important;
    }
}

/* Show only on mobile */
@media (min-width: 576px) {
    .d-mobile-only {
        display: none !important;
    }
}

/* Hide on tablet */
@media (min-width: 576px) and (max-width: 991.98px) {
    .d-tablet-none {
        display: none !important;
    }
}

/* Show only on tablet */
@media (max-width: 575.98px), (min-width: 992px) {
    .d-tablet-only {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════ */

@media print {
    header,
    footer,
    .btn,
    .modal,
    .dropdown-menu {
        display: none !important;
    }

    body {
        color: #000 !important;
        background: #fff !important;
    }
}
