

/* =======================
   PHONE (below 768px) — search drops to its own full-width row
   (on tablet 768–1199.98px it stays inline between logo & hamburger)
======================= */
@media (max-width: 767.98px) {
  .header-search {
    order: 3;
    flex: 1 0 100%;
  }
}

/* =======================
   LARGE DEVICE (1200px ↓) — navbar now collapses to hamburger here
======================= */

@media (max-width: 1199.98px) {
 
   .header-actions__toggle {
        display: flex;
        align-items: center;
      }
      /* push the hamburger to the far right of the top bar */
      .header-actions {
        margin-left: auto;
      }
      /* login/favorite/cart leave the top bar... */
      .header-actions__item {
        display: none;
      }
      /* NOTE: on tablet (768–1199.98px) the search stays inline between the
         logo and the hamburger; it only drops to its own row below 768px
         (see the max-width: 767.98px block above). */
      /* no empty strip while the menu is collapsed */
      .header-nav {
        border-top: 0;
        background: transparent;
      }
      .header-nav .navbar {
        padding: 0;
      }
  
      .header-menu-actions .compare {
        margin: 0;
      }
    .header-nav .navbar-collapse {
        justify-content: center;
      }
  .container {
    padding-left: 25px;
    padding-right: 25px;
  }

  .carousel-control-prev {
    left: 40px;
  }

  .carousel-control-next {
    right: 40px;
  }

  /* Header row: logo + toggle vertically centered together */
  .header .row.align-items-center {
    flex-wrap: wrap;
    align-items: start!important;
  }

  /* Logo column: shrink to logo width, not 16% */
  .header .col-2 {
    flex: 0 0 auto;
    max-width: 120px;
    width: auto;
  }

  /* Nav column: takes the remaining width */
  .header .col-12.col-md-10 {
    max-width: none;
    width: auto;
    flex-grow: 1;
  }

  /* Hamburger toggle on the right; menu opens in normal flow below */
  .navbar {
    align-items: center;
  }

  .navbar-toggler {
    margin-left: auto;
    display: block;
    margin-right: 0;
  }

  /* Main menu items: stacked, left-aligned, in normal flow */
  .navbar-collapse .navbar-nav.menuNav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    margin-left: 0 !important;
    margin-top: 12px;
  }

  .navbar-collapse .navbar-nav.menuNav .nav-item {
    width: 100%;
  }

  .navbar-collapse .navbar-nav.menuNav .nav-link {
    display: block;
    width: 100%;
    padding: 10px 4px;
  }

  /* Icons row (login/fav/cart/support) below the menu items */
  .navbar-collapse .navbar-nav.menuMb {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    margin-left: 0 !important;
    justify-content: flex-start;
  }

  .navbar-nav li a {
    font-size: 14px;
    padding: 8px 0;
  }

  .navbar-nav {
    text-align: left;
  }



  .support {
    margin-left: 0;
    justify-content: center;
  }

  .compare {
    margin-left: 0;
  }
}

/* =======================
   TABLET DEVICE (992px ↓)
======================= */
@media (max-width: 992px) {
 
  .header_contact_warpper {

 flex-direction:column;
    gap: 0px;
  }

  .arrival_content  {
    padding: 10px;
  }

  .discount_card_content {
    text-align: center;
  }

  .discount_card_img {
    padding: 30px;
  }

  .latest_product_card a {
    top: 200px;
  }

  .secend_card {
    top: 200px !important;
  }

  .process_card {
    margin-top: 30px;
  }

  

  #shopByAge .owl-nav button.owl-prev {
    left: 0;
  }

  #shopByAge .owl-nav button.owl-next {
    right: 0;
  }

  .account_ft {
    margin-top: 30px;
  }
}

