* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background: #f5f0e8;
  color: #191714;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: #f5f0e8;
  padding: 22px 18px 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.back-btn {
  border: 1px solid rgba(25, 23, 20, 0.18);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 8px 13px;
  color: #50483f;
  font-size: 12px;
  font-weight: 700;
}

.hero {
  margin-bottom: 22px;
}

.eyebrow {
  margin-bottom: 8px;
  color: #9a7c5f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 11vw, 48px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -1.8px;
}

.hero p {
  max-width: 340px;
  margin: 0;
  color: #6d6259;
  font-size: 14px;
  line-height: 1.65;
}

.filter-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 5px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  padding: 9px 13px;
  color: #62584f;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.chip.active {
  border-color: #191714;
  background: #191714;
  color: #fff;
}

.product-list {
  display: grid;
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(25, 23, 20, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  padding: 11px;
  box-shadow: 0 14px 40px rgba(80, 61, 45, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:focus-visible {
  outline: 2px solid #211d19;
  outline-offset: 3px;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(80, 61, 45, 0.12);
}

.image-box {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(25, 23, 20, 0.08);
  border-radius: 16px;
  background: #ded2c4;
}

.image-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-info {
  min-width: 0;
}

.product-name {
  margin: 0 0 7px;
  color: #211d19;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 11px;
}

.stars {
  color: #c6924b;
  font-size: 13px;
  letter-spacing: 1px;
}

.rating-number {
  color: #7a7067;
  font-size: 12px;
  font-weight: 700;
}

.inquire-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  background: #211d19;
  padding: 10px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.whatsapp-return {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(25, 23, 20, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.whatsapp-return.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-return-card {
  position: relative;
  width: min(100%, 390px);
  border: 1px solid rgba(25, 23, 20, 0.1);
  border-radius: 24px;
  background: #fffaf3;
  padding: 26px 22px 22px;
  box-shadow: 0 24px 70px rgba(40, 31, 24, 0.24);
}

.whatsapp-return-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 50%;
  background: #211d19;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.whatsapp-return-kicker {
  margin: 0 0 8px;
  color: #128c4a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.whatsapp-return h2 {
  max-width: 280px;
  margin: 0 0 9px;
  color: #211d19;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.7px;
}

.whatsapp-return p {
  max-width: 290px;
  margin: 0 0 18px;
  color: #6d6259;
  font-size: 14px;
  line-height: 1.5;
}

.whatsapp-return-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25d366;
  padding: 11px 16px;
  color: #111;
  font-size: 13px;
  font-weight: 800;
}

.product-detail-body {
  background: #f5f0e8;
}

.product-detail-page {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 14px 112px;
  background: #f5f0e8;
}

.detail-back {
  position: fixed;
  top: 16px;
  left: max(16px, calc((100vw - 430px) / 2 + 16px));
  z-index: 5;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 50%;
  background: rgba(255, 250, 243, 0.9);
  color: #211d19;
  box-shadow: 0 10px 28px rgba(40, 31, 24, 0.12);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.detail-image-shell {
  min-height: calc(100vh - 126px);
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
}

.detail-image-shell img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}

.detail-bottom {
  position: fixed;
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  bottom: 14px;
  left: max(14px, calc((100vw - 430px) / 2 + 14px));
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(25, 23, 20, 0.1);
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.94);
  padding: 14px;
  box-shadow: 0 18px 48px rgba(40, 31, 24, 0.18);
  backdrop-filter: blur(14px);
}

.detail-kicker {
  margin: 0 0 4px;
  color: #9a7c5f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.detail-bottom h1 {
  margin: 0;
  color: #211d19;
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}

.detail-bottom .inquire-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 118px;
  padding: 12px 18px;
}

@media (min-width: 760px) {
  body {
    background: #ede3d7;
  }

  .page {
    width: min(100%, 860px);
    padding: 42px 42px 54px;
  }

  .product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    grid-template-columns: 180px 1fr;
    padding: 14px;
  }

  .product-name {
    font-size: 21px;
  }

  .inquire-btn {
    width: auto;
    padding-inline: 22px;
  }

  .product-detail-page {
    width: min(100%, 860px);
    padding: 28px 42px 124px;
  }

  .detail-back {
    left: max(32px, calc((100vw - 860px) / 2 + 42px));
  }

  .detail-image-shell {
    min-height: calc(100vh - 152px);
  }

  .detail-bottom {
    right: max(42px, calc((100vw - 860px) / 2 + 42px));
    left: max(42px, calc((100vw - 860px) / 2 + 42px));
    padding: 18px;
  }

  .detail-bottom h1 {
    font-size: 26px;
  }
}

@media (max-width: 360px) {
  .page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .product-card {
    grid-template-columns: 106px 1fr;
    gap: 12px;
    border-radius: 18px;
  }

  .product-name {
    font-size: 15px;
  }

  .inquire-btn {
    padding-inline: 10px;
  }

  .whatsapp-return {
    padding: 12px;
  }

  .whatsapp-return-card {
    border-radius: 20px;
    padding: 24px 18px 18px;
  }

  .detail-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-bottom .inquire-btn {
    width: 100%;
  }
}
