/* =========================================================
   Embroidery China — Product detail template (Journal-style grid)
   English B2B storefront. Injected via Nginx sub_filter, loaded site-wide
   but every selector is scoped to the product detail article or .su-pd-*,
   so home / category / i18n pages are untouched.

   2026-11-07 update: TaoBao-style purchasing.
     - The main photograph is clean: no captions, buttons or share icons
       are positioned over it any more.
     - Thumbnails, the photo counter and the zoom hint sit BELOW the photo.
     - "Choose the design" swatches are real product options; the chosen
       photo travels into the cart / order.
     - Enlarging opens a separate full-screen viewer whose counter and
       thumbnails are in their own bars, never drawn on the picture.
   ========================================================= */

/* ---------- one shared column: keep every product-page block aligned ------
   The store theme constrains every direct child of <main> to a 1140px
   "content column". The product card escapes that rule with !important,
   so every block above and below it must do the same.                     */
body.mt-theme main#main > .su-pd-crumb,
body.mt-theme main#main > .su-pd-tabs,
body.mt-theme main#main > .su-pd-related,
body.mt-theme main#main > .su-pd-continue {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: var(--su-width, 1280px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* The share bar keeps its own inner gutter, so only its width is shared. */
body.mt-theme main#main > .su-pd-share-bar {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: var(--su-width, 1280px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Text in the two outer (borderless) blocks lines up with the card gutter. */
body.mt-theme main#main > .su-pd-crumb,
body.mt-theme main#main > .su-pd-continue {
  padding-left: 34px !important;
  padding-right: 34px !important;
}

