/* Site-wide mobile responsive fixes */

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.container {
  padding-left: 16px;
  padding-right: 16px;
  max-width: 100%;
  box-sizing: border-box;
}

.section {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Header */
@media screen and (max-width: 991px) {
  .nav-brand .brand img {
    height: 48px !important;
  }

  .nav-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cart-text {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .nav-brand .brand img {
    height: 42px !important;
  }

  .announcement-message {
    font-size: 12px;
    line-height: 1.4;
  }

  .announcement-content {
    max-width: none !important;
  }
}

@media screen and (max-width: 479px) {
  .nav-brand .brand img {
    height: 38px !important;
  }
}

/* Footer */
@media screen and (max-width: 767px) {
  .footer-base,
  .footer-links {
    word-break: break-word;
  }
}

/* About banner horizontal scroll fix */
@media screen and (max-width: 767px) {
  .about-banner {
    width: 100% !important;
  }

  .about-block {
    overflow: hidden;
  }
}

/* Product page grid gap */
@media screen and (max-width: 991px) {
  .grid-halves.product-grid {
    grid-column-gap: 0;
    grid-row-gap: 24px;
  }
}

@media screen and (max-width: 479px) {
  .cart-form {
    flex-wrap: wrap;
    gap: 12px;
  }

  .cart-form .w-commerce-commerceaddtocartbutton,
  .cart-form .button.primary {
    width: 100%;
    text-align: center;
  }

  .product-info-card,
  .product-specs-card {
    padding: 16px;
  }

  .product-detail-section {
    margin-top: 32px;
    padding-top: 24px;
  }
}

/* Category page mobile sidebar toggle */
.category-sidenav-toggle {
  display: none;
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.category-sidenav-toggle::after {
  content: '+';
  float: right;
  font-size: 18px;
  line-height: 1;
}

.category-sidenav-toggle.is-open::after {
  content: '−';
}

@media screen and (max-width: 991px) {
  .category-sidenav-toggle {
    display: block;
  }

  .category-page-layout .category-sidenav {
    display: none;
    margin-bottom: 8px;
  }

  .category-page-layout .category-sidenav.is-open {
    display: block;
  }

  .category-page-layout {
    gap: 16px;
  }

  .category-page-layout .category-sidenav {
    padding: 16px;
  }

  .category-page-layout .sub-menu,
  .category-page-layout .sub-sub-menu {
    margin-left: 8px;
    padding-left: 8px;
  }
}

@media screen and (max-width: 767px) {
  .category-page-layout .product-card-thumbnail {
    height: 220px;
  }

  .category-page-layout .category-title {
    font-size: 24px;
  }
}

@media screen and (max-width: 479px) {
  .category-page-layout .products-grid .grid-thirds {
    grid-template-columns: 1fr !important;
  }

  .category-page-layout .product-card-thumbnail {
    height: 200px;
  }
}

/* Webflow min-width overflow fix */
@media screen and (max-width: 991px) {
  .category-content.category-bg {
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .category.one-third {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .category-banner,
  .about-banner {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Homepage mobile */
@media screen and (max-width: 991px) {
  .home-collection-promo-only,
  .home-collection-promo-only .category.one-third,
  .home-collection-promo-only .category-content.category-bg,
  .home-collection-promo-only .category-banner,
  .home-collection-promo-only .category-content-inner,
  .home-collection .category.one-third {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .home-collection-promo-only .category.one-third,
  .home-collection .category.one-third {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto;
  }

  .home-collection .category-content.category-bg,
  .home-collection-promo-only .category-content.category-bg {
    min-height: auto;
    min-width: 0 !important;
    padding: 24px 16px !important;
  }

  .home-collection-promo-only .category-content-inner {
    max-width: 100% !important;
  }

  .home-collection-promo-only .category-banner {
    height: 280px !important;
    width: 100% !important;
  }

  .home-hero .hero-image img {
    min-height: 260px;
  }
}

@media screen and (max-width: 767px) {
  .home-hero .hero-first-half {
    padding: 24px 16px !important;
  }

  .home-about .about-wrapper {
    padding: 24px 20px !important;
  }

  .home-promo .category-image img {
    height: 240px !important;
  }

  .home-categories .category-thumbnail {
    height: 220px !important;
  }

  .home-category-row-head {
    gap: 12px;
  }

  .home-see-all {
    white-space: normal;
  }

  .home-category-row,
  .home-category-row-end,
  .home-random-products {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .display-one {
    font-size: 42px !important;
    letter-spacing: -2px !important;
  }
}

@media screen and (max-width: 479px) {
  .home-category-row .grid-quarters,
  .home-random-products .grid-quarters,
  .home-category-products.grid-quarters {
    grid-template-columns: 1fr !important;
    grid-column-gap: 16px;
  }

  .home-collection .category-content.category-bg {
    padding: 20px 16px !important;
  }

  .home-section-head h1,
  .home-category-row-title h2 {
    font-size: 22px;
  }

  .section {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

/* Alerts */
@media screen and (max-width: 479px) {
  .custom-alerts {
    width: auto !important;
    max-width: calc(100vw - 32px);
    right: 16px;
    left: 16px;
    margin-left: 0;
  }
}
