/* Extra small devices (portrait phones, less than 576px) XS */ 
@media(min-width: 320px) and (max-width: 575px) {    
    .header_section  .navbar-light .navbar-toggler{
        border-color: #038AED;
    }
    .header_section  .navbar-light .navbar-toggler svg{
        color: #038AED;
        font-size: 25px;
    }
    .header_section .navbar-nav .nav-item .nav-link{
        text-align: center;
        margin-top: 1rem;
    }
    .header_section .d-flex{
        margin-top: 2rem;
        justify-content: center;
    }
    .hero-txt-wrap{
        border-radius: 0px;
        padding-left: 25px;
        padding-right: 25px;
    }
    .hero-section .col-lg-12{
        padding-left: 0;
        padding-right: 0;
    }
    .hero-txt-wrap h6 { 
        font-size: 14.99px; 
        padding: 8px 12px; 
    }
    .hero-txt-wrap h5{
        font-size: 15px;
    }
    .hero-txt-wrap h1{
        font-size: 42px;
        line-height: 50px;
    }
    br{
        display: none;
    }
    .hero-txt-wrap p{
        font-size: 16px;
        line-height: 24px;
    }
    .hero-txt-wrap .hero_btn a{
        display: block;
        width: 100%;
        text-align: center;
        margin: 0;
        margin-bottom: 1rem;
    }
    .hero-bottom-wrap ul{
        flex-wrap: wrap;
    }
    .hero-bottom-wrap ul li{
        flex: 50%;
        margin-bottom: 18px; 
    }
    .hero-bottom-wrap{
        width: 100%;
    }
    .hero-bottom-wrap ul li:nth-child(6),
    .hero-bottom-wrap ul li:nth-child(3){
        display: none;
    }
    .faq-section,
    .payment-option-area,
    .why-choice-area{
        padding: 3rem 0;
    }
    .why-choice-box .media img {
        margin-right: 1rem;
        width: 80px;
    }
    .why-choice-box h6{
        font-size: 16px;
        line-height: 22px;
    }
    .common-heading-txt h2{
        font-size: 30px;
        line-height: 40px;
    }
    .more-bttn span{
        display: block;
        margin-bottom: 1rem;
    }
    .payment-option-box{
        width: 80%;
        margin: 0 auto;
        margin-bottom: 1rem;
    }
    .faq-txt-area .accordion-item .accordion-button{
        padding: 0;
    }
    .get-start-txt h2{
        font-size: 30px;
        line-height: 40px;
    }
    .get-start-txt p{
        font-size: 12px;
    }
    .ftr-links{
        margin-top: 2rem;
    }
    .tos-main-wrap{
        padding: 1.5rem;
    }
    .tos-footer-wrap ul li a{
        font-size: 13px;
    }
    .get-start-area .col-lg-12{
        padding-left: 0;
        padding-right: 0;
    }
    .get-start-txt{
        border-radius: 0px;
    }
    .get-start-area{
        padding-bottom: 0;
    }
    .shop-hero-txt h1{
        font-size: 50px;
    }
    .product-filter-wrap{
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-popup-wrap,
    .search-filter-wrap{
        width: 100%;
        border-right: 0px;
        border-bottom: 3px solid rgba(3, 139, 237, 0.5);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    .filter-bttn{
        width: 100%;
    }
    .filter-bttn a{
        display: block;
        width: 100%;
        text-align: center;
    }
    .product-box-wrap {
        width: 100%;
        margin: 0 0 1.5rem 0;
        min-height: 180px;
        max-height: 280px;
    }
    .product-image-container {
        width: 100%;
        height: 100%;
        position: relative;
        background-color: transparent !important;
    }
    .product-image-container * {
        background-color: transparent !important;
    }
    .product-thumbnail-wrap {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        background: transparent !important;
        padding: 0;
        margin: 0;
    }
    .product-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
    .modal-section .modal-content{
        padding: 1rem;
    }
    .find-order-empty p{
        font-size: 15px;
    }
    .ordr-find-search-wrap .btn-search{
        position: inherit;
        right: inherit;
        top: inherit;
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    .find-result-form h6{
        font-size: 16px;
        text-align: left!important;
        margin-top: 1rem;
    }
    .order-result-bttn {
        flex-direction: column;
    }
    .order-result-bttn a{
        display: block!important;
        width: 100%!important;
        text-align: center!important;
        margin-top: 12px;
    }
    .redeem-form-wrap{
        width: 95%;
    }
    .redeem-form-wrap .form-bttn .btn-submit{
        display: block;
        text-align: center;
        width: 100%;
    }
    .find-order-empty h1{
        font-size: 32px;
        line-height: 36px;
    }
}

/* Small devices (landscape phones, 576px and up) SM */
@media (min-width: 576px) and (max-width: 767px) {
     
}

/* Medium devices (tablets, 768px and up) MD */ 
@media (min-width: 768px) and (max-width: 991px) {
    
}

/* Large devices (desktops, 992px and up) LG */
@media (min-width: 992px) and (max-width: 1199px) {
       
}

/* Extra large devices (large desktops, 1200px and up) XL */
@media (min-width: 1200px) and (max-width: 1399px) {
       
}

/* Extra extra large devices (extra large desktops, 1400px and up) XXL */
@media (min-width: 1400px) {

}

/* Product Display - Mobile Responsive */
@media (max-width: 768px) {
  .product-box-wrap {
    width: 100%;
    margin: 0 0 1.5rem 0;
    min-height: 160px;
    max-height: 240px;
  }

  .product-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: transparent !important;
  }

  .product-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
  }

  .product-details {
    padding: 12px 10px 10px 10px;
  }

  .product-details-txt h6 {
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .product-details-txt span {
    font-size: 0.8rem;
  }

  .product-details-bttn p {
    font-size: 0.9rem;
  }
}

/* Tablet and up */
@media (min-width: 769px) {
  .product-box-wrap {
    margin-bottom: 2rem;
  }

  .product-image-container {
    min-height: 200px;
  }
}

/* Desktop and up */
@media (min-width: 992px) {
  .product-image-container {
    min-height: 220px;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .product-image-container {
    min-height: 240px;
  }
}

/* Height-based Media Queries */
@media screen and (max-height: 800px) {
  .hero-txt-wrap {
    padding: 1.5rem 0;
  }
  
  .hero-txt-wrap h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }
  
  .hero-txt-wrap p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 1rem;
  }
  
  .hero_btn {
    transform: scale(0.9);
    transform-origin: center;
  }
  
  .hero-bottom-wrap {
    padding: 1rem;
  }
  
  .faq-section {
    padding: 2rem 0;
  }
  
  .faq-txt-area {
    max-height: none !important;
    overflow: visible !important;
  }
  
  .accordion-button {
    padding: 0.75rem !important;
    font-size: 0.9rem !important;
  }
  
  .accordion-body {
    padding: 0.75rem !important;
    font-size: 0.85rem !important;
  }
  
  .more-bttn {
    margin: 1rem 0 !important;
    transform: scale(0.9);
    transform-origin: center;
  }
}

@media screen and (max-height: 600px) {
  .hero-txt-wrap {
    padding: 1rem 0;
  }
  
  .hero-txt-wrap h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
  
  .hero-txt-wrap p {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    margin-bottom: 0.5rem;
  }
  
  .hero_btn {
    transform: scale(0.8);
  }
  
  .hero-bottom-wrap {
    padding: 0.5rem;
  }
  
  .faq-section {
    padding: 1.5rem 0;
  }
  
  .accordion-button {
    padding: 0.5rem !important;
    font-size: 0.85rem !important;
  }
  
  .accordion-body {
    padding: 0.5rem !important;
    font-size: 0.8rem !important;
  }
  
  .more-bttn {
    transform: scale(0.8);
  }
}

/* Ensure content is always accessible */
.faq-section, .hero-section {
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
}

.accordion-collapse {
  height: auto !important;
  transition: none !important;
}

.accordion-button.collapsed::after {
  transform: scale(0.8);
}

/* Improve spacing and scaling */
.container {
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(1rem, 3vh, 2rem) 15px !important;
}

.row {
  margin: 0 !important;
}

/* Ensure proper spacing between sections */
section {
  padding: clamp(1rem, 4vh, 3rem) 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Improve button and text scaling */
.btn, .hero_btn a, .more-bttn a {
  padding: clamp(0.5rem, 2vh, 1rem) clamp(1rem, 4vw, 2rem) !important;
  font-size: clamp(0.8rem, 2vw, 1rem) !important;
  white-space: nowrap !important;
}

/* Ensure proper spacing for FAQ items */
.faq-txt-area .accordion-item {
  margin-bottom: clamp(0.5rem, 2vh, 1rem) !important;
}

.faq-txt-area .accordion-item:last-child {
  margin-bottom: 0 !important;
}

/* Improve container adaptability */
.container {
  max-width: min(100%, 1200px) !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
}

/* Ensure proper text wrapping */
h1, h2, h3, h4, h5, h6, p {
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  hyphens: auto !important;
}

/* Improve spacing between elements */
.hero-txt-wrap > * {
  margin-bottom: clamp(0.5rem, 2vh, 1.5rem) !important;
}

.hero-txt-wrap > *:last-child {
  margin-bottom: 0 !important;
}