/* Product page. Follows a product page of amarteskincare.com as measured at a 1920px viewport:
   65px thumbnail rail, 778px picture, 607px information column that starts 72px to its right;
   then the product video, "Complete Your Routine", the dermatologist card and the product FAQ.
   The reviews are left out, and "Add to Cart" is "Send an inquiry" (the shop sells by consultation). */
.pdp-main { max-width: 1532px; margin: 0 auto; padding: 40px 44px 70px; display: grid;
  grid-template-columns: 65px minmax(0, 778fr) minmax(0, 679fr); align-items: start; }
.pdp-main[hidden], .pdp-video[hidden], .pdp-faq[hidden], .pdp-doc[hidden], .pdp-none[hidden], .pdp-opt[hidden] { display: none; }

.pdp-thumbs { display: flex; flex-direction: column; gap: 25px; padding-top: 42px; }
.pdp-thumbs button { width: 65px; height: 65px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: none; overflow: hidden; }
.pdp-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-stage { margin-left: 10px; aspect-ratio: 1; }
.pdp-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }

.pdp-info { padding-left: 72px; padding-top: 0; min-width: 0; }
.pdp-name { font-size: 27px; line-height: 31px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink); }
.pdp-sub { margin-top: 10px; font-size: 15px; line-height: 19.5px; color: var(--muted); }
.pdp-desc { margin-top: 26px; font-size: 14px; line-height: 1.65; color: var(--fg); }
.pdp-desc:empty { display: none; }
.pdp-price { margin-top: 24px; font-size: 20px; line-height: 29px; font-weight: 600; color: var(--btn); }
.pdp-price:empty { display: none; }

.pdp-opt { margin-top: 24px; }
.pdp-opt-label { font-size: 11px; line-height: 24px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.pdp-opt-label b { font-weight: 700; color: var(--ink); }
.pdp-chips { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 8px; }
.pdp-chips button { height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); font-size: 13px; font-weight: 500; color: var(--ink); }
.pdp-chips button[aria-pressed="true"] { background: var(--soft); border-color: var(--btn); font-weight: 600; }

.pdp-buy { display: flex; gap: 14px; margin-top: 34px; }
.pdp-qty { flex: 0 0 auto; display: flex; align-items: center; height: 44px; border: 1px solid var(--line); border-radius: 22px; padding: 0 6px; }
.pdp-qty button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; font-size: 17px; line-height: 1; font-weight: 600; color: var(--btn); }
.pdp-qty button:disabled { opacity: 0.35; cursor: default; }
.pdp-qty output { min-width: 34px; text-align: center; font-size: 14px; font-weight: 600; color: var(--ink); }
.pdp-ask { flex: 1; height: 44px; line-height: 44px; border-radius: 22px; background: var(--btn); color: var(--on); text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 0.4px; }

/* Details / Ingredients / How to use */
.pdp-acc { margin-top: 44px; display: flex; flex-direction: column; gap: 12px; }
.pdp-acc details, .pdp-faq-list details { border: 1px solid var(--line); border-radius: 8px; }
.pdp-acc summary, .pdp-faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pdp-acc summary::-webkit-details-marker, .pdp-faq-list summary::-webkit-details-marker { display: none; }
.pdp-acc summary { min-height: 43px; padding: 0 14px 0 18px; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink); }
.plus { flex: 0 0 auto; position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--soft); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; margin: -0.8px 0 0 -5px; border-radius: 1px; background: var(--btn); }
.plus::after { transform: rotate(90deg); transition: transform 0.2s ease; }
details[open] > summary .plus::after { transform: rotate(0deg); }
.pdp-acc .body { padding: 6px 18px 22px; font-size: 14px; line-height: 1.65; color: var(--fg); }
.pdp-acc .body p + p, .pdp-acc .body p + small, .pdp-acc .body p + ul, .pdp-acc .body ul + p { margin-top: 12px; }
.pdp-acc .body small { display: block; font-size: 12.5px; color: var(--muted); }
.pdp-acc .body ul { list-style: disc; padding-left: 20px; }
.pdp-acc .body strong { font-weight: 600; color: var(--ink); }
.pdp-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px 20px; }
.pdp-key h4 { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.pdp-key .s { margin-top: 6px; font-size: 12.5px; font-style: italic; color: var(--btn); }
.pdp-key .d { margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
/* Baekseol: the key ingredients under their function (hydration, brightening, firming, regeneration) */
.pdp-fn + .pdp-fn { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.pdp-fn .pdp-key:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* four: two rows of two, not three and one */
.pdp-fn h3 { display: inline-block; height: 26px; line-height: 26px; margin-bottom: 14px; padding: 0 13px; border-radius: 13px; background: var(--soft); font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--btn); }
.pdp-full { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.pdp-full b { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }
.pdp-soon { font-size: 14px; color: var(--muted); }

.pdp-none { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 110px 16px; color: var(--muted); text-align: center; }

/* product video: 16:9, never taller than the screen */
.pdp-video { margin: 0 auto 50px; padding: 0 16px; }
.pdp-video .frame { position: relative; aspect-ratio: 16 / 9; max-width: min(100%, calc((100vh - 150px) * 1.7778)); margin: 0 auto; background: var(--soft); }
.pdp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Baekseol: the site's own clip is portrait. It stands on the left, with the dermatologist's picture and text on the
   right (the client found a tinted panel beside the clip awkward); the sound button at the top and the pause button
   at the bottom as on the reference page */
/* the clip on the right, the card on the left in one column of a fixed width: picture, name and text share both edges,
   and the text is set justified so that its lines end evenly */
.pdp-video .vduo { margin: 0 auto; display: grid; grid-template-columns: minmax(0, 440px) 410px; justify-content: center; gap: 84px; align-items: stretch; }
/* the clip is exactly as tall as the card beside it: the row stretches it and the picture is cropped to fit */
.pdp-video .frame.own { order: 2; aspect-ratio: auto; max-width: none; margin: 0; border-radius: 14px; overflow: hidden; }
.pdp-video .frame.own video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.pdp-video .vside .pdp-doc-card { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 0; border-top: 0; }
.pdp-video .vside .pdp-doc-card img { max-width: none; aspect-ratio: 1; }
.pdp-video .vside .pdp-doc-text h3 { font-size: 26px; }
.pdp-video .vside .pdp-doc-text p { margin-top: 16px; font-size: 15px; line-height: 1.75; }
.pdp-video .vsound { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); height: 40px; padding: 0 18px; border: 0; border-radius: 8px; background: rgba(0, 0, 0, 0.82); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.pdp-video .vplay { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 52px; height: 34px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, 0.72); display: grid; place-items: center; }
.pdp-video .vplay svg { width: 16px; height: 16px; fill: #fff; }
.pdp-video .vplay .i-play, .pdp-video .frame.paused .vplay .i-pause { display: none; }
.pdp-video .frame.paused .vplay .i-play { display: block; }

.pdp-rel { max-width: 1171px; margin: 0 auto; padding: 60px 16px 40px; }
.pdp-rel-sub { margin-top: 8px; text-align: center; font-size: 14.5px; font-style: italic; color: var(--btn); }
.pdp-rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 40px; margin-top: 46px; }
.pdp-rel-grid .pic { width: 88%; }

.pdp-doc { max-width: 960px; margin: 0 auto; padding: 30px 16px 70px; }
.pdp-doc-card { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 44px; align-items: center; padding-top: 44px; border-top: 1px solid var(--line); }
.pdp-doc-card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 10px; display: block; }
.pdp-doc-eb { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--btn); }
.pdp-doc-text h3 { margin-top: 10px; font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.pdp-doc-text p { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--fg); }
/* Baekseol: the brand card under the questions, with the wide picture of the whole line */
.pdp-brand { padding-top: 0; padding-bottom: 90px; }
.pdp-doc-card.bs { grid-template-columns: 340px minmax(0, 1fr); padding-top: 56px; }
.pdp-doc-card.bs img { aspect-ratio: 4 / 3; object-position: center; }

