/* ==========================================================
   responsive.css — mobile & tablet fixes (load after style.css)
   ========================================================== */

html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe, svg { max-width: 100%; height: auto; }
iframe { width: 100%; }
table { display: block; max-width: 100%; overflow-x: auto; }
* { word-wrap: break-word; }

/* ---------- NAVBAR: tablet + mobile (< 992px) ---------- */
@media (max-width: 992px) {
  header,
  header.fixed,
  header.smaller {
    position: relative !important;
    top: 0 !important;
    background: #111 !important;
    z-index: 1001;
  }

  header .container { max-width: 100%; padding-left: 15px; padding-right: 15px; }

  header .de-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
  }

  header .de-flex > .de-flex-col:first-child { flex: 1 1 auto; min-width: 0; }
  header .de-flex > .de-flex-col:last-child  { flex: 0 0 auto; }

  /* Logo + company name */
  #logo a { gap: 8px !important; max-width: 100%; }
  #logo img.logo-main,
  #logo img.logo-mobile { max-height: 56px !important; width: auto; }
  #logo img.logo-scroll { display: none !important; }
  #logo .logo-text {
    font-size: 12px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }

  /* Hamburger */
  #menu-btn {
    display: block !important;
    position: relative;
    float: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
  }

  /* Menu panel: full width row under logo */
  header .header-col-mid {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
  }

  header .header-col-mid #mainmenu,
  #mainmenu {
    position: static !important;
    left: 0 !important;
    top: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
  }

  #mainmenu > li {
    display: block !important;
    float: none !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  #mainmenu > li > a {
    display: block;
    padding: 12px 4px !important;
    font-size: 15px !important;
    color: #fff;
  }

  /* Dropdowns & mega menus stack inside the panel */
  #mainmenu ul,
  #mainmenu ul.mega,
  #mainmenu .about-menu {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    left: 0 !important;
    top: auto !important;
    box-shadow: none !important;
    transform: none !important;
    margin: 0 !important;
  }
  #mainmenu .about-menu li a { display: block; padding: 10px 16px; }

  #mainmenu ul.mega .container { padding: 0; max-width: 100%; }
  #mainmenu .sb-menu,
  #mainmenu .mega-scroll { padding: 12px !important; max-height: none !important; }
  #mainmenu .product-item { margin-bottom: 10px; }
  #mainmenu .product-img-box img { max-height: 110px; object-fit: contain; }
  #mainmenu .product-item h6 { font-size: 13px; white-space: normal; }

  /* Content shouldn't hide under a fixed header anymore */
  #content, .no-top { padding-top: 0; }
  .mt80 { margin-top: 0 !important; }
}

/* ---------- General layout: tablets ---------- */
@media (max-width: 991.98px) {
  section { padding-top: 60px; padding-bottom: 60px; }
  .container { padding-left: 15px; padding-right: 15px; }
  h1 { font-size: 34px; line-height: 1.2; }
  h2 { font-size: 30px; line-height: 1.25; }
  h3 { font-size: 24px; }
  .slider-title { font-size: 34px !important; line-height: 1.2 !important; }
  .row > [class*="col-"] { margin-bottom: 0; }
}

/* ---------- Phones ---------- */
@media (max-width: 767.98px) {
  section { padding-top: 45px; padding-bottom: 45px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
  p, li { font-size: 15px; }
  .slider-title { font-size: 26px !important; }

  .spacer-double { height: 40px; }
  .spacer-single { height: 20px; }

  /* Swiper banner */
  .swiper, .swiper-inner { min-height: auto; }
  .swiper-inner { padding: 60px 0 40px; background-size: cover; background-position: center; }
  .sw-caption { position: relative; text-align: center; }
  .sw-text-wrapper { text-align: center; }

  /* Buttons */
  .btn-main, .btn-line, .catalogue-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    max-width: 100%;
    white-space: normal;
  }

  /* Product pages */
  .product-thumbs img, .thumb-img { width: 64px !important; height: 64px !important; flex: 0 0 auto; }
  .hot-sub-product-img { max-width: 100%; margin-left: auto; margin-right: auto; }

  /* Forms */
  input, select, textarea, .form-control { font-size: 16px; width: 100%; }

  /* Footer */
  footer { text-align: left; }
  footer .row > [class*="col-"] { margin-bottom: 30px; }
  .footer-brand { flex-wrap: wrap; }
  .footer-logo { height: 70px !important; }
  .footer-brand span { white-space: normal !important; }
  .subfooter, .subfooter .de-flex { flex-direction: column; text-align: center; gap: 10px; }

  /* Decorative scroll widgets overlap content on phones */
  .float-text, .scrollbar-v { display: none !important; }
}

@media (max-width: 400px) {
  #logo img.logo-main,
  #logo img.logo-mobile { max-height: 46px !important; }
  #logo .logo-text { font-size: 11px !important; }
  h1 { font-size: 24px; }
  h2 { font-size: 21px; }
  .slider-title { font-size: 22px !important; }
}

/* ---------- Mobile menu open/close (theme designesia.js header.menu-open class use karta hai) ---------- */
@media (max-width: 992px) {
  header:not(.menu-open) .header-col-mid { display: none !important; }
  header.menu-open .header-col-mid { display: block !important; }
  header.menu-open {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  header.menu-open #mainmenu { max-height: none; overflow: visible; }
  /* submenus: band rehte hain, arrow (span) par click karne se khulte hain */
  #mainmenu li { position: relative; }
  #mainmenu ul, #mainmenu ul.mega, #mainmenu .about-menu {
    display: block !important; visibility: visible !important; opacity: 1 !important;
    height: 0; overflow: hidden !important; background: #1b1b1b !important;
  }
  #mainmenu > li > span {
    position: absolute; right: 0; top: 0; width: 48px; height: 46px; cursor: pointer; z-index: 2;
  }
  #mainmenu > li > span:before {
    content: ""; position: absolute; right: 18px; top: 16px; width: 9px; height: 9px;
    border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform .2s;
  }
  #mainmenu > li > span.active:before { transform: rotate(-135deg); top: 21px; }
  #mainmenu ul a, #mainmenu ul h6 { color: #ddd !important; }
  #mainmenu .product-link h6 { color: #ddd !important; }
}
