/* ==========================================================================
   Product details page (Figma: "Product Details - Neumorphism")
   Loads after style.css and reuses its tokens + components.
   Desktop values are the 1440 design; tablet/mobile follow the home page system.
   Vertical rhythm is tightened a little (same spirit as the home page).
   ========================================================================== */

ol { margin: 0; padding: 0; list-style: none; } /* Bootstrap gives <ol> a bottom margin; style.css only resets <ul> */
.tr-pd-card .tr-card-title a { color: inherit; }

/* ------------------------------ 01 Hero ------------------------------ */
.tr-pd-hero { padding: 168px 0 0; } /* 112 nav + 56 */

.tr-pd-crumbs { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--ink-50); white-space: nowrap; }
.tr-pd-crumbs > span[aria-hidden] { color: rgba(32, 32, 33, .3); }
.tr-pd-crumbs a { transition: color .3s ease-out; }
.tr-pd-crumbs a:hover { color: var(--charcoal); }
.tr-pd-crumbs [aria-current] { color: var(--charcoal); overflow: hidden; text-overflow: ellipsis; }

.tr-pd-hero__content { display: flex; align-items: flex-start; gap: 80px; }

/* Gallery */
.tr-pd-gallery { flex: 0 0 600px; width: 600px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.tr-pd-main { padding: 20px; border-radius: 48px; background: var(--cream); box-shadow: var(--neu-raised-l); }
.tr-pd-main__well { height: 560px; border-radius: 32px; }
.tr-pd-main__well > img { inset: auto; left: var(--l, 0%); top: var(--t, 0%); width: var(--s, 100%); height: var(--s, 100%); max-width: none; }
.tr-pd-zoom { position: absolute; right: 20px; bottom: 20px; z-index: 3; width: 48px; height: 48px; border-radius: 24px; background: rgba(255, 251, 234, .88); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); display: grid; place-items: center; transition: background-color .3s ease-out; }
.tr-pd-zoom img { position: static; width: 14px; height: 14px; }
@media (hover: hover) { .tr-pd-zoom:hover { background: var(--white); } }

.tr-pd-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tr-pd-thumb { position: relative; height: 132px; padding: 8px; border-radius: 24px; background: var(--cream); box-shadow: var(--neu-raised-s); transition: box-shadow .3s ease-out; }
.tr-pd-thumb > span { position: relative; display: block; width: 100%; height: 100%; border-radius: 18px; overflow: hidden; opacity: .75; transition: opacity .3s ease-out; }
.tr-pd-thumb img { position: absolute; left: var(--l, 0%); top: var(--t, 0%); width: var(--s, 100%); height: var(--s, 100%); max-width: none; object-fit: cover; display: block; }
.tr-pd-thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--gold); box-shadow: var(--neu-inset-s); opacity: 0; transition: opacity .3s ease-out; pointer-events: none; }
.tr-pd-thumb.is-active { box-shadow: none; }
.tr-pd-thumb.is-active::after { opacity: 1; }
.tr-pd-thumb.is-active > span { opacity: 1; }
@media (hover: hover) { .tr-pd-thumb:not(.is-active):hover > span { opacity: 1; } }

/* Buy box */
.tr-pd-buy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.tr-pd-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tr-pd-tag { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; white-space: nowrap; }
.tr-pd-tag--dark { background: var(--night); color: var(--gold); }
.tr-pd-tag--soft { padding-left: 10px; background: var(--cream); color: var(--charcoal); box-shadow: var(--neu-inset-s); }

