/* Mobile navigation fix for the 2017 fixed-width Deepa Silks template.
 * On phones the horizontal 1000px menu row overflowed off-screen, leaving
 * WOMEN / MEN / KIDS / CONTACT (the product/category pages) unreachable.
 * Scoped to small screens so the desktop layout is untouched. */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  /* The template hard-codes .menu to 1000px wide and #menus/.menu to 40px tall
     (a single row). Constrain the width to the viewport and release the fixed
     height so the stacked rows expand the bar instead of overflowing under the
     banner slideshow (which sits directly below and would otherwise cover — and
     intercept taps on — every item past HOME). */
  #menus, #menus .menu {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Outer menu list: full width, stacked */
  #menus .menu ul { width: 100% !important; max-width: 100% !important; }
  #menus .menu > ul { display: block !important; }

  /* Top-level items become full-width tappable rows */
  #menus .menu > ul > li {
    float: none !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: transparent !important;
  }
  #menus .menu > ul > li > a {
    display: block !important;
    width: 100% !important;
    padding: 14px 10px !important;
    box-sizing: border-box !important;
  }

  /* WOMEN submenu (SAREES / CHURIDAR): drop the hover-only dropdown and show it
     inline so it is reachable on touch devices */
  #menus .menu > ul > li > ul {
    position: static !important;
    display: block !important;
    width: 100% !important;
    top: auto !important;
    left: auto !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.12) !important;
  }
  #menus .menu > ul > li > ul > li {
    float: none !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }
  #menus .menu > ul > li > ul > li > a {
    display: block !important;
    width: 100% !important;
    padding: 12px 10px !important;
    box-sizing: border-box !important;
    font-size: 0.95em !important;
  }
}
