/*--------------------------------------------------------------
# Product Detail Page
--------------------------------------------------------------*/
body.detail-is-loading #productHero,
body.detail-is-loading #articleHero,
body.detail-is-loading #main {
  display: none;
}

body:not(.detail-is-loading) .detail-skeleton {
  display: none;
}

.detail-skeleton {
  min-height: 100vh;
  background: #f7f8f4;
}

.detail-skeleton-hero {
  min-height: 68vh;
  padding: 140px 0 84px;
  background: linear-gradient(110deg, #182019, #263126);
}

.detail-skeleton-main {
  padding: 72px 0;
}

.detail-skeleton-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: 44px;
  align-items: start;
}

.detail-skeleton-line,
.detail-skeleton-media,
.detail-skeleton-actions span,
.detail-skeleton-cards span {
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(100deg, #e1e5dc 30%, #f2f4ee 48%, #e1e5dc 66%);
  background-size: 300% 100%;
  animation: detail-skeleton-shimmer 1.45s ease-in-out infinite;
}

.detail-skeleton-hero .detail-skeleton-line,
.detail-skeleton-hero .detail-skeleton-actions span {
  background-image: linear-gradient(100deg, rgba(255, 255, 255, .09) 30%, rgba(255, 255, 255, .2) 48%, rgba(255, 255, 255, .09) 66%);
}

.detail-skeleton-line {
  width: 100%;
  height: 14px;
  margin-bottom: 15px;
}

.detail-skeleton-line--back {
  width: 150px;
  height: 12px;
  margin-bottom: 32px;
}

.detail-skeleton-line--label {
  width: 112px;
  height: 11px;
  margin-bottom: 18px;
}

.detail-skeleton-line--title {
  width: min(680px, 88%);
  height: 54px;
  margin-bottom: 12px;
}

.detail-skeleton-line--title-short {
  width: min(420px, 62%);
  height: 54px;
}

.detail-skeleton-line--meta {
  width: 250px;
  height: 13px;
  margin-top: 30px;
}

.detail-skeleton-actions,
.detail-skeleton-cards {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.detail-skeleton-actions span {
  width: 160px;
  height: 46px;
}

.detail-skeleton-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
}

.detail-skeleton-copy {
  padding-top: 8px;
}

.detail-skeleton-line--heading {
  width: 70%;
  height: 34px;
  margin-bottom: 30px;
}

.detail-skeleton-line--text-short {
  width: 72%;
}

.detail-skeleton-cards span {
  width: 50%;
  height: 92px;
  border-radius: 6px;
}

@keyframes detail-skeleton-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

@media (max-width: 767px) {
  .detail-skeleton-hero {
    min-height: 560px;
    padding: 122px 0 64px;
  }

  .detail-skeleton-main {
    padding: 48px 0;
  }

  .detail-skeleton-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .detail-skeleton-media {
    aspect-ratio: 16 / 11;
  }

  .detail-skeleton-line--title,
  .detail-skeleton-line--title-short {
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-skeleton-line,
  .detail-skeleton-media,
  .detail-skeleton-actions span,
  .detail-skeleton-cards span {
    animation: none;
  }
}

.product-detail-hero {
  --product-image: url("../img/menu/minyak_sereh.jfif");
  position: relative;
  min-height: 68vh;
  padding: 140px 0 84px;
  background:
    linear-gradient(90deg, rgba(15, 19, 13, 0.88) 0%, rgba(15, 19, 13, 0.68) 48%, rgba(15, 19, 13, 0.28) 100%),
    var(--product-image) center / cover no-repeat;
}

.product-detail-hero .container {
  max-width: 960px;
}

.product-back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font: 500 13px "Poppins", sans-serif;
}

.product-back-link:hover {
  color: #fff;
}

.product-detail-category,
.product-detail-eyebrow,
.product-detail-note span {
  display: block;
  margin-bottom: 12px;
  color: #9cb080;
  font: 700 11px "Poppins", sans-serif;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.product-detail-hero h1 {
  max-width: 760px;
  margin: 0 0 22px;
  color: #fff;
  font: 600 58px/1.05 "Playfair Display", serif;
}

.product-detail-hero p {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font: 400 17px/1.85 "Poppins", sans-serif;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.product-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid #9cb080;
  border-radius: 999px;
  font: 600 13px "Poppins", sans-serif;
}

.product-detail-btn-primary {
  color: #171914;
  background: #9cb080;
}

.product-detail-btn-primary:hover {
  color: #171914;
  background: #b3c59a;
  border-color: #b3c59a;
}

.product-detail-btn-secondary {
  color: #eef4e6;
  background: rgba(255, 255, 255, 0.05);
}

.product-detail-btn-secondary:hover {
  color: #171914;
  background: #eef4e6;
  border-color: #eef4e6;
}

.product-detail-main {
  padding: 72px 0;
  background: #f7f8f4;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 44px;
  align-items: start;
}

.product-detail-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e7eadf;
  border-radius: 6px;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-image-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #fff;
  cursor: zoom-in;
}

.featured-image-link img {
  transition: transform 0.4s ease;
}

.featured-image-link:hover,
.featured-image-link:focus-visible {
  color: #fff;
  outline: none;
}

.featured-image-link:hover img,
.featured-image-link:focus-visible img {
  transform: scale(1.035);
}

.featured-image-link:focus-visible {
  box-shadow: inset 0 0 0 3px #9cb080;
}

.featured-image-zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(18, 22, 16, 0.58);
  color: #fff;
  font-size: 17px;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.featured-image-link:hover .featured-image-zoom,
.featured-image-link:focus-visible .featured-image-zoom {
  background: #7f9265;
  transform: translateY(-2px);
}

.product-detail-copy h2 {
  margin: 0 0 18px;
  color: #1d2419;
  font: 600 38px/1.18 "Playfair Display", serif;
}

.product-description {
  margin: 0;
  color: #4b5148;
  font: 400 15px/1.9 "Poppins", sans-serif;
}

.product-description > :last-child {
  margin-bottom: 0;
}

.product-description ul,
.product-description ol {
  padding-left: 22px;
}

.product-detail-facts {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.product-detail-facts div {
  padding-top: 16px;
  border-top: 1px solid rgba(29, 36, 25, 0.12);
}

.product-detail-facts span,
.product-detail-order dt {
  display: block;
  margin-bottom: 6px;
  color: #6d7d5d;
  font: 700 10px "Poppins", sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.product-detail-facts strong,
.product-detail-order dd {
  margin: 0;
  color: #283024;
  font: 500 14px/1.7 "Poppins", sans-serif;
}

.product-detail-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 70px;
}

.product-detail-columns > div {
  width: 100%;
  min-width: 0;
  padding-right: 36px;
  box-sizing: border-box;
}

.product-detail-columns > div:last-child {
  padding-right: 0;
}

.product-detail-columns h3 {
  margin: 0 0 18px;
  color: #1d2419;
  font: 600 24px/1.25 "Playfair Display", serif;
}

.product-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-detail-list li {
  position: relative;
  padding-left: 22px;
  color: #4b5148;
  font: 400 14px/1.75 "Poppins", sans-serif;
}

.product-detail-list li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  background: #9cb080;
  border-radius: 50%;
  content: "";
}

.product-detail-order {
  margin: 0;
}

.product-detail-order dd + dt {
  margin-top: 18px;
}

.product-detail-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(29, 36, 25, 0.12);
}

