/* ==========================================================================
   Friendly layer — larger type, obvious buttons, plain-language helpers.
   Loaded after the editorial layers so it wins without rewriting them.
   ========================================================================== */

:root {
  --friendly-line: rgba(244, 240, 234, 0.16);
  --friendly-panel: rgba(255, 255, 255, 0.04);
}

body {
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.005em;
}

p { line-height: 1.75; }

/* Micro uppercase labels were 10–11px; make them readable. */
.eyebrow,
.tdm-head .eyebrow,
.page-head .eyebrow,
.findus__eyebrow,
.findus__heading p,
.product_detail_infoTitle,
.field__label,
.price2_title,
.price1_title,
.summary-line span,
.crumbs,
.console-nav__label {
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
}

/* Buttons: bigger tap targets, plain wording. */
.btn,
.product_Info_buy,
.product_Info_shop,
.findus__button,
.tdm-reviews button,
.summary-box button,
.checkout-side button,
button.btn {
  min-height: 54px !important;
  padding: 0 24px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  border-radius: 10px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn--block { width: 100%; }

/* Form fields: easier to hit and read. */
.form-control,
input.form-control,
textarea.form-control,
select.form-control,
.field input,
.field textarea,
.field select {
  min-height: 48px;
  font-size: 16px !important;
  border-radius: 8px;
}

textarea.form-control, .field textarea { min-height: 110px; }

/* Nav: slightly larger, Chinese-friendly line height. */
.nav a, .top-nav a, .main-nav a { font-size: 13px !important; letter-spacing: 0.08em !important; }

/* Product cards: bigger names and prices. */
.product-name,
.product-card__name,
.catalog-card__name,
.order-item__name,
.shoppingCarInfo_title,
.item-name {
  font-size: 17px !important;
  line-height: 1.5 !important;
  font-weight: 600 !important;
}

.price2_price, .product_Info_price .price2_price { font-size: 40px !important; }
.catalog-card__price, .product-card__price { font-size: 22px !important; }

/* ---------- 3-step helper strip (home / checkout) ---------- */
.flow-section { padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--friendly-line); }
.flow-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.flow-head h2 { font-size: clamp(26px, 3vw, 38px); margin: 8px 0 0; }
.flow-head p { color: var(--muted); margin: 0; font-size: 14px; }

.flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.flow-step {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 22px; border: 1px solid var(--friendly-line);
  background: var(--friendly-panel); border-radius: 14px;
  transition: transform 180ms ease-out, border-color 180ms ease-out;
}
a.flow-step:hover { transform: translateY(-3px); border-color: var(--brass); }
/* Needs one more level of specificity than `.flow-step span`, which used to
   repaint the badge as body copy (grey, 14px, block). */
.flow-step .flow-step__num {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brass); color: #15120f; font-weight: 700; font-size: 18px;
  line-height: 1; margin-top: 0;
}
.flow-step b { display: block; font-size: 18px; line-height: 1.4; }
.flow-step small { display: block; margin-top: 4px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.flow-step span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.65; }

/* Product page: inline step hint above the customiser */
.product-flow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 20px 0 4px; padding: 12px 14px;
  border: 1px dashed var(--friendly-line); border-radius: 10px;
  font-size: 13px; color: var(--muted);
}
.product-flow b { color: var(--ink); font-weight: 600; }
.product-flow i { font-style: normal; color: var(--brass); }

