/* Layout Styles
======================================= */

:root {
  --brand-color: #1db586;
  --text-color: #000000;
  --text-color-secondary: #666666;
  --text-light: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #edeeee;
  --bg-gradient: linear-gradient(0deg, #000000be 0%, #00000000 30%);
  --bg-gradient-lg: linear-gradient(0deg, #000000be 0%, #00000000 50%);
}

.cricut-container {
  ul {
    list-style-type: disc;
    list-style-position: inside;
  }
}

.cricut-button {
  border-radius: 50px;
  padding: 10px 16px;
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  margin: 4px 0;
}

.cricut-button-primary {
  color: var(--text-light);
  background-color: var(--brand-color);
  border: 2px solid var(--brand-color);
}

.cricut-button-secondary {
  color: var(--text-color);
  background-color: transparent;
  border: 2px solid var(--text-color);
}

.cricut-flex {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cricut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cricut-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cricut-logo {
  width: 160px;
}

.cricut-header h2 {
  background: var(--brand-color);
  color: var(--text-light);
  padding: 32px;
  text-align: center;
}

.cricut-hero,
.cricut-category {
  position: relative;
}

.cricut-overlay:after {
  content: " ";
  position: absolute;
  background-image: var(--bg-gradient);
  inset: 0;
  width: 100%;
  height: 100%;
}

.cricut-overlay-sm:after {
  content: " ";
  position: absolute;
  background-image: var(--bg-gradient-lg);
  inset: 0;
  width: 100%;
  height: 100%;
}

.cricut-hero-content {
  position: absolute;
  bottom: 32px;
  left: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.cricut-light *:not(a) {
  color: var(--text-light);
}

.cricut-category h3 {
  position: absolute;
  bottom: 16px;
  left: 16px;
}

.cricut-feature {
  align-items: center;
}

.cricut-feature-img {
  flex: 1;
}

.cricut-feature-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
  align-items: flex-start;
  padding: 32px;
}

.cricut-video div {
  max-width: 940px;
  margin: 0 auto;
}

.cricut-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.cricut-carousel {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  flex: 1;
}

/* Hide scrollbars */
.cricut-carousel::-webkit-scrollbar {
  display: none;
}

.cricut-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.cricut-carousel img {
  width: 300px;
  height: 300px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.carousel-button {
  position: absolute;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--brand-color);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--brand-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-button:hover {
  background-color: var(--brand-color);
  color: var(--text-light);
}

.carousel-button svg {
  width: 24px;
  height: 24px;
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.cricut-machines-content,
.cricut-consumables-content {
  margin: 0 16px;
}

.cricut-machines,
.cricut-consumables,
.cricut-how,
.cricut-heat-transfers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cricut-product {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cricut-product-image {
  width: 100%;
}

.cricut-product-title {
  height: 24px;
}

.cricut-product-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  flex: 1;
  padding: 16px;
}

.cricut-product-detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  align-items: center;
}

.cricut-text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  background-color: var(--bg-secondary);

  .cricut-text-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 940px;
  }
}

.cricut-card {
  position: relative;
  display: flex;
  flex: 1;
}

.cricut-card img {
  width: 100%;
}

.cricut-card-chip {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  background: var(--bg-primary);
  padding: 18px 12px;
  border-radius: 50px;
}

.cricut-footnote {
  padding: 0 32px;
}

.cricut-footnote span {
  font-size: 0.875rem;
  color: var(--text-color-secondary);
}

/* Font Styles
======================================= */
.hn-main-container {
  body {
    font-size: 16px;
    line-height: 1.4;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.2;
  } /* 32px */
  h2 {
    font-size: 1.75rem;
    line-height: 1.2;
  } /* 28px */
  h3 {
    font-size: 1.5rem;
    line-height: 1.2;
  } /* 24px */
  h4 {
    font-size: 1.25rem;
    line-height: 1.2;
  } /* 20px */
  h5 {
    font-size: 1.125rem;
    line-height: 1.2;
  } /* 18px */
  h6 {
    font-size: 1rem;
    line-height: 1.2;
  } /* 16px */

  @media (min-width: 768px) {
    h1 {
      font-size: 2.5rem;
    } /* 40px */
    h2 {
      font-size: 2rem;
    } /* 32px */
    h3 {
      font-size: 1.75rem;
    } /* 28px */
    h4 {
      font-size: 1.5rem;
    } /* 24px */
    h5 {
      font-size: 1.25rem;
    } /* 20px */
    h6 {
      font-size: 1rem;
    } /* 16px */
  }
}

/* Media Queries
======================================= */
@media screen and (min-width: 1200px) {
  .cricut-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (min-width: 1200px) {

  .cricut-overlay-sm:after {
    background-image: var(--bg-gradient);
  }

}

@media screen and (min-width: 768px) {
  .cricut-flex {
    flex-direction: row;
  }

  .cricut-logo {
    width: 240px;
  }

  .cricut-product-info {
    align-items: flex-start;
    text-align: left;
  }

  .cricut-product-detail {
    align-items: flex-start;
  }
}