.tr-pd-title { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.tr-pd-h1 { margin: 0; font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 400; line-height: var(--lh-h1); letter-spacing: var(--ls-h1); color: var(--charcoal); }
.tr-pd-rating { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tr-pd-rating b { font-size: var(--fs-card); line-height: 1.3; color: var(--charcoal); }
.tr-pd-rating__count { font-size: var(--fs-body); line-height: 1.5; color: rgba(32, 32, 33, .6); text-decoration: underline; text-underline-position: from-font; transition: color .3s ease-out; }
.tr-pd-rating__count:hover { color: var(--charcoal); }
.tr-pd-stars { display: inline-flex; gap: 6px; }
.tr-pd-stars img { display: block; }
.tr-pd-stars--lg { gap: 4px; }
.tr-pd-stars--sm { gap: 3px; }

.tr-pd-price { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tr-pd-price__now { font-family: var(--font-display); font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: -.01em; color: var(--charcoal); white-space: nowrap; }
.tr-pd-price__was { font-size: var(--fs-body); line-height: 1.5; color: rgba(32, 32, 33, .45); }
.tr-pd-save { padding: 6px 12px; border-radius: 999px; background: var(--gold); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--night); white-space: nowrap; }
.tr-pd-desc { max-width: 540px; }

.tr-pd-field { width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

.tr-pd-groove { width: 100%; height: 64px; padding: 6px; border-radius: 32px; background: var(--white); box-shadow: var(--neu-inset); display: flex; gap: 6px; }
.tr-pd-groove button { flex: 1 1 0; min-width: 0; border-radius: 26px; display: grid; place-items: center; font-size: var(--fs-card); font-weight: 700; line-height: 1.3; color: rgba(32, 32, 33, .5); white-space: nowrap; transition: color .3s ease-out, background-color .3s ease-out, box-shadow .3s ease-out; }
.tr-pd-groove button.is-active { background: var(--white); color: var(--charcoal); box-shadow: var(--neu-raised-s); }
@media (hover: hover) { .tr-pd-groove button:not(.is-active):hover { color: var(--charcoal); } }

.tr-pd-sizes { display: flex; gap: 14px; flex-wrap: wrap; }
.tr-pd-sizes button { position: relative; width: 150px; height: 76px; border-radius: 24px; background: var(--cream); box-shadow: var(--neu-raised-s); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; white-space: nowrap; transition: box-shadow .3s ease-out; }
.tr-pd-sizes b { font-size: var(--fs-card); line-height: 1.3; color: var(--charcoal); }
.tr-pd-sizes span { font-size: var(--fs-body); line-height: 1.5; color: rgba(32, 32, 33, .6); }
.tr-pd-sizes button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--gold); box-shadow: var(--neu-inset-s); opacity: 0; transition: opacity .3s ease-out; pointer-events: none; }
.tr-pd-sizes button.is-active { box-shadow: none; }
.tr-pd-sizes button.is-active::after { opacity: 1; }

.tr-pd-purchase { width: 100%; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tr-pd-qty { height: 64px; padding: 0 8px; border-radius: 32px; background: var(--cream); box-shadow: var(--neu-inset); display: flex; align-items: center; gap: 20px; flex: none; }
.tr-pd-qty__btn { width: 48px; height: 48px; border-radius: 24px; background: var(--cream); box-shadow: var(--neu-raised-s); display: grid; place-items: center; transition: box-shadow .3s ease-out; }
@media (hover: hover) { .tr-pd-qty__btn:hover { box-shadow: -3px -3px 8px #fff, 3px 3px 8px rgba(176, 153, 107, .32); } }
.tr-pd-qty__btn:disabled { opacity: .4; cursor: not-allowed; }
.tr-pd-qty__val { min-width: 12px; text-align: center; font-size: var(--fs-card); font-weight: 700; line-height: 1.3; color: var(--charcoal); font-variant-numeric: tabular-nums; }
.tr-pd-purchase .tr-btn.is-added { background: var(--night); color: var(--gold); }

.tr-pd-delivery { width: 100%; display: flex; flex-wrap: wrap; gap: 10px; }
.tr-pd-drow { height: 52px; padding: 0 20px 0 6px; border-radius: 26px; background: var(--cream); box-shadow: var(--neu-inset-s); display: flex; align-items: center; gap: 12px; font-size: var(--fs-body); line-height: 1.5; color: var(--charcoal); white-space: nowrap; }
.tr-pd-drow--a { flex: 1 1 0; min-width: 0; }
.tr-pd-drow--b { flex: 0 0 306px; }
.tr-pd-drow--c { flex: 1 1 100%; }
.tr-pd-drow__icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--cream); box-shadow: var(--neu-raised-s); display: grid; place-items: center; }

/* ------------------------------ 02 Macro dials ------------------------------ */
.tr-pd-macros { margin-top: 96px; padding: 80px 0; }
.tr-pd-macros__inner { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.tr-pd-macros .tr-h2 { max-width: 900px; }
.tr-pd-dials { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.tr-pd-dial { --d: 250px; --p: 360deg; position: relative; width: var(--d); height: var(--d); flex: none; border-radius: 50%; background: var(--white); box-shadow: var(--neuw-raised-l); display: grid; place-items: center; }
.tr-pd-dial__track, .tr-pd-dial__progress { position: absolute; inset: 6%; width: 88%; height: 88%; display: block; }
.tr-pd-dial__progress { -webkit-mask: conic-gradient(#000 var(--p), transparent 0); mask: conic-gradient(#000 var(--p), transparent 0); }
.tr-pd-dial.is-empty .tr-pd-dial__progress { display: none; }
.tr-pd-dial__progress > span { position: absolute; display: block; }
.tr-pd-dial__progress--1 > span { inset: 0; }
.tr-pd-dial__progress--2 > span { inset: 0 0 0 34.55%; }
.tr-pd-dial__progress--3 > span { inset: 0 15.77% 82.8% 50%; }
.tr-pd-dial__progress img { display: block; width: 100%; height: 100%; max-width: none; }
.tr-pd-dial__face { position: relative; width: 72%; height: 72%; border-radius: 50%; background: var(--white); box-shadow: var(--neuw-inset); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.tr-pd-dial__face b { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 400; line-height: var(--lh-h2); letter-spacing: -.01em; color: var(--charcoal); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-pd-dial__face span { font-size: var(--fs-body); line-height: 1.5; color: rgba(32, 32, 33, .6); white-space: nowrap; }

/* ------------------------------ 03 Details · tabs ------------------------------ */
.tr-pd-details { padding: 96px 0 80px; }
.tr-pd-tabscroll { margin-bottom: 48px; }
.tr-pd-tabs { height: 80px; padding: 8px; border-radius: 40px; background: var(--white); box-shadow: var(--neu-inset); display: flex; gap: 8px; }
.tr-pd-tab { flex: 1 1 0; min-width: 0; height: 100%; border-radius: 32px; display: grid; place-items: center; font-size: var(--fs-card); font-weight: 700; line-height: 1.3; color: rgba(32, 32, 33, .5); white-space: nowrap; transition: color .3s ease-out, background-color .3s ease-out, box-shadow .3s ease-out; }
.tr-pd-tab.is-active { background: var(--white); color: var(--charcoal); box-shadow: var(--neu-raised-s); }
@media (hover: hover) { .tr-pd-tab:not(.is-active):hover { color: var(--charcoal); } }

.tr-pd-panel { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 64px; align-items: center; min-height: 561px; }
.tr-pd-panel[hidden], .tr-pd-panel [hidden] { display: none !important; }
.tr-pd-factscard { padding: 28px; border-radius: 40px; background: var(--white); box-shadow: var(--neu-raised-l); }
.tr-pd-facts { padding: 20px 24px; border: 2px solid var(--night); border-radius: 8px; background: var(--white); color: var(--night); }
.tr-pd-facts__head { padding-bottom: 12px; border-bottom: 8px solid var(--night); display: flex; flex-direction: column; gap: 4px; }
.tr-pd-facts__title { margin: 0; font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 400; line-height: var(--lh-h2); letter-spacing: -.01em; color: var(--night); }
.tr-pd-facts .tr-body { color: rgba(28, 22, 26, .7); white-space: pre-wrap; }
.tr-pd-fact { padding: 12px 0; border-bottom: 1px solid rgba(28, 22, 26, .25); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; font-size: var(--fs-body); line-height: 1.5; font-weight: 700; color: var(--night); }
.tr-pd-fact--sub { padding-left: 16px; }
.tr-pd-fact--sub span { font-weight: 400; }
.tr-pd-fact--last { border-bottom: 6px solid var(--night); }
.tr-pd-facts .tr-pd-facts__note { margin-top: 12px; color: rgba(28, 22, 26, .5); }
.tr-pd-facts .tr-pd-facts__note + * { margin: 0; }

.tr-pd-use, .tr-pd-desc-panel { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 36px; }
.tr-pd-desc-panel { grid-column: 1 / -1; max-width: 760px; margin-inline: auto; gap: 20px; align-items: stretch; }
.tr-pd-panel--solo .tr-pd-use { grid-column: 1 / -1; max-width: 760px; margin-inline: auto; width: 100%; }
.tr-pd-steps { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.tr-pd-steps li { display: flex; align-items: center; gap: 16px; font-size: var(--fs-body); line-height: 1.5; color: var(--charcoal); }
.tr-pd-knob { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--white); box-shadow: var(--neu-raised-s); display: grid; place-items: center; font-size: var(--fs-card); font-weight: 700; line-height: 1.3; color: var(--charcoal); }
.tr-pd-knob--gold { background: var(--gold); color: var(--night); }
.tr-pd-coach { width: 100%; padding: 20px 24px 20px 20px; border-radius: 28px; background: var(--charcoal); box-shadow: var(--neu-raised-s); display: flex; align-items: center; gap: 16px; }
.tr-pd-coach__icon { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.tr-pd-coach p { max-width: 460px; font-size: var(--fs-body); font-weight: 700; line-height: 1.5; color: var(--cream); }
.tr-pd-bullets { display: flex; flex-direction: column; gap: 12px; }
.tr-pd-bullets li { padding: 14px 20px; border-radius: 28px; background: var(--white); box-shadow: var(--neuw-inset-s); font-size: var(--fs-body); font-weight: 700; line-height: 1.5; color: var(--charcoal); }

/* ------------------------------ 04 Reviews ------------------------------ */
.tr-pd-reviews { padding: 64px 0 80px; background: var(--white); }
.tr-pd-reviews .tr-words { margin-bottom: 48px; max-width: 640px; }
.tr-pd-reviews__grid { display: flex; align-items: flex-start; gap: 32px; }
.tr-pd-summary { flex: 0 0 380px; padding: 36px; border-radius: 40px; background: var(--white); box-shadow: var(--neu-raised-l); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.tr-pd-summary__score { font-family: var(--font-display); font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); color: var(--charcoal); }
.tr-pd-summary .tr-body { color: rgba(32, 32, 33, .6); }
.tr-pd-bars { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.tr-pd-bars li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.tr-pd-bars b { color: var(--charcoal); }
.tr-pd-bars em { font-style: normal; color: var(--ink-50); min-width: 29px; text-align: right; }
.tr-pd-bar { position: relative; flex: 1 1 0; min-width: 0; height: 10px; border-radius: 5px; background: var(--cream); box-shadow: var(--neu-inset-s); overflow: hidden; }
.tr-pd-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); min-width: 10px; border-radius: 5px; background: var(--gold); transform-origin: left; }

.tr-pd-cards { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tr-pd-review { padding: 24px 28px; border-radius: 32px; background: var(--white); box-shadow: var(--neu-raised-s); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tr-pd-review__top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tr-pd-review time { font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: rgba(32, 32, 33, .45); }
.tr-pd-review__text { font-size: var(--fs-body); line-height: 1.5; color: var(--charcoal); }
.tr-pd-review__who { display: flex; align-items: center; gap: 8px; }
.tr-pd-review__who b { font-size: var(--fs-card); line-height: 1.3; color: var(--charcoal); }
.tr-pd-review__who span { font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: rgba(32, 32, 33, .55); }

/* ------------------------------ 05 Pairs well with ------------------------------ */
.tr-pd-pairs { padding: 96px 0; }
.tr-pd-pairs .tr-words { margin-bottom: 48px; max-width: 640px; }
.tr-pd-cardrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.tr-pd-card { flex: 0 1 290px; min-width: 0; padding: 14px 14px 20px; border-radius: 32px; background: var(--white); box-shadow: var(--neu-raised-l); display: flex; flex-direction: column; gap: 18px; }
.tr-pd-card__well { height: 300px; border-radius: 24px; padding: 14px; }
.tr-pd-card__well > img { transition: transform .8s var(--ease-out); }
@media (hover: hover) { .tr-pd-card:hover .tr-pd-card__well > img { transform: scale(1.05); } }
.tr-pd-card__badge { position: absolute; top: 14px; left: 14px; z-index: 3; padding: 6px 12px; border-radius: 999px; background: rgba(255, 251, 234, .88); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--charcoal); white-space: nowrap; }
.tr-pd-card__info { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 0 6px; }
.tr-pd-card__text { min-width: 0; display: flex; flex-direction: column; gap: 4px; white-space: nowrap; }
.tr-pd-card__text .tr-body:not(.tr-body--bold) { color: rgba(32, 32, 33, .65); }
.tr-pd-card .tr-card-title a:hover { text-decoration: underline; }
.tr-pd-card .tr-icon-btn.is-added { background: var(--gold); }

/* ------------------------------ Zoom + toast ------------------------------ */
.tr-pd-zoommodal .modal-content { position: relative; background: var(--cream); border: 0; border-radius: 40px; padding: 20px; overflow: hidden; }
.tr-pd-zoommodal img[data-pd="zoomimg"] { display: block; width: 100%; max-height: 80vh; object-fit: contain; border-radius: 28px; }
.tr-pd-zoommodal__close { position: absolute; top: 28px; right: 28px; z-index: 2; }

.tr-pd-toast { position: fixed; left: 50%; bottom: 28px; z-index: 1080; transform: translate(-50%, 24px); max-width: calc(100vw - 32px); padding: 14px 22px; border-radius: 999px; background: var(--night); color: var(--cream); font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; box-shadow: 0 14px 36px rgba(28, 22, 26, .3); opacity: 0; visibility: hidden; pointer-events: none; text-align: center; }
.tr-pd-toast b { color: var(--gold); }

/* ==========================================================================
   1200 - 1399
   ========================================================================== */
@media (max-width: 1399.98px) {
  .tr-pd-hero__content { gap: 56px; }
  .tr-pd-gallery { flex-basis: 540px; width: 540px; }
  .tr-pd-main__well { height: 500px; }
  .tr-pd-h1 { font-size: 42px; }
  .tr-pd-drow { white-space: normal; height: auto; min-height: 52px; padding-block: 6px; }
  .tr-pd-panel { grid-template-columns: 500px minmax(0, 1fr); gap: 48px; }
  .tr-pd-dial { --d: 232px; }
  .tr-pd-cardrow { gap: 20px; }
}

/* ==========================================================================
   992 - 1199
   ========================================================================== */
@media (max-width: 1199.98px) {
  .tr-pd-hero { padding-top: 152px; }
  .tr-pd-hero__content { gap: 36px; }
  .tr-pd-gallery { flex-basis: 440px; width: 440px; }
  .tr-pd-main { padding: 16px; border-radius: 40px; }
  .tr-pd-main__well { height: 408px; border-radius: 26px; }
  .tr-pd-thumbs { gap: 12px; }
  .tr-pd-thumb { height: 100px; padding: 6px; border-radius: 20px; }
  .tr-pd-h1 { font-size: 32px; }
  .tr-pd-buy { gap: 22px; }
  .tr-pd-groove button { font-size: 14px; }
  .tr-pd-sizes button { width: 128px; }
  .tr-pd-purchase { gap: 12px; }
  .tr-pd-qty { gap: 12px; }
  .tr-pd-drow { white-space: normal; height: auto; min-height: 52px; padding-block: 6px; }
  .tr-pd-drow--a, .tr-pd-drow--b { flex: 1 1 100%; min-width: 0; }

  .tr-pd-macros { margin-top: 72px; }
  .tr-pd-dial { --d: 200px; }
  .tr-pd-dial__face b { font-size: 26px; }

  .tr-pd-details { padding-top: 72px; }
  .tr-pd-tabs { height: 68px; border-radius: 34px; }
  .tr-pd-tab { font-size: 16px; border-radius: 26px; }
  .tr-pd-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; min-height: 0; align-items: start; }
  .tr-pd-factscard { padding: 20px; border-radius: 32px; }
  .tr-pd-facts { padding: 16px 18px; }
  .tr-pd-facts__title { font-size: 26px; }
  .tr-pd-use { gap: 28px; }

  .tr-pd-reviews__grid { gap: 24px; }
  .tr-pd-summary { flex-basis: 320px; padding: 28px; }
  .tr-pd-pairs { padding: 72px 0; }
  .tr-pd-cardrow { gap: 16px; }
  .tr-pd-card { padding: 12px 12px 16px; border-radius: 28px; gap: 14px; }
  .tr-pd-card__well { height: 240px; border-radius: 20px; padding: 12px; }
  .tr-pd-card .tr-icon-btn { --size: 48px; }
  .tr-pd-card .tr-card-title { font-size: 16px; }
  .tr-pd-card .tr-body { font-size: 14px; }
}

/* ==========================================================================
   <= 991 · tablet + mobile structure (mobile system from the home page)
   ========================================================================== */
@media (max-width: 991.98px) {
  .tr-pd-hero { padding-top: 112px; } /* 88 nav + 24 */
  .tr-pd-crumbs { margin-bottom: 20px; font-size: 13px; }
  .tr-pd-hero__content { flex-direction: column; align-items: stretch; gap: 28px; }

  .tr-pd-gallery { flex: none; width: 100%; gap: 16px; }
  .tr-pd-main { padding: 12px; border-radius: 32px; box-shadow: var(--neu-raised-s); }
  .tr-pd-main__well { height: auto; aspect-ratio: 1; border-radius: 24px; }
  .tr-pd-zoom { right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 22px; }
  .tr-pd-thumbs { gap: 10px; }
  .tr-pd-thumb { height: auto; aspect-ratio: 1; padding: 5px; border-radius: 18px; }
  .tr-pd-thumb > span { border-radius: 13px; }

  .tr-pd-buy { gap: 20px; }
  .tr-pd-tag { font-size: 13px; padding: 7px 12px; }
  .tr-pd-title { gap: 10px; }
  .tr-pd-h1 { font-size: 32px; letter-spacing: -.02em; }
  .tr-pd-rating { gap: 5px; }
  .tr-pd-rating b { font-size: 16px; }
  .tr-pd-rating__count { font-size: 14px; }
  .tr-pd-price__now { font-size: 24px; }
  .tr-pd-price__was { font-size: 14px; }
  .tr-pd-save { font-size: 13px; padding: 6px 10px; }
  .tr-pd-desc { max-width: none; }
  .tr-pd-field { gap: 10px; }
  .tr-pd-groove { height: auto; padding: 5px; border-radius: 28px; }
  .tr-pd-groove button { padding: 12px 6px; min-height: 52px; border-radius: 23px; font-size: 13px; white-space: normal; text-align: center; line-height: 1.25; }
  .tr-pd-sizes { width: 100%; flex-wrap: nowrap; gap: 12px; }
  .tr-pd-sizes button { flex: 1 1 0; width: auto; height: 68px; border-radius: 20px; }
  .tr-pd-sizes b { font-size: 16px; }
  .tr-pd-sizes span { font-size: 13px; }
  .tr-pd-purchase { gap: 12px; }
  .tr-pd-qty { height: 56px; border-radius: 28px; gap: 14px; }
  .tr-pd-qty__btn { width: 42px; height: 42px; border-radius: 21px; }
  .tr-pd-purchase > .tr-btn--black { flex: 1 1 100%; justify-content: flex-start; }
  .tr-pd-delivery { gap: 8px; }
  .tr-pd-drow { font-size: 14px; border-radius: 26px; }
  .tr-pd-drow--b { flex: 1 1 100%; }

  /* Macro dials: two by two */
  .tr-pd-macros { margin-top: 40px; padding: 56px 0; }
  .tr-pd-macros__inner { gap: 28px; }
  .tr-pd-macros .tr-h2 { max-width: 342px; }
  .tr-pd-dials { max-width: 342px; flex-wrap: wrap; justify-content: center; gap: 22px; }
  .tr-pd-dial { --d: min(160px, calc((100vw - 2 * var(--gutter) - 22px) / 2)); }
  .tr-pd-dial__face { gap: 2px; }
  .tr-pd-dial__face b { font-size: 22px; line-height: 1.3; }
  .tr-pd-dial__face span { font-size: 13px; font-weight: 700; letter-spacing: .02em; line-height: 1; color: rgba(32, 32, 33, .6); }

  /* Tabs scroll sideways like the home page's vertical tabs */
  .tr-pd-details { padding: 40px 0 48px; }
  .tr-pd-tabscroll { margin: 0 calc(var(--gutter) * -1) 24px; padding: 6px var(--gutter) 14px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tr-pd-tabscroll::-webkit-scrollbar { display: none; }
  .tr-pd-tabs { width: max-content; min-width: 100%; height: 60px; padding: 6px; border-radius: 30px; gap: 6px; }
  .tr-pd-tab { flex: 1 0 auto; padding: 0 18px; border-radius: 24px; font-size: 13px; letter-spacing: .02em; }
  .tr-pd-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tr-pd-factscard { padding: 12px; border-radius: 28px; box-shadow: var(--neu-raised-s); }
  .tr-pd-facts { padding: 16px; }
  .tr-pd-facts__title { font-size: 22px; }
  .tr-pd-facts .tr-body { font-size: 13px; }
  .tr-pd-fact { font-size: 14px; padding: 11px 0; }
  .tr-pd-use { gap: 24px; }
  .tr-pd-steps { gap: 12px; }
  .tr-pd-steps li { gap: 12px; font-size: 14px; }
  .tr-pd-knob { width: 44px; height: 44px; font-size: 16px; }
  .tr-pd-coach { padding: 16px; gap: 12px; border-radius: 24px; }
  .tr-pd-coach__icon { width: 44px; height: 44px; }
  .tr-pd-coach p { font-size: 14px; }

  /* Reviews */
  .tr-pd-reviews { padding: 48px 0; }
  .tr-pd-reviews .tr-words { margin-bottom: 24px; }
  .tr-pd-reviews__grid { flex-direction: column; align-items: stretch; gap: 20px; }
  .tr-pd-summary { flex: none; padding: 24px; border-radius: 32px; box-shadow: var(--neu-raised-s); gap: 16px; }
  .tr-pd-summary__score { font-size: 32px; }
  .tr-pd-cards { gap: 14px; }
  .tr-pd-review { padding: 20px; border-radius: 26px; }
  .tr-pd-review__text { font-size: 14px; }
  .tr-pd-review__who b { font-size: 16px; }
  .tr-pd-review__who { flex-wrap: wrap; }

  /* Pairs: swipe row, same as the home shop */
  .tr-pd-pairs { padding: 48px 0 40px; }
  .tr-pd-pairs .tr-words { margin-bottom: 8px; }
  .tr-pd-cardrow.tr-scroller { align-items: flex-start; padding-top: 16px; padding-bottom: 24px; gap: 16px; justify-content: flex-start; }
  .tr-pd-cardrow.tr-scroller > * { flex: none; }
  .tr-pd-card { width: 240px; padding: 12px 12px 16px; border-radius: 28px; gap: 14px; box-shadow: var(--neuw-raised-l); }
  .tr-pd-card__well { height: 216px; }
  .tr-pd-pairs .tr-dots { margin-top: 8px; }
}

/* ==========================================================================
   768 - 991 · tablet refinements
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root { --gutter: 32px; }
  .tr-pd-hero { padding-top: 128px; }
  .tr-pd-hero__content { flex-direction: row; align-items: flex-start; gap: 28px; }
  .tr-pd-gallery { flex: 0 0 44%; width: auto; }
  .tr-pd-buy { gap: 16px; }
  .tr-pd-h1 { font-size: 26px; }
  .tr-pd-price__now { font-size: 22px; }
  .tr-pd-purchase > .tr-btn { flex: 1 1 auto; }
  .tr-pd-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .tr-pd-reviews__grid { flex-direction: row; align-items: flex-start; gap: 20px; }
  .tr-pd-summary { flex: 0 0 280px; }
  .tr-pd-tabs { width: 100%; }
}

/* ==========================================================================
   Small phones
   ========================================================================== */
@media (max-width: 479.98px) {
  .tr-pd-purchase > .tr-btn--gold { flex: 1 1 0; min-width: 0; }
  .tr-pd-purchase > .tr-btn--gold .tr-btn__label { white-space: nowrap; }
}
@media (max-width: 374.98px) {
  .tr-pd-qty { gap: 8px; }
  .tr-pd-qty__btn { width: 38px; height: 38px; }
  .tr-pd-purchase > .tr-btn { padding-right: 18px; }
  .tr-pd-groove button { font-size: 12px; padding-inline: 4px; }
  .tr-pd-crumbs { gap: 8px; font-size: 12px; }
}

/* ==========================================================================
   Phone design (Figma: The Tribe - Product Details · Mobile, 390)
   Gallery card + 4 equal thumbs, flavour pills, three delivery tiles, a sticky
   buy bar, four small dials, a segmented tab control, swipe reviews and pairs.
   Kept last so it wins over the shared tablet rules above.
   ========================================================================== */
@media (max-width: 767.98px) {
  main .tr-container { padding-inline: 16px; }
  main .tr-container--bleed { padding-inline: 0; }

  /* ---- 01 Hero ---- */
  .tr-pd-hero { padding-top: 104px; }
  .tr-pd-hero > .tr-container { display: flex; flex-direction: column; gap: 16px; }
  .tr-pd-crumbs { margin: 0; gap: 8px; }
  .tr-pd-crumbs a { color: var(--ink-50); }
  .tr-pd-hero__content { gap: 16px; }
  .tr-pd-gallery { gap: 16px; }
  .tr-pd-main { padding: 10px; border-radius: 28px; box-shadow: var(--neu-raised-l); }
  .tr-pd-main__well { height: 320px; aspect-ratio: auto; border-radius: 20px; }
  .tr-pd-thumbs { gap: 10px; }
  .tr-pd-thumb { height: 72px; aspect-ratio: auto; padding: 5px; border-radius: 16px; }
  .tr-pd-thumb > span { border-radius: 12px; }
  .tr-pd-thumb::after { border-width: 1.5px; }

  .tr-pd-buy { gap: 16px; padding-top: 8px; }
  .tr-pd-tag { padding: 5px 10px; font-size: 13px; }
  .tr-pd-tag--soft { gap: 5px; padding-left: 8px; }
  .tr-pd-tag--soft img { width: 12px; height: 12px; }
  .tr-pd-title { gap: 16px; }
  .tr-pd-rating { gap: 4px; flex-wrap: nowrap; }
  .tr-pd-stars { gap: 4px; }
  .tr-pd-stars img { width: 14px; height: 14px; }
  .tr-pd-rating b, .tr-pd-rating__count { font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: rgba(32, 32, 33, .7); text-decoration: none; }
  .tr-pd-rating b { margin-left: 2px; }
  .tr-pd-rating b::after { content: "  ·  "; white-space: pre; }
  .tr-pd-price { gap: 10px; flex-wrap: nowrap; }
  .tr-pd-save { padding: 4px 10px; font-size: 13px; }
  .tr-pd-field { gap: 16px; }

  /* Flavour: swipe row of pills */
  .tr-pd-groove { height: auto; padding: 2px 0 8px; border-radius: 0; background: none; box-shadow: none; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tr-pd-groove::-webkit-scrollbar { display: none; }
  .tr-pd-groove button { flex: none; height: 44px; min-height: 0; padding: 0 16px; border-radius: 22px; background: var(--cream); box-shadow: var(--neu-raised-s); font-size: 13px; line-height: 1; letter-spacing: .02em; color: var(--charcoal); white-space: nowrap; }
  .tr-pd-groove button.is-active { background: var(--night); color: var(--gold); }

  .tr-pd-sizes { gap: 12px; }
  .tr-pd-sizes button { height: 64px; border-radius: 20px; }
  .tr-pd-sizes button::after { border-width: 1.5px; }
  .tr-pd-sizes span { font-weight: 700; line-height: 1; letter-spacing: .02em; }

  /* Delivery: three tiles */
  .tr-pd-delivery { flex-wrap: nowrap; gap: 8px; }
  .tr-pd-drow, .tr-pd-drow--a, .tr-pd-drow--b, .tr-pd-drow--c {
    flex: 1 1 0; min-width: 0; height: auto; min-height: 0; flex-direction: column; justify-content: flex-start; gap: 6px;
    padding: 12px 8px; border-radius: 18px; text-align: center; white-space: nowrap;
    font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .02em;
  }
  .tr-pd-drow__icon { width: 15px; height: 15px; border-radius: 0; background: none; box-shadow: none; }
  .tr-pd-drow__icon img { width: 15px; height: 15px; }

  /* Sticky buy bar */
  .tr-pd-purchase {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; width: auto; flex-wrap: nowrap; gap: 10px;
    padding: 12px 16px 24px; border-radius: 24px 24px 0 0; background: var(--cream); box-shadow: 0 -8px 12px rgba(176, 153, 107, .35);
  }
  .tr-pd-qty { height: 48px; padding: 0 6px; gap: 12px; border-radius: 24px; box-shadow: var(--neu-inset-s); }
  .tr-pd-qty__btn { width: 36px; height: 36px; border-radius: 18px; }
  .tr-pd-qty__btn img { width: 14px; height: 14px; }
  .tr-pd-qty__val { font-size: 16px; }
  .tr-pd-purchase > .tr-btn--gold { flex: 1 1 0; min-width: 0; }
  .tr-pd-purchase > .tr-btn--black { flex: none; width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 24px; background: var(--night); box-shadow: none; }
  .tr-pd-purchase > .tr-btn--black .tr-btn__label { display: none; }
  .tr-pd-purchase > .tr-btn--black .tr-btn__icon { width: 48px; height: 48px; background: none; }
  .tr-pd-toast { bottom: 100px; }

  /* ---- 02 Macro dials ---- */
  .tr-pd-macros { margin-top: 32px; padding: 32px 0; }
  .tr-pd-macros__inner { align-items: flex-start; gap: 18px; }
  .tr-pd-macros .tr-h2 { justify-content: flex-start; max-width: none; }
  .tr-pd-dials { max-width: none; flex-wrap: nowrap; justify-content: space-between; gap: 0; padding-bottom: 21px; }
  .tr-pd-dial { --d: 80px; box-shadow: var(--neuw-raised-s); }
  .tr-pd-dial__track, .tr-pd-dial__progress { inset: 5%; width: 90%; height: 90%; }
  .tr-pd-dial__face { position: static; width: 56px; height: 56px; gap: 0; box-shadow: var(--neuw-inset-s); }
  .tr-pd-dial__face b { font-family: var(--font-body); font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
  .tr-pd-dial__face span { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); }

  /* ---- 03 Details ---- */
  .tr-pd-details { padding: 40px 0 0; }
  .tr-pd-details > .tr-container { display: flex; flex-direction: column; gap: 16px; }
  .tr-pd-tabscroll { margin: 0 -16px; padding: 4px 16px 8px; }
  .tr-pd-tabs { width: max-content; min-width: 0; height: 52px; padding: 5px; gap: 4px; border-radius: 26px; background: var(--cream); }
  .tr-pd-tab { flex: none; padding: 0 16px; border-radius: 22px; }
  .tr-pd-tab.is-active { background: var(--cream); box-shadow: var(--neu-raised-s); }
  .tr-pd-panel { gap: 16px; }
  .tr-pd-factscard { padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .tr-pd-facts { padding: 14px 16px; }
  .tr-pd-facts__head { padding-bottom: 10px; border-bottom-width: 6px; gap: 2px; }
  .tr-pd-facts__title { font-size: 24px; }
  .tr-pd-facts .tr-body { font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: rgba(28, 22, 26, .7); }
  .tr-pd-fact { padding: 9px 0; }
  .tr-pd-fact--sub { padding-left: 12px; }
  .tr-pd-fact--last, .tr-pd-facts .tr-pd-facts__note { display: none; }
  .tr-pd-fact:nth-last-child(2) { border-bottom: 4px solid var(--night); }
  .tr-pd-use { gap: 0; }
  .tr-pd-use > .tr-card-title, .tr-pd-use > [data-pd="ingredients"], .tr-pd-coach { display: none; }
  .tr-pd-steps { flex-direction: row; gap: 8px; }
  .tr-pd-steps li { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 10px; border-radius: 18px; background: var(--cream); box-shadow: var(--neu-raised-s); font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
  .tr-pd-knob { width: 28px; height: 28px; background: var(--cream); box-shadow: var(--neu-inset-s); font-size: 13px; line-height: 1; letter-spacing: .02em; }
  .tr-pd-knob--gold { background: var(--gold); box-shadow: none; }

  /* ---- 04 Reviews ---- */
  .tr-pd-reviews { padding: 48px 0 0; background: none; }
  .tr-pd-reviews > .tr-container { display: flex; flex-direction: column; gap: 16px; }
  .tr-pd-reviews .tr-words { margin-bottom: 0; max-width: none; }
  .tr-pd-reviews__grid { gap: 16px; }
  .tr-pd-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: center; justify-items: center; padding: 16px 18px; border-radius: 24px; background: var(--cream); box-shadow: var(--neu-raised-l); }
  .tr-pd-summary__score { grid-column: 1; font-size: 32px; line-height: 1.2; }
  .tr-pd-summary .tr-pd-stars { grid-column: 1; gap: 2px; margin-top: 4px; }
  .tr-pd-summary .tr-pd-stars img { width: 11px; height: 11px; }
  .tr-pd-summary > .tr-body { grid-column: 1; margin-top: 4px; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: rgba(32, 32, 33, .55); }
  .tr-pd-bars { grid-column: 2; grid-row: 1 / span 3; gap: 6px; }
  .tr-pd-bars li { gap: 8px; font-size: 13px; }
  .tr-pd-bars em { display: none; }
  .tr-pd-bar { height: 8px; border-radius: 4px; }
  .tr-pd-bar i { min-width: 3px; width: calc(var(--w) * .774); border-radius: 4px; }
  .tr-pd-cards { flex-direction: row; gap: 12px; margin: 0 -16px; padding: 8px 16px 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
  .tr-pd-cards::-webkit-scrollbar { display: none; }
  .tr-pd-review { flex: none; width: 280px; padding: 18px; gap: 10px; border-radius: 24px; background: var(--cream); box-shadow: var(--neu-raised-s); scroll-snap-align: start; }
  .tr-pd-stars--sm { gap: 2px; }
  .tr-pd-stars--sm img { width: 12px; height: 12px; }
  .tr-pd-review time { font-size: 13px; }
  .tr-pd-review__who { gap: 0; flex-wrap: nowrap; }
  .tr-pd-review__who img { display: none; }
  .tr-pd-review__who b, .tr-pd-review__who span { font-size: 13px; line-height: 1; letter-spacing: .02em; color: rgba(32, 32, 33, .6); }
  .tr-pd-review__who b::after { content: "  ·  "; white-space: pre; }

  /* ---- 05 Pairs ---- */
  .tr-pd-pairs { padding: 32px 0 120px; }
  .tr-pd-pairs > .tr-container { margin-bottom: 12px; }
  .tr-pd-pairs .tr-words { margin-bottom: 0; }
  .tr-pd-cardrow.tr-scroller { padding: 8px 16px 16px; gap: 12px; scroll-padding-inline: 16px; }
  .tr-pd-card { width: 165px; padding: 8px 8px 12px; border-radius: 22px; gap: 10px; background: var(--cream); box-shadow: var(--neu-raised-l); }
  .tr-pd-card:first-child { display: none; }
  .tr-pd-card__well { height: 150px; padding: 0; border-radius: 16px; }
  .tr-pd-card__badge { display: none; }
  .tr-pd-card__info { padding: 0 4px; }
  .tr-pd-card__text { gap: 2px; }
  .tr-pd-card .tr-card-title { font-size: 14px; line-height: 1.5; }
  .tr-pd-card__text .tr-body:not(.tr-body--bold), .tr-pd-card .tr-icon-btn { display: none; }
  .tr-pd-card__text .tr-body--bold { font-size: 16px; line-height: 1.3; color: var(--charcoal); }
  .tr-pd-pairs .tr-dots { display: none; }
}
@media (max-width: 359.98px) {
  .tr-pd-purchase { gap: 8px; padding-inline: 12px; }
  .tr-pd-qty { gap: 6px; padding: 0 4px; }
  .tr-pd-qty__btn { width: 32px; height: 32px; }
  .tr-pd-purchase > .tr-btn--gold { padding-right: 18px; }
  .tr-pd-dial { --d: 72px; }
  .tr-pd-dial__face { width: 50px; height: 50px; }
  .tr-pd-drow, .tr-pd-drow--a, .tr-pd-drow--b, .tr-pd-drow--c { font-size: 12px; padding-inline: 4px; }
}
@media (max-width: 767.98px) { .tr-pd-cards { flex: none; } [data-qty-minus] img { width: 11px; height: 2px; } }
@media (max-width: 767.98px) { .tr-pd-dial__face span span { position: static; transform: none; } .tr-pd-summary { row-gap: 0; } }
@media (max-width: 767.98px) { .tr-pd-pairs > .tr-container--bleed { margin-bottom: 0; } }