.pdp-faq { padding: 64px 16px 90px; background: linear-gradient(180deg, #fdf6f8 0%, var(--bg) 100%); }
.pdp-faq-list { max-width: 860px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.pdp-faq-list details { background: var(--bg); border-radius: 12px; }
.pdp-faq-list summary { min-height: 54px; padding: 0 18px 0 22px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pdp-faq-list .body { padding: 0 22px 20px; font-size: 14px; line-height: 1.7; color: var(--fg); }
.pdp-faq-more { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; font-size: 13.5px; font-style: italic; color: var(--muted); }
.pdp-faq-more a { font-style: normal; height: 34px; line-height: 34px; padding: 0 18px; border-radius: 17px; background: var(--soft); color: var(--ink); font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* Korean breaks lines between words, not inside them */
:lang(ko) .pdp-desc, :lang(ko) .pdp-acc .body, :lang(ko) .pdp-doc-text, :lang(ko) .pdp-faq-list { word-break: keep-all; }

@media (max-width: 1180px) {
  .pdp-main { padding-left: 24px; padding-right: 24px; }
  .pdp-info { padding-left: 40px; }
  .pdp-rel-grid { gap: 16px 20px; }
}
@media (max-width: 820px) {
  .pdp-main { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 44px; }
  .pdp-stage { margin-left: 0; order: 1; }
  .pdp-thumbs { order: 2; flex-direction: row; gap: 10px; padding-top: 10px; overflow-x: auto; scrollbar-width: none; }
  .pdp-thumbs::-webkit-scrollbar { display: none; }
  .pdp-thumbs button { flex: 0 0 58px; width: 58px; height: 58px; }
  .pdp-info { order: 3; padding-left: 0; padding-top: 24px; }
  .pdp-name { font-size: 23px; line-height: 1.25; }
  .pdp-desc { margin-top: 18px; }
  .pdp-acc { margin-top: 32px; }
  .pdp-video { margin-bottom: 20px; padding: 0; }
  .pdp-video .vduo { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pdp-video .frame.own { order: 0; aspect-ratio: 9 / 16; width: 100%; border-radius: 0; }   /* phone: the clip first */
  .pdp-video .vside { padding: 0 16px 10px; }
  .pdp-video .vside .pdp-doc-card { gap: 22px; }
  .pdp-video .vside .pdp-doc-card img { max-width: none; }   /* phone: the portrait as wide as the text under it */
  .pdp-video .vside .pdp-doc-text h3 { font-size: 22px; }
  .pdp-rel { padding-top: 36px; }
  .pdp-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin-top: 26px; }
  .pdp-rel-grid .pic { width: 100%; }
  .pdp-doc { padding-bottom: 44px; }
  .pdp-doc-card { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 32px; }
  .pdp-doc-card img { max-width: none; }
  .pdp-brand { padding-bottom: 56px; }
  .pdp-doc-card.bs { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
  .pdp-doc-card.bs img { max-width: 100%; }
  .pdp-faq { padding: 44px 16px 56px; }
  .pdp-faq-list { margin-top: 26px; }
}