/* =======================
   MOBILE DEVICE (768px ↓)
======================= */
@media (max-width: 768px) {

  body {
    font-size: 15px;
  }
  .top_header {
    /* display: none; */
  }
  .smd-none{
    display: none;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .top_header {
    text-align: center;
  }
  .account_ft {
    text-align: left;
  }

  .footer_bg,
  .footer_bg ul li a {
    font-size: 14px;
  }


  .footer_box img {
    margin: 0;
  }

  .footer_box p {
    margin-top: 15px;
  }

  .header_contact_warpper {
    justify-content: center;
  }

  .footer_info {
    text-align: left;
  }

  .footer_social {
    text-align: left;
  }

  .account_ft h3::after {
    top: 30px;
    left: 0;
    transform: none;
  }

  .logo img {
    width: 80px;
  }

  .navbar-nav {
    text-align: center;
  }

  .support {
    flex-direction: row;
    text-align: center;
  }

  .carousel-control-prev {
    left: 10px;
    width: 35px;
    height: 35px;
  }

  .carousel-control-next {
    right: 10px;
    width: 35px;
    height: 35px;
  }

  .offer_heading h1,
  .hop_by_heading h1 {
    font-size: 24px;
  }

  .latest_product_heading h3 {
    font-size: 20px;
  }

  .new_arrival_heading {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }


  .discount_card_content {
    margin-left: 15px;
    margin-top: 20px;
  }

  .discount_card_content h3 {
    font-size: 22px;
  }



  .navbar-nav {
    text-align: left;
  }

  .copyright {
    flex-direction: column;
    text-align: center;
  }
}

/* =======================
   MOBILE MENU (767px ↓)
======================= */
@media (max-width: 767px) {


  .navbar-toggler {
    position: relative;
    top: 0;
  }

  .navbar-collapse .navbar-nav.menuNav .nav-link {
    padding: 14px 0;
    font-size: 15px;
  }
}

/* =======================
   SMALL MOBILE (576px ↓)
======================= */
@media (max-width: 576px) {
        .navbar-collapse .navbar-nav.menuMb {
      display:none;
    }
  /* Small mobile logo */
  .logo img {
    width: 50px;
    max-width: 50px;
    padding: 0;
  }

  /* Smaller hamburger icon on phones */
  .navbar-toggler-icon {
    width: 1rem;
    height: 1rem;
  }

  /* Top yellow strip - compact */
  .top_header {
    padding: 8px 10px;
  }

  .header_contact_warpper {
    justify-content: center;
    gap: 4px 14px;
  }

  .header_contact_item span {
    font-size: 14px;
  }

  .navbar-nav li a {
    font-size: 13px;
  }

  .offer_card img {
    padding: 10px;
  }

  .latest_product_card {
    margin-top: 15px;
  }

  .latest_product_card a {
    /* font-size: 13px; */
    /* padding: 6px 10px; */
  }

  .shop_by_age_card {
    height: 180px;
  }

  .support {
    width: 200px;
  }

  .latest_product_card a {
    top: 230px;
  }

  .secend_card {
    top: 230px !important;
  }

  .shop_by_age_card img {
    width: 120px !important;
    height: 120px;
  }

  .process_card {
    flex-direction: column;
    text-align: center;
  }

  .discount_card_content h3 {
    font-size: 18px;
  }


  .bg_offer,
  .hop_by,
  .point_of_sale,
  .arival_bg{
    margin-top: 30px;
  }
}

/* =======================
   TABLET / SMALL-DESKTOP HEADER (768px–1199px)
   Logo + hamburger centered together on one line; the open menu
   drops as a clean full-width panel below, so opening it doesn't
   push the logo out of alignment.
======================= */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .header .container {
    position: relative;
  }

  .header .row.align-items-center {
    flex-wrap: nowrap;
    align-items: center !important;
  }

  /* Anchor the dropdown to .container, not the offset nav column */
  .header .col-12.col-md-10,
  .navbar {
    position: static;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 9px;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 12px 25px 20px;
    z-index: 1000;
  }
}