.product-detail-note p {
  max-width: 720px;
  margin: 0;
  color: #4b5148;
  font: 400 14px/1.8 "Poppins", sans-serif;
}

.product-more {
  margin-top: 64px;
  padding-top: 52px;
  border-top: 1px solid rgba(29, 36, 25, 0.12);
}

.product-more-header {
  max-width: 680px;
  margin-bottom: 34px;
}

.product-more-header h2 {
  margin: 0 0 12px;
  color: #1d2419;
  font: 600 36px/1.2 "Playfair Display", serif;
}

.product-more-header p {
  margin: 0;
  color: #62685e;
  font: 400 14px/1.75 "Poppins", sans-serif;
}

.product-more-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 52px;
  border-top: 1px solid rgba(29, 36, 25, 0.12);
}

.product-more-group {
  padding: 26px 0 22px;
  border-bottom: 1px solid rgba(29, 36, 25, 0.12);
}

.product-more-group h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 10px;
  color: #66794f;
  font: 600 20px/1.35 "Playfair Display", serif;
}

.product-more-group h3 span {
  color: #899184;
  font: 600 10px/1 "Poppins", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-more-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-more-list li + li {
  border-top: 1px solid rgba(29, 36, 25, 0.08);
}

.product-more-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  color: #283024;
  font: 500 14px/1.55 "Poppins", sans-serif;
}

.product-more-list a i {
  flex: none;
  color: #9cb080;
  font-size: 16px;
  transition: transform 0.25s ease;
}

.product-more-list a:hover,
.product-more-list a:focus-visible {
  color: #66794f;
  outline: none;
}

.product-more-list a:hover i,
.product-more-list a:focus-visible i {
  transform: translateX(4px);
}

@media (max-width: 991px) {
  .product-detail-hero {
    min-height: 58vh;
    padding: 128px 0 70px;
  }

  .product-detail-hero h1 {
    font-size: 46px;
  }

  .product-detail-grid,
  .product-detail-columns {
    grid-template-columns: 1fr;
  }

  .product-detail-grid {
    gap: 32px;
  }

  .product-detail-columns {
    row-gap: 36px;
  }

  .product-more-groups {
    grid-template-columns: 1fr;
  }

  .product-detail-columns > div {
    padding-right: 0;
  }

  .product-detail-media {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 575px) {
  .product-detail-hero {
    padding: 112px 0 58px;
  }

  .product-detail-hero h1 {
    font-size: 38px;
  }

  .product-detail-hero p {
    font-size: 15px;
  }

  .product-detail-actions,
  .product-detail-note {
    width: 100%;
  }

  .product-detail-btn {
    text-align: center;
    width: auto;
  }

  .product-detail-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-more {
    margin-top: 48px;
    padding-top: 40px;
  }

  .product-more-header h2 {
    font-size: 32px;
  }
}
