/* 02-category-product.css */
.rp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--rp-muted);
  font-size: 13px;
  font-weight: 750;
}

.rp-breadcrumb a { color: var(--rp-ink); }

.rp-category-cover {
  min-height: calc(100svh - var(--rp-header-h));
  display: grid;
  gap: 26px;
  align-items: end;
}

.rp-category-cover h1 { font-size: clamp(52px, 12vw, 128px); }
.rp-category-cover p { max-width: 720px; }

.rp-category-cover__image {
  overflow: hidden;
  border-radius: clamp(28px, 5vw, 54px);
}

.rp-category-cover__image img {
  width: 100%;
  aspect-ratio: 1 / .78;
  object-fit: cover;
}

.rp-product-page {
  background: var(--rp-white);
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

.rp-product-visual {
  min-height: 82svh;
  height: min(100svh, 940px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .8s ease, transform .8s var(--rp-ease);
  overflow: hidden;
}

.rp-product-visual.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rp-product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-product-story {
  padding: clamp(46px, 8vw, 104px) 0 0;
}

.rp-product-intro {
  display: grid;
  gap: 14px;
  padding: clamp(26px, 6vw, 72px) 0;
}

.rp-product-intro h1 {
  max-width: 1100px;
  font-size: clamp(58px, 14vw, 158px);
}

.rp-product-line {
  max-width: 780px;
  color: var(--rp-ink) !important;
  font-size: clamp(23px, 5vw, 42px) !important;
}

.rp-product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
}

.rp-product-price span {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  letter-spacing: -.06em;
}

.rp-product-price em {
  color: var(--rp-muted);
  font-style: normal;
  font-weight: 750;
}

.rp-story-grid {
  display: grid;
  border-top: 1px solid var(--rp-line);
}

.rp-story-grid section {
  display: grid;
  gap: 12px;
  padding: clamp(28px, 5.5vw, 70px) 0;
  border-bottom: 1px solid var(--rp-line);
}

.rp-story-grid span {
  color: var(--rp-accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
}

.rp-story-grid h2 {
  margin: 0;
  font-size: clamp(34px, 7vw, 78px);
  letter-spacing: -.07em;
  line-height: .94;
}

.rp-story-grid p { max-width: 760px; }

.rp-related { display: grid; gap: 22px; }

.rp-buy-bar {
  position: fixed;
  z-index: 65;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.rp-buy-bar form {
  width: min(100%, 860px);
  min-height: 64px;
  margin-inline: auto;
  border: 1px solid var(--rp-line);
  border-radius: 999px;
  background: var(--rp-white);
  box-shadow: 0 16px 54px rgba(22, 18, 19, .13);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.rp-buy-bar__title {
  min-width: 0;
  padding-left: 14px;
  display: grid;
  gap: 1px;
}

.rp-buy-bar__title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: -.035em;
}

.rp-buy-bar__title span {
  color: var(--rp-muted);
  font-size: 13px;
  font-weight: 750;
}

.rp-qty {
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rp-soft);
  border: 1px solid var(--rp-line-soft);
  padding: 0 7px;
}

.rp-qty button {
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 999px;
  background: var(--rp-white);
  color: var(--rp-ink);
  font-weight: 900;
}

.rp-qty strong { min-width: 16px; text-align: center; }

/* ===== Product technical sheet modal ===== */
.rp-product-tech-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid var(--rp-line);
  border-radius: 999px;
  background: var(--rp-white);
  color: var(--rp-ink);
  padding: 12px 18px;
  font-weight: 850;
  letter-spacing: -.02em;
  box-shadow: 0 12px 34px rgba(22, 18, 19, .055);
  transition: transform .22s var(--rp-ease), background .22s ease, border-color .22s ease;
}

.rp-product-tech-button:hover {
  transform: translateY(-1px);
  background: var(--rp-soft);
  border-color: rgba(22, 18, 19, .18);
}

.rp-tech-modal {
  position: fixed;
  z-index: 96;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px;
}

.rp-tech-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(22, 18, 19, .34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.rp-tech-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: min(86svh, 820px);
  overflow: auto;
  border-radius: clamp(28px, 4vw, 44px);
  background: var(--rp-white);
  border: 1px solid rgba(255, 255, 255, .64);
  box-shadow: 0 34px 110px rgba(22, 18, 19, .24);
  padding: clamp(22px, 4vw, 42px);
}

.rp-tech-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rp-line-soft);
}

.rp-tech-modal__head h2 {
  margin: 8px 0 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: .94;
  letter-spacing: -.065em;
}

.rp-tech-modal__close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rp-line-soft);
  border-radius: 999px;
  background: var(--rp-soft);
  color: var(--rp-ink);
  font-size: 26px;
  line-height: 1;
}

.rp-tech-modal__body {
  display: grid;
  gap: 24px;
  padding-top: 24px;
}

.rp-tech-block {
  display: grid;
  gap: 10px;
}

.rp-tech-block h3 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1;
  letter-spacing: -.045em;
}

.rp-tech-block p {
  margin: 0;
  max-width: 640px;
  color: rgba(22, 18, 19, .68);
  line-height: 1.52;
  letter-spacing: -.02em;
}

.rp-nutrition-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 22px;
  background: var(--rp-soft);
}

.rp-nutrition-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 10px;
  color: rgba(22, 18, 19, .52);
  font-size: 13px;
  font-weight: 780;
}

.rp-nutrition-table tr + tr {
  border-top: 1px solid rgba(22, 18, 19, .07);
}

.rp-nutrition-table th,
.rp-nutrition-table td {
  padding: 13px 15px;
  text-align: left;
  font-size: 14px;
}

.rp-nutrition-table th {
  color: rgba(22, 18, 19, .62);
  font-weight: 760;
}

.rp-nutrition-table td {
  text-align: right;
  font-weight: 900;
  color: var(--rp-ink);
}

.rp-tech-note,
.rp-tech-muted {
  margin-top: 6px !important;
  font-size: 13px;
  color: rgba(22, 18, 19, .52) !important;
}

@media (min-width: 760px) {
  .rp-tech-modal {
    place-items: center;
  }
}

@media (max-width: 560px) {
  .rp-product-tech-button {
    width: 100%;
    justify-content: center;
  }

  .rp-tech-modal {
    padding: 10px;
  }

  .rp-tech-modal__panel {
    max-height: 88svh;
    border-radius: 30px;
  }
}
