/* Device frame and simulated system chrome from the reference HTML. */
.ui0 { display:flex; flex-direction:column; flex-grow:0; flex-shrink:1; width:397px; max-width:100%; padding:2px; margin:0px; border-radius:52px; background-color:rgb(165, 165, 168); color:rgb(237, 237, 237); font-family:Pretendard, -apple-system-body, ui-sans-serif, -apple-system, system-ui, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; font-size:16px; font-weight:400; line-height:26px; }
.ui1 { display:flex; flex-direction:column; flex-grow:0; flex-shrink:1; padding:9px; margin:0px; border-radius:50px; background-color:rgb(23, 23, 23); color:rgb(237, 237, 237); font-family:Pretendard, -apple-system-body, ui-sans-serif, -apple-system, system-ui, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; font-size:16px; font-weight:400; line-height:26px; }
.ui2 { display:flex; flex-direction:column; flex-grow:0; flex-shrink:0; width:375px; max-width:100%; height:var(--preview-screen-height, 812px); padding:0px; margin:0px; overflow-x:hidden; overflow-y:hidden; border-radius:41px; background-color:rgb(255, 255, 255); color:rgb(13, 13, 13); font-family:Pretendard, -apple-system-body, ui-sans-serif, -apple-system, system-ui, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; font-size:16px; font-weight:400; line-height:26px; }
.ui3 { display:flex; flex-direction:column; flex-grow:0; flex-shrink:0; height:48px; padding:12px 24px 0px; margin:0px; color:rgb(13, 13, 13); font-family:Pretendard, -apple-system-body, ui-sans-serif, -apple-system, system-ui, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; font-size:16px; font-weight:400; line-height:26px; }
.ui4 { display:flex; flex-direction:row; flex-grow:0; flex-shrink:1; justify-content:space-between; align-items:center; padding:0px; margin:0px; color:rgb(13, 13, 13); font-family:Pretendard, -apple-system-body, ui-sans-serif, -apple-system, system-ui, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; font-size:16px; font-weight:400; line-height:26px; }
.ui5 { display:block; flex-direction:row; flex-grow:0; flex-shrink:1; padding:0px; margin:0px; color:rgb(13, 13, 13); font-family:Pretendard, -apple-system-body, ui-sans-serif, -apple-system, system-ui, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; font-size:14px; font-weight:600; line-height:20px; }
.ui6 { display:contents; flex-direction:row; flex-grow:0; flex-shrink:1; padding:0px; margin:0px; color:rgb(13, 13, 13); font-family:Pretendard, -apple-system-body, ui-sans-serif, -apple-system, system-ui, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; font-size:14px; font-weight:600; line-height:20px; }
.ui7 { display:flex; flex-direction:column; flex-grow:0; flex-shrink:0; width:116px; height:30px; padding:0px; margin:0px 0px 0px 8px; border-radius:9999px; background-color:rgb(17, 17, 17); color:rgb(13, 13, 13); font-family:Pretendard, -apple-system-body, ui-sans-serif, -apple-system, system-ui, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; font-size:16px; font-weight:400; line-height:26px; }
.ui8 { display:flex; flex-direction:row; flex-grow:0; flex-shrink:1; align-items:center; gap:4px; padding:0px; margin:0px 0px 0px 8px; color:rgb(13, 13, 13); font-family:Pretendard, -apple-system-body, ui-sans-serif, -apple-system, system-ui, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; font-size:16px; font-weight:400; line-height:26px; }
.ui69 { display:flex; flex-direction:column; flex-grow:0; flex-shrink:0; justify-content:center; align-items:center; height:30px; padding:0px; margin:0px; color:rgb(13, 13, 13); font-family:Pretendard, -apple-system-body, ui-sans-serif, -apple-system, system-ui, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol"; font-size:16px; font-weight:400; line-height:26px; }
.ui70 { display: none; }

* { box-sizing: border-box; }
:root { color-scheme: light; --text: #0d0d0d; --muted: #606065; --line: #e9e9eb; --action: #222; --commerce-accent: #222222; --gallery: #f5f5f7; }
body { margin: 0; background: #fff; }
.ui2 { position: relative; isolation: isolate; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; border-radius: 8px; background: transparent; padding: 0; }
button:focus-visible, input:focus-visible + span { outline: 2px solid #222222; outline-offset: 3px; }
[hidden]:not(.toast) { display: none !important; }
p, h1, h2 { margin: 0; }
.product-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.service-header { flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; padding: 0 12px; height: 56px; border-bottom: 1px solid var(--line); font-size: 16px; }
.service-header strong, .capacity strong, .sheet h2, .sheet strong { font-weight: 600; }
#product-header-title:focus { outline: none; }
.icon { display: grid; place-items: center; width: 44px; height: 44px; }
.icon svg, .arrow svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cart { position: relative; }
#badge { position: absolute; top: 3px; right: 1px; min-width: 17px; padding: 0 4px; background: #222; border-radius: 12px; color: #fff; font-size: 10px; font-weight: 600; line-height: 17px; }
.product-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.product-body::-webkit-scrollbar { display: none; }
.gallery, .catalog-detail-photo { height: 222px; background: var(--gallery); }
.gallery { position: relative; display: grid; place-items: center; touch-action: pan-y pinch-zoom; user-select: none; cursor: grab; overflow: hidden; }
.gallery:active { cursor: grabbing; }
.gallery-track {
  position: absolute;
  inset: 0;
  display: flex;
  transform: translate3d(var(--gallery-offset, 0px), 0, 0);
  transition: transform 260ms cubic-bezier(.22, .61, .36, 1);
}
.gallery-track.is-dragging { transition: none; }
.gallery-slide { position: relative; flex: 0 0 100%; overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .gallery-track { transition: none; }
}
.gallery img { position: absolute; left: 50%; top: 50%; width: 132%; height: 121%; transform: translate(-50%, -50%); display: block; object-fit: contain; object-position: center; pointer-events: none; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; background: rgb(255 255 255 / .87); }
.arrow:disabled { opacity: .36; cursor: default; }
.previous { left: 12px; }
.next { right: 12px; }
.dots { display: flex; justify-content: center; gap: 1px; padding: 3px 0; background: var(--gallery); }
.dot { width: 25px; height: 26px; display: grid; place-items: center; }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #aaaab0; }
.dot[aria-current="true"]::before { background: #222; }
.details { padding: 12px 20px var(--scroll-bottom-space); }
.brand { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 17px; }
.details .brand { color: var(--text); font-weight: 500; }
.details h1 { margin-top: 4px; font-size: 16px; font-weight: 400; line-height: 22px; }
.description { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 18px; }
.price { margin-top: 9px; font-weight: 600; font-size: 18px; line-height: 24px; }
fieldset { min-inline-size: 0; padding: 0; margin: 13px 0 0; border: 0; }
.details fieldset { margin-top: 29px; }
legend { padding: 0; margin-bottom: 7px; font-size: 15px; font-weight: 600; line-height: 20px; }
.details legend { color: var(--muted); font-size: 13px; font-weight: 500; }
.detail-color-name { display: block; margin: 2px 0 0; color: var(--muted); font-weight: 500; font-size: 13px; }
.swatches { display: flex; gap: 8px; }
.swatches label, .capacity { position: relative; cursor: pointer; }
.swatches input, .capacity input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch { display: block; width: 42px; height: 42px; border: 1px solid transparent; border-radius: 50%; padding: 5px; background-clip: content-box; }
.swatch.white { background-color: #e9e6df; }
.swatch.night { background-color: #222e3d; }
.swatches input:checked + .swatch { border-color: var(--commerce-accent); }
.capacities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.capacity span { display: flex; flex-direction: column; justify-content: center; padding: 6px 12px; min-height: 50px; border: 1px solid #d7d7db; border-radius: 12px; font-size: 14px; line-height: 19px; }
.capacity small { color: var(--muted); font-size: 12px; }
.capacity input:checked + span { border-color: var(--commerce-accent); }
.purchase-bar { position: relative; flex: none; padding: 11px 20px 0; background: var(--bottom-surface); box-shadow: var(--bottom-shadow); }
.primary, .secondary { min-height: 44px; padding: 6px 10px; font-size: 16px; font-weight: 500; line-height: 20px; }
.primary { background: var(--action); color: #fff; }
.secondary { border: 1px solid #222; }
.gnb-page:not([hidden]) + .gnb-region { box-shadow: var(--bottom-shadow); }
.purchase-bar button { width: 100%; }
.purchase-bar .primary, .sheet-actions button { background: var(--commerce-accent); color: #fff; }
.sheet-actions .secondary { border-color: var(--commerce-accent); }
.primary:focus:not(:focus-visible) { outline: none; }
.primary:focus-visible { outline-color: #222; }
.sheet-layer { position: absolute; inset: 0 0 max(var(--gnb-region-height), var(--quantity-keyboard-inset, 0px)); z-index: 2; display: flex; align-items: end; overflow: hidden; }
.sheet-shade { position: absolute; inset: 0; background: var(--overlay-dim); animation: fade-in var(--overlay-fade) ease-out; }
.sheet { position: relative; width: 100%; max-height: calc(100% - 48px); overflow: auto; padding: 16px; background: var(--bottom-surface); border-radius: 18px 18px 0 0; box-shadow: var(--bottom-shadow); animation: slide-up 280ms cubic-bezier(.22, .61, .36, 1); }
.sheet-product { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.sheet-product { display: grid; gap: 6px; }
.sheet-product > .brand { margin-bottom: 3px; }
.sheet-product #sheet-option { margin: 0; color: var(--muted); font-size: 13px; }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet-product > .sheet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 103px;
}
.sheet-product :is(#sheet-title, #sheet-option) {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sheet-row #unit-price { justify-self: end; font-size: 13px; font-weight: 500; line-height: 18px; white-space: nowrap; }
.sheet-total { padding: 17px 0; }
.sheet-total span { font-size: 14px; font-weight: 600; }
.stepper {
  display: grid;
  grid-template-columns: 27px 47px 27px;
  align-items: stretch;
  text-align: center;
  border: 1px solid #d7d7df;
  border-radius: 6px;
  background: #fff;
}
.stepper button {
  position: relative;
  height: 26px;
  font-size: 0;
}
.stepper button::before, .stepper button:last-child::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.stepper button:last-child::after { transform: translate(-50%, -50%) rotate(90deg); }
.stepper :is(output, input) {
  display: grid;
  place-items: center;
  border-inline: 1px solid #d7d7df;
  font-size: 14px;
  line-height: 18px;
}
.stepper input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border-block: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: center;
}
@media (pointer: coarse) {
  .stepper input { font-size: 16px; }
}
.stepper input:focus-visible { outline: 1px solid var(--commerce-accent); outline-offset: -1px; }
.stepper button:disabled { color: #aaa; cursor: default; }
.sheet-total output { font-size: 20px; font-weight: 600; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-actions [aria-disabled="true"], .toast [aria-disabled="true"], .icon[aria-disabled="true"] { cursor: default; }
.toast { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: calc(var(--toast-anchor-offset, var(--gnb-region-height)) + 16px); display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgb(34 34 34 / 85%); color: #fff; border-radius: 999px; padding: 9px 12px; font-size: 13px; line-height: 20px; }
.ui2:has(> .toast:not([hidden])) .scroll-up { visibility: hidden; }
.toast {
  opacity: 1;
  transition: opacity 180ms ease-out, display 180ms allow-discrete;
}
.toast.toast-centered { justify-content: center; text-align: center; }
.toast[hidden] { display: none; opacity: 0; pointer-events: none; }
@starting-style {
  .toast:not([hidden]) { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}
.toast button { color: #fff; padding: 5px 0; white-space: nowrap; text-decoration: underline; }
@keyframes slide-up { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet-layer.is-closing .sheet { animation: slide-down 220ms ease-in both; }
.sheet-layer.is-closing .sheet-shade { animation: fade-out var(--overlay-fade) ease-in-out both; }
@keyframes slide-down { to { transform: translateY(100%); } }
@keyframes fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .sheet-layer .sheet, .sheet-layer .sheet-shade,
  .sheet-layer.is-closing .sheet, .sheet-layer.is-closing .sheet-shade { animation: none; }
}
@media (max-width: 600px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  html, body { overflow: hidden; }
  .ui0, .ui1 { display: contents; }
  .ui2 { width: 100%; height: var(--visible-height, 100vh); height: 100dvh; border-radius: 0; padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
  .ui3, .ui69 { display: none; }
  .service-header { height: calc(56px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); }
  .gallery, .catalog-detail-photo { height: clamp(174px, 51vw, 222px); }
  .sheet { max-height: calc(100% - env(safe-area-inset-top, 0px)); padding-bottom: 16px; }
  .sheet-layer { left: env(safe-area-inset-left, 0px); right: env(safe-area-inset-right, 0px); }
}

.cart-body { padding: 0 12px var(--scroll-bottom-space); background: #f5f6f7; }
.cart-toolbar, .cart-amount,
.cart-summary dl > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-toolbar { min-height: 54px; padding-inline: 4px; font-size: 14px; }
.cart-toolbar label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cart-page input[type="checkbox"] { width: 19px; height: 19px; margin: 0; accent-color: var(--commerce-accent); }
:is(.cart-page input[type="checkbox"], .round-choice):focus-visible { outline: 2px solid #222; outline-offset: 3px; }
.cart-muted { color: var(--muted); padding: 10px 0 10px 8px; }
.cart-muted:disabled, .cart-checkout:disabled { opacity: .46; cursor: default; }
.cart-item, .cart-summary, .order-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgb(0 0 0 / 5%);
}
#cart-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px;
  text-align: center;
  color: var(--muted);
}
#cart-empty svg { color: #8a8a90; }
#cart-browse {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #d4d4d8;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.cart-page:has(#cart-empty:not([hidden])) :is(.cart-toolbar, .purchase-bar) { display: none; }
.cart-page:not([hidden]):has(#cart-empty:not([hidden])) ~ .gnb-region { box-shadow: var(--bottom-shadow); }
#cart-items { display: grid; gap: 12px; }
.cart-item { padding: 16px; }
.cart-remove { align-self: start; width: 40px; height: 38px; margin-top: -9.5px; margin-right: -10px; color: var(--muted); }
.cart-remove svg { width: 17px; }
.cart-item-product { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; }
.cart-item > .cart-item-product { grid-template-columns: 19px 76px minmax(0, 1fr) 30px; gap: 8px; }
.cart-item-product > [data-action="select"] { align-self: start; }
.cart-item-product img { width: 76px; height: 76px; object-fit: contain; background: var(--gallery); border-radius: 8px; }
.cart-summary h2 { font-size: 16px; font-weight: 600; line-height: 24px; }
.cart-item h2 { font-size: 13px; font-weight: 500; line-height: 18px; }
.cart-item .cart-option { font-size: 12px; }
.cart-option { color: var(--muted); font-size: 13px; line-height: 20px; }
.cart-unit { font-weight: 600; font-size: 15px; line-height: 23px; }
.cart-brand { color: var(--muted); font-size: 11px; line-height: 16px; }
.cart-amount { margin-top: 12px; border-top: 1px solid var(--line); padding: 14px 0; font-size: 14px; }
.cart-amount strong { font-size: 13px; font-weight: 500; line-height: 18px; }
.cart-buy { width: 100%; height: 42px; border: 1px solid var(--commerce-accent); color: var(--commerce-accent); background: white; font-size: 15px; font-weight: 600; }
.cart-summary { margin-top: 12px; padding: 16px; }
.cart-summary dl, .cart-summary dd { margin: 0; }
.cart-summary dl { padding-top: 6px; font-size: 14px; }
.cart-summary dl > div { min-height: 25px; }
.cart-page .cart-summary h2 { font-size: 14px; }
.cart-page .cart-summary dl > div:not(.cart-total) { font-size: 12px; }
.cart-summary dt { color: var(--muted); }
.cart-summary .cart-total { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 10px; }
.cart-total dt { color: var(--text); font-weight: 600; }
.cart-total dd { font-size: 22px; font-weight: 600; }
.cart-feedback { margin-top: 5px; text-align: center; font-size: 13px; color: var(--muted); }

:is(.cart-page input[type="checkbox"], .round-choice) {
  appearance: none;
  flex: 0 0 19px;
  border: 1px solid #aaaab0;
  border-radius: 4px;
  background: #fff;
}
:is(.cart-page input[type="checkbox"], .round-choice):is(:checked, :indeterminate) {
  border-color: var(--commerce-accent);
  background-color: var(--commerce-accent);
  background-position: center;
  background-repeat: no-repeat;
}
:is(.cart-page input[type="checkbox"], .round-choice[type="checkbox"]):checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'%3E%3Cpath d='m3 7.5 3 3 6-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.cart-page input[type="checkbox"]:indeterminate {
  background-image: linear-gradient(white, white);
  background-size: 9px 2px;
}
input.round-choice:is([type="radio"], [type="checkbox"]) { border-radius: 50%; }
.round-choice[type="radio"]:checked {
  background-image: radial-gradient(circle, #fff 0 4px, transparent 4.5px);
}
@media (forced-colors: active) {
  :is(.cart-page input[type="checkbox"], .round-choice) { appearance: auto; }
}

.order-body { padding: 12px 12px var(--scroll-bottom-space); display: grid; align-content: start; gap: 12px; background: #f5f6f7; }
.order-card { padding: 16px; }
.order-card h2 { margin-bottom: 9px; font-size: 14px; font-weight: 600; line-height: 20px; }
.order-card p { font-size: 14px; line-height: 21px; }
.order-muted { color: var(--muted); font-size: 13px; font-weight: 400; }
.delivery-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  line-height: 24px;
  list-style: none;
  cursor: pointer;
}
.delivery-summary::-webkit-details-marker { display: none; }
.delivery-card :is(.delivery-summary, #delivery-contact, .order-request) {
  -webkit-user-select: none;
  user-select: none;
}
.delivery-title { font-size: 14px; font-weight: 600; }
.delivery-address-preview {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.delivery-card[open] .delivery-address-preview { visibility: hidden; }
.delivery-card[open] .delivery-summary svg { transform: rotate(180deg); }
.delivery-content { margin-top: 9px; }
.order-recipient { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-weight: 600; }
.order-recipient span { padding: 0 6px; border-radius: 5px; background: #f1f1f3; color: var(--muted); font-size: 11px; font-weight: 500; }
.order-request { display: grid; gap: 5px; margin-top: 11px; font-size: 13px; }
.order-request select {
  appearance: none;
  width: 100%;
  padding: 8px 40px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 9 7 7 7-7' fill='none' stroke='%23222' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  color: var(--text);
  font: inherit;
}
@media (forced-colors: active) {
  .order-request select { appearance: auto; background-image: none; }
}
.order-item + .order-item { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.order-item .order-brand { font-size: 11px; font-weight: 600; line-height: 16px; }
.order-item h3 { margin: 2px 0 0; font-size: 13px; font-weight: 500; line-height: 18px; }
.order-item .cart-option { font-size: 12px; line-height: 17px; }
.order-product-amount { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 3px; }
.order-product-quantity { color: var(--muted); font-size: 12px; line-height: 17px; }
.order-item .cart-unit { font-size: 13px; font-weight: 500; line-height: 18px; text-align: right; }
.order-method, .order-consent { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; }
.order-method { justify-self: start; width: max-content; min-height: 44px; padding: 8px 0; cursor: pointer; }
.order-method > span { white-space: nowrap; }
.order-method input, .order-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--commerce-accent); }
.order-consent { display: inline-flex; justify-self: start; max-width: 100%; cursor: pointer; }
.order-consent > span { word-break: keep-all; overflow-wrap: anywhere; }
.order-card .order-consent { display: inline-grid; grid-template-columns: 18px minmax(0, 1fr); width: fit-content; font-size: clamp(12px, 3.5vw, 14px); }
.order-page .cart-summary { margin-top: 0; }
.order-page .cart-summary dl > div + div { margin-top: 8px; }
.order-page .cart-summary h2 { margin-bottom: 0; }
.order-page .purchase-bar .primary { border-radius: 12px; }
.order-page .purchase-bar .primary:disabled { opacity: .45; cursor: default; }

.payment-methods, .payment-options { margin: 0; }
.payment-methods { display: grid; gap: 8px; }
.payment-methods .order-method:has(:checked) { color: var(--commerce-accent); font-weight: 500; }
.payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 0 6px 12px; }
.payment-options label { position: relative; display: grid; cursor: pointer; }
.payment-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.payment-options span { min-height: 40px; display: grid; place-items: center; text-align: center; padding: 4px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; line-height: 18px; }
.payment-options input:checked + span { border-color: var(--commerce-accent); font-weight: 500; }

@media (max-width: 600px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
}

/* Leave room for the fixed navigation while keeping all four options in view. */
@media (min-width: 601px) and (pointer: fine) {
  .gallery, .catalog-detail-photo { height: 191px; }
  .dots { padding-block: 1px; }
  .details { padding-top: 9px; }
  .details fieldset { margin-top: 25px; }
  .details legend { margin-bottom: 5px; }
}


.card-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px 12px var(--scroll-bottom-space);
  background: #f5f5f7;
}
.card-featured, .card-issuers {
  padding: 16px;
  border-radius: 12px;
  background: #fff;
}
.card-body h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.featured-card-options, .card-grid { display: grid; gap: 8px; }
.featured-card-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-body [data-issuer] {
  min-height: 60px;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f5f5f7;
  font-size: 13px;
  font-weight: 500;
}
.card-body [data-issuer][aria-pressed="true"] { border-color: var(--commerce-accent); background: #f0f0f1; }
.card-details { margin-top: 12px; }
.card-details summary { padding: 8px 0; color: var(--muted); font-size: 13px; cursor: pointer; }
.card-issuers .order-muted { margin: 12px 0 0; }

.card-body [data-issuer] {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  min-height: 68px;
}
.card-logo {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #fff;
  font-size: 10px;
  font-weight: 600;
}
.card-logo > * { grid-area: 1 / 1; }
.card-logo:has(img:not([hidden])) > span { visibility: hidden; }
.card-logo img { object-fit: contain; }
.card-logo { width: 48px; background: transparent; }
.card-logo img { width: 48px; max-width: 100%; height: 26px; mix-blend-mode: darken; }

.featured-card-options [data-issuer] { min-height: 84px; }
.featured-card-options small { color: var(--muted); font-size: 11px; }

.card-info-body { background: #f5f5f7; padding-bottom: var(--scroll-bottom-space); }
.card-info-summary, .card-info-fields { padding: 20px; background: #fff; }
.card-info-summary { margin-bottom: 8px; }
.card-info-summary h1 { margin: 0 0 6px; font-size: 24px; font-weight: 600; line-height: 32px; }
.card-info-summary p { margin: 0; color: var(--muted); font-size: 14px; }
.card-info-fields { display: grid; gap: 18px; }
.card-info-consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); width: 100%; align-items: start; font-weight: 300; }
.card-info-consent > input { margin-top: 1px; }
.card-consent-note { display: block; color: var(--commerce-accent); }
.card-info-field { display: grid; gap: 6px; font-size: 13px; }
.card-info-issuer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.card-info-issuer p, .card-info-field :is(input, select) {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f5f7;
  font: inherit;
}
.card-info-issuer button { padding: 0 12px; border: 1px solid #d4d4d8; background: #fff; color: #222; font-weight: 600; }
.card-info-page .primary:disabled { opacity: .45; cursor: default; }

.issuer-app-body { padding: 20px 16px var(--scroll-bottom-space); }
.issuer-app-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
#issuer-app-brand { display: flex; align-items: center; gap: 4px; color: var(--issuer-color); font-size: 15px; font-weight: 600; }
#issuer-app-brand .card-logo { width: 32px; }
.issuer-app-switch { display: flex; gap: 4px; padding: 4px; border-radius: 8px; background: #f0f2f6; }
.issuer-app-switch button { padding: 8px 10px; font-size: 13px; color: var(--muted); }
.issuer-app-switch [aria-pressed="true"] { background: #fff; color: #222; }
.issuer-app-option {
  width: 100%;
  min-height: 62px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--issuer-color);
  background: #fff;
  color: var(--issuer-color);
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}
.issuer-app-option::after { content: '›'; float: right; }
#issuer-app-primary { min-height: 88px; background: var(--issuer-color); color: #fff; }
.issuer-app-body .order-muted { margin-top: 4px; }

#issuer-app-dialog { width: min(320px, calc(100% - 40px)); padding: 20px; border: 0; border-radius: 12px; color: #222; }
#issuer-app-dialog::backdrop { background: var(--overlay-dim); }
#issuer-app-dialog h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
#issuer-app-dialog p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
#issuer-app-dialog .primary { width: 100%; background: var(--commerce-accent); }

.issuer-app-option:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 8px;
  align-items: center;
  column-gap: 8px;
}
.issuer-app-wordmark { display: flex; align-items: center; gap: 6px; }
.issuer-app-wordmark > img { width: auto; max-width: 100%; height: 25px; object-fit: contain; }
.issuer-app-wordmark .card-logo { flex: none; width: 30px; background: #fff; }
.issuer-app-description { font-size: 12px; font-weight: 400; }
.issuer-app-option::after { font-size: 20px; font-weight: 400; }
#issuer-app-secondary .issuer-app-wordmark > img { mix-blend-mode: multiply; }
.issuer-app-wordmark > .issuer-app-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
#issuer-app-primary .issuer-app-wordmark > img:not(.issuer-app-icon) { filter: grayscale(1) contrast(8); mix-blend-mode: screen; }

.delivery-recipient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.delivery-recipient-row .order-recipient { margin-bottom: 0; }
.order-recipient strong { font-weight: inherit; overflow-wrap: anywhere; }
#delivery-edit, .delivery-edit-actions button {
  flex: none;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d4d4d8;
  background: #fff;
  font-size: 12px;
}
#delivery-edit-form { display: grid; gap: 8px; }
#delivery-edit-form label { display: grid; gap: 4px; font-size: 13px; }
#delivery-edit-form input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.delivery-edit-actions { display: flex; justify-content: flex-end; gap: 8px; }

.order-product-amount > *, .cart-amount strong, .cart-summary dd, .sheet-total output { white-space: nowrap; }

@media (max-width: 375px) {
  .cart-item-product { grid-template-columns: var(--compact-thumbnail) minmax(0, 1fr); }
  .cart-item > .cart-item-product { grid-template-columns: 19px var(--compact-thumbnail) minmax(0, 1fr) 30px; }
  .cart-item-product img { width: var(--compact-thumbnail); height: var(--compact-thumbnail); }
  .order-item { gap: var(--compact-item-gap); }
  .issuer-app-wordmark { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
}

.product-page :is(.service-header strong, .primary, .secondary, .capacity strong, .capacity small, .cart-total dt) {
  white-space: nowrap;
}
.product-page :is(.order-muted, .cart-option, .issuer-app-description, .card-info-summary p) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media (max-width: 375px) {
  .cart-total dd { font-size: clamp(18px, 5.87vw, 22px); }
  .card-info-summary h1 { font-size: clamp(21px, 6.4vw, 24px); }
  .issuer-app-option { column-gap: 5px; }
  .issuer-app-wordmark > .issuer-app-icon { width: 30px; height: 30px; }
}
.sheet-product > .sheet-quantity-row { align-items: center; color: var(--muted); font-size: 12px; }
#card-info-product { display: grid; gap: 8px; }
#card-info-product p { font-size: 12px; line-height: 17px; }
#card-info-product p:nth-child(2) { color: var(--text); font-size: 14px; font-weight: 500; }

.catalog-header {
  grid-template-columns: minmax(0, 1fr) 40px 40px;
  padding-inline: 16px;
  border-bottom: 0;
  text-align: left;
}
.catalog-header h1 {
  font-size: 26px;
  font-weight: 600;
  line-height: 34px;
}
#catalog-title:focus { outline: none; }
.catalog-header .icon { width: 40px; position: relative; }
#catalog-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  padding-inline: 3px;
  border-radius: 999px;
  background: #222;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
}
.catalog-body { padding: 8px 16px var(--scroll-bottom-space); }
#catalog-search {
  width: 100%;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
}
.catalog-title-group { display: flex; align-items: center; min-width: 0; }
.catalog-title-group h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-title-group #catalog-back { margin-left: -8px; flex: none; }
.catalog-brand-view .catalog-title-group h1 { font-size: 18px; }
.catalog-banner {
  display: grid;
  place-items: center;
  min-height: 252px;
  border-radius: 12px;
  overflow: hidden;
  padding: 12px 16px 16px;
  background: radial-gradient(ellipse at 50% 28%, #fff, #e5eaf0);
  color: #17191d;
  text-decoration: none;
  text-align: center;
}
.catalog-banner img { width: 100%; max-width: 285px; height: 165px; object-fit: contain; }
.catalog-banner span { display: grid; gap: 3px; }
.catalog-banner strong { font-size: 24px; line-height: 29px; font-weight: 600; }
.catalog-banner small { font-size: 13px; color: #50545b; }
.catalog-favorites { margin-block: 14px; padding: 12px 0; }
.catalog-favorites h2 { font-size: 16px; line-height: 22px; margin-bottom: 10px; }
.catalog-favorite-links {
  --favorite-width: 112px;
  --favorite-gap: 8px;
  display: flex;
  gap: var(--favorite-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
@media (pointer: fine) {
  .catalog-favorite-links,
  .catalog-favorite-links a,
  .catalog-page:not(.catalog-brand-view) .catalog-grid,
  .catalog-page:not(.catalog-brand-view) .catalog-grid .catalog-item { cursor: grab; user-select: none; }
  .catalog-favorite-links.is-dragging,
  .catalog-favorite-links.is-dragging a,
  .catalog-grid.is-dragging,
  .catalog-grid.is-dragging .catalog-item { cursor: grabbing; }
}
:is(.catalog-favorite-links, .catalog-grid):is(.is-dragging, .is-settling) { scroll-snap-type: none; }
.catalog-favorite-links::after {
  content: "";
  flex: 0 0 max(0px, calc(100% - var(--favorite-width) - var(--favorite-gap)));
}
.catalog-favorite-links a {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  flex: 0 0 var(--favorite-width);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 0 8px;
  min-height: 40px;
  border: 1px solid #e4e6e9;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
}
.catalog-brands { display: grid; gap: 14px; min-width: 0; }
.catalog-brand-card { min-width: 0; border: 1px solid #e6e7ea; border-radius: 12px; overflow: hidden; background: #fff; }
.catalog-brand-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #223547;
  color: #fff;
  text-decoration: none;
}
.catalog-brand-heading h2 { font-size: 18px; line-height: 24px; font-weight: 600; }
.catalog-brand-heading span { font-size: 22px; }
.catalog-brand-card[data-brand="audio"] .catalog-brand-heading { background: #41455b; }
.catalog-brand-card[data-brand="fashion"] .catalog-brand-heading { background: #46564b; }
.catalog-brand-card[data-brand="travel"] .catalog-brand-heading { background: #4a495f; }
.catalog-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 43%;
  row-gap: 10px;
  column-gap: 16px;
  padding: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 12px;
  scrollbar-width: none;
}
.catalog-grid > .catalog-item { scroll-snap-align: start; }
.catalog-brand-view .catalog-brand-heading { display: none; }
.catalog-brand-view .catalog-brand-card { border: 0; }
.catalog-brand-view .catalog-grid {
  grid-auto-flow: row;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px 0;
  row-gap: 16px;
  overflow: visible;
}
.catalog-item { display: grid; text-align: left; gap: 3px; min-width: 0; color: inherit; text-decoration: none; font-size: 13px; line-height: 18px; }
.catalog-thumb { display: grid; place-items: center; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: var(--gallery); margin-bottom: 2px; }
.catalog-thumb img { width: 100%; height: 100%; object-fit: contain; }
.catalog-sample { background: #f6f6f7; }
.catalog-item strong { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-brand { color: var(--muted); font-size: 12px; }
.catalog-price { font-weight: 600; }
#catalog-empty { padding: 24px 0; color: var(--muted); font-size: 14px; }

.catalog-detail-photo { display: grid; place-items: center; }
.catalog-detail-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
#catalog-detail-title:focus { outline: none; }
#catalog-color { flex-wrap: wrap; }
