
@media all and (max-width: 1000px) {

  /*Account navigation*/

  .html-account-page .side-2 {
    position: relative !important;
    top: unset;
    right: unset;
    width: 100%;
    height: unset !important;
    background: unset;
    z-index: unset;
    transition: unset;
    overflow: unset;
    padding: unset;
    margin-bottom: 15px;
    margin-top: 20px;
    max-width: none;
  }


  /**PRODUCT SORT*/

  .product-selectors {
    display: flex;
    justify-content: space-between;
    gap: 6px;
  }

  /* SIDEBAR FILTER */
  .sidebar-filter-button {
    display: block;
    background-color: transparent;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--secondary);
    border-radius: 4px;
    padding: 12.5px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

    .sidebar-filter-button .ns-sliders {
      margin-left: 8px;
      font-size: 20px;
      font-weight: 600;
    }

  .side-2 {
    position: fixed !important;
    top: 0;
    right: -105%;
    width: 85%;
    height: 100vh !important;
    background: #fff;
    z-index: 99999;
    transition: right 0.3s ease-in-out;
    /* CRITICAL FIX: Allow children to be seen outside */
    overflow: visible !important;
    padding: 0 !important;
/*    max-width: calc(100% - 100px);*/
  }
  .product-filters{
      max-width: none;
  }
  /* NEW: The inner scrollable area */
  .drawer-content-wrapper {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
  }

  /* When drawer is active */
  .side-2.drawer-open {
    right: 0;
  }

  /* Dark background overlay */
  .drawer-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

    .drawer-overlay.active {
      display: block;
      opacity: 1;
    }

  /* Black Close Button (positioned outside the drawer as per image) */
  .drawer-close-btn {
    position: absolute;
    top: 0;
    left: -50px; /* Now this won't be cut off! */
    width: 50px;
    height: 50px;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: none;
    z-index: 100000;
  }

  /* Prevent background scrolling when open */
  body.drawer-no-scroll {
    overflow: hidden;
  }

  /*** GLOBAL TABLES ***/


  .cart {
    display: block;
  }

    .cart colgroup,
    .cart thead {
      display: none;
    }

    .cart tbody {
      display: block;
      overflow: hidden;
    }

    .cart tr {
      display: block;
      float: right;
      width: 100%;
      margin: 40px 0 0;
      border: 1px solid var(--light-grey);
    }

    .cart td {
      display: block;
      border: none;
      padding: 10px;
    }

      .cart td.remove-from-cart {
        margin: 0 0 15px;
        border-bottom: 1px solid var(--light-grey);
        background-color: #eee;
        padding: 10px;
      }

      .cart td.product-picture {
        border-top: 1px solid var(--light-grey);
        padding: 15px 10px 5px;
      }

      .cart td.product {
        min-width: 0;
        border-bottom: 1px solid var(--light-grey);
        padding: 5px 10px 15px;
        text-align: center;
      }

      .cart td.quantity {
        display: inline-block;
        padding: 0 10px;
        vertical-align: middle;
      }

      .cart td.unit-price,
      .cart td.subtotal {
        display: inline-block;
        padding: 20px 10px;
        vertical-align: middle;
      }

      .cart td label {
        display: inline-block;
      }

  .order-details-page .data-table {
    display: block;
  }

    .order-details-page .data-table colgroup,
    .order-details-page .data-table thead {
      display: none;
    }

    .order-details-page .data-table tbody {
      display: block;
      overflow: hidden;
    }

    .order-details-page .data-table tr {
      display: block;
      float: right;
      width: 100%;
      margin: 40px 0 0;
      border: 1px solid var(--light-grey);
    }

    .order-details-page .data-table td {
      display: block;
      border: none;
      padding: 10px;
    }

      .order-details-page .data-table td.product,
      .order-details-page .data-table td.tracking-number {
        min-width: 0;
        border-bottom: 1px solid var(--light-grey);
        padding: 5px 10px 15px;
        text-align: center;
      }

      .order-details-page .data-table td label {
        display: inline-block;
      }


  /*** MOBILE NAVIGATION ***/


  .header-menu {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 600px;
    margin: 0 auto 40px;
  }

  .menu-toggle {
    background: #4ab2f1 url('../images/menu-icon.png') left center no-repeat;
    padding: 15px;
    font-size: 15px;
    font-weight: bold;
    color: var(--white);
    text-transform: uppercase;
    cursor: pointer;
  }

  .top-menu {
    display: none;
  }

    .top-menu > li {
      position: relative;
      margin: 1px 0;
      background-color: #f6f6f6;
    }

      .top-menu > li > a {
        display: block;
        min-height: 55px;
        padding: 18px;
        font-size: 15px;
        color: var(--dark-grey);
      }

        .top-menu > li > a:focus {
          position: relative;
          z-index: 1;
        }

    .top-menu .sublist {
      display: none;
      background-color: var(--white);
      padding: 5px 0;
    }

      .top-menu .sublist li {
        position: relative;
        margin: 1px 20px 1px 0;
      }

        .top-menu .sublist li a {
          display: block;
          padding: 15px 18px;
          font-size: 15px;
        }

  .sublist-toggle {
    position: absolute;
    top: 0;
    left: 0;
    width: 55px;
    height: 55px;
    border-right: 1px solid var(--white);
    background: url('../images/toggle-black.png') center no-repeat;
    padding: 15px;
    font-size: 15px;
    font-weight: bold;
    color: var(--white);
    text-transform: uppercase;
    cursor: pointer;
  }

  .sublist .sublist-toggle {
    height: 49px;
  }



  .sublist .sublist .sublist li {
    background-color: var(--white);
  }



  .block-account-navigation {
    float: none;
    margin: auto !important;
  }

  .write-review .review-rating {
    text-align: center;
  }

    .write-review .review-rating div.name-description {
      width: 100%;
      margin: 0 5px 0 0;
      text-align: center;
    }

  .product-review-box {
    width: fit-content;
  }

  /***Product Details Page***/

  .gallery .video-gallery {
    display: none;
  }

  .video-gallery-mobile {
    display: block !important;
    margin-block: 20px;
  }

  .html-product-details-page .master-wrapper-content {
    z-index: 1;
  }

  .overview .add-to-cart {
    position: fixed;
    bottom: 0;
    z-index: 10000;
    background: var(--white);
    box-shadow: 14px -6px 15px 0px #00000026;
    margin: 0;
    right: 0;
    width: 100%;
    padding: 10px;
  }

  .product-essential .add-to-cart-panel .button-1.buynow-btn {
    display: none;
  }

  .product-essential .overview .add-to-cart-panel {
    justify-content: center;
  }

  .html-product-details-page .footer {
    margin-bottom: 60px;
  }

  .product-details-page .previous-product a, .product-details-page .next-product a {
    padding: 18px 10px;
  }

  .product-essential {
    text-align: right;
  }


  /*FOOTER*/
  .footer-top-container {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
  }

  .footer-app-links-title-wrapper {
    width: 100%;
  }

  .footer-top-container .footer-app-links {
    width: 100%;
    flex-direction: column;
    padding: 0;
    align-items: start;
    border: none;
    padding-top: 20px;
    padding-bottom: 0px;
  }

  .footer-top-container ._img {
  }

  .footer-top-container .footer-newsletter-container {
    width: 100%;
    padding: 0;
  }

  .footer-lower {
    flex-direction: column;
    gap: 20px;
  }
}

