/* Commerce and reading surfaces. Native WordPress/Woo data and controls stay intact. */

/* Product: an editorial gallery beside a calm, clearly ranked purchase panel. */
.product-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(32px, 5.4vw, 80px);
  padding-block: 18px clamp(48px, 6vw, 88px);
}
.product-layout > * { min-width: 0; }
.product-layout .gallery {
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.product-layout .thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-row: auto;
}
.product-layout .thumbs button {
  width: 60px;
  min-height: 60px;
  flex: 0 0 60px;
  padding: 3px;
  border-radius: 2px;
  border-color: transparent;
  background: var(--paper);
  transition: border-color 180ms ease, opacity 180ms ease;
}
.product-layout .thumbs button:not(.selected) { opacity: .72; }
.product-layout .thumbs button:is(:hover, :focus-visible, .selected) {
  border-color: var(--green);
  opacity: 1;
}
.product-layout .thumbs img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.product-layout .main-image {
  display: grid;
  place-items: center;
  height: auto;
  overflow: hidden;
  background: #ebe8dd;
  border-radius: 2px;
  cursor: zoom-in;
}
.product-layout .main-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}
.product-layout .zoom-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  inset: auto 14px 14px auto;
  background: rgba(252, 250, 245, .94);
  color: var(--ink);
  border: 1px solid rgba(38, 53, 44, .12);
  border-radius: 50%;
}
.product-layout .gallery-caption { padding-top: 13px; font-size: 12px; line-height: 1.6; }
.product-info { padding-top: 5px; }
.product-info > .eyebrow { margin-bottom: 16px; }
.product-info h1 {
  max-width: 14ch;
  margin-bottom: 18px;
  font-size: clamp(34px, 3.5vw, 54px);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.product-info > .small.green { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.product-info > .small.green .icon { width: 15px; height: 15px; flex: 0 0 auto; }
.product-info .desc { max-width: 55ch; margin-block: 22px 24px; font-size: 15px; line-height: 1.8; }
.product-info > .price {
  margin: 0 0 27px;
  font-family: var(--serif);
  font-size: clamp(30px, 2.8vw, 39px);
  line-height: 1.2;
  color: var(--green);
}
.product-info > .price .from-label { font: 12px var(--sans); color: var(--muted); }
.product-info > .field-label { color: var(--ink); font-size: 13px; font-weight: 600; }
.variant-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 12px 15px; }
.product-info .variant-btn {
  display: grid;
  align-content: center;
  justify-content: stretch;
  min-width: 0;
  min-height: 82px;
  padding: 14px 17px;
  gap: 7px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 2px;
  background: rgba(252, 250, 245, .55);
  overflow-wrap: anywhere;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.product-info .variant-btn .price { margin: 0; font: 14px var(--sans); color: var(--muted); }
.product-info .variant-btn:not(:disabled):hover { border-color: var(--green); background: var(--paper); }
.product-info .variant-btn:is(.selected, [aria-pressed="true"]) {
  border-color: var(--green);
  background: #e8eee4;
  box-shadow: inset 0 0 0 1px var(--green);
}
.product-info .variant-btn.selected .price { color: var(--green); }
.product-info .variant-btn:disabled { opacity: .5; cursor: not-allowed; }
.product-info [data-stock-line] { min-height: 20px; margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.product-info .product-buy { gap: 12px; flex-wrap: nowrap; margin-block: 12px; }
.product-info .product-buy .btn { min-height: 50px; padding-inline: 14px; }
.product-info form > .btn { min-height: 50px; }
.product-info .b2b-links { margin-top: 25px; padding-top: 20px; gap: 12px 22px; font-size: 13px; line-height: 1.8; }
.product-info .b2b-links a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.product-info .qty-control,
.line-item .qty-control { height: 48px; background: var(--paper); border-radius: 2px; }
.product-info .qty-control button,
.line-item .qty-control button { width: 40px; height: 46px; padding: 8px; }
.product-info .qty-control input,
.line-item .qty-control input { width: 38px !important; min-height: 44px !important; font-size: 16px; }
.product-info .qty-control button:hover,
.line-item .qty-control button:hover { background: #e8eee4; }
.anchor-nav { background: rgba(245, 242, 235, .97); }
.anchor-nav .wrap { flex-wrap: nowrap; overflow-x: auto; gap: clamp(15px, 2.4vw, 35px); padding-block: 0; scrollbar-width: thin; }
.anchor-nav button {
  position: relative;
  flex: 0 0 auto;
  min-height: 56px;
  padding: 10px 2px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.anchor-nav button::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--green); transform: scaleX(0); transition: transform 180ms ease; }
.anchor-nav button:is(:hover, :focus-visible, [aria-current="true"]) { color: var(--green); }
.anchor-nav button:is(:hover, :focus-visible, [aria-current="true"])::after { transform: scaleX(1); }
.details-grid { gap: clamp(28px, 4.5vw, 64px); }
.details-grid > * { min-width: 0; }
.details-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.details-copy { padding-top: 25px; padding-bottom: 0; }
.details-copy p { line-height: 1.85; }
.spec-list { display: block; border: 0; background: transparent; border-radius: 0; overflow: visible; }
.spec-list > div,
.spec-list > div:nth-last-child(-n + 2) {
  display: grid;
  grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr);
  gap: 20px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
}
.spec-list dt, .spec-list dd { min-height: 0; margin: 0; padding: 0; border: 0; grid-row: auto; }
.spec-list dt { grid-column: 1; color: var(--muted); font-weight: 400; }
.spec-list dd { grid-column: 2; overflow-wrap: anywhere; }
.buy-strip { padding: 12px 20px max(12px, env(safe-area-inset-bottom)); box-shadow: 0 -5px 24px rgba(38, 53, 44, .05); }
.buy-strip .btn { min-height: 44px; }

/* Forms: readable native fields and explicit selected/error states. */
:is(.form-layout, .checkout-layout, .cart-layout, .account-layout, .auth-box, .tracking-layout, .result-layout) > *,
.form-grid > *, .interest-grid > * { min-width: 0; }
:is(.form-layout, .checkout-layout, .account-layout, .auth-box, .tracking-layout, .summary, .cart-tools, .result-layout) .field { gap: 9px; margin-bottom: 24px; }
:is(.form-layout, .checkout-layout, .account-layout, .auth-box, .tracking-layout, .summary, .cart-tools, .result-layout) .field label { font-size: 14px; line-height: 1.6; font-weight: 500; }
:is(.form-layout, .checkout-layout, .account-layout, .auth-box, .tracking-layout, .summary, .cart-tools, .result-layout) .field label small { color: var(--muted); font-weight: 400; }
:is(.form-layout, .checkout-layout, .account-layout, .auth-box, .tracking-layout, .summary, .cart-tools, .result-layout) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]), select, textarea) {
  min-height: 50px;
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.5;
  background: #fffefa;
  border: 1px solid #cbd0c3;
  border-radius: 2px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
:is(.form-layout, .checkout-layout, .account-layout, .auth-box, .tracking-layout, .summary, .cart-tools, .result-layout) textarea { min-height: 136px; resize: vertical; }
:is(.form-layout, .checkout-layout, .account-layout, .auth-box, .tracking-layout, .summary, .cart-tools, .result-layout) :is(input, select, textarea):focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green);
  background: #fffefa;
}
:is(.form-layout, .checkout-layout, .account-layout, .auth-box, .tracking-layout, .summary, .cart-tools, .result-layout) [aria-invalid="true"] { border-color: #944b38; }
.form-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); padding-bottom: 88px; }
.form-layout > .panel { padding: clamp(24px, 3.5vw, 48px); border-top: 3px solid var(--green); box-shadow: 0 12px 40px rgba(38, 53, 44, .035); }
.form-grid { column-gap: 24px; }
.form-layout fieldset { margin-block: 10px 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-layout legend { padding-right: 13px; font-size: 15px; font-weight: 500; color: var(--green); }
.form-layout .interest-grid { margin-top: 8px; gap: 0 20px; }
.form-layout .interest-grid .check { min-height: 46px; align-items: flex-start; padding-block: 10px; margin: 0; }
:is(.form-layout, .checkout-layout, .account-layout, .auth-box) .check { font-size: 14px; gap: 11px; line-height: 1.8; }
:is(.form-layout, .checkout-layout, .account-layout, .auth-box) .check input { width: 18px; height: 18px; margin-top: 4px; }
.form-aside { top: calc(var(--header-h) + 30px); }
.form-aside > img { margin-bottom: 26px; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.form-aside > h3 { font-size: clamp(25px, 2.4vw, 32px); margin-bottom: 16px; }
.form-aside > p { max-width: 45ch; line-height: 1.9; }
.form-aside > .small span { overflow-wrap: anywhere; }
.form-aside .notice { padding: 22px 24px; margin-top: 30px; }
.form-aside .notice h3 { font-size: 21px; }
.form-aside .notice p { font-size: 14px; }
.three-contact .panel { min-height: 164px; border-top: 2px solid var(--line); transition: border-color 180ms ease, background-color 180ms ease; }
.three-contact .panel:hover { border-top-color: var(--green); background: #f1f3eb; }
.field-error { font-size: 13px; line-height: 1.6; }
.field-error:empty, .error-summary:empty { margin: 0; }
.error-summary:not(:empty) { border-left: 3px solid #944b38; padding: 12px 16px; background: #f7eae2; }
.payment-option { min-width: 0; padding: 17px 18px; gap: 12px; border-radius: 2px; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease; }
.payment-option > span { min-width: 0; overflow-wrap: anywhere; }
.payment-option:has(input:checked) { border-color: var(--green); background: #edf1e8; }
.payment-option:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.payment-option small { line-height: 1.65; }

/* Cart and checkout: prices remain real-time; hierarchy does not depend on hiding data. */
.cart-layout, .checkout-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: clamp(32px, 5vw, 74px);
  padding-bottom: 88px;
}
.summary { top: calc(var(--header-h) + 24px); padding: clamp(25px, 3vw, 40px); border: 1px solid #ccd2c3; background: #eaf0e4; border-radius: 2px; }
.summary h2 { font-size: 29px; margin-bottom: 24px; }
.summary .field { margin-bottom: 22px; }
.summary .payment-option { background: rgba(252, 250, 245, .76); }
.summary .money-row { align-items: baseline; gap: 18px; padding-block: 10px; line-height: 1.6; }
.summary .money-row > span:first-child { min-width: 0; }
.summary .money-row > span:last-child { flex-shrink: 0; text-align: right; }
.summary .money-row.total { margin-top: 16px; padding-block: 23px; font-size: 21px; border-top-color: #bcc6b2; }
.summary .btn { margin-top: 6px; min-height: 50px; }
.summary > .textlink { margin-top: 19px; font-size: 13px; }
.line-item { grid-template-columns: 104px minmax(0, 1fr) auto; gap: 23px; padding-block: 28px; }
.line-item img { width: 104px; height: 112px; border-radius: 2px; }
.line-title { font-size: 24px; line-height: 1.35; }
.line-meta { margin-block: 10px 15px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.line-end .price { display: block; margin-bottom: 15px; font-size: 17px; }
.line-end .textlink { font-size: 12px; min-height: 44px; }
.cart-tools { padding-top: 28px; }
.coupon-form { margin-top: 11px; gap: 12px; align-items: stretch; }
.coupon-form input { flex: 1 1 0; min-width: 0; }
.coupon-form .btn { flex: 0 0 auto; min-height: 50px; padding-inline: 21px; }
.mini-item { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; padding-bottom: 19px; margin-bottom: 19px; border-bottom: 1px solid #ccd3c2; align-items: start; }
.mini-item img { width: 60px; height: 70px; border-radius: 2px; }
.mini-item strong { font-family: var(--serif); font-size: 16px; line-height: 1.4; }
.mini-item > span { font-size: 13px; font-variant-numeric: tabular-nums; }
.checkout-steps { padding-block: 0 24px; gap: 15px; font-size: 12px; color: var(--muted); }
.checkout-steps .current { color: var(--green); font-weight: 600; }
.checkout-group { margin-bottom: 30px; padding-top: 28px; }
.checkout-group h2 { font-size: 27px; margin-bottom: 24px; }
.checkout-layout > form > .btn { margin-top: 16px; min-height: 52px; }
.billing-fieldset { margin-top: 20px; padding: 22px 18px 0; border: 1px solid var(--line); }
.billing-fieldset legend { padding-inline: 7px; font-size: 15px; }

/* Account, order progress and confirmations. */
.account-layout { grid-template-columns: 220px minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); padding-bottom: 88px; }
.account-nav { position: sticky; top: calc(var(--header-h) + 24px); padding: 15px; background: #eaf0e4; border: 1px solid #d0d8c7; border-radius: 2px; }
.account-nav :is(a, button) { min-height: 48px; padding: 12px 14px; border-radius: 2px; line-height: 1.7; font-size: 14px; transition: background-color 180ms ease; }
.account-nav :is(a, button):hover { background: rgba(252, 250, 245, .65); }
.account-nav a.active { background: var(--paper); color: var(--green); box-shadow: inset 2px 0 var(--green); }
.account-tile { padding: 25px; border-top: 2px solid var(--green); border-radius: 2px; transition: background-color 180ms ease; }
.account-tile:hover { background: #edf1e8; }
.account-tile b { font-size: 40px; color: var(--green); }
.account-layout .panel { padding: clamp(23px, 3vw, 36px); }
.address-card { padding: 25px; border-radius: 2px; }
.address-card p { font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.auth-layout { max-width: 1080px; margin-block: 22px 88px; grid-template-columns: .92fr 1fr; border-radius: 2px; overflow: hidden; }
.auth-photo { min-height: 585px; }
.auth-box { padding: clamp(30px, 4.1vw, 60px); }
.auth-box h1 { margin-block: 15px 22px; font-size: clamp(33px, 3.5vw, 44px); }
.auth-box .tabs { gap: 28px; margin-bottom: 27px; }
.auth-box .tabs a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.auth-box .btn { min-height: 50px; }
.table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.order-table { min-width: 480px; font-size: 14px; }
.order-table th { padding: 14px 12px; font-size: 12px; font-weight: 500; }
.order-table td { padding: 20px 12px; line-height: 1.65; }
.order-table td .textlink { min-height: 44px; font-size: 12px; }
.order-detail-columns { gap: 30px; }
.result-layout .panel { padding: clamp(24px, 4vw, 44px); }
.tracking-top { gap: 30px; }
.tracking-top > img { border-radius: 2px; }
.tracking-top .panel { padding: clamp(26px, 4vw, 44px); }
.result-meta > div { min-width: 0; overflow-wrap: anywhere; }
.status-line { row-gap: 14px; }

/* Journal and policy pages: a quiet reading measure with generous section rhythm. */
.article { max-width: 800px; padding-block: 34px 88px; }
.article h1 { max-width: 18ch; margin-block: 18px 24px; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.article .article-lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.8; margin-bottom: 30px; }
.article figure { margin-block: 32px 40px; }
.article > figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.article .reading img { width: auto; max-width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.article .reading { max-width: none; padding-inline: 0; }
.article .reading p, .article > p:not(.article-lead):not(.article-meta) { font-size: 17px; line-height: 1.95; margin-bottom: 24px; }
.article h2 { margin-top: 44px; margin-bottom: 20px; font-size: clamp(27px, 3vw, 35px); }
.article .reading :is(ul, ol) { padding-left: 1.35em; line-height: 1.9; }
.article .reading li { margin-bottom: 9px; }
.article blockquote { margin: 35px 0; padding: 22px 28px; border-left: 2px solid var(--tea); background: #ece9df; }
.article .actions { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal-layout { grid-template-columns: 220px minmax(0, 780px); gap: clamp(34px, 6vw, 90px); padding-block: 15px 88px; }
.legal-menu { position: sticky; top: calc(var(--header-h) + 24px); height: max-content; }
.legal-menu a { padding-block: 15px; font-size: 14px; line-height: 1.7; }
.legal-menu a:is(:hover, :focus-visible, [aria-current="page"]) { color: var(--green); }
.legal-body { min-width: 0; }
.legal-body h2 { margin-block: 34px 18px; font-size: 30px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { font-size: 16px; line-height: 1.95; }
.faq-group { max-width: 940px; margin-inline: auto; }
.faq-group + .faq-group { margin-top: 58px; }
.faq-item summary { min-height: 68px; padding-block: 23px; font-size: 18px; line-height: 1.6; }
.faq-item[open] summary { color: var(--green); }
.faq-item > :not(summary) { max-width: 72ch; font-size: 15px; line-height: 1.85; padding-bottom: 6px; }
.faq-item summary:focus-visible { outline-offset: 4px; }
.empty-state { max-width: 650px; margin-block: 24px 78px; }
.empty-state h1 { font-size: clamp(33px, 3.6vw, 45px); line-height: 1.18; margin-top: 30px; }
.empty-state .empty-photo { width: 100%; height: 260px; object-fit: cover; border-radius: 2px; }
.empty-state > p { max-width: 47ch; margin-inline: auto; line-height: 1.8; }
.jqx-order-flow #order_review { border-top: 3px solid var(--green); padding: clamp(24px, 4vw, 44px); }
.jqx-order-flow table.shop_table { font-size: 15px; }
.jqx-order-flow .wc_payment_method { border-radius: 2px; }
.jqx-order-flow #place_order { min-height: 50px; border-radius: 2px; font-size: 15px; }

@media (min-width: 1100px) {
  .product-layout .gallery { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (max-width: 1100px) {
  .product-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; }
  .product-layout .gallery { grid-template-columns: 1fr; }
  .product-layout .thumbs { grid-row: 2; flex-direction: row; overflow-x: auto; padding: 3px; gap: 9px; }
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr); gap: 30px; }
  .line-item { grid-template-columns: 88px minmax(0, 1fr); gap: 18px; }
  .line-item img { width: 88px; height: 100px; }
  .line-end { grid-column: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; }
  .line-end .price { margin-bottom: 0; }
  .form-layout { gap: 35px; }
}
@media (max-width: 850px) {
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .product-layout .gallery { max-width: 630px; width: 100%; margin-inline: auto; }
  .product-layout .main-image { height: auto; min-height: 0; }
  .product-info h1 { max-width: 18ch; }
  .product-info .variant-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-info .product-buy { max-width: none; }
  .product-info .b2b-links { margin-top: 26px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; gap: 40px; }
  .summary { position: static; }
  .form-layout { grid-template-columns: 1fr; gap: 42px; }
  .form-aside { position: static; max-width: 620px; }
  .form-aside > img { max-height: none; }
  .account-layout { grid-template-columns: 1fr; gap: 30px; }
  .account-nav { display: flex; flex-wrap: wrap; position: static; padding: 8px; gap: 2px; }
  .account-nav :is(a, button) { width: auto; padding-inline: 12px; font-size: 13px; }
  .account-nav a.active { box-shadow: inset 0 -2px var(--green); }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; }
  .legal-menu { position: static; display: flex; flex-wrap: wrap; gap: 0 22px; }
  .legal-menu a { padding-block: 12px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-photo { min-height: 250px; }
  .auth-photo img { object-position: 50% 55%; }
}
@media (max-width: 600px) {
  .product-layout { padding-top: 6px; padding-bottom: 40px; gap: 28px; }
  .product-layout .main-image { min-height: 0; height: auto; }
  .product-layout .thumbs { gap: 9px; }
  .product-layout .thumbs button { width: 56px; min-height: 56px; flex-basis: 56px; }
  .product-info { padding-top: 0; }
  .product-info > .eyebrow { margin-bottom: 12px; }
  .product-info h1 { max-width: none; font-size: clamp(30px, 8.3vw, 39px); margin-bottom: 17px; }
  .product-info .desc { margin-block: 20px; font-size: 15px; }
  .product-info > .price { font-size: 33px; margin-bottom: 24px; }
  .product-info .variant-btn { padding: 12px; font-size: 13px; min-height: 82px; }
  .product-info .variant-btn .price { font-size: 13px; }
  .product-info .product-buy { gap: 10px; }
  .product-info .product-buy .btn { padding-inline: 10px; font-size: 13px; }
  .product-info .qty-control button { width: 34px; }
  .product-info .b2b-links { gap: 12px 19px; font-size: 12px; }
  .anchor-nav .wrap { gap: 23px; }
  .anchor-nav button { min-height: 50px; font-size: 12px; }
  .details-grid { grid-template-columns: 1fr; gap: 36px; }
  .details-copy { padding-top: 22px; }
  .spec-list > div, .spec-list > div:nth-last-child(-n + 2) { grid-template-columns: minmax(75px, .65fr) minmax(0, 1.35fr); gap: 15px; padding-block: 16px; font-size: 13px; }
  .form-layout, .cart-layout, .checkout-layout, .account-layout { padding-bottom: 52px; }
  .form-layout > .panel { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
  .form-layout .interest-grid { grid-template-columns: 1fr; }
  .form-layout .interest-grid .check { min-height: 48px; padding-block: 11px; }
  .form-aside > h3 { font-size: 28px; }
  .form-aside .notice { padding: 22px 20px; }
  .three-contact .panel { min-height: 150px; padding: 22px; }
  .summary { padding: 25px 22px; }
  .summary h2 { font-size: 28px; }
  .summary .money-row { font-size: 13px; gap: 13px; }
  .summary .money-row.total { font-size: 20px; }
  .mini-item { grid-template-columns: 52px minmax(0, 1fr); gap: 13px; }
  .mini-item img { width: 52px; height: 64px; }
  .mini-item > span { grid-column: 2; margin-top: -10px; }
  .mini-item strong { font-size: 16px; }
  .line-item { grid-template-columns: 78px minmax(0, 1fr); gap: 16px; padding-block: 23px; }
  .line-item img { width: 78px; height: 90px; }
  .line-title { font-size: 21px; }
  .line-end { margin-top: 0; }
  .line-end .price { font-size: 16px; }
  .coupon-form { gap: 9px; }
  .coupon-form .btn { padding-inline: 15px; font-size: 13px; }
  .checkout-steps { flex-wrap: wrap; font-size: 11px; gap: 10px; }
  .checkout-group h2 { font-size: 25px; }
  .account-tiles { grid-template-columns: 1fr; gap: 13px; }
  .account-tile { display: grid; grid-template-columns: 34px auto 1fr; gap: 16px; align-items: center; padding: 19px; font-size: 14px; }
  .account-tile .icon { margin: 0; }
  .account-tile b { margin: 0; font-size: 31px; }
  .auth-layout { margin-block: 10px 52px; }
  .auth-photo { min-height: 190px; }
  .auth-box { padding: 28px 23px; }
  .auth-box h1 { font-size: 34px; }
  .order-table th:nth-child(2), .order-table td:nth-child(2) { display: table-cell; }
  .order-table th, .order-table td { padding-inline: 10px; }
  .order-table .badge { font-size: 11px; }
  .result-layout .panel { padding: 24px 20px; }
  .article { padding-block: 20px 55px; }
  .article h1 { max-width: none; font-size: clamp(33px, 8.9vw, 42px); }
  .article .article-lead { font-size: 18px; }
  .article .reading p, .article > p:not(.article-lead):not(.article-meta) { font-size: 16px; line-height: 1.9; }
  .article figure { margin-block: 27px 33px; }
  .article h2 { margin-top: 35px; font-size: 29px; }
  .article blockquote { padding: 19px 21px; }
  .legal-layout { padding-bottom: 55px; }
  .legal-menu { gap: 0 20px; }
  .legal-menu a { font-size: 13px; }
  .legal-body h2 { font-size: 28px; }
  .legal-body p { font-size: 15px; line-height: 1.9; }
  .faq-group + .faq-group { margin-top: 42px; }
  .faq-item summary { font-size: 16px; padding-block: 21px; }
  .empty-state { margin-bottom: 55px; }
  .empty-state .empty-photo { height: 210px; }
  .jqx-order-flow #order_review { padding: 24px 18px; }
  .jqx-order-flow table.shop_table { font-size: 13px; }
}
@media (max-width: 360px) {
  .product-info .variant-options { grid-template-columns: 1fr; }
  .product-info .variant-btn { grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 66px; gap: 10px; }
  .product-info .variant-btn .price { justify-self: end; }
  .line-item { grid-template-columns: 68px minmax(0, 1fr); gap: 13px; }
  .line-item img { width: 68px; height: 82px; }
  .line-title { font-size: 20px; }
  .form-layout > .panel { padding: 23px 17px; }
  .summary { padding: 23px 18px; }
  .coupon-form .btn { padding-inline: 12px; }
}
/* Scripts and non-Latin headings need their own metrics after commerce rules. */
.product-info h1:lang(zh), .article h1:lang(zh) { letter-spacing: .025em; line-height: 1.3; }
.product-info h1:lang(th), .article h1:lang(th) { letter-spacing: 0; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) {
  .variant-btn, .payment-option, .account-tile, .thumbs button,
  .anchor-nav button::after, .three-contact .panel { transition: none; }
}
@media print {
  .product-layout .gallery, .summary, .account-nav, .legal-menu { position: static; }
  .buy-strip, .anchor-nav { display: none; }
  .table-wrap { overflow: visible; }
  .order-table { min-width: 0; }
}
