/* Layout Styles
======================================= */
.sleep-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sleep-caption {
  color: #004378 !important;
  font-weight: 600 !important;
  letter-spacing: 2px;
}

.sleep-section {
  display: flex;
  flex-direction: row;
}

.sleep-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}

.sleep-section-content {
  margin: 16px;
}

.sleep-section-content h2 {
  margin: 16px 0;
}

.sleep-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

.sleep-store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sleep-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 32px;
  text-align: center;
  background: #e6e6e6;
}

.sleep-detail span {
  font-size: 32px;
  font-weight: 800;
  color: #004378;
}

.sleep-category,
.sleep-store {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

a.sleep-category h4 {
  padding: 24px;
  color: rgba(0, 0, 0, 0.75);
  transition: all 0.6s ease;
  text-decoration: none;
  line-height: 1.4;
}

a.sleep-category:hover h4 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  color: rgba(0, 0, 0, 1);
}

.sleep-category img {
  width: 100%;
  scale: 0.95;
  transition: scale 0.6s ease;
}

.sleep-category:hover img {
  scale: 1;
}

.sleep-button-primary {
  display: inline-block;
  background: #004378;
  padding: 1em;
  margin-top: 24px;
  color: #fff;
  border-radius: 4px;
  border: 1px solid #004378;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1em;
  text-align: center;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.sleep-button-primary:hover {
  opacity: 90%;
}

.sleep-text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  align-items: center;
  justify-content: center;
  margin: 32px 16px 64px;
}

.sleep-text-section * {
  max-width: 780px;
}

.sleep-store-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 8px 0;
  text-align: left;
}

/* Font Styles
======================================= */
.sleep-container {
  h2 {
    font-size: 32px;
    line-height: 1.2;
  }

  .sleep-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) {
  .sleep-container {
    h2 {
      font-size: 32px;
      line-height: 1.2;
    }

    .sleep-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) {
  .sleep-section-image {
    width: 100%;
  }
}

@media screen and (min-width: 768px) {
  .sleep-section {
    flex-direction: row;
  }

  .sleep-section.reverse {
    flex-direction: row-reverse;
  }

  .sleep-section img {
    padding-right: 16px;
    padding-left: 0px;
  }

  .sleep-section.reverse img {
    padding-right: 0;
    padding-left: 16px;
  }

  .sleep-section > * {
    flex: 1 1 auto;
    width: 50%;
  }

  .sleep-section > * img {
    width: 100%;
    max-width: none;
  }

  .sleep-grid,
  .sleep-store-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
