/* Layout Styles
======================================= */
.bts-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bts-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin: 32px 0;
}

.bts-hero {
  display: flex;
  flex-direction: column;
}

.bts-hero-image img {
  width: 100%;
}

.bts-hero-content {
  flex: 1 1 auto;
}

.bts-hero-content {
  background: #ffe600;
  padding: 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

.bts-heading img {
  max-width: 100%;
  margin-bottom: 24px;
}

.bts-subheading {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: #fff;
  padding: 16px;
  margin: 0;
}

.bts-subheading span,
.bts-subheading strong {
  font-size: 20px;
}

.bts-section-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.bts-section-content img,
.bts-text-heading {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
}

.bts-text-heading {
  transform: translateX(-16px);
}

.bts-section-content h2 {
  margin-bottom: 16px;
}

.bts-category {
  background-color: #f5f5f5;
  transition: background-color 0.6s ease;
}

.bts-category:hover {
  background-color: #f5f5f5;
}
.bts-category:hover img {
  scale: 1;
}

.bts-store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bts-category-carousel {
  position: relative;
  display: block;
  width: 100%;
  /* overflow: hidden; */
}

.bts-category-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 0 12px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.bts-category-grid.dragging {
  cursor: grabbing;
}

.bts-category-grid::-webkit-scrollbar {
  display: none;
}

.bts-category,
.bts-store {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bts-category {
  flex: 0 0 calc(25% - 12px);
  min-width: calc(25% - 12px);
  scroll-snap-align: start;
}

.bts-carousel-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: white;
  border-radius: 50%;
  color: #211f18;
  font-size: 24px;
  line-height: 1;
  scale: 0.97;
  opacity: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  visibility: hidden;
  pointer-events: none;
}

.bts-carousel-button.is-visible {
  opacity: 0.95;
  visibility: visible;
  pointer-events: auto;
}

.bts-carousel-button:focus-visible,
a.bts-category:focus-visible {
  outline: 3px solid #0c7cba;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(12, 124, 186, 0.2);
}

.bts-carousel-button-left {
  left: -24px;
}

.bts-carousel-button-right {
  right: -24px;
}

.bts-carousel-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bts-carousel-button span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

a.bts-category h4 {
  padding-bottom: 24px;
  color: rgba(0, 0, 0, 0.75);
  transition: all 0.6s ease;
  text-decoration-thickness: 3px;
  text-decoration: none;
  font-size: 20px;
  line-height: 1.4;
}

a.bts-category:hover h4 {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  /* text-decoration-skip-ink: none; */
  text-underline-offset: 4px;
}

.bts-category img {
  width: 100%;
  scale: 0.95;
  transition: scale 0.6s ease;
  pointer-events: none;
  -webkit-user-drag: none;
}

.bts-category {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.bts-category img,
.bts-category h4 {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}


.bts-button-primary {
  display: inline-block;
  background: #ffe600;
  padding: 1em;
  margin-top: 24px;
  color: #211f18;
  border-radius: 4px;
  border: 1px solid #ffe600;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1em;
  text-align: center;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.bts-button-primary:hover {
  opacity: 90%;
}

.bts-text-section {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  margin: 16px;
}

.bts-clearance {
  margin: 32px 0;
}

.bts-store-section *,
.bts-text-section * {
  max-width: 780px;
}

.bts-store-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  align-items: center;
  justify-content: center;
  margin: 16px;
}

.bts-store-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 8px 0;
  text-align: left;
}

/* Font Styles
======================================= */
.bts-container {
  h2 {
    font-size: 32px;
    line-height: 1.2;
  }

  .bts-text-section h2 {
    font-size: 32px;
    line-height: 1.2;
  }

  h3 {
    font-size: 24px;
    line-height: 1.2;
  }

  h4 {
    font-size: 18px;
    line-height: 1.2;
  }

  p {
    font-size: 18px;
    line-height: 1.4;
  }
}

@media screen and (min-width: 768px) {
  .bts-container {
    h2 {
      font-size: 32px;
      line-height: 1.2;
    }

    .bts-text-section h2 {
      font-size: 48px;
      line-height: 1.2;
    }

    h3 {
      font-size: 24px;
      line-height: 1.2;
    }

    p {
      font-size: 18px;
      line-height: 1.4;
    }
  }
}

/* Media Queries
======================================= */

@media screen and (max-width: 767px) {
  .bts-section-image {
    width: 100%;
  }
}

@media screen and (min-width: 768px) {
  .bts-hero {
    display: flex;
    flex-direction: row;
  }

  .bts-section {
    flex-direction: row;
  }

  .bts-section.reverse {
    flex-direction: row-reverse;
  }

  .bts-section img {
    padding-right: 16px;
    padding-left: 0px;
  }

  .bts-section.reverse img :not(.bts-text-heading) {
    padding-right: 0;
    padding-left: 16px;
  }

  .bts-section > * {
    flex: 1 1 auto;
    width: 50%;
  }

  .bts-section > * img {
    max-width: none;
  }

  .bts-hero-content {
    padding: 32px;
  }

  .bts-heading img {
    max-width: 600px;
  }

  .bts-subheading span,
  .bts-subheading strong {
    font-size: 24px;
  }

  .bts-clearance-info {
    flex-direction: row;
    align-items: center;
  }

  .bts-clearance-content h3 {
    font-size: 96px !important;
  }

  .bts-clearance-info h4 {
    font-size: 48px !important;
  }

  .bts-clearance-info span {
    font-size: 24px !important;
  }

  .bts-store-grid {
    grid-template-columns: repeat(4, 1fr);
  }

}

@media screen and (max-width: 767px) {
  .bts-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    cursor: default;
  }

  .bts-category-grid.dragging {
    cursor: default;
  }

  .bts-category {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
  }

  .bts-carousel-button {
    display: none !important;
  }
}

@media screen and (min-width: 990px) {
  .bts-hero-content {
    padding: 64px;
  }
}
