﻿
@media all and (max-width: 1000px) {
  .inputs .gender,
  .inputs label {
    text-align: left;
    display: block;
    max-width: 400px;
    margin-inline: auto;
  }
  .inputs .gender span > * {
      margin: 0 6px 0 0;
  }
  .login-page .customer-blocks > div {
      max-width: 100%;
  }
  .header .header-upper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    background: var(--dark-bg);
    padding: 10px;
  }
  .header .header-upper .header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
    .header .header-upper .header-logo .header-menu-toggle {
      display: block;
      font-size: 26px;
      color: var(--dark);
      cursor: pointer;
      background: none;
      border: none;
    }
  .header .header-upper .header-logo > a {
      max-width: 110px;
  }
  .header .header-upper > div {
      order: 1;
  }
  .header .header-upper > .search-box {
      order: 2;
      width: 100%;
      padding-top: 10px;
  }
  .header .header-upper .search-box input.search-box-text {
    width: calc(100% - 46px);
  }
  .header .header-selectors-wrapper {
    display: none;
  }
  #topcartlink {
      margin: 0;
  }
  #topcartlink .cart-label {
    display: none;
  }
  .header-links-wrapper {
      padding: 0;
  }
  .header-links > ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
  }
  .user-dropdown ul {
      transform: translateX(-50%);
  }
  .user-dropdown .fa {
      line-height: 16px;
  }
  /*** GLOBAL TABLES ***/
  .cart {
    display: block;
  }

    .cart colgroup,
    .cart thead {
      display: none;
    }

    .cart tbody {
      display: block;
      overflow: hidden;
    }

    .cart tr {
      display: block;
      float: left;
      width: 100%;
      margin: 40px 0 0;
      border: 1px solid #ddd;
    }

    .cart td {
      display: block;
      border: none;
      padding: 10px;
    }

      .cart td.remove-from-cart {
        margin: 0 0 15px;
        border-bottom: 1px solid #ddd;
        background-color: #eee;
        padding: 10px;
      }

      .cart td.product-picture {
        border-top: 1px solid #ddd;
        padding: 15px 10px 5px;
      }

      .cart td.product {
        min-width: 0;
        border-bottom: 1px solid #ddd;
        padding: 5px 10px 15px;
        text-align: center;
      }

      .cart td.quantity {
        display: block;
        padding: 0 10px;
        vertical-align: middle;
      }
      .cart td.quantity label {
          display: block;
          margin-bottom: 10px;
      }
      .cart td.unit-price,
      .cart td.subtotal {
        display: inline-block;
        padding: 20px 10px;
        vertical-align: middle;
      }

  .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: left;
      width: 100%;
      margin: 40px 0 0;
      border: 1px solid #ddd;
    }

    .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 #ddd;
        padding: 5px 10px 15px;
        text-align: center;
      }


  /*** MOBILE NAVIGATION ***/

  .menu-toggle {
    background: var(--theme-color) url('../images/menu-icon.png') right center no-repeat;
    padding: 15px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
  }

  .top-menu.notmobile {
    display: none;
  }
  .header-menu {
    position: fixed;
    top: 0;
    left: -110vw; /* Initially hidden */
    width: 100%;
    max-width: 350px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    padding: 40px 10px;
    border-radius: var(--itembox-picture-radius);
    border-top-left-radius: 0;
  }
  .close-header-menu {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
    padding: 2px;
    font-size: 18px;
    color: var(--theme-color);
    background: var(--dark-bg);
    border: none;
    text-transform: uppercase;
    cursor: pointer;
  }
  .header-menu.show {
    left: 0; /* Slide in when class "show" is added */
  }
    .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: #555;
      }

        .top-menu > li > a:focus {
          position: relative;
          z-index: 1;
        }

  .top-menu .sublist {
    background-color: #fff;
    padding: 0;
    position: fixed;
    top: 0;
    left: -110vw;
    width: 100%;
    max-width: 350px;
    transition: all 0.3s ease-in-out;
    height: 100%;
    overflow-y: auto;
    z-index: 1001;
  }
  .top-menu .sublist.active {
    left: 0;
  }


  .top-menu .sublist li:not(:last-child) {
      border-bottom: 1px solid #ddd;
      position: relative;
  }
  .top-menu .sublist li a {
    display: block;
    padding: 15px 18px;
    font-size: 15px;
  }

  .sublist-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 55px;
    height: 55px;
    border-left: 1px solid #fff;
    padding: 15px;
    font-size: 15px;
    font-weight: bold;
    color: var(--dark);
    text-transform: uppercase;
    cursor: pointer;
    font-family: FontAwesome;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .sublist-toggle::after {
    content: "\f061";
    font-weight: lighter;
  }
  .sublist .sublist-toggle {
    height: 49px;
  }

  .sublist .sublist li {
    background-color: #f6f6f6;
  }

  .sublist .sublist .sublist li {
    background-color: #fff;
  }

  .block-category-navigation {
    display: none;
  }

  .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;
  }

  .page-title {
    display: flex;
    justify-content: space-between;
  }
  .user-dropdown .user-dropdown-toggle {
    font-size: 0;
    line-height: 1;
    min-width: 70px;
  }
  .user-dropdown .fa {
    margin: 0;
  }
  .header-links li {
    margin: 0;
  }
  .top-menu .sublist .parent-links {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    background: var(--dark);
    color: var(--white);
    margin: 0;
    position: relative;
  }
  .top-menu .sublist .parent-links a {
      width: calc(100% - 30px);
      padding-block: 10px;
  }
    .top-menu .sublist .parent-links .close-sublist {
      position: absolute;
      top: 0;
      right: 0;
      width: 40px;
      height: 40px;
      padding: 5px;
      font-size: 18px;
      color: var(--white);
      background: var(--dark-bg);
      border: none;
      text-transform: uppercase;
      cursor: pointer;
      line-height: 1;
      border-left: 1px solid #888;
    }
  /*side bar for filter on catalog page*/
  .sidebar-toggle-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-left: auto;
  }

.sidebar-toggle-btn:hover {
  color: #007bff; /* Change to your preferred color on hover */
}
.side-2 {
    position: fixed;
    top: 0;
    left: -102vw;
    width: 320px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    transition: left 0.3s ease-in-out;
    z-index: 1001;
    padding: 50px 20px 20px;
    overflow: auto;
  }

  .side-2.sidebar-open {
    left: 0;
  }

  /* Sidebar close button styles */
  .side-2 .sidebar-close-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 36px;
    height: 36px;
    padding: 2px;
    font-size: 18px;
    color: var(--theme-color);
    background: var(--dark-bg);
    border: 0;
    text-transform: uppercase;
    cursor: pointer;
  }

  .side-2 .sidebar-close-btn:hover {
    color: #f44336; /* Red color when hovered */
  }

  /* Overlay styles */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
  }

  .sidebar-overlay.overlay-active {
    opacity: 1;
    visibility: visible;
  }
  /*welcome topics*/
  .welcome-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }

  .welcome-text {
    text-align: center;
    background: rgba(255,255,255,0.75);
    padding: 20px;
  }
  /*********** Homepage Features ***********/
  .feature-item {
    flex-direction: column !important;
    text-align: center;
    gap: 20px;
  }

    .feature-item img, .feature-content {
        width: 100%;
    }
  .home-page-category-grid .title, .sub-category-grid .title {
      font-size: 18px;
  }
}
