/* =============================================================
   RESPONSIVE CSS — Smart Taps Landing Page
   Breakpoints: 1200 / 1024 / 768 / 576 / 375
   CSS-only, no JavaScript, Production-Ready
   ============================================================= */

/* =============================================================
   1. LARGE SCREENS  (max-width: 1200px)
   ============================================================= */
@media (min-width: 1200px) {

  /* ---------- Container ---------- */
  h2{
    font-size: 3rem;
  }
  h6{
    font-size: 1.5rem;
  }

  .mobile-bottom-nav{
  display: none;
}
.custom_nav-container .navbar-toggler span::before, .custom_nav-container .navbar-toggler span::after{
  background-color: #000;
}
.custom_nav-container .navbar-toggler span{
  background-color: #000;
}
.language-selector {
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.language-selector span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 42px;
    padding: 0 18px;
    border-radius: 50px;
    cursor: pointer;
    user-select: none;

    color: #fff;
    font-size: 15px;
    font-weight: 600;

    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition: all .3s ease;
}

.language-selector span:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.language-selector span:active {
    transform: scale(.97);
}

  /* ---------- Navbar ---------- */
  .custom_nav-container .navbar-nav {
    padding-left: 10%;
    gap: 2px;
  }

  /* .custom_nav-container .navbar-nav .nav-item .nav-link {
    padding: 5px 14px;
    font-size: 1.2rem;
  } */
   
  body.lang-ar .custom_nav-container .navbar-nav .nav-item .nav-link {
    padding: 5px 14px;
    font-size: 1.2rem;
}

body.lang-en .custom_nav-container .navbar-nav .nav-item .nav-link {
    padding: 1px 16px;
    font-size: 1rem;
}
  .language-selector span{
    font-size: 1.2rem;
  }

  .navbar-brand span img {
    height: 85px !important;
    width: 210px !important;
    margin-inline-start: -60px !important;
  }

  /* ---------- Hero Area ---------- */
  .hero_area .bg-box {
    height: 700px;
  }

  .hero_area .bg-box img.lang {
    width: 45vw;
  }

  /* ---------- Slider ---------- */
  .slider_section {
    width: 90%;
    max-width: 1100px;
  }

  .slider_section .detail-box h1 {
    font-size: 3rem;
  }

  /* ---------- Product Grid — 3 cols → slightly smaller ---------- */
  #userProductGrid{
    max-width: 1200px;
    margin: 0 auto;
  }
  /* .product_section .container{
    max-width: 1000px;
  } */
  .product_section .box .img-box{
    height: 310px;
  }
  .product_section .box {
    max-width: 410px;
    height: 640px;
  }
  .product_section .detail-box h5{
    margin-bottom: 3px;
    font-size: 1.8rem;
  }

  .product_section .box .detail-box p{
    font-size: 1.15rem;
  }
.product_section .container {
    max-width: 1200px;

}