/* Checkout: steps above the address block */
.checkout-flow { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
.checkout-flow span {
  padding: 9px 14px; border: 1px solid var(--friendly-line); border-radius: 999px;
  font-size: 13px; color: var(--muted);
}
.checkout-flow span.is-on { border-color: var(--brass); color: var(--ink); background: rgba(217, 187, 140, 0.1); }

/* Review / spec rows: more breathing room */
.tdm-specs__row { padding: 14px 0; }
.tdm-specs__key { font-size: 12px; }
.tdm-specs__val { font-size: 15px; }

/* Mobile: stack helpers, sticky buying bar */
@media (max-width: 760px) {
  .flow-steps { grid-template-columns: 1fr; }
  .flow-step { padding: 18px; }
  .product_Info_buyAndShop {
    position: sticky; bottom: 0; z-index: 30;
    /* Opaque: the page behind used to show through the buttons (tags, links). */
    background: #0b0b0d;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--friendly-line);
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.55);
  }
  /* Two buttons on one row: stacked they made a 260px bar that covered the
     price and the options on a phone. */
  .product_Info_buyAndShop { flex-wrap: nowrap; gap: 10px; }
  .product_Info_buyAndShop .product_Info_buy,
  .product_Info_buyAndShop .product_Info_shop {
    flex: 1 1 0;
    width: auto;
    height: auto;
    min-width: 0;
    margin: 0;
    min-height: 52px !important;
    font-size: 13px !important;
    letter-spacing: 0.1em !important;
  }
  .product_Info_buyAndShop .product_Info_buy { margin-right: 0; }
  .product_Info_buyAndShop .product_Info_shop { margin-left: 0; }
}

/* Bilingual button sub-label (English label + small Chinese echo). It is kept
   out of the i18n pass and only shown while the site is in Chinese. */
.btn__alt {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.72;
}
html[lang="en"] .btn__alt { display: none; }

/* Visible keyboard focus for the boss using a laptop */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

/* ==========================================================================
   Dialogs (jquery-confirm)
   The stock theme put a black title (rgba(0,0,0,.87)) on the #111114 panel and
   a grey body, so "Open account" and friends were unreadable. Panel is now a
   grey surface with gold headings, matching the brief.
   ========================================================================== */
body .jconfirm .jconfirm-bg {
  background: rgba(4, 4, 5, 0.76) !important;
  backdrop-filter: blur(2px);
}

body .jconfirm .jconfirm-box {
  background: #17171a !important;
  border: 1px solid rgba(244, 240, 234, 0.18) !important;
  border-radius: 4px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65) !important;
  padding: 26px 26px 20px !important;
}

body .jconfirm .jconfirm-title-c {
  color: var(--brass) !important;
  font-family: var(--serif);
  font-size: 24px !important;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding-bottom: 4px;
}

body .jconfirm .jconfirm-content,
body .jconfirm .jconfirm-content p,
body .jconfirm .jconfirm-content label {
  color: #ddd6c8 !important;
  font-size: 14px !important;
  line-height: 1.7;
}

body .jconfirm .jconfirm-content input,
body .jconfirm .jconfirm-content .form-control {
  background: #101012 !important;
  border: 1px solid rgba(244, 240, 234, 0.24) !important;
  color: var(--ink) !important;
  min-height: 44px;
  border-radius: 2px;
}

body .jconfirm .jconfirm-content input:focus,
body .jconfirm .jconfirm-content .form-control:focus {
  border-color: var(--brass) !important;
  box-shadow: none !important;
}

