.home-shell {
  padding-bottom: 2.5rem;
}

.home-section {
  padding: 2rem 0;
}

.home-section:not(.home-showcase) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 960px;
}

.home-showcase {
  padding-top: 1rem;
}

.home-section-head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}

.home-section-head h1,
.home-section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

.home-section-head h1 {
  font-size: clamp(2rem, 4.8vw, 3.5rem);
}

.home-section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.home-section-head p:last-child {
  margin: 0;
  max-width: 66ch;
  color: var(--muted);
  line-height: 1.7;
}

.home-section-head-large {
  margin-bottom: 1.6rem;
}

.showcase-slider {
  position: relative;
}

.showcase-stage {
  position: relative;
  min-height: 520px;
}

.showcase-slide,
.home-product-card,
.review-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(236, 211, 196, 0.95);
  box-shadow: 0 16px 34px rgba(115, 72, 45, 0.08);
}

.showcase-slide {
  position: absolute;
  top: 36px;
  width: 33%;
  height: 460px;
  border-radius: 26px;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.65s ease,
    opacity 0.65s ease,
    box-shadow 0.65s ease;
}

.showcase-slide.is-left,
.showcase-slide.is-center,
.showcase-slide.is-right {
  opacity: 1;
  pointer-events: auto;
}

.showcase-slide.is-left {
  left: 0;
  transform: translateX(0) scale(0.88);
  z-index: 1;
}

.showcase-slide.is-center {
  left: 50%;
  top: 0;
  width: 42%;
  height: 520px;
  transform: translateX(-50%) scale(1);
  z-index: 3;
  box-shadow: 0 24px 44px rgba(115, 72, 45, 0.16);
}

.showcase-slide.is-right {
  right: 0;
  transform: translateX(0) scale(0.88);
  z-index: 1;
}

.showcase-slide.is-hidden {
  transform: scale(0.72);
  z-index: 0;
}

.showcase-media {
  min-height: 0;
  height: 100%;
  background: linear-gradient(160deg, #fff6ef, #ffe9dd 70%, #f2cab2);
}

.showcase-media img,
.showcase-media video,
.home-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.showcase-media video {
  height: 100%;
}

.showcase-copy {
  padding: 0.8rem 1.2rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  overflow: hidden;
  font-size: 0.9em;
}

.showcase-copy h3,
.home-product-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15em;
}

.showcase-copy h3 {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-copy p,
.home-product-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.showcase-copy p {
  display: none;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.2rem;
}

.showcase-topline,
.home-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.showcase-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 1rem;
}

.showcase-dot {
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-dot::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(169, 79, 46, 0.24);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.showcase-dot.is-active {
  background: transparent;
}

.showcase-dot.is-active::after {
  background: #a94f2e;
  transform: scale(1.12);
}

.home-pill,
.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.home-pill {
  background: rgba(255, 240, 231, 0.95);
  color: var(--brand-strong);
}

.home-pill-accent,
.card-badge {
  background: #a94f2e;
  color: #fff;
}

.card-badge-light {
  background: rgba(255, 245, 238, 0.95);
  color: var(--brand-strong);
  border: 1px solid rgba(236, 211, 196, 0.95);
}

.home-price-row strong {
  font-size: 1.1rem;
  color: var(--brand-strong);
}

.home-price-row span {
  color: var(--muted);
  text-decoration: line-through;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.home-product-card {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.home-category-card {
  display: grid;
  grid-template-rows: 1fr auto;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(236, 211, 196, 0.95);
  background: #fff;
  box-shadow: 0 10px 22px rgba(115, 72, 45, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(115, 72, 45, 0.16);
}

.home-category-media {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: #fff;
  padding: 0.8rem;
  border: 2px solid rgba(169, 79, 46, 0.75);
  border-radius: 10px;
}

.home-category-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-category-label {
  text-align: center;
  font-weight: 700;
  padding: 0.65rem 0.6rem 0.8rem;
  color: #2f1f17;
}

.home-category-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  color: #a94f2e;
  display: grid;
  place-items: center;
}

.home-category-placeholder svg {
  width: 34px;
  height: 34px;
}


.home-blog-card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(236, 211, 196, 0.95);
  box-shadow: 0 16px 34px rgba(115, 72, 45, 0.08);
  display: grid;
  grid-template-rows: 180px auto;
}

.home-product-media {
  position: relative;
  height: 220px;
  background: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 0.35rem;
  box-sizing: border-box;
}

.home-blog-media {
  height: 180px;
  background: linear-gradient(160deg, #fff6ef, #ffe6d8 70%, #f3d1bc);
  display: flex;
  align-items: stretch;
}

.home-blog-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-blog-copy {
  padding: 1rem 1.2rem 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.home-blog-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.home-blog-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-product-media .card-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
}

.home-product-copy {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.home-product-copy h3 {
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

.home-product-copy p {
  line-height: 1.6;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.6em * 3);
}

.home-product-card {
  display: flex;
  flex-direction: column;
}

.home-product-copy .btn {
  margin-top: auto;
  align-self: flex-start;
}

.home-link {
  color: var(--brand-strong);
  font-weight: 800;
  text-decoration: none;
}

.home-link:hover {
  text-decoration: underline;
}

.media-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(160deg, #f7dcca, #edc2a5);
}

.media-fallback span {
  width: 74px;
  height: 74px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.home-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px dashed rgba(236, 211, 196, 0.95);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
}

.home-reviews {
  padding-bottom: 1rem;
}

.review-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.review-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: review-scroll 32s linear infinite;
}

.review-marquee:hover .review-track,
.review-marquee:focus-within .review-track {
  animation-play-state: paused;
}

.review-track.is-paused {
  animation-play-state: paused;
}

.review-card {
  width: min(340px, 78vw);
  border-radius: 22px;
  padding: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.review-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.review-card strong,
.review-card span,
.review-stars {
  display: block;
}

.review-card span {
  color: var(--muted);
}

.review-stars {
  color: #ba6f4b;
  letter-spacing: 0.08em;
}

@keyframes review-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1180px) {
  .showcase-stage {
    min-height: 590px;
  }

  .showcase-slide {
    width: 38%;
  }

  .showcase-slide.is-center {
    width: 85%;
  }
}

@media (max-width: 1100px) {
  .home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .showcase-stage {
    position: relative;
    min-height: 315px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .showcase-slide {
    position: absolute;
    top: 10px;
    width: 90%;
    height: 300px;
    z-index: 3;
    opacity: 1;
    pointer-events: auto;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .showcase-slide.is-center {
    left: 50%;
    transform: translateX(-50%) scale(1);
    height: 300px;
  }

  .showcase-slide.is-left {
    left: -42%;
    width: 90%;
    height: 300px;
    z-index: 2;
    transform: scale(0.85);
    opacity: 0.5;
    pointer-events: none;
    display: grid;
  }

  .showcase-slide.is-right {
    right: -42%;
    width: 90%;
    height: 300px;
    z-index: 2;
    transform: scale(0.85);
    opacity: 0.5;
    pointer-events: none;
    display: grid;
  }

  .showcase-slide.is-hidden {
    display: none;
  }

  .showcase-copy {
    padding: 0.6rem 0.8rem;
  }

  .showcase-copy p,
  .showcase-copy .home-price-row,
  .showcase-copy .btn {
    display: none;
  }
}

@media (max-width: 680px) {
  .home-section {
    padding: 0.5rem 0;
  }

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

  .home-blog-grid {
    grid-template-columns: 1fr;
  }

  .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-product-media {
    min-height: 220px;
    height: 220px;
  }

  .review-marquee {
    mask-image: none;
  }
}
