/* Shop and cart inherit the site's ink, paper and type palette. */
.commerce-page { padding-top: 28px; line-height: 1.65; }
.commerce-page [hidden] { display: none !important; }
.commerce-page h1 { font-family: "Shippori Mincho", "Noto Serif TC", serif; font-size: clamp(1.85rem, 3.9vw, 3.2rem); font-weight: 400; letter-spacing: .14em; line-height: 1.5; margin: 0 0 12px; }
.commerce-heading { max-width: 770px; padding: 12px 0 28px; }
.commerce-heading .lead { max-width: 40em; line-height: 1.7; }
.commerce-heading-small { padding-bottom: 24px; }
.commerce-heading-small h1 { font-size: 2.5rem; }
.commerce-page button, .commerce-page input, .commerce-page select, .commerce-page textarea { font: inherit; color: inherit; }
.commerce-page input, .commerce-page select, .commerce-page textarea { border: 1px solid var(--line2); background: var(--panel); border-radius: 0; min-width: 0; }
.commerce-page input, .commerce-page select { min-height: 48px; }
.commerce-page input, .commerce-page textarea { padding: 10px 13px; }
.commerce-page select { padding: 11px 34px 11px 13px; width: 100%; font-size: .87rem; }
.commerce-page input:focus, .commerce-page select:focus, .commerce-page textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.commerce-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); padding: 12px 0; }
.commerce-filters { display: flex; gap: 5px; flex-wrap: wrap; }
.commerce-filters button { border: 1px solid transparent; background: transparent; cursor: pointer; padding: 6px 14px; min-height: 44px; font-size: .85rem; letter-spacing: .1em; color: var(--soft); }
.commerce-filters button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.commerce-search input { width: 240px; font-size: .86rem; }
.commerce-results { font-size: .76rem; letter-spacing: .08em; color: var(--faint); margin: 14px 0; }
.commerce-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 24px 16px; }
.commerce-card { min-width: 0; background: var(--panel); border: 1px solid var(--line); }
.commerce-card-art { display: block; padding: 10px 10px 0; text-decoration: none; }
.commerce-card-art img { display: block; width: 100%; height: auto; max-width: 100%; }
.commerce-card-copy { padding: 12px 14px 14px; }
.commerce-kicker { font-size: .69rem; color: var(--accent); letter-spacing: .12em; margin-bottom: 4px; }
.commerce-card h2 { font-size: 1.08rem; letter-spacing: .09em; line-height: 1.65; margin: 0 0 5px; overflow-wrap: anywhere; }
.commerce-card h2 a { text-decoration: none; }
.commerce-card-detail { color: var(--faint); font-size: .75rem; margin-bottom: 11px; }
.commerce-inclusions { color: var(--accent); font-size: .72rem; letter-spacing: .08em; margin: 7px 0 10px; }
.commerce-card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.commerce-price { font-size: .9rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.commerce-card-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .72rem; letter-spacing: .06em; text-decoration: none; color: var(--soft); white-space: nowrap; }
.commerce-card-art:hover img { opacity: .92; }
.commerce-no-image { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--raised); color: var(--faint); gap: 8px; }
.commerce-no-image span { font-family: "Noto Serif TC", serif; letter-spacing: .35em; }
.commerce-no-image small { font-size: .7rem; }
.commerce-no-results { border: 1px solid var(--line); padding: 28px 16px; text-align: center; color: var(--soft); }
.commerce-size-guide { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 28px; margin-top: 60px; padding: 24px 0; border-top: 1px solid var(--line2); }
.commerce-size-guide h2 { font-size: 1.4rem; letter-spacing: .14em; margin-bottom: 9px; }
.commerce-size-guide p { color: var(--soft); font-size: .93rem; line-height: 1.7; }
.commerce-size-guide .commerce-fineprint { font-size: .76rem; margin-top: 12px; }
.commerce-table-wrap { min-width: 0; overflow: auto; }
.commerce-size-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.commerce-size-table th, .commerce-size-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: left; font-weight: 300; }
.commerce-size-table thead th { color: var(--faint); font-size: .72rem; letter-spacing: .13em; }
.commerce-size-table td:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.commerce-size-table td small { display: block; color: var(--faint); font-size: .66rem; }
.commerce-breadcrumb { position: static; background: transparent; display: flex; justify-content: flex-start; flex-wrap: wrap; padding: 0; gap: 6px; border: 0; font-size: .74rem; color: var(--faint); margin: 0 0 16px; backdrop-filter: none; z-index: auto; }
.commerce-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); }
.commerce-product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: start; }
.commerce-gallery { min-width: 0; }
.commerce-product-art { margin: 0; background: var(--panel); border: 1px solid var(--line); padding: 10px; }
.commerce-product-art img { display: block; width: 100%; height: auto; max-width: 100%; }
.commerce-gallery-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; padding: 2px 1px; min-height: 44px; font-size: .72rem; color: var(--soft); }
.commerce-gallery-meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--faint); text-decoration: none; }
.commerce-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.commerce-thumb { display: flex; flex-direction: column; width: 88px; border: 1px solid var(--line2); padding: 6px; background: var(--panel); cursor: pointer; text-align: center; }
.commerce-thumb[aria-pressed="true"] { border: 2px solid var(--ink); padding: 5px; }
.commerce-thumb img { width: 100%; height: 72px; object-fit: contain; }
.commerce-thumb span { font-size: .58rem; line-height: 1.6; padding-top: 5px; overflow-wrap: anywhere; }
.commerce-product-copy { padding-top: 5px; }
.commerce-product-copy h1 { font-size: clamp(1.75rem, 3.4vw, 2.65rem); letter-spacing: .12em; overflow-wrap: anywhere; }
.commerce-description { color: var(--soft); font-size: .95rem; line-height: 1.7; }
.commerce-product-details { display: grid; gap: 4px; margin: 16px 0 17px; font-size: .82rem; }
.commerce-product-details > div { display: grid; grid-template-columns: 5.4em 1fr; gap: 12px; }
.commerce-product-details dt { color: var(--faint); }
.commerce-selection { border-top: 1px solid var(--line2); padding-top: 15px; }
.commerce-selection > label { display: block; font-size: .85rem; margin-bottom: 5px; }
.commerce-selected-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; }
.commerce-selected-price > span { font-size: .8rem; color: var(--soft); }
.commerce-selected-price strong { font-family: "Noto Serif TC", serif; font-size: 1.38rem; font-weight: 400; white-space: nowrap; }
.commerce-frame-selection { margin-bottom: 9px; }
.commerce-size-note { min-height: 1em; margin-bottom: 10px; }
.commerce-frame-selection > label { display: block; font-size: .85rem; margin-bottom: 5px; }
.commerce-frame-description { color: var(--faint); font-size: .73rem; line-height: 1.65; margin-top: 6px; }
.commerce-product-estimates { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 14px; padding: 9px 0 10px; }
.commerce-product-estimates > div { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; padding: 4px 0; }
.commerce-product-estimates > div > span { color: var(--soft); font-size: .75rem; flex-shrink: 0; }
.commerce-product-estimates strong { font-size: .96rem; font-weight: 400; line-height: 1.65; text-align: right; overflow-wrap: anywhere; }
.commerce-product-estimates p { color: var(--faint); font-size: .7rem; line-height: 1.65; margin-top: 6px; }
.commerce-purchase-row { display: flex; align-items: flex-end; gap: 9px; }
.commerce-quantity-label { width: 80px; flex: 0 0 80px; font-size: .75rem; }
.commerce-quantity-label input { width: 100%; margin-top: 4px; text-align: center; padding-left: 6px; padding-right: 6px; }
.commerce-button { border: 1px solid var(--ink); padding: 13px 24px; background: var(--ink); color: var(--panel) !important; cursor: pointer; min-height: 50px; text-align: center; font-size: .87rem !important; letter-spacing: .12em; }
.commerce-button span { padding-left: 14px; }
.commerce-button:hover { background: #44443b; }
.commerce-button:disabled { opacity: .45; cursor: not-allowed; background: var(--ink); }
.commerce-purchase-row .commerce-button { flex: 1; }
.commerce-selection-status { font-size: .8rem; line-height: 1.65; padding-top: 7px; }
.commerce-inline-link { font-size: .8rem; color: var(--accent); display: inline-flex; align-items: center; min-height: 44px; margin-top: 3px; text-decoration: none; }
.commerce-fineprint { font-size: .74rem; color: var(--faint); line-height: 1.65; }
.commerce-product-copy > .commerce-fineprint { margin-top: 15px; }
.commerce-back-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; text-decoration: none; font-size: .79rem; color: var(--soft); letter-spacing: .08em; }
.commerce-notice { padding: 15px; margin: 12px 0; border: 1px solid var(--line); background: var(--panel); color: var(--soft); font-size: .86rem; }
.commerce-cart-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .75fr); align-items: start; gap: 28px; }
.commerce-cart-items { border-top: 1px solid var(--line2); }
.commerce-cart-item { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line2); }
.commerce-cart-item-art { display: block; align-self: start; }
.commerce-cart-item-art img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.commerce-cart-item h2 { font-size: 1.06rem; line-height: 1.65; letter-spacing: .08em; margin: 0 0 6px; overflow-wrap: anywhere; }
.commerce-cart-item h2 a { text-decoration: none; }
.commerce-cart-spec { font-size: .76rem; color: var(--soft); line-height: 1.65; }
.commerce-cart-specifications { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 9px; }
.commerce-cart-specifications label { font-size: .72rem; color: var(--soft); }
.commerce-cart-specifications select { display: block; width: 100%; margin-top: 3px; font-size: .73rem; min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
.commerce-cart-frame-note { font-size: .69rem; line-height: 1.65; color: var(--faint); margin-top: 6px; }
.commerce-cart-controls { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; }
.commerce-stepper { display: inline-flex; align-items: center; }
.commerce-stepper button { height: 44px; width: 44px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; line-height: 1; }
.commerce-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.commerce-stepper input { width: 44px; height: 44px; min-height: 44px; border-left: 0; border-right: 0; padding: 0; text-align: center; font-size: .8rem; -moz-appearance: textfield; appearance: textfield; }
.commerce-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.commerce-cart-line-total { font-size: .88rem; font-variant-numeric: tabular-nums; }
.commerce-remove { min-height: 44px; margin-top: 4px; border: 0; border-bottom: 1px solid var(--line2); background: transparent; color: var(--faint) !important; font-size: .7rem !important; padding: 0; cursor: pointer; }
.commerce-cart-warning { padding-top: 10px; color: var(--soft); font-size: .76rem; }
.commerce-cart-empty { padding: 28px 18px; background: var(--panel); text-align: center; border-bottom: 1px solid var(--line); }
.commerce-cart-empty h2 { font-size: 1.25rem; letter-spacing: .12em; }
.commerce-cart-empty p { color: var(--soft); font-size: .85rem; }
.commerce-cart-empty .commerce-button { display: inline-block; margin-top: 14px; text-decoration: none; }
.commerce-order-panel { background: var(--panel); border: 1px solid var(--line); padding: 18px; }
.commerce-order-panel h2 { font-size: 1.25rem; letter-spacing: .12em; }
.commerce-order-totals { margin-top: 14px; }
.commerce-order-totals > div { display: flex; justify-content: space-between; gap: 11px; font-size: .82rem; padding: 4px 0; }
.commerce-order-totals .commerce-total { border-top: 1px solid var(--line2); margin-top: 7px; padding: 12px 0 8px; font-size: 1.08rem; font-weight: 400; }
.commerce-order-totals dd { font-variant-numeric: tabular-nums; }
.commerce-order-totals .commerce-total dd { text-align: right; overflow-wrap: anywhere; line-height: 1.7; }
.commerce-order-panel fieldset { border: 0; padding: 0; margin: 15px 0 0; min-width: 0; }
.commerce-order-panel legend { font-size: .93rem; padding: 0 0 3px; }
.commerce-order-panel fieldset label { display: block; font-size: .78rem; margin-top: 8px; }
.commerce-order-panel fieldset input, .commerce-order-panel textarea { display: block; width: 100%; margin-top: 4px; font-size: .85rem; }
.commerce-order-panel textarea { resize: vertical; min-height: 100px; }
.commerce-optional { color: var(--faint); font-size: .7rem; }
.commerce-consent { display: flex; align-items: flex-start; gap: 7px; min-height: 44px; font-size: .74rem; line-height: 1.65; margin: 13px 0; }
.commerce-consent input { width: 17px; height: 17px; min-height: 17px; margin-top: 4px; accent-color: var(--ink); flex-shrink: 0; }
.commerce-checkout-button { width: 100%; }
.commerce-payment-status { font-size: .77rem; line-height: 1.65; color: var(--soft); margin-top: 8px; }
.commerce-payment-status[data-error="true"] { color: #8b4234; }
.commerce-payment-note { font-size: .68rem; color: var(--faint); line-height: 1.65; margin-top: 8px; }
.commerce-cart-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--panel); font-size: .61rem; letter-spacing: 0; padding: 0 5px; margin-left: 5px; vertical-align: 1px; }
.commerce-cart-badge[hidden] { display: none; }
.commerce-payment-result { padding: 26px 0 46px; max-width: 670px; }
.commerce-payment-result h1 { font-size: 2.4rem; }
.commerce-result-details { margin: 20px 0 12px; padding: 13px 0; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); font-size: .85rem; }
.commerce-result-details > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 12px; }
.commerce-result-details dt { color: var(--faint); }
.commerce-result-details dd { overflow-wrap: anywhere; }
.commerce-result-status { color: var(--soft); font-size: .83rem; }
.commerce-result-actions { display: flex; align-items: baseline; flex-wrap: wrap; gap: 11px; margin-top: 14px; }
.commerce-result-actions .commerce-back-link { margin-top: 0; }
.commerce-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 1000px) { .commerce-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .commerce-product { gap: 20px; } .commerce-cart-layout { gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr); } .commerce-order-panel { padding: 15px; } }
@media (max-width: 760px) { .commerce-page { padding-top: 18px; } .commerce-heading { padding-bottom: 18px; } .commerce-heading h1 { font-size: 1.9rem; } .commerce-heading .lead { font-size: .91rem; } .commerce-toolbar { align-items: stretch; flex-direction: column; gap: 9px; } .commerce-filters { gap: 3px; } .commerce-filters button { padding: 6px 10px; font-size: .78rem; } .commerce-search input { width: 100%; } .commerce-product { grid-template-columns: 1fr; gap: 22px; } .commerce-product-art img { max-height: none; } .commerce-product-copy { padding-top: 0; } .commerce-product-copy h1 { font-size: 2rem; } .commerce-size-guide { grid-template-columns: 1fr; gap: 15px; margin-top: 40px; } .commerce-size-guide h2 { font-size: 1.27rem; } .commerce-cart-layout { grid-template-columns: 1fr; gap: 18px; } .commerce-order-panel { padding: 16px 15px; } .commerce-cart-item { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; } .commerce-cart-item h2 { font-size: 1rem; } }
@media (max-width: 520px) { .commerce-grid { grid-template-columns: 1fr; gap: 18px; } .commerce-card-art { padding: 9px 9px 0; } .commerce-card-copy { padding: 12px; } .commerce-card h2 { font-size: 1.17rem; } .commerce-cart-controls { align-items: flex-start; gap: 7px; } .commerce-cart-line-total { width: 100%; } .commerce-purchase-row { gap: 7px; } .commerce-button { padding-left: 16px; padding-right: 16px; } .commerce-button span { padding-left: 5px; } .commerce-product-details > div { gap: 8px; } }