body .jconfirm .jconfirm-buttons button {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 2px !important;
  background: #232327 !important;
  border: 1px solid rgba(244, 240, 234, 0.24) !important;
  color: var(--ink) !important;
  font-size: 13px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body .jconfirm .jconfirm-buttons button:hover {
  border-color: var(--brass) !important;
  color: var(--brass) !important;
}

body .jconfirm .jconfirm-buttons button.btn-blue {
  background: var(--brass) !important;
  border-color: var(--brass) !important;
  color: #17120c !important;
  font-weight: 600;
}

body .jconfirm .jconfirm-buttons button.btn-blue:hover {
  background: #e6cda3 !important;
  border-color: #e6cda3 !important;
  color: #17120c !important;
}

body .jconfirm .jconfirm-closeIcon { color: #b8b0a3 !important; }

/* ---------- product page v2 (loaded last, wins over dark.css) ---------- */
.productImg_big { aspect-ratio: 2 / 3; }
.productImg_big video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.productImg_small { display: flex; gap: 10px; flex-wrap: wrap; }
.productImg_thumb {
  width: 72px; height: 108px; padding: 0;
  border: 1px solid var(--line); background: var(--surface);
  opacity: .6; cursor: pointer; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity .25s, border-color .25s;
}
.productImg_thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.productImg_thumb:hover, .productImg_thumb.is-active { opacity: 1; border-color: var(--brass); }
.productImg_play { color: var(--brass); font-size: 18px; line-height: 1; }

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 990px) minmax(320px, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  width: min(1440px, 100% - clamp(32px, 6vw, 96px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) 0;
}
.product-detail-main { min-width: 0; }
.product-detail-side { position: static; min-width: 0; }
.product-detail-side .tdm-reviews { padding: 0; border: 0; margin: 0; }
.product-detail-side .tdm-reviews__grid { grid-template-columns: 1fr; gap: 22px; }
.product-detail-side .tdm-reviews__head { flex-direction: column; gap: 10px; align-items: flex-start; }
.product-detail-side .tdm-reviews__note { max-width: none; }

.product_detail { border: 0; background: transparent; padding: 0; }
.product_detail_img { width: 100%; max-width: 990px; margin: 0 auto; display: block; }
.product_detail_img img { display: block; width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; vertical-align: top; }
.product_detail_html { width: 100%; max-width: 990px; margin: 0 auto; }
.product_detail_html img, .product_detail_html video, .product_detail_html iframe { max-width: 100%; display: block; }

@media (max-width: 1100px) {
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-detail-side { position: static; }
}

/* detail images: force full 990 width, seamless stack */
.product_detail_img { width: 100% !important; max-width: 990px !important; margin: 0 auto !important; display: block !important; }
.product_detail_img img { width: 100% !important; max-width: 990px !important; height: auto !important; display: block !important; margin: 0 !important; border: 0 !important; }
.product_detail_html { width: 100% !important; max-width: 990px !important; margin: 0 auto !important; }
.product_detail_html iframe, .product_detail_html video { width: 100% !important; max-width: 990px !important; display: block; }

/* currency switcher */
.currency-switch { display: inline-flex; align-items: center; margin-right: 10px; }
.currency-switch select {
  background: transparent;
  border: 1px solid var(--line-strong, rgba(244,240,234,.2));
  color: inherit;
  font-size: 10px;
  letter-spacing: .1em;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
}
.currency-switch select:focus { outline: none; border-color: var(--brass); }

/* ---------- carousel: side cards image-only ---------- */
.tdm-carousel .slide .slide__copy { transition: opacity .45s var(--ease); }
.tdm-carousel .slide:not(.is-active) .slide__copy { opacity: 0; visibility: hidden; pointer-events: none; }
.tdm-carousel .slide:not(.is-active) { cursor: pointer; opacity: .55; }

/* ---------- reviews: sticky form, half stars, filter, pager ---------- */
.tdm-review-form-wrap {
  position: sticky;
  top: calc(var(--header-h, 72px) + 12px);
  z-index: 6;
  background: var(--paper);
  padding-bottom: 6px;
}
.star-picker { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.star-picker__btn {
  background: none; border: 0; padding: 2px; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--line-strong);
}
.star-picker__star { color: #4a443a; transition: color .15s; }
.star-picker__star.is-on { color: var(--brass); }
.star-picker__btn:hover .star-picker__star { color: var(--brass); }
.star-picker__value { margin-left: 10px; font-size: 12px; color: var(--muted); }

.stars--pct { position: relative; display: inline-block; font-size: 12px; line-height: 1; letter-spacing: 2px; }
.stars__base { color: var(--line-strong); }
.stars__fill {
  position: absolute; left: 0; top: 0;
  overflow: hidden; white-space: nowrap;
  color: var(--brass);
  width: var(--pct, 100%);
}

.tdm-review-filter {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.tdm-review-filter select {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  font-size: 12px; padding: 4px 8px;
}

.tdm-review-pager { display: flex; gap: 6px; justify-content: center; margin: 18px 0 4px; }
.tdm-review-pager__btn {
  min-width: 34px; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  cursor: pointer; font-size: 12px;
}
.tdm-review-pager__btn.is-on { background: var(--brass); border-color: var(--brass); color: #111; }
.tdm-review-pager__btn:disabled { opacity: .35; cursor: default; }

/* star picker sizing fix */
.star-picker { flex-wrap: nowrap; }
.star-picker__btn {
  flex: 0 0 26px; width: 26px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.star-picker__value { white-space: nowrap; font-size: 11px; }

/* ---------- floating mini cart ---------- */
.minicart-fab {
  position: fixed; right: 22px; bottom: 26px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #000; border: 2px solid var(--brass, #d9bb8c);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.55);
  transition: transform .2s;
  padding: 0;
}
.minicart-fab:hover { transform: scale(1.06); }
.minicart-fab svg { width: 26px; height: 26px; }
.minicart-fab__count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--brass, #d9bb8c); color: #111;
  font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
}
.minicart-fab__count[hidden] { display: none; }

.minicart-popup {
  position: fixed; right: 22px; bottom: 96px; z-index: 901;
  width: min(340px, calc(100vw - 32px));
  background: #121214; color: var(--ink, #f4f0ea);
  border: 1px solid var(--line, #2a2a2e); border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  display: none; overflow: hidden;
}
.minicart-popup.is-open { display: block; }
.minicart-popup__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line, #2a2a2e);
  font-family: var(--serif, Georgia, serif); font-size: 16px;
}
.minicart-popup__close {
  background: none; border: 0; color: var(--muted, #9b948c);
  font-size: 16px; cursor: pointer; line-height: 1; padding: 4px;
}
.minicart-popup__close:hover { color: var(--brass, #d9bb8c); }
.minicart-popup__body { max-height: 46vh; overflow: auto; padding: 10px 16px; }
.minicart-popup__empty { color: var(--muted, #9b948c); font-size: 13px; padding: 18px 0; }
.minicart-popup__list { list-style: none; margin: 0; padding: 0; }
.minicart-popup__item {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line, #222);
}
.minicart-popup__item:last-child { border-bottom: 0; }
.minicart-popup__item img, .minicart-popup__ph {
  width: 44px; height: 58px; object-fit: cover; flex: none;
  background: #1c1c1f; border: 1px solid var(--line, #2a2a2e);
}
.minicart-popup__name { flex: 1; min-width: 0; }
.minicart-popup__name a {
  color: var(--ink, #f4f0ea); font-size: 13px; text-decoration: none;
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.minicart-popup__name a:hover { color: var(--brass, #d9bb8c); }
.minicart-popup__name small { color: var(--muted, #9b948c); font-size: 11px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minicart-popup__meta { text-align: right; flex: none; }
.minicart-popup__meta b { display: block; font-size: 13px; color: var(--brass, #d9bb8c); }
.minicart-popup__meta i { font-style: normal; font-size: 11px; color: var(--muted, #9b948c); }
.minicart-popup__foot { padding: 12px 16px; border-top: 1px solid var(--line, #2a2a2e); }

/* review form: stay in flow (do not chase the scroll) */
.tdm-review-form-wrap { position: static; top: auto; z-index: auto; }

/* ---------- big spec selector (storefront) ---------- */
.bigspec-block { margin: 14px 0 4px; }
.bigspec-options { display: grid; gap: 8px; margin-top: 6px; }
.bigspec-option {
  display: flex; align-items: stretch;
  border: 1px solid var(--line); background: var(--paper-2);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.bigspec-option input { position: absolute; opacity: 0; }
.bigspec-option.is-on { border-color: var(--brass); background: rgba(217,187,140,.08); }
.bigspec-option__body { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; }
.bigspec-option__body b { font-size: 14px; }
.bigspec-option__body i { font-style: normal; margin-left: auto; color: var(--brass); font-size: 14px; }
.bigspec-option__custom {
  font-style: normal; font-size: 10px; letter-spacing: .08em;
  border: 1px solid var(--brass); color: var(--brass);
  padding: 1px 7px; border-radius: 999px;
}
.customise__img { width: 46px; height: 46px; object-fit: cover; border: 1px solid var(--line); margin-right: 10px; flex: none; }
.customise__choice { display: flex; align-items: center; }
.customise__choice > span { flex: 1; }