.product-item {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 0 10px;
    box-sizing: border-box;
}
  .product_section .heading_container h2 {
    font-size: 2rem;
  }

  .size-selector{
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  .product_section .box .detail-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    height: 350px;
    padding: 22px 18px;
  }
  .product_section .box .options a{
    width: 50px;
    height: 50px;
  }
  .color-options{
    gap: 3px;
    max-width: 135px;
  }
  
  .color-btn{
    width: 25px;
    height: 25px;
  }
  .mb-4, .my-4{
    font-size: 1.5rem;
  }

  .bundle-title{
    font-size: 2rem;
  }
  .bundle-img-item img{
    width: 100px;
    height: 100px;
  }
  small, .small{
    font-size: 1.5rem;
  }
  .plus-sign{
    font-size: 2.5rem;
  }
  .btn-order{
    font-size: 1.5rem;
  }
  h5, .h5{
    font-size: 2rem;
  }
  .worth-badge{
    font-size: 1.2rem;
  }
  /* ---------- Filters ---------- */
  .filters_menu {
    gap: 10px;
  }

  .filters_menu li {
    padding: 7px 20px;
    font-size: 1.2rem;
  }

  /* ---------- About / Environment ---------- */
  .about_section,
  .environment_section {
    max-width: 1100px;
    padding: 45px;
  }

  .about_section .heading_container h2,
  .environment_section .heading_container h2 {
    font-size: 28px;
    padding: 0;
  }
  .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;

        height: 75px;
        background: #fff;

        border-top: 1px solid #e5e5e5;
        box-shadow: 0 -4px 15px rgba(0,0,0,.08);

        z-index: 9999;
    }

    .mobile-bottom-nav .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        color: #333;
        text-decoration: none;
        font-size: 13px;
        gap: 6px;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 22px;
    }
    .mobile-bottom-nav .nav-item.active i,
    .mobile-bottom-nav .nav-item.active span {
        background: #333;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .mobile-bottom-nav .nav-item.active i:active,
    .mobile-bottom-nav .nav-item.active span:active {
        background: linear-gradient(to right, #70c896, #2b74a8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .cart-icon-wrapper {
        position: relative;
    }

    .cart-badge {
        position: absolute;
        top: -8px;
        right: -10px;

        background: linear-gradient(to right, #70c896, #2b74a8);
        color: #fff;

        width: 18px;
        height: 18px;

        border-radius: 50%;

        font-size: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* حتى لا يغطي الشريط على المحتوى */
    body {
        padding-bottom: 85px;
    }

  /* ---------- Templates Slider ---------- */
    
  .templates-container {
      display: flex;
      gap: 20px;
      overflow-x: auto;
      padding: 20px 0;
      align-items: center;
  }

  .template-card {
      flex: 0 0 140px;
      height: 280px;
      border-radius: 20px;
      overflow: hidden;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  /* ---------- Footer ---------- */
  .footer_section .footer_social a {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

}

@media (min-width: 1024px) {
    .templates-container {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        padding: 20px 0;
        align-items: center;
    }

    .template-card {
        flex: 0 0 140px;
        height: 280px;
        border-radius: 20px;
        overflow: hidden;
    }
}

/* =============================================================
   2. LAPTOP  (max-width: 1024px)
   ============================================================= */
@media (max-width: 1024px) {

  /* ---------- Container ---------- */
    .container,
  .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  h2{
    font-size: 3rem;
  }
  h5{
    font-size: 1.8rem;
  }
  h6{
    font-size: 1.8rem;
  }
  .custom_nav-container .navbar-toggler[aria-expanded="false"] span, .custom_nav-container .navbar-toggler[aria-expanded="false"] span::before, .custom_nav-container .navbar-toggler[aria-expanded="false"] span::after, .custom_nav-container .navbar-toggler.collapsed span, .custom_nav-container .navbar-toggler.collapsed span::before, .custom_nav-container .navbar-toggler.collapsed span::after{
    background-color: #000000;
  }
  .custom_nav-container .navbar-toggler span::before, .custom_nav-container .navbar-toggler span::after{
    background-color: #000;
  }
  .custom_nav-container .navbar-toggler span{
    background-color: #000;
  }
  
  .swiper-slide{
    height: 250px;
    max-height: 450px;
  }


  /* ---------- Navbar ---------- */
  .custom_nav-container .navbar-nav {
    padding-left: 5%;
    gap: 0;
  }

  .custom_nav-container .navbar-nav .nav-item .nav-link {
    padding: 5px 10px;
    font-size: 1.2rem;
  }
  .navbar-brand{
    margin-right: -40px;
  }

  .navbar-brand span img {
    height: 100px !important;
    width: 220px !important;
    margin-inline-start: -30px !important;
  }
  
  .main-swiper img{
    height: 200px;
  }

  .user_option .order_online {
    padding: 10px 20px;
    font-size: 0.82rem;
  }

  .language-selector {
    margin-left: 10px;
  }
  .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;

        height: 75px;
        background: #fff;

        border-top: 1px solid #e5e5e5;
        box-shadow: 0 -4px 15px rgba(0,0,0,.08);

        z-index: 9999;
    }

    .mobile-bottom-nav .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        color: #333;
        text-decoration: none;
        font-size: 13px;
        gap: 6px;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 22px;
    }

    .mobile-bottom-nav .nav-item.active i,
    .mobile-bottom-nav .nav-item.active span {
        background: linear-gradient(to right, #70c896, #2b74a8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .cart-icon-wrapper {
        position: relative;
    }

    .cart-badge {
        position: absolute;
        top: -8px;
        right: -10px;

        background: linear-gradient(to right, #70c896, #2b74a8);
        color: #fff;

        width: 18px;
        height: 18px;

        border-radius: 50%;

        font-size: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body {
        padding-bottom: 85px;
    }

  /* ---------- Hero Area ---------- */
  .hero_area {
      padding-top: 30px;
      min-height: 500px;
  }

  .hero_area .bg-box {
    min-height: 500px;
    height: 650px;
  }

  .hero_area .bg-box img.lang {
    width: 42vw;
  }

  /* ---------- Slider ---------- */
  .slider_section{
    width: 100%;
    height: 450px;
    max-height: 700px;
  }

  .slider_section .carousel-indicators {
    justify-content: center;
    margin-top: -13px;
  }
  .col-md-7{
    flex: 0 0 90%;
    max-width: 90%;
    margin: auto;
  }
  .slider_section .detail-box{
    margin-bottom: 100px;
    max-width: 625px;
  }

  .slider_section .detail-box h1 {
    font-size: 3rem;
    line-height: 1.3;
  }

  .slider_section .detail-box p {
    font-size: 1.25rem;
    line-height: 1.65;
  }

  .slider_section .detail-box a {
    padding: 10px 35px;
    font-size: 1.5rem;
  }

  /* ---------- Product Grid — 3 cols stays, tighter ---------- */
  .row{
    justify-content: center;
  }
  .product_section .box {
    max-width: 400px;
    height: 640px;
  }

  .color-btn{
    width: 35px;
    height: 35px;
  }
  .product_section .box .img-box {
    height: 280px;
  }

  .product_section .box .img-box img {
    max-width: 195px;
  }

  .product_section .box .detail-box {
    height: 365px;
    padding: 22px 18px;

  }
  .color-options{
    gap: 5px;
    max-width: 185px;
  }
  .product_section .box .options a{
    width: 60px;
    height: 60px;
  }
  .options a svg{
    width: 35px;
    height: 35px;
  }

  .product_section .box .detail-box p {
    font-size: 1.2rem;
  }

  .product_section .detail-box h5 {
    font-size: 2.2rem;
  }

  #userProductGrid {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    #userProductGrid .product-item {
        flex: 0 0 calc(50% - 20px) !important;
        max-width: calc(50% - 20px) !important;
        width: calc(50% - 20px) !important;
        margin: 10px !important;
        padding-right: 10px;
    }

  .size-selector{
    font-size: 1.7rem;
  }
    .size-btn {
    padding: 9px 20px;
    font-size: 1.2rem;
  }

  .product_section .filters_menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 10px;
    padding: 10px 20px;
    margin: 0;
    scrollbar-width: none;
  }

  .product_section .filters_menu::-webkit-scrollbar {
    display: none;
  }

  .product_section .filters_menu li {
    font-size: 2.3rem;
    flex: 0 0 auto;
    min-width: auto;
  }

  .product_section .heading_container h2 {
    font-size: 3.8rem;
  }

  /* ---------- Filters ---------- */
  .filters_menu {
    gap: 8px;
  }

  .filters_menu li {
    padding: 6px 16px;
    font-size: 1rem;
  }

  /* ---------- Bundles ---------- */
  .mb-4, .my-4{
    font-size: 1rem;
  }
  .swiper {
    height: 230px;
  }
  .bundle-title{
    font-size: 2.7rem;
  }
  small{
    font-size: 1.3rem;
    padding: 20px;
  }
  .small{
    font-size: 1.5rem;
  }

  .bundle_box .img-box {
    height: 230px;
  }
  .btn-order{
    font-size: 1.5rem;
  }
  .worth-badge{
    font-size: 1.1rem;
  }
  .bundle-img-item img{
    width: 80px;
    height: 80px;
  }

  /* ---------- About / Environment ---------- */
  .about_section,
  .environment_section {
    max-width: 950px;
    margin: 30px auto;
    padding: 35px;
  }

  .about_section .heading_container h2,
  .environment_section .heading_container h2 {
    font-size: 26px;
  }

  .about_section .detail-box p,
  .environment_section .detail-box p {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .language-selector span{
  font-size: 1.2rem;
}
  /* ---------- Templates Slider ---------- */
  
  .templates-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    align-items: center;
}

.template-card {
    flex: 0 0 140px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
}

.template-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

  /* ---------- Footer ---------- */
  .footer_section {
    padding: 60px 0 35px;
  }

  .footer_section h4 {
    font-size: 24px;
  }
}
.mobile-bottom-nav{
  display: none;
}


/* =============================================================
   3. TABLET  (max-width: 768px)
   ============================================================= */
@media (max-width: 768px) {

  /* ---------- Base ---------- */
  html {
    font-size: 15px;
  }

  body {
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }

  h2{
    font-size: 2.7rem;
    font-weight: bold;
  }

  h5{
    font-size: 1.5rem;
  }

  h6{
    font-size: 1.5rem;
  }
  small{
    font-size: 1.15rem;
  }
  .user_option .cart_link svg{
    fill: #000;
  }

  /* ---------- Container ---------- */
  .container,
  .container-fluid {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .custom_nav-container .navbar-toggler[aria-expanded="false"] span, .custom_nav-container .navbar-toggler[aria-expanded="false"] span::before, .custom_nav-container .navbar-toggler[aria-expanded="false"] span::after, .custom_nav-container .navbar-toggler.collapsed span, .custom_nav-container .navbar-toggler.collapsed span::before, .custom_nav-container .navbar-toggler.collapsed span::after{
    background-color: #000000;
  }

  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .footer-dropdown summary {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 0;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .footer-dropdown summary::-webkit-details-marker {
    display: none;
  }

  .footer-dropdown summary::after {
    content: '\002B';
    font-size: 1.2rem;
    line-height: 1;
  }

  .footer-dropdown[open] summary::after {
    content: '\2212';
  }

  .footer_section .footer_contact>strong {
    display: none;
  }

  /* ---------- Navbar — mobile-friendly collapse ---------- */
  .header_section {
    padding: 8px 0;
    border-radius: 0 0 15px 15px;
  }

  .navbar-brand span img {
    height: 65px !important;
    width: 160px !important;
    margin-inline-start: -20px !important;
  }

  /* Collapse sidebar */
  .navbar-collapse {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    transition: right 0.35s ease-in-out;
    display: flex !important;
    flex-direction: column;
    padding: 80px 20px 30px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    right: 0;
  }
  

  .custom_nav-container .navbar-nav {
    padding-left: 0;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
    gap: 0;
  }

  .custom_nav-container .navbar-nav .nav-item {
    width: 100%;
    margin: 6px 0;
  }

  .custom_nav-container .navbar-nav .nav-item .nav-link {
    padding: 12px 0 !important;
    color: #333 !important;
    font-size: 1rem;
    white-space: normal;
    border-bottom: 1px solid #f0f0f0;
  }

  .navbar-nav .dropdown-toggle {
    justify-content: flex-start;
  }

  .nav-item.dropdown .dropdown-menu {
    display: none;
    position: static !important;
    float: none;
    width: 100%;
    margin-top: 6px;
    border: none;
    border-radius: 12px;
    padding: 6px 0;
    background: #f8f9fc;
    box-shadow: none;
    overflow: hidden;
  }

  .nav-item.dropdown.show .dropdown-menu,
  .nav-item.dropdown .dropdown-menu.show {
    display: block;
  }

.nav-item.dropdown .dropdown-menu .dropdown-item {
    padding: 10px 18px 10px 28px;
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
    color: #333;
    transition: all 0.25s ease;
    display: block;
    width: 100%;
    border-bottom: 1px solid #eef0f4;
}

/* English */
html[lang="en"] .nav-item.dropdown .dropdown-menu .dropdown-item {
    direction: ltr;
    text-align: left;
    padding: 10px 28px 10px 18px;
}

/* Arabic */
html[lang="ar"] .nav-item.dropdown .dropdown-menu .dropdown-item {
    direction: rtl;
    text-align: right;
    padding: 10px 18px 10px 28px;
}

.nav-item.dropdown .dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

  .nav-item.dropdown .dropdown-menu .dropdown-item:hover {
    background-color: #f5f7ff;
    color: #1f3cff;
  }

  .user_option {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
  }

  .user_option a,
  .user_option form {
    margin: 8px 0 !important;
  }

  .user_option .order_online {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    background: linear-gradient(to right, #70c896, #2b74a8);
  }
  .fa-solid,
.fas {
    background: #000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

  .language-selector {
    margin-left: 0;
    margin-top: 15px;
    width: 100%;
  }

  .language-selector span {
    display: inline-block;
    width: auto;
  }

  .custom_nav-container .navbar-toggler {
    z-index: 10000;
    padding: 4px 8px;
  }

.custom_nav-container .navbar-toggler {
    position: relative;
    z-index: 99999 !important;
}

.custom_nav-container .navbar-toggler[aria-expanded="true"] {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999 !important;
}

.custom_nav-container .navbar-toggler[aria-expanded="true"] span,
.custom_nav-container .navbar-toggler[aria-expanded="true"] span::before,
.custom_nav-container .navbar-toggler[aria-expanded="true"] span::after {
    background-color: #000 !important;
}

  .header_section.scrolled .navbar-toggler span,
  .header_section.scrolled .navbar-toggler span::before,
  .header_section.scrolled .navbar-toggler span::after {
    background-color: #333;
  }

  .summary-sticky-bottom {
        bottom: 90px; /* 75px + 15px */
    }
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    display: flex;
    justify-content: space-around;
    align-items: center;

    height: 72px;
    padding: 6px 8px;

    background: #fff;
    border-top: 1px solid #ececec;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.08);

    z-index: 9999;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: #555;

    gap: 4px;
    padding: 8px 4px;
    border-radius: 14px;

    transition: all .25s ease;
}

.mobile-bottom-nav .nav-item i {
    font-size: 22px;
    transition: all .25s ease;
}

.mobile-bottom-nav .nav-item span {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-bottom-nav .nav-item:hover {
    background: rgba(43, 116, 168, 0.08);
}

.mobile-bottom-nav .nav-item.active {
    background: rgba(112, 200, 150, 0.12);
}

.mobile-bottom-nav .nav-item.active i,
.mobile-bottom-nav .nav-item.active span {
    background: linear-gradient(90deg, #70c896, #2b74a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.mobile-bottom-nav .nav-item.active i {
    transform: scale(1.12);
}
.mobile-bottom-nav .nav-item span {
    font-size: 11px;
    line-height: 1.15;
    text-align: center;

    white-space: normal;
    word-break: break-word;
    max-width: 70px;
}

    .cart-icon-wrapper {
        position: relative;
    }

    /* .cart-badge {
        position: absolute;
        top: -8px;
        right: -10px;

        background: linear-gradient(to right, #70c896, #2b74a8);
        color: #fff;

        width: 18px;
        height: 18px;

        border-radius: 50%;

        font-size: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
    } */

    /* حتى لا يغطي الشريط على المحتوى */
    body {
        padding-bottom: 85px;
    }

  /* ---------- Hero Area ---------- */
  .hero_area {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 50px;
    height: 35rem;
  }

  .hero_area .bg-box {
    height: 100%;
  }

  .hero_area .bg-box img:first-child {
    object-position: center top;
  }

  .hero_area .bg-box img.lang {
    width: 80vw;
    min-width: unset;
    opacity: 0.2;
  }

  /* ---------- Slider ---------- */
  .slider_section {
    width: 100%;
    max-width: 100%;
    padding: 20px 15px 50px;
    text-align: center;
  }

  .slider_section .row {
    flex-direction: column-reverse;
  }

  .slider_section .detail-box {
    margin-bottom: auto;
  }

  .slider_section .detail-box h1 {
    font-size: 2.2rem;
    line-height: 1.35;
  }

  .slider_section .detail-box p {
    font-size: 0.92rem;
    line-height: 1.7;
    text-align: start;
  }

  .slider_section .detail-box a {
    padding: 10px 30px;
    font-size: 1rem;
  }

  .slider_section .carousel-indicators {
    justify-content: center;
    margin-top: -13px;
  }

  /* ---------- Search ---------- */
  .search-form {
    width: 100%;
    margin-top: 15px;
  }

  /* ---------- Product Grid — 2 columns ---------- */
  #userProductGrid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center;
    margin: 0 -6px;
  }

  .product-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 6px;
  }


  .filters_menu {
    gap: 8px;
  }

  .product_section .filters_menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 10px;
    padding: 10px 20px;
    margin: 0;
    scrollbar-width: none;
  }

  .product_section .box .options a{
    width: 40px;
    height: 40px;
  }
  .product_section .filters_menu::-webkit-scrollbar {
    display: none;
  }

  .product_section .filters_menu li {
    font-size: 1.3rem;
    flex: 0 0 auto;
    min-width: auto;
  }

  .product_section .heading_container h2 {
    font-size: 2.5rem;
  }

  .product_section .box {
    max-width: 100%;
    height: 590px;
    flex: 1 1 calc(50% - 20px);
  }

  .product_section .box .img-box {
    height: 250px;
  }

  .product_section .box .img-box img {
    max-width: 175px;
  }

  .product_section .box .detail-box {
    height: 350px;
    padding: 16px;
  }

  .product_section .detail-box h5 {
    font-size: 1.8rem;
  }
  .size-btn{
    padding: 5px 15px;
    font-size: 1rem;
  }

  /* Size selector */
  /* .size-selector {
    flex-direction: column;
    align-items: flex-start;
  } */
   .product_section .detail-box .size-selector {
    font-size: 1.5rem;
    padding-top: 10px;
  }

  .options {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Color options */
  .color-options {
    gap: 2px;
    max-width: 150px;
  }

  .color-btn {
    width: 20px;
    height: 20px;
  }

  /* ---------- Filters ---------- */
  .filters_menu {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 5px;
  }

  .filters_menu li {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  /* ---------- Bundles ---------- */
  .bundle_box {
    margin-bottom: 20px;
    height: auto;
  }
  .bundle-title{
    font-size: 2rem;
  }
  .bundle-img-item img{
    width: 60px;
    height: 60px;
  }

  .bundle_box .img-box {
    height: 210px;
  }

  .swiper {
    height: 210px;
  }

  .price_wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-order {
    width: 100%;
    justify-content: center;
  }

  /* ---------- About / Environment — stack columns ---------- */
  .about_section,
  .environment_section {
    max-width: 100%;
    margin: 20px 15px;
    padding: 30px 20px;
  }

  .about_section .row,
  .environment_section .row {
    flex-direction: column;
  }

  .about_section .col-md-6,
  .environment_section .col-md-6 {
    max-width: 100%;
    flex: 0 0 100%;
    padding: 2px;
  }

  .about_section .img-box,
  .environment_section .img-box {
    margin-bottom: 25px;
  }
  .about_section .img-box,
  .environment_section .img-box {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about_section .img-box img,
  .environment_section .img-box img {
    max-width: 70%;
    height: auto;
    object-fit: cover;
    border-radius: 40px;
  }

  .about_section .heading_container h2,
  .environment_section .heading_container h2 {
    font-size: 2rem;
  }

  .about_section .detail-box p,
  .environment_section .detail-box p {
    font-size: 1.3rem;
    line-height: 1.5;
  }

  .about_section .detail-box strong,
  .environment_section .detail-box strong {
    font-size: 1.5rem;
  }

  /* ---------- Templates Slider — touch-friendly ---------- */
  .templates-section {
    padding: 15px 10px;
  }

  .templates-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 8px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 10px;
  }

  .templates-container::-webkit-scrollbar {
    display: none;
  }

  .template-card {
    min-width: 180px;
    height: 290px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 12px;
  }

  .template-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .nav-btn {
    display: none;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  /* ---------- Footer ---------- */
  .footer_section {
    padding: 50px 15px 30px;
    text-align: center;
  }

  .footer_section .row {
    flex-direction: column;
    align-items: center;
  }

  .footer_section .footer-col {
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 35px;
  }

  .footer_section h4 {
    font-size: 22px;
  }

  .footer_section .footer_social {
    justify-content: center;
  }

  .footer_section .footer_contact .contact_link_box {
    align-items: center;
  }

  .footer_section .footer-info {
    margin-top: 20px;
  }

  /* ---------- Headings ---------- */
  .heading_container h2 {
    font-size: 1.8rem;
  }

  /* ---------- General text ---------- */
  p {
    font-size: 0.92rem;
    line-height: 1.7;
  }
}

@media (max-width: 500px) {
  .product-item {
    flex: 0 0 50%;
    max-width: 50%;
  }

}

/* =============================================================
   4. LARGE MOBILE  (max-width: 576px)
   ============================================================= */
@media (max-width: 576px) {

  /* ---------- Base ---------- */
  html {
    font-size: 14px;
  }
  h2{
    font-size: 2.5rem;
    font-weight: bold;
  }
  h6{
    font-size: 1.1rem;
  }

  /* ---------- Container ---------- */
  .container,
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* ---------- Navbar ---------- */
  .header_section {
    padding: 6px 0;
    border-radius: 0 0 12px 12px;
  }
    .custom_nav-container .navbar-toggler[aria-expanded="false"] span, .custom_nav-container .navbar-toggler[aria-expanded="false"] span::before, .custom_nav-container .navbar-toggler[aria-expanded="false"] span::after, .custom_nav-container .navbar-toggler.collapsed span, .custom_nav-container .navbar-toggler.collapsed span::before, .custom_nav-container .navbar-toggler.collapsed span::after{
    background-color: #000000;
  }

  .navbar-brand span img {
    height: 55px !important;
    width: 130px !important;
    margin-inline-start: -10px !important;
  }

  /* الأنماط الافتراضية العامة أو للغة الإنجليزية */
  .navbar-collapse {
    width: 210px;
    /* padding: 65px 12px 20px; */
    text-align: left;
  }

  .custom_nav-container .navbar-nav .nav-item .nav-link:lang(en) {
    padding: 8px 0 !important;
    font-size: 1.05rem;
    text-align: left !important;
    direction: ltr;
  }

  /* التعديلات الخاصة باللغة العربية */
  .navbar-collapse:lang(ar) {
    /* width: 190px; */
    /* padding: 70px 15px 25px; */
    text-align: right !important;
    direction: rtl;
  }
  .custom_nav-container .navbar-toggler span::before, .custom_nav-container .navbar-toggler span::after{
    background-color: #000;
  }
  .custom_nav-container .navbar-toggler span{
    background-color: #000;
  }

  .custom_nav-container .navbar-nav .nav-item .nav-link:lang(ar) {
    padding: 8px 0 !important;
    font-size: 1.05rem;
    direction: rtl !important;
    text-align: right !important;
    display: block;
  }

  /* أنماط مكملة للزر والأيقونة */
  .custom_nav-container .navbar-toggler {
    width: 32px;
    height: 36px;
    padding: 2px;
  }

  .custom_nav-container .navbar-toggler span {
    width: 28px;
    height: 3px;
    margin: 2px 0;
  }

   .user_option .cart_link svg{
    fill: #000;
  }

  .user_option .order_online {
    padding: 10px 18px;
    font-size: 0.85rem;
    background: linear-gradient(to right, #70c896, #2b74a8);
  }
  .fa-solid,
.fas {
    background: #000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
  .summary-sticky-bottom {
        bottom: 90px; /* 75px + 15px */
    }
  .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;

        height: 75px;
        background: #fff;

        border-top: 1px solid #e5e5e5;
        box-shadow: 0 -4px 15px rgba(0,0,0,.08);

        z-index: 9999;
    }

    .mobile-bottom-nav .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        color: #333;
        text-decoration: none;
        font-size: 13px;
        gap: 6px;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 22px;
    }

    .mobile-bottom-nav .nav-item.active i,
    .mobile-bottom-nav .nav-item.active span {
        background: linear-gradient(to right, #70c896, #2b74a8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    

    .cart-icon-wrapper {
        position: relative;
    }

    /* .cart-badge {
        position: absolute;
        top: -8px;
        right: -10px;

        background: linear-gradient(to right, #70c896, #2b74a8);
        color: #fff;

        width: 18px;
        height: 18px;

        border-radius: 50%;

        font-size: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
    } */

    body {
        padding-bottom: 85px;
    }

  /* ---------- Hero Area ---------- */
  .hero_area {
    padding-top: 90px;
    padding-bottom: 40px;
    height: 40rem;
  }

  .hero_area .bg-box {
    max-height: 100%;
    height: 450rem;
  }

  .hero_area .bg-box img.lang {
    width: 90vw;
    opacity: 0.15;
  }

  /* ---------- Slider ---------- */
  .slider_section {
    padding: 10px 10px 40px;
  }

  .slider_section .detail-box h1 {
    font-size: 2.3rem;
    line-height: 1.35;
  }

  .slider_section .detail-box p {
    font-size: 1.15rem;
    color: #dee2e6;

  }

  .slider_section .detail-box a {
    font-size: 1.15rem;
    width: 100%;
    text-align: center;
    display: block;
  }

  .slider_section .carousel-indicators li {
    width: 10px;
    height: 10px;
  }

  .slider_section .carousel-indicators li.active {
    width: 16px;
    height: 16px;
  }
  .product_section .box .img-box{
    height: 230px;
  }
  .product_section .box {
    max-width: 100%;
    height: 520px;
    flex: 1 1 100%;
    margin-top: 15px;
  }
  .product_section .box .options a{
    width: 40px;
    height: 40px;
  }
  
  .product_section .box .img-box img {
    max-width: 130px;
  }

  .product_section .box .detail-box {
    height: 330px;
    padding: 7px 15px;
  }

  .product_section .detail-box h5 {
    font-size: 1.8rem;
  }

  .product_section .box .detail-box h6 {
    font-size: 1.7rem;
  }

  .product_section .box .detail-box p {
    font-size: 1.4rem;
  }

  .product_section .box .options {
    margin-top: 10px;
  }

  .product_section .box .img-box img {
    max-width: 150px;
    margin-bottom: 24px;
  }

  .product-item {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 5px;
  }
  #userProductGrid .product-item {
  flex: 0 0 auto !important;
  width: 90% !important;
  max-width: 90% !important;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 15px !important;
}
  .color-options {
    gap: 7px;
    max-width: 140px;
  }

  .filters_menu {
    gap: 6px;
  }

  .filters_menu li {
    font-size: 12px;
    padding: 5px 12px;
  }

  .product_section .heading_container h2 {
    font-size: 2.3rem;
  }

  /* Size & color */
  .size-btn {
    padding: 5px 14px;
    font-size: 1rem;
  }

  .color-btn {
    width: 23px;
    height: 23px;
  }

  .options a svg {
    width: 24px;
    height: 24px;
  }

  /* ---------- Filters ---------- */
  .filters_menu {
    gap: 6px;
    padding: 0;
  }

  .filters_menu li {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 20px;
  }

  .product_section .filters_menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 10px;
    padding: 10px 20px;
    margin: 0;
    scrollbar-width: none;
  }

  .product_section .filters_menu::-webkit-scrollbar {
    display: none;
  }

  .product_section .filters_menu li {
    font-size: 1.2rem;
    flex: 0 0 auto;
    min-width: auto;
  }

  .product_section .detail-box .size-selector {
    font-size: 1.3rem;
    gap: 6px;
  }

  /* ---------- Bundles ---------- */
  .bundle_box .img-box {
    height: 180px;
  }
  .price-order-section {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }

    .price-order-section h5 {
        margin: 0 !important;
    }

    .price-order-section .btn-order {
        margin: 0;
    }

  .swiper {
    height: 180px;
  }

  .detail-box {
    padding: 15px;
  }

  .detail-box h5 {
    font-size: 0.95rem;
  }

  .detail-box p {
    font-size: 0.85rem;
  }

  .new_price {
    font-size: 18px;
  }

  .old_price {
    font-size: 0.82rem;
  }

  .btn-order {
    padding: 10px;
    font-size: 0.82rem;
  }

  /* ---------- About / Environment ---------- */
  .about_section,
  .environment_section {
    margin: 15px 10px;
    padding: 25px 15px;
    border-radius: 10px;
  }

  .about_section .heading_container h2,
  .environment_section .heading_container h2 {
    font-size: 20px;
  }

  .about_section .detail-box p,
  .environment_section .detail-box p {
    font-size: 1.3rem;
    line-height: 1.6;
  }

  .about_section .detail-box strong,
  .environment_section .detail-box strong {
    font-size: 1.45rem;
  }
  .about_section .img-box,
  .environment_section .img-box {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about_section .img-box img,
  .environment_section .img-box img {
    max-width: 60%;
    border-radius: 30px;
  }

  /* ---------- Templates Slider ---------- */
  .templates-section {
    padding: 10px 5px;
  }

  .templates-container {
    gap: 12px;
    padding: 5px 2px;
    scroll-snap-type: x mandatory;
  }

  .template-card {
    min-width: 160px;
    height: 260px;
    border-radius: 10px;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  /* ---------- Footer ---------- */
  .footer_section {
    padding: 40px 10px 25px;
  }

  .footer_section h4 {
    font-size: 20px;
  }

  .footer_section .footer-logo {
    font-size: 30px;
  }

  .footer_section .footer_social a {
    width: 30px;
    height: 30px;
    font-size: 15px;
    margin: 0 3px;
  }

  .footer-dropdown summary {
    display: none;
  }

  .footer-dropdown .contact_link_box {
    display: block;
  }

  .footer_section .footer-info p {
    font-size: 0.82rem;
  }

  /* ---------- Headings ---------- */
  .heading_container h2 {
    font-size: 1.5rem;
  }

  /* ---------- General text ---------- */
  p {
    font-size: 0.88rem;
    line-height: 1.75;
  }


  /* ---------- Layout padding ---------- */
  .layout_padding {
    padding: 60px 0;
  }

  .layout_padding2 {
    padding: 50px 0;
  }

  .layout_padding-bottom {
    padding-bottom: 60px;
  }

  .layout_padding-top {
    padding-top: 60px;
  }
}


/* =============================================================
   5. SMALL MOBILE  (max-width: 375px)
   ============================================================= */
@media (max-width: 376px) {

  /* ---------- Base ---------- */
  html {
    font-size: 13px;
  }
  h5{
    font-size: 1.2rem;
  }
  h6{
    font-size: 1.1rem;
  }
  .mb-4, .my-4{
    font-family: 1rem;
  }

  /* ---------- Container ---------- */
  .container,
  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* ---------- Navbar ---------- */
  .header_section {
    padding: 5px 0;
    border-radius: 0 0 10px 10px;
  }
  .custom_nav-container .navbar-toggler span::before, .custom_nav-container .navbar-toggler span::after{
  background-color: #000;
}
.custom_nav-container .navbar-toggler span{
  background-color: #000;
}

  .custom_nav-container .navbar-toggler[aria-expanded="false"] span, .custom_nav-container .navbar-toggler[aria-expanded="false"] span::before, .custom_nav-container .navbar-toggler[aria-expanded="false"] span::after, .custom_nav-container .navbar-toggler.collapsed span, .custom_nav-container .navbar-toggler.collapsed span::before, .custom_nav-container .navbar-toggler.collapsed span::after{
    background-color: #000000;
  }
  .navbar-brand span img {
    height: 65px !important;
    width: 110px !important;
    margin-inline-start: 0 !important;
  }

  .navbar-collapse {
    width: 210px;
    /* padding: 65px 12px 20px; */
  }
.dropdown-menu{
  right: 0;
}
  .navbar-collapse:lang(ar) {
    text-align: right;
  }

  .custom_nav-container .navbar-nav .nav-item .nav-link:lang(en) {
    padding: 8px 0 !important;
    font-size: 1.05rem;
    text-align: left !important;
  }

  .custom_nav-container .navbar-nav .nav-item .nav-link:lang(ar) {
    padding: 8px 0 !important;
    font-size: 1.05rem;
    direction: rtl;
    text-align: right;
    right: 0;
  }

  .custom_nav-container .navbar-toggler {
    width: 32px;
    height: 36px;
    padding: 2px;
  }

  .custom_nav-container .navbar-toggler span {
    width: 28px;
    height: 3px;
    margin: 2px 0;
  }
   .user_option .cart_link svg{
    fill: #000;
  }
  
  .faq_question{
    font-size: 1.2rem;
  }
  .faq_answer_content { 
    font-size: 1rem;
  }
  .section_title h2{
    font-size: 2.3rem;
  }
  .faq_section p{
    font-size: 1rem;
  }

  .nav-item.dropdown .dropdown-menu {
    display: none;
    position: static !important;
    width: 100%;
    margin-top: 6px;
    border: none;
    border-radius: 12px;
    background: #f8f9fc;
    box-shadow: none;
    overflow: hidden;
    padding: 4px 0;
  }

  .nav-item.dropdown.show .dropdown-menu,
  .nav-item.dropdown .dropdown-menu.show {
    display: block;
  }

  .nav-item.dropdown:hover .dropdown-menu:not(.show) {
    display: none !important;
  }

  .nav-item.dropdown .dropdown-menu .dropdown-item {
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    color: #333;
    transition: all 0.25s ease;
    display: block;
    width: 100%;
    padding: 10px 18px 10px 28px;
  }

  .nav-item.dropdown .dropdown-menu .dropdown-item:hover {
    background-color: #f5f7ff;
    color: #1f3cff;
  }

  .user_option .order_online {
    padding: 9px 14px;
    font-size: 0.82rem;
    background: linear-gradient(to right, #70c896, #2b74a8);
  }
.fa-solid,
.fas {
    background: #000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

  /* ---------- Hero Area ---------- */
  .hero_area {
    padding-top: 80px;
    padding-bottom: 30px;
    max-height: 80%;
    height: 35rem;
  }


  .hero_area .bg-box img.lang {
    width: 95vw;
    opacity: 0.12;
  }

  /* ---------- Slider ---------- */
  .slider_section {
    padding: 5px 5px 35px;
  }


  .slider_section .detail-box h1 {
    font-size: 2.4rem;
    line-height: 1.1;
  }

  .slider_section .detail-box p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .slider_section .detail-box .btn, .slider_section .detail-box a {
    padding: 9px 20px;
    font-size: 1.15rem;
    margin-top: 30px;
  }

  /* ---------- Product Grid — single column, compact ---------- */
  #userProductGrid1 .product-item{
    flex: 0 0 50%;
    max-width: 50%;

  }
  #userProductGrid1 .row{
    flex: 0 0 50%;
    max-width: 50%;
    height: 150px;
  }
  .product_section .box {
    max-width: 100%;
    height: 450px;
    margin-top: 12px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
  }

  .product_section .box .img-box {
    height: 200px;
  }

  .product_section .box .img-box img {
    max-width: 150px;
    margin-bottom: 24px;
  }

  .product_section .box .img-box::after {
    height: 35px;
  }

  .product_section .box .detail-box {
    flex: 1;
    padding: 20px 12px;
    max-width: 100%;
    height: 420px;
  }

  .product_section .detail-box h5 {
    font-size: 1.6rem;
  }

  .product_section .box .detail-box p {
    flex: 1;
    margin-bottom: 15px;
    font-size: 1.2rem;
  }

  .product_section .box .detail-box h6 {
    font-size: 1.5rem;
  }

  .product_section .detail-box .size-selector {
    font-size: 1.3rem;
  }

  .product_section .detail-box .size-selector .options {
    margin-top: 1px;
  }

  .product_section .detail-box .size-selector .options .size-btn {
    font-size: 1rem;
    padding: 5px 11px;
  }

#userProductGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#userProductGrid .product-item {
  flex: 0 0 auto !important;
  width: 90% !important;
  max-width: 90% !important;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 15px !important;
}
.header_section.scrolled .language-selector span{
  background-color: #f6f6f6 !important;
  color: #151414 !important;
}

  .filters_menu {
    gap: 5px;
  }

  .filters_menu li {
    font-size: 11px;
    padding: 5px 10px;
  }

  .product_section .heading_container h2 {
    font-size: 2.2rem;
  }

  .product_section .box {
    width: 100%;
  }

  .product_section .filters_menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 10px;
    padding: 10px 20px;
    margin: 0;
    scrollbar-width: none;
  }

  .product_section .filters_menu::-webkit-scrollbar {
    display: none;
    /* Chrome */
  }

  .product_section .filters_menu li {
    font-size: 1.2rem;
    flex: 0 0 auto;
    min-width: auto;
  }

  .product_section .filters_menu li {
    font-size: 1.2rem;
    flex: 0 0 auto;
  }

  /* Size & color */

  .color-btn {
    width: 25px;
    height: 25px;
  }

  .color-options {
    gap: 5px;
    max-width: 145px;
  }

  .product_section .box .options {
    margin-top: 20px;
  }

  .product_section .box .options a {
    width: 38px;
    height: 38px;
  }

  .options a svg {
    width: 22px;
    height: 22px;
  }
  .product-info{
    padding: 5px;
  }

  /* ---------- Filters ---------- */
  .filters_menu {
    gap: 5px;
  }

  .filters_menu li {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  /* ---------- Bundles ---------- */
  .bundle_box .img-box {
    height: 160px;
  }

  .swiper {
    height: 160px;
  }

  .detail-box {
    padding: 12px;
  }

  .detail-box h5 {
    font-size: 0.9rem;
  }

  .detail-box p {
    font-size: 0.8rem;
  }

  .new_price {
    font-size: 16px;
  }

  .old_price {
    font-size: 0.78rem;
  }

  .btn-order {
    padding: 8px;
    font-size: 0.78rem;
  }

  /* ---------- About / Environment ---------- */
  .about_section,
  .environment_section {
    margin: 10px 8px;
    padding: 20px 12px;
    border-radius: 8px;
  }
  .about_section .detail-box,
  .environment_section .detail-box{
    padding: 15;
  }

  .about_section .heading_container h2,
  .environment_section .heading_container h2 {
    /* font-size: 2rem;
    word-spacing: normal; */
  }

  .about_section .detail-box p,
  .environment_section .detail-box p {
    font-size: 1.05rem;
    line-height: 1.5;
    word-spacing: -0.02em;
  }

  .about_section .detail-box p:lang(en),
  .environment_section .detail-box p:lang(en) {
    /* text-align: left; */
    /* ما بتعمل justify للنص يعني كل سطر طول */
    word-spacing: -0.02rem;
  }

  .about_section .img-box,
  .environment_section .img-box {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about_section .img-box img,
  .environment_section .img-box img {
    border-radius: 30px;
    max-width: 75%;
  }

  .about_section .detail-box strong,
  .environment_section .detail-box strong {
    font-size: 1.05rem;
  }

  .features li {
    font-size: 1rem;
  }

  /* ---------- Templates Slider ---------- */
  .templates-section {
    padding: 8px 3px;
  }

  .templates-container {
    gap: 10px;
    scroll-snap-type: x mandatory;
  }

  .template-card {
    min-width: 140px;
    height: 230px;
    border-radius: 8px;
  }
  .template-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* يعرض أعلى الصورة */
}

  .section-title h2 {
    font-size: 1.95rem;
  }

  /* ---------- Footer ---------- */
  .footer_section {
    padding: 35px 8px 20px;
  }

  .footer_section h4 {
    font-size: 18px;
  }

  .footer_section .footer-logo {
    font-size: 26px;
  }

  .footer_section .footer_contact .contact_link_box a {
    font-size: 0.82rem;
    margin: 3px 0;
  }

  .footer_section .footer_social a {
    width: 28px;
    height: 28px;
    font-size: 14px;
    margin: 0 2px;
  }

  .footer-dropdown summary {
    display: none;
  }

  .footer-dropdown .contact_link_box {
    display: block;
  }

  .footer_section .footer-info p {
    font-size: 0.78rem;
  }

  .footer_section .footer-col {
    margin-bottom: 25px;
  }

  /* ---------- Headings ---------- */
  .heading_container h2 {
    font-size: 1.3rem;
  }

  /* ---------- General text ---------- */
  p {
    font-size: 0.82rem;
    line-height: 1.7;
  }

  /* ---------- Layout padding ---------- */
  .layout_padding {
    padding: 30px 0;
  }

  .layout_padding2 {
    padding: 40px 0;
  }

  .layout_padding-bottom {
    padding-bottom: 45px;
  }

  .layout_padding-top {
    padding-top: 45px;
  }
  .table {
  display: block;
  background: transparent;
  box-shadow: none;
}
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    display: flex;
    justify-content: space-around;
    align-items: center;

    height: 72px;
    padding: 6px 8px;

    background: #fff;
    border-top: 1px solid #ececec;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.08);

    z-index: 9999;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: #555;

    gap: 4px;
    padding: 8px 4px;
    border-radius: 14px;

    transition: all .25s ease;
}

.mobile-bottom-nav .nav-item i {
    font-size: 22px;
    transition: all .25s ease;
}

.mobile-bottom-nav .nav-item span {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-bottom-nav .nav-item:hover {
    background: rgba(43, 116, 168, 0.08);
}

.mobile-bottom-nav .nav-item.active {
    background: rgba(112, 200, 150, 0.12);
}

.mobile-bottom-nav .nav-item.active i,
.mobile-bottom-nav .nav-item.active span {
    background: linear-gradient(90deg, #70c896, #2b74a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.mobile-bottom-nav .nav-item.active i {
    transform: scale(1.12);
}
.mobile-bottom-nav .nav-item span {
    font-size: 11px;
    line-height: 1.15;
    text-align: center;

    white-space: normal;
    word-break: break-word;
    max-width: 70px;
}
    .cart-icon-wrapper {
        position: relative;
    }

    /* .cart-badge {
        position: absolute;
        top: -8px;
        right: -10px;

        background:linear-gradient(to right, #70c896, #2b74a8);
        color: #fff;

        width: 18px;
        height: 18px;

        border-radius: 50%;

        font-size: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
    } */

    body {
        padding-bottom: 85px;
    }
}

/* @media (max-width:365px){
    .rent_solution_container .col-md-4.col-sm-6,
  .product-item {
    float: left;
    flex: 0 0 50%;
    max-width: 50%;
  }
    .product_section .box {
    margin-bottom: 12px;
}

.product_section .box .detail-box h5 {
    font-size: 14px;
}

.product_section .box .detail-box p {
    font-size: 12px;
}
} */

/* =============================================================
   GLOBAL FIXES — apply at all sizes (override safety net)
   ============================================================= */

/* Ensure no overflow on any section */
.hero_area,
.slider_section,
.product_section,
.about_section,
.environment_section,
.templates-section,
.footer_section {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Prevent Isotope items from overflowing */
.product-item {
  box-sizing: border-box;
}

/* Responsive images — no distortion */
.product_section .box .img-box img,
.about_section .img-box img,
.environment_section .img-box img,
.template-card img,
.swiper-slide img,
.hero_area .bg-box img {
  height: auto;
}

/* Templates horizontal slider — smooth touch scrolling */
.templates-container {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.templates-container::-webkit-scrollbar {
  display: none;
}

/* Container max-width for large screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

/* Medium screen 2-column product fix */
@media (min-width: 500px) and (max-width: 767px) {

  .rent_solution_container .col-md-4.col-sm-6,
  .product-item {
    float: left;
    flex: 0 0 50%;
    max-width: 50%;
  }
  .product_section .box .detail-box p{
    font-size: 1.1rem;
  }
  .product_section .box .detail-box h6{
    font-size: 1.3rem;
  }
  .color-options{
    gap: 3px;
    max-width: 100px;
  }
  
  .product_section .box .options {
   flex-wrap: nowrap;
  }
}

/* =============================================================
   NAVIGATION COLLAPSE — consistent layout across screen sizes
   ============================================================= */
@media (min-width: 992px) {
  .header_section .custom_nav-container {
    min-height: 64px;
  }

  .header_section .navbar-collapse {
    align-items: center;
    min-width: 0;
  }

  .header_section .custom_nav-container .navbar-nav {
    padding-left: 0;
    gap: clamp(2px, 1vw, 14px);
  }

  .header_section .custom_nav-container .navbar-nav .nav-item .nav-link {
    padding: 9px 12px;
    border-radius: 9px;
  }

  .header_section .language-selector {
    white-space: nowrap;
    padding: 0 10px;
  }
}

@media (max-width: 991px) {
  .header_section .navbar-collapse {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(86vw, 360px);
    height: 100dvh !important;
    min-height: 100vh;
    padding: 86px 20px 28px;
    gap: 0;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(160deg, #ffffff 0%, #f6f8ff 100%);
    border-radius: 22px 0 0 22px;
    box-shadow: -14px 0 36px rgba(20, 32, 68, 0.18);
    transition: right 0.3s ease-in-out;
    overscroll-behavior: contain;
  }
  .header_section.scrolled .language-selector span{
    background-color: #f6f6f6 !important;
    color: #151414 !important;
  }

  /* Open */
  .header_section .navbar-collapse.show,
  .header_section .navbar-collapse.collapsing {
    right: 0;
  }

  /* Don't allow Bootstrap collapsing animation to break position */
  .header_section .navbar-collapse.collapsing {
    height: 100vh !important;
  }

  /* Navigation items */
  .header_section .navbar-nav {
    width: 100%;
    margin: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding-left: 0;
  }

  .header_section .navbar-nav .nav-item {
    width: 100%;
    margin-bottom: 8px;
  }

  .header_section .navbar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;

    padding: 13px 15px;

    border-radius: 10px;

    color: #222;

    transition: all 0.2s ease;
  }

  .header_section .navbar-nav .nav-link:hover {
    background: #f3f3f3;
    transform: translateX(-3px);
  }

  /* Active item */
  .header_section .navbar-nav .nav-item.active .nav-link {
    background: #f3f3f3;
    font-weight: 600;
  }

  /* Dropdown — click to toggle on mobile */
  .header_section .nav-item.dropdown .dropdown-menu {
    display: none;
    position: static !important;
    float: none;
    width: 100%;
    margin: 6px 0 0;
    border: none;
    box-shadow: none;
    background: #f3f5fa;
    border-radius: 10px;
    padding: 4px 0;
    overflow: hidden;
  }

  .header_section .nav-item.dropdown.show .dropdown-menu,
  .header_section .nav-item.dropdown .dropdown-menu.show {
    display: block;
  }

  .header_section .nav-item.dropdown:hover .dropdown-menu:not(.show) {
    display: none;
  }

  .header_section .dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 11px 16px 11px 28px;
    font-size: 0.95rem;
    color: #333;
    border-bottom: 1px solid #e8ebf2;
    white-space: normal;
  }

  .header_section .dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
  }

  .header_section .dropdown-menu .dropdown-item:hover {
    background: #e9eefb;
    color: #2b74a8;
  }

  .header_section .navbar-nav .dropdown-toggle {
    justify-content: space-between;
    width: 100%;
  }

  .header_section .navbar-nav .dropdown-toggle::after {
    margin-inline-start: auto;
    transition: transform 0.25s ease;
  }

  .header_section .nav-item.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  /* User section */
  .header_section .user_option {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 12px;

    width: 100%;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid #eee;
  }

  .header_section .user_option .cart_link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 12px;

    border-radius: 10px;

    background: #f5f5f5;
  }

  .header_section .user_option .cart_link svg {
    width: 22px;
    height: 22px;
  }

  .header_section .order_online {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    padding: 13px;

    border-radius: 10px;

    text-align: center;

    font-weight: 600;
  }

  /* Language */
  .header_section .language-selector {
    margin-top: 20px;
    padding: 12px 15px;

    border-radius: 10px;

    background: #f5f5f5;

    text-align: center;

    cursor: pointer;
  }

  /* Hamburger */
  .header_section .navbar-toggler {
    position: relative;
    z-index: 1060;

    border: none;
    outline: none;

    padding: 8px 10px;
  }

  .header_section .navbar-toggler:focus {
    box-shadow: none;
  }

  /* Overlay */
  .navbar-overlay {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    background: rgba(0, 0, 0, 0.45);

    opacity: 0;
    visibility: hidden;

    transition: all 0.3s ease;

    /* Keep the backdrop below the fixed header (z-index: 999), so the
       drawer inside that header remains clickable on every small screen. */
    z-index: 998;
  }

  .navbar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Prevent body scrolling */
  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 450px) {
  .header_section .navbar-collapse {
    width: min(80vw, 221px);
    padding-inline: 16px;
  }
}