/* ---------- breadcrumb ---------- */
.su-pd-crumb {
  max-width: var(--su-width, 1280px);
  margin: 26px auto 18px;
  padding: 0 24px;
  font-size: 13px;
  letter-spacing: .02em;
  color: #7a6f5c;
}
.su-pd-crumb a { color: #7a6f5c; text-decoration: none; border-bottom: 1px solid transparent; }
.su-pd-crumb a:hover { color: var(--su-red, #7a2e26); border-bottom-color: var(--su-red, #7a2e26); }
.su-pd-crumb .su-pd-sep { margin: 0 10px; color: #b7a98d; }
.su-pd-crumb .su-pd-here { color: var(--su-ink, #2f2a22); }

/* ---------- two column product card ---------- */
body.mt-theme article.mt-product-detail {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr) !important;
  grid-template-rows: auto auto !important;
  gap: 22px 44px !important;
  align-items: start !important;
  max-width: var(--su-width, 1280px) !important;
  margin: 0 auto 8px !important;
  padding: 30px 34px 34px !important;
  background: var(--su-paper-light, #fbf7ee) !important;
  border: 1px solid var(--su-line, #d8c9ac) !important;
  border-radius: 4px !important;
  box-shadow: 0 10px 34px rgba(47, 42, 34, .07) !important;
}

/* main photo — React owns this node; we only style it and swap its src.
   No CSS zoom/scale: enlarging is handled by the separate viewer, so text
   can never end up painted inside an enlarged picture. */
body.mt-theme article.mt-product-detail > img {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 700px !important;
  aspect-ratio: 640 / 820 !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  background: #fff !important;
  border: 1px solid #e3d8c1 !important;
  border-radius: 3px !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  transform: none !important;
  transition: opacity .18s ease !important;
  cursor: zoom-in !important;
}

/* ---------- gallery: every control sits BELOW the photograph ---------- */
body.mt-theme article.mt-product-detail > .su-pd-gallery {
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: block !important;
  min-width: 0;
  margin-top: 2px;
}
.su-pd-gallery-tools {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 0 0 12px;
}
.su-pd-photo-count {
  font: 600 11px/1 Arial, sans-serif; letter-spacing: .16em;
  text-transform: uppercase; color: #8b7d66; white-space: nowrap;
}
.su-pd-photo-count b { color: var(--su-red, #7a2e26); font-weight: 700; }
.su-pd-zoom-hint {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: #8b7d66; letter-spacing: .02em; white-space: nowrap;
}
.su-pd-zoom-hint svg { width: 15px; height: 15px; fill: none; stroke: currentColor; display: block; }

.su-pd-thumbs-row { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.su-pd-thumbs {
  flex: 1 1 auto; min-width: 0;
  display: flex; gap: 10px; flex-wrap: nowrap;
  overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin;
  scroll-snap-type: x proximity; padding: 2px 2px 8px;
}
.su-pd-thumbs::-webkit-scrollbar { height: 5px; }
.su-pd-thumbs::-webkit-scrollbar-thumb { background: #d8c9ac; border-radius: 4px; }
.su-pd-thumbs button.su-thumb-real {
  box-sizing: border-box !important;
  flex: 0 0 82px; width: 82px; height: auto;
  display: flex !important; flex-direction: column; align-items: stretch; gap: 0;
  padding: 0 0 5px !important;
  border: 1px solid #d8c9ac !important; border-radius: 3px !important;
  background: #fff !important; color: #7a6f5c !important;
  box-shadow: none !important; overflow: hidden; cursor: pointer;
  opacity: .8; scroll-snap-align: start;
  transition: opacity .18s, border-color .18s, transform .18s;
}
.su-pd-thumbs button.su-thumb-real:hover { opacity: 1; transform: translateY(-2px); }
.su-pd-thumbs button.su-thumb-real[aria-pressed="true"] {
  opacity: 1; border: 2px solid var(--su-red, #7a2e26) !important;
}
.su-pd-thumbs button.su-thumb-real img {
  width: 100%; height: 82px; display: block;
  object-fit: cover; object-position: 50% 50%;
  transform: none !important; background: #faf7f0;
}
.su-thumb-caption {
  display: block; padding: 5px 2px 0;
  font: 10px/1.2 Arial, sans-serif; letter-spacing: .03em;
  color: #7a6f5c; text-align: center; white-space: nowrap;
}
.su-pd-thumbs button[aria-pressed="true"] .su-thumb-caption {
  color: var(--su-red, #7a2e26); font-weight: 700;
}
.su-th-nav {
  box-sizing: border-box !important; flex: 0 0 30px; width: 30px !important;
  min-height: 82px; padding: 0 !important;
  border: 1px solid #d8c9ac !important; border-radius: 3px !important;
  background: #fffdf8 !important; color: #7a2e26 !important;
  box-shadow: none !important; cursor: pointer;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  transition: background .18s, color .18s;
}
.su-th-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.su-th-nav:hover { background: #7a2e26 !important; color: #fff !important; }
.su-th-nav[hidden] { display: none !important; }

/* ---------- TaoBao-style design (SKU) swatches in the buying column ---- */
.su-pd-design { width: 100%; margin: 18px 0 4px; }
.su-pd-design-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.su-pd-design-label {
  font: 600 12px/1 Arial, sans-serif; letter-spacing: .14em;
  text-transform: uppercase; color: #7a6f5c;
}
.su-pd-design-selected {
  font: 600 13px/1 var(--su-serif, Georgia, serif); color: var(--su-red, #7a2e26);
}
.su-pd-design-list { display: flex; flex-wrap: wrap; gap: 10px; }
.su-design-item {
  box-sizing: border-box !important; width: 82px; padding: 0 0 5px !important;
  border: 1px solid #d8c9ac !important; border-radius: 3px !important;
  background: #fff !important; color: #7a6f5c !important;
  box-shadow: none !important; overflow: hidden; cursor: pointer;
  display: flex !important; flex-direction: column; gap: 0;
  opacity: .82; transition: opacity .18s, transform .18s, border-color .18s;
}
.su-design-item:hover { opacity: 1; transform: translateY(-2px); }
.su-design-item img {
  width: 100%; height: 82px; display: block;
  object-fit: cover; object-position: 50% 50%; background: #faf7f0;
}
.su-design-item span {
  display: block; padding: 5px 2px 0;
  font: 10px/1.2 Arial, sans-serif; letter-spacing: .03em;
  color: #7a6f5c; text-align: center; white-space: nowrap;
}
.su-design-item[aria-pressed="true"] {
  opacity: 1; border: 2px solid var(--su-red, #7a2e26) !important;
  box-shadow: 0 4px 12px rgba(122, 46, 38, .16) !important;
}
.su-design-item[aria-pressed="true"] span { color: var(--su-red, #7a2e26); font-weight: 700; }
.su-pd-design-note { margin: 10px 0 0 !important; font-size: 12px; line-height: 1.6; color: #8b7d66; }
.su-pd-cart-toast {
  margin: 12px 0 0 !important; padding: 11px 14px;
  border: 1px solid #b9cdb6; border-radius: 3px;
  background: #f2f8ef; color: #3f6b45; font-size: 13px; line-height: 1.5;
}
.su-pd-cart-toast[hidden] { display: none !important; }
.su-pd-cart-toast a { color: #3f6b45; font-weight: 700; text-decoration: underline; }

/* React's native radio fieldset must stay in the DOM (FormData reads it),
   but the photo swatches above are the visible control. */
body.mt-theme article.mt-product-detail .mt-form fieldset {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* React-owned info column: reorder styling only */
body.mt-theme article.mt-product-detail > div:first-of-type {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
  min-width: 0 !important;
}
body.mt-theme article.mt-product-detail > div:first-of-type > .mt-eyebrow {
  margin: 2px 0 10px !important;
  font-size: 12px !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  color: #8b7d66 !important;
}
body.mt-theme article.mt-product-detail > div:first-of-type > h1 {
  margin: 0 0 16px !important;
  font-family: var(--su-display, Georgia, serif) !important;
  font-size: clamp(27px, 2.7vw, 38px) !important;
  line-height: 1.18 !important;
  font-weight: 500 !important;
  letter-spacing: -.01em !important;
  color: var(--su-ink, #2f2a22) !important;
}
body.mt-theme article.mt-product-detail > div:first-of-type > .mt-price {
  margin: 0 0 6px !important;
  font-family: var(--su-display, Georgia, serif) !important;
  font-size: 32px !important;
  line-height: 1 !important;
  color: var(--su-red, #7a2e26) !important;
  font-weight: 600 !important;
}
body.mt-theme article.mt-product-detail > div:first-of-type > p:nth-of-type(3) {
  margin: 0 0 20px !important;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px !important; letter-spacing: .04em;
  color: #3f6b45 !important; text-transform: uppercase;
}
body.mt-theme article.mt-product-detail > div:first-of-type > p:nth-of-type(3)::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4f8a58;
}
/* long description moves into the Description tab */
body.mt-theme article.mt-product-detail > div:first-of-type > p:nth-of-type(4) { display: none !important; }

body.mt-theme article.mt-product-detail > div:first-of-type > .mt-form {
  display: flex !important; flex-wrap: wrap; align-items: flex-end; gap: 12px !important;
  margin: 4px 0 0 !important; width: 100% !important;
}
body.mt-theme article.mt-product-detail > div:first-of-type > .mt-form > label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #7a6f5c;
}
body.mt-theme article.mt-product-detail > div:first-of-type > .mt-form input[type="number"] {
  width: 88px; height: 44px; padding: 0 10px;
  border: 1px solid var(--su-line, #d8c9ac); border-radius: 3px;
  background: #fff; color: var(--su-ink, #2f2a22); font: 16px/1 var(--su-serif, Georgia, serif);
  box-sizing: border-box;
}
body.mt-theme article.mt-product-detail > div:first-of-type > .mt-form > button {
  height: 44px; min-width: 190px; padding: 0 30px !important;
  background: var(--su-red, #7a2e26) !important; color: #fff !important;
  border: 0 !important; border-radius: 3px !important;
  font: 600 14px/1 var(--su-serif, Georgia, serif) !important;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: background .18s, transform .18s;
}
body.mt-theme article.mt-product-detail > div:first-of-type > .mt-form > button:hover {
  background: #5d211b !important; transform: translateY(-1px);
}

/* Secondary action beside Add to Cart: a plain link to /cart, never a submit.
   Outline styling keeps the red primary button dominant. */
body.mt-theme article.mt-product-detail > div:first-of-type > .mt-form > a.su-pd-view-cart {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  flex: 0 1 auto; box-sizing: border-box;
  height: 44px; min-width: 128px; padding: 0 14px;
  background: #fff !important; color: var(--su-red, #7a2e26) !important;
  border: 1px solid var(--su-red, #7a2e26) !important; border-radius: 3px;
  font: 600 11px/1 var(--su-serif, Georgia, serif) !important;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none !important; white-space: nowrap; cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}
body.mt-theme article.mt-product-detail > div:first-of-type > .mt-form > a.su-pd-view-cart svg {
  width: 15px; height: 15px; flex: 0 0 15px;
}
body.mt-theme article.mt-product-detail > div:first-of-type > .mt-form > a.su-pd-view-cart:hover,
body.mt-theme article.mt-product-detail > div:first-of-type > .mt-form > a.su-pd-view-cart:focus-visible {
  background: var(--su-red, #7a2e26) !important; color: #fff !important;
  transform: translateY(-1px);
}

/* Cart lines: the feed thumb (300x300) is cropped into the theme's 100x90
   box, so each row shows the embroidery design the customer actually chose. */
.su-cart-design-img {
  object-fit: cover !important; object-position: 50% 50% !important;
}
@media (max-width: 640px) {
  body.mt-theme article.mt-product-detail > div:first-of-type > .mt-form > a.su-pd-view-cart {
    flex: 1 1 100%;
  }
}

/* ---------- extra info column (our own node, safe to inject) ---------- */
body.mt-theme article.mt-product-detail .su-pd-extra {
  align-self: stretch !important;
  width: 100%;
  min-width: 0;
  margin-top: 24px;
  border-top: 1px solid var(--su-line, #d8c9ac);
  padding-top: 20px;
}
.su-pd-meta { margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.su-pd-meta > div {
  display: flex; flex-direction: column; gap: 4px;
  padding: 9px 14px 9px 0;
  border-bottom: 1px dashed #e0d3ba;
}
.su-pd-meta dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8b7d66; }
.su-pd-meta dd { margin: 0; font-size: 15px; color: var(--su-ink, #2f2a22); }

.su-pd-enquire-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 2px 0 4px; padding: 13px 26px;
  background: transparent; color: var(--su-red, #7a2e26);
  border: 1px solid var(--su-red, #7a2e26); border-radius: 3px;
  font: 600 14px/1 var(--su-serif, Georgia, serif);
  letter-spacing: .06em; cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}
.su-pd-enquire-cta:hover { background: var(--su-red, #7a2e26); color: #fff; transform: translateY(-1px); }
.su-pd-enquire-cta svg { width: 16px; height: 16px; }

/* ---------- share bar: its own full-width row below the product card ---- */
.su-pd-share-bar {
  margin-top: 14px; margin-bottom: 0; padding: 14px 34px;
  background: var(--su-paper-light, #fbf7ee);
  border: 1px solid var(--su-line, #d8c9ac); border-radius: 4px;
  box-shadow: 0 8px 24px rgba(47, 42, 34, .05);
}
.su-pd-share { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; position: relative; }
.su-pd-share-label {
  margin-right: 6px; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: #8b7d66;
}
.su-pd-share a, .su-pd-share > button {
  width: 42px; height: 42px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 9px; color: #fff; cursor: pointer;
  box-shadow: 0 3px 10px rgba(47, 42, 34, .18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  text-decoration: none !important;
}
.su-pd-share a:hover, .su-pd-share > button:hover {
  transform: translateY(-3px); box-shadow: 0 9px 20px rgba(47, 42, 34, .26); filter: brightness(1.08);
}
.su-pd-share svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.su-pd-share .su-sh-more  { background: #7a2e26; }  /* brand vermilion */
.su-pd-share .su-sh-fb    { background: #1877f2; }  /* Facebook blue */
.su-pd-share .su-sh-x     { background: #111111; }  /* X black */
.su-pd-share .su-sh-wa    { background: #25d366; }  /* WhatsApp green */
.su-pd-share .su-sh-mail  { background: #d18a20; }  /* warm gold / email */
.su-pd-share .su-sh-f     { font: 700 26px/1 Georgia, serif; }
.su-pd-share .su-sh-plus  { font: 400 30px/1 Arial, sans-serif; }

.su-pd-more {
  position: absolute; bottom: 52px; left: 0; z-index: 30;
  min-width: 190px; padding: 8px;
  background: #fff; border: 1px solid var(--su-line, #d8c9ac); border-radius: 6px;
  box-shadow: 0 10px 30px rgba(47, 42, 34, .2);
  display: none;
}
.su-pd-more[data-open="1"] { display: block; }
.su-pd-more a, .su-pd-more button {
  display: block; width: 100%; padding: 9px 12px;
  background: none; border: 0; border-radius: 4px; text-align: left;
  font: 14px/1.3 var(--su-serif, Georgia, serif); color: var(--su-ink, #2f2a22);
  text-decoration: none; cursor: pointer;
}
.su-pd-more a:hover, .su-pd-more button:hover { background: #f4efe4; }
.su-pd-copied { font-size: 12px; color: #3f6b45; }

/* ---------- tab bar (Description / Specifications / Enquire) ---------- */
.su-pd-tabs {
  max-width: var(--su-width, 1280px);
  margin: 30px auto 44px;
  background: var(--su-paper-light, #fbf7ee);
  border: 1px solid var(--su-line, #d8c9ac);
  border-radius: 4px;
  box-shadow: 0 10px 34px rgba(47, 42, 34, .06);
  overflow: hidden;
}
.su-pd-tabbar { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--su-line, #d8c9ac); background: #f7f1e5; }
/* The theme's global `button` rule paints every button vermilion with white
   text. A descendant selector + !important is required, otherwise the third
   tab ends up red-on-red and becomes invisible. */
:is(#su-pd-tabs, #pv-tabs) .su-pd-tabbar .su-pd-tab {
  padding: 16px 26px !important;
  border: 0 !important; border-right: 1px solid #e6d9bf !important;
  border-radius: 0 !important; box-shadow: none !important;
  background: #f7f1e5 !important; color: #6b6151 !important;
  cursor: pointer;
  font: 600 14px/1 var(--su-serif, Georgia, serif) !important;
  letter-spacing: .07em; text-transform: uppercase;
  transition: background .18s, color .18s;
}
:is(#su-pd-tabs, #pv-tabs) .su-pd-tabbar .su-pd-tab:hover { background: #efe5d1 !important; color: #7a2e26 !important; }
:is(#su-pd-tabs, #pv-tabs) .su-pd-tabbar .su-pd-tab[aria-selected="true"] { background: #7a2e26 !important; color: #fff !important; }
:is(#su-pd-tabs, #pv-tabs) .su-pd-tabbar .su-pd-tab--enquire { color: #7a2e26 !important; font-weight: 700 !important; }
:is(#su-pd-tabs, #pv-tabs) .su-pd-tabbar .su-pd-tab--enquire[aria-selected="true"] { color: #fff !important; }
.su-pd-panel { padding: 30px 36px 36px; }
.su-pd-panel[hidden] { display: none !important; }
.su-pd-panel h3 { margin: 0 0 16px; font: 500 24px/1.3 var(--su-display, Georgia, serif); color: var(--su-ink, #2f2a22); }
.su-pd-panel p { margin: 0 0 14px; font-size: 16px; line-height: 1.8; color: #4c4438; }
.su-pd-panel .su-pd-spec { margin: 0; display: grid; grid-template-columns: 190px 1fr; }
.su-pd-panel .su-pd-spec > div { padding: 12px 8px; border-bottom: 1px dashed #e0d3ba; }
.su-pd-panel .su-pd-spec dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8b7d66; }
.su-pd-panel .su-pd-spec dd { margin: 5px 0 0; font-size: 16px; color: var(--su-ink, #2f2a22); }

/* enquiry form lives inside the third tab — strip the standalone card chrome */
.su-pd-panel .su-inquiry {
  margin: 0 !important; padding: 0 !important;
  border: 0 !important; box-shadow: none !important; background: transparent !important;
}
.su-pd-panel .su-inquiry > h3 { display: none; }
.su-pd-panel .su-inquiry .su-sub { margin-bottom: 22px !important; }

/* ---------- description picture flow (TaoBao-style long images) ------ */
.su-pd-detail-images[hidden] { display: none !important; }
.su-pd-detail-images {
  margin-top: 32px; padding-top: 26px;
  border-top: 1px dashed var(--su-line, #d8c9ac);
}
.su-pd-detail-images h4 {
  margin: 0 0 8px; font: 500 20px/1.35 var(--su-display, Georgia, serif);
  color: var(--su-ink, #2f2a22);
}
.su-pd-detail-intro {
  margin: 0 0 22px !important; font-size: 14px !important;
  line-height: 1.7 !important; color: #8b7d66 !important;
}
.su-pd-detail-flow { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.su-pd-detail-figure { margin: 0; width: 100%; max-width: 920px; }
/* The theme paints every <button> vermilion. Strip that off the picture. */
body.mt-theme .su-pd-detail-figure button {
  display: block !important; width: 100% !important; max-width: none !important;
  margin: 0 !important; padding: 0 !important; line-height: 0 !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: transparent !important; color: inherit !important; cursor: zoom-in;
}
.su-pd-detail-figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--su-line, #d8c9ac); background: #fff;
}
.su-pd-detail-figure figcaption {
  margin-top: 9px; text-align: center;
  font: 500 11px/1.4 Arial, sans-serif; letter-spacing: .12em;
  text-transform: uppercase; color: #8b7d66;
}
.su-pd-detail-figure figcaption b { color: var(--su-red, #7a2e26); }

.su-pd-continue {
  max-width: var(--su-width, 1280px); margin: 0 auto 56px; padding: 0 24px;
  text-align: center; font-size: 15px;
}
.su-pd-continue a { color: var(--su-red, #7a2e26); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Related Products carousel --------------------------------- */
body.mt-theme .su-pd-related {
  max-width: var(--su-width, 1280px);
  margin: 0 auto 46px;
  padding: 0;
}
body.mt-theme .su-pd-related[hidden] { display: none !important; }
.su-pd-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.su-pd-related-title h2 { margin: 0 0 8px; font: 500 26px/1.2 var(--su-display, Georgia, serif); letter-spacing: .02em; color: var(--su-ink, #2f2a22); }
.su-pd-related-rule { display: block; width: 52px; height: 2px; margin-bottom: 9px; background: var(--su-red, #7a2e26); }
.su-pd-related-title p { margin: 0; font-size: 13px; color: #8b7d66; }
.su-pd-related-nav { display: flex; gap: 10px; padding-bottom: 4px; }
body.mt-theme .su-pd-related .su-pd-related-nav button {
  box-sizing: border-box !important;
  width: 38px !important; height: 38px !important; padding: 0 !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  border: 1px solid #d8c9ac !important; border-radius: 50% !important;
  background: #fffdf8 !important; color: #2f2a22 !important;
  box-shadow: 0 2px 8px rgba(47, 42, 34, .06) !important;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s, opacity .18s;
}
body.mt-theme .su-pd-related .su-pd-related-nav button svg { width: 17px; height: 17px; display: block; }
body.mt-theme .su-pd-related .su-pd-related-nav button:hover:not(:disabled) {
  background: #7a2e26 !important; color: #fffdf8 !important; border-color: #7a2e26 !important;
}
body.mt-theme .su-pd-related .su-pd-related-nav button:disabled { opacity: .32 !important; cursor: default; }

.su-pd-related-track {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 3px 0 10px; margin: 0;
}
.su-pd-related-track::-webkit-scrollbar { display: none; }
.su-rel-card {
  box-sizing: border-box; flex: 0 0 calc((100% - 64px) / 4.5); min-width: 0;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e3d8c1; border-radius: 3px;
  scroll-snap-align: start; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.su-rel-card:hover { transform: translateY(-3px); border-color: #cdb894; box-shadow: 0 12px 26px rgba(47, 42, 34, .11); }
.su-rel-media { position: relative; display: block; aspect-ratio: 4 / 5; background: #f4f2ee; border-bottom: 1px solid #eee6d6; overflow: hidden; }
.su-rel-media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.su-rel-card:hover .su-rel-media img { transform: scale(1.045); }
.su-rel-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 8px; background: rgba(255, 253, 248, .94);
  border: 1px solid #e2d4b9; color: #7a2e26;
  font: 600 9px/1 Arial, sans-serif; letter-spacing: .1em; white-space: nowrap;
}
.su-rel-body { padding: 14px 14px 12px; flex: 1 1 auto; }
.su-rel-sku { margin: 0 0 6px !important; font: 11px/1 Arial, sans-serif; letter-spacing: .12em; color: #a2947c; }
.su-rel-body h3 {
  margin: 0 0 10px !important;
  font: 400 14.5px/1.45 var(--su-serif, Georgia, serif) !important;
  color: #3b3429 !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 42px;
}
.su-rel-body h3 a { color: inherit !important; text-decoration: none !important; }
.su-rel-body h3 a:hover { color: var(--su-red, #7a2e26) !important; }
.su-rel-price { margin: 0 !important; font: 600 16px/1.2 var(--su-serif, Georgia, serif); color: #7a2e26; }
.su-rel-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-top: 1px solid #eee6d6; background: #fffdf8; }
.su-rel-view { font: 12px/1 var(--su-serif, Georgia, serif); letter-spacing: .03em; color: #4c4438 !important; text-decoration: none !important; white-space: nowrap; }
.su-rel-view:hover { color: var(--su-red, #7a2e26) !important; }
.su-rel-view span { margin-left: 5px; }
.su-rel-enquire {
  box-sizing: border-box; width: 28px; height: 28px; flex: 0 0 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #d8c9ac; border-radius: 50%; color: #7a2e26;
  transition: background .18s, color .18s, border-color .18s;
}
.su-rel-enquire svg { width: 15px; height: 15px; fill: currentColor; }
.su-rel-enquire:hover { background: #7a2e26; border-color: #7a2e26; color: #fffdf8; }

/* ---------- full-screen photo viewer ---------------------------------
   The bar, arrows and thumbnails are separate flex rows. Nothing is
   absolutely positioned over the enlarged photograph.                  */
body.su-lb-open { overflow: hidden !important; }
.su-lightbox[hidden] { display: none !important; }
.su-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  /* Fully opaque: a translucent stage let the underlying page text bleed
     through and look like captions printed on the enlarged photograph. */
  background: #1c1814; color: #f5efe2;
}
.su-lightbox-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 16px;
  padding: 14px 26px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.su-lightbox-title {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 400 15px/1.3 var(--su-serif, Georgia, serif); color: #e8dcc4;
}
.su-lightbox-count { font: 600 12px/1 Arial, sans-serif; letter-spacing: .14em; color: #c9b995; white-space: nowrap; }
.su-lightbox-count b { color: #fff; }
body.mt-theme .su-lightbox button {
  padding: 0 !important; box-shadow: none !important; border-radius: 50% !important;
  background: rgba(255, 255, 255, .06) !important; color: #f5efe2 !important;
  border: 1px solid rgba(255, 255, 255, .3) !important;
  cursor: pointer; transition: background .18s, border-color .18s;
}
body.mt-theme .su-lightbox button:hover { background: #7a2e26 !important; border-color: #7a2e26 !important; }
.su-lightbox-close {
  flex: 0 0 38px; width: 38px !important; height: 38px !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  font: 300 26px/1 Arial, sans-serif !important;
}
.su-lightbox-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px 26px; }
.su-lightbox-img {
  display: block; max-width: calc(100% - 110px); max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.su-lightbox-arrow {
  flex: 0 0 42px; width: 42px !important; height: 42px !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
}
.su-lightbox-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
.su-lightbox-foot {
  flex: 0 0 auto; display: flex; align-items: center; gap: 18px;
  padding: 12px 26px 18px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.su-lightbox-hint { flex: 0 0 auto; font-size: 11px; letter-spacing: .06em; color: #a99a7c; white-space: nowrap; }
.su-lightbox-thumbs { flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; overflow-x: auto; justify-content: flex-end; scrollbar-width: thin; }
body.mt-theme .su-lightbox .su-lightbox-thumbs button {
  flex: 0 0 54px; width: 54px !important; height: 54px !important;
  border-radius: 3px !important; padding: 0 !important; overflow: hidden;
  background: #fff !important; border: 1px solid rgba(255, 255, 255, .25) !important;
  opacity: .6;
}
body.mt-theme .su-lightbox .su-lightbox-thumbs button[aria-pressed="true"] { opacity: 1; border: 2px solid #d9574b !important; }
.su-lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  body.mt-theme main#main > .su-pd-crumb,
  body.mt-theme main#main > .su-pd-continue { padding-left: 20px !important; padding-right: 20px !important; }
  .su-pd-share-bar { padding: 14px 20px !important; }
  body.mt-theme article.mt-product-detail {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important; padding: 20px !important;
  }
  body.mt-theme article.mt-product-detail > img { grid-column: 1 !important; grid-row: 1 !important; max-height: 520px !important; }
  body.mt-theme article.mt-product-detail > .su-pd-gallery { grid-column: 1 !important; grid-row: 2 !important; }
  body.mt-theme article.mt-product-detail > div:first-of-type { grid-column: 1 !important; grid-row: 3 !important; }
  .su-pd-meta { grid-template-columns: 1fr; }
  :is(#su-pd-tabs, #pv-tabs) .su-pd-tabbar .su-pd-tab { padding: 14px 16px !important; font-size: 12px !important; }
  .su-pd-panel { padding: 22px 18px 26px; }
  .su-pd-panel .su-pd-spec { grid-template-columns: 130px 1fr; }
  .su-pd-related-title h2 { font-size: 22px !important; }
  .su-rel-card { flex-basis: calc((100% - 16px) / 2); }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .su-rel-card { flex-basis: calc((100% - 48px) / 4); }
}
@media (max-width: 600px) {
  .su-pd-detail-images { margin-top: 24px; padding-top: 20px; }
  .su-pd-detail-images h4 { font-size: 18px; }
  .su-pd-detail-flow { gap: 18px; }
  .su-pd-thumbs button.su-thumb-real { flex-basis: 66px; width: 66px; }
  .su-pd-thumbs button.su-thumb-real img { height: 66px; }
  .su-design-item { width: 66px; }
  .su-design-item img { height: 66px; }
  .su-pd-zoom-hint { font-size: 11px; }
  .su-lightbox-bar, .su-lightbox-foot { padding-left: 14px; padding-right: 14px; }
  .su-lightbox-stage { gap: 8px; padding: 10px 8px; }
  .su-lightbox-img { max-width: calc(100% - 64px); }
  .su-lightbox-arrow { flex-basis: 28px; width: 28px !important; height: 28px !important; }
  .su-lightbox-hint { display: none; }
  .su-lightbox-thumbs { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .su-pd-related-head { align-items: center; }
  .su-pd-related-title p { display: none; }
  .su-rel-card { flex-basis: 72%; }
  .su-pd-related .su-pd-related-nav button { width: 34px !important; height: 34px !important; }
}
