/* Full-page section layout with scroll snapping */
html,
body {
  min-height: 100%;
  height: auto;
}

:root {
  --menu-offset: 0px;
}

.page-section {
  scroll-snap-align: start;
  display: flex;
  padding-top: 32px;
  padding-bottom: 32px;
}

.page-section-hero {
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding: 0;
}


.page-section .container {
  width: 100%;
}

.banner-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  /* desktop default */
  /* background: linear-gradient(to bottom, #DFF2FA 0%, #fff 50%); */
  background: #F7F7F7;
  overflow: hidden;
}

.banner-hero picture,
.banner-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.banner-hero img {
  object-fit: contain;
  object-position: center;
  /* adjust if needed e.g. 50% 35% */
}


.card-product {
  display: grid;
  grid-template-columns: 1fr 2fr;
  width: 100%;
  border: none;
  border-radius: 24px;
  padding: 64px 0px;
  color: var(--color-gray-400, #636363);
  gap: 16px;
}

.product-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.card-product-image img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center;
}

.card-product-body {
  padding: 0px 16px 16px 16px;
}

.card-product-title {
  font-size: 38px;
  font-weight: var(--font-weight-bold);
  color: #808082;
}

.card-product-subtitle {
  color: #008CCF;
}

.price-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.price-box .original {
  font-size: 24px;
  color: #808082;
  text-decoration: line-through;
}

.price-box .current {
  font-size: 34px;
  font-weight: var(--font-weight-bold);
  color: #ED008C;
}

.pet-text-orange {
  color: #F6851F;
}

/* Section 3 - Unlock Story Grid */
.unlock-story-section {
  padding: 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0px;
}

.story-grid-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 200px;
  min-height: 800px;
}

.story-grid-left,
.story-grid-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-dog-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 400px;
  pointer-events: none;
}

.story-dog-image img {
  width: 100%;
  height: auto;
}

.story-card {
  background: #DFF2FA;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  z-index: 1;
  transition: transform 0.2s;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.story-button-container {
  padding: 0px;
  background: none;
  box-shadow: none;
  border-radius: 0px;
  text-align: center;
}

.story-grid-right .story-card {
  z-index: 3;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.story-card-title-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.story-card-icon {
  width: 40px;
  height: 40px;
}

.story-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.story-card-title {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: #008CCF;
  margin-bottom: 0px;
}



.story-card-description {
  font-size: 14px;
  color: #636363;
  line-height: 1.6;
}


.step-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #F7F9FB;
  border-radius: 24px;
  padding: 16px;
}

.card-picture {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-picture img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-card-title-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.step-card-icon {
  width: 40px;
  height: 40px;
}

.step-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.step-card-title {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: #383938;
  margin-bottom: 0px;
}

.show-case-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.show-case-image {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: contain;
  object-position: center;
}

.show-case-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}

.show-case-preview-item {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  max-height: 150px;
  width: 100%;
  box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.10), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
  border: 1px solid #E6E6E6;
}

.show-case-preview-item.active {
  border: 3px solid #ED008C;
}

.show-case-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 991.98px) {


  .page-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  /* .banner-hero {
    aspect-ratio: 4 / 5;
  } */

  .card-product {
    grid-template-columns: 1fr;
  }

  .card-product-image img {
    height: 200px;
  }

  .card-product-subtitle, .card-product-title {
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .price-box {
    justify-content: center;
    flex-direction: column;
  }

  .unlock-story-section {
    padding: 0;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .story-grid-container {
    /* switch to vertical stack */
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: auto;
  }

  .story-dog-image {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 300px;
    margin: 40px auto;
    order: 3; /* move image to bottom */
  }

  .story-grid-right {
    margin-top: 0;
    order: 2;
  }

  .story-grid-left { order: 1; }

  .story-card {
    z-index: 1;
  }

  .step-grid-container {
    grid-template-columns: 1fr;
  }

  .show-case-preview {
    gap: 12px;
  }
}

@media (max-width: 575.98px) {
  .banner-hero {
    aspect-ratio: 4 / 5;
  }
}