.commerce-page { --page-width: 1200px; }
.site-header { position: relative; }
.header-actions { gap: 12px; }
.language-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 24px; flex-shrink: 0; }
.language-switch a { display: grid; place-items: center; min-width: 32px; min-height: 30px; padding: 4px 7px; font-size: 11px; font-weight: 600; border-radius: 18px; }
.language-switch a[aria-current="page"] { background: var(--ink); color: #fff; }
.language-switch a:hover { background: var(--mint); color: var(--ink); }
.cart-trigger { position: relative; min-height: 44px; padding: 10px 15px; border-radius: 28px; font-size: 13px; gap: 9px; }
.cart-trigger b { min-width: 20px; height: 20px; }
.product-title-button { display: inline; }
.product-image-button { display: block; }
.cart-dialog { padding: 0; width: min(480px, 100%); height: 100dvh; max-height: 100dvh; border-radius: 24px 0 0 24px; overflow: hidden; }
.cart-dialog[open] { display: flex; flex-direction: column; }
.cart-dialog > .dialog-heading { margin: 0; padding: 22px 24px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.cart-dialog .dialog-heading h2 { font-size: 25px; }
.dialog-close { width: 44px; height: 44px; padding: 12px; }
#cart-content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart-scroll { overflow-y: auto; flex: 1; min-height: 0; padding: 24px; }
.cart-items { gap: 18px; }
.cart-item { display: grid; grid-template-columns: 80px minmax(0, 1fr) 44px; gap: 14px; align-items: start; padding-bottom: 18px; }
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-item img { aspect-ratio: 16/11; object-fit: cover; border-radius: 12px; }
.cart-item h3 { font-size: 15px; line-height: 1.4; font-weight: 500; }
.cart-item h3 a:hover { text-decoration: underline; }
.cart-item-info { min-width: 0; }
.cart-item-info strong { display: block; font-size: 15px; font-weight: 600; margin-top: 8px; font-variant-numeric: tabular-nums; }
.cart-remove { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #f3f5f3; }
.cart-remove:hover { background: var(--mint); }
.cart-remove .icon { width: 17px; height: 17px; }
.cart-summary { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.cart-total { margin: 0 0 16px; font-size: 16px; gap: 16px; }
.cart-total strong { font-size: 27px; }
.cart-checkout { min-height: 52px; border-radius: 14px; padding: 13px 18px; font-size: 15px; }
.cart-note { margin-top: 12px; font-size: 12px; line-height: 1.6; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 40px 24px; }
.cart-empty .icon { width: 44px; height: 44px; }
.cart-empty .button { margin-top: 8px; min-height: 48px; font-size: 14px; border-radius: 14px; }
.payment-region { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.payment-region legend { padding: 0; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.payment-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.payment-tabs label { position: relative; cursor: pointer; min-width: 0; }
.payment-tabs input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.payment-tabs span { display: flex; align-items: center; min-height: 52px; height: 100%; padding: 12px; border: 1px solid #c4cec7; border-radius: 12px; font-size: 13px; line-height: 1.4; }
.payment-tabs input:checked + span { border-color: #12a66b; background: var(--mint); }
.payment-tabs input:focus-visible + span { outline: 3px solid #0fb779; outline-offset: 3px; }
.payment-tabs input:disabled + span { opacity: .6; cursor: default; }
.rate-note { color: #315446; font-size: 12px; line-height: 1.6; margin: 0 0 14px; }
.checkout-main { padding-top: 24px; padding-bottom: 64px; }
.checkout-main > .text-link { display: inline-flex; margin-bottom: 20px; font-size: 13px; }
.checkout-main > h1 { margin-bottom: 24px; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.15; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; }
.checkout-steps { display: flex; gap: 24px; list-style: none; counter-reset: checkout; padding: 0; margin: 0 0 32px; }
.checkout-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); counter-increment: checkout; }
.checkout-steps li::before { display: grid; place-items: center; content: counter(checkout); width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; }
.checkout-steps li.active { color: var(--ink); }
.checkout-steps li.active::before { border-color: var(--green); background: var(--green); }
.checkout-form { gap: 20px; min-width: 0; }
.checkout-form .payment-region { margin-bottom: 0; }
.checkout-form h2 { font-size: 24px; }
.checkout-form input:not([type="radio"]):not([type="checkbox"]) { min-height: 52px; }
.checkout-summary { position: sticky; top: 24px; border-radius: 20px; padding: 24px; min-width: 0; }
.checkout-summary h2 { margin-bottom: 24px; }
.checkout-summary .cart-item { grid-template-columns: 68px minmax(0, 1fr); }
.checkout-summary .cart-total { margin-top: 24px; padding-top: 20px; }
.checkout-summary .rate-note { margin-top: 10px; }
.checkout-summary .text-link { font-size: 13px; margin-top: 16px; text-decoration: underline; }
.checkout-status { padding: 14px 16px; border-radius: 12px; }
.checkout-status.is-ready { background: var(--mint); color: #315446; }
.secure-note { display: flex; align-items: start; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.secure-note .icon { width: 17px; height: 17px; flex-shrink: 0; }
.checkout-message:empty { display: none; }
.payment-panel { display: grid; gap: 16px; min-width: 0; margin-top: 8px; }
.payment-frame { width: 100%; min-width: 0; }
.payment-frame iframe { border: 0; }
.payment-panel > .text-link { font-size: 14px; justify-self: start; text-decoration: underline; }
.payment-status { padding: 24px; background: var(--mint); color: #315446; border-radius: 20px; margin-bottom: 24px; max-width: 720px; }
.payment-status .button { margin-top: 20px; font-size: 14px; }
.payment-status + .button { margin-right: 20px; }
.checkout-empty { padding: 40px 0 60px; }
.checkout-empty > .icon { width: 48px; height: 48px; margin: 0 auto 20px; }
.detail-page-link { font-size: 13px; margin-top: 20px; }
.breadcrumbs { margin-bottom: 28px; font-size: 12px; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: 20px; color: #9da59f; }
.breadcrumbs a:hover { text-decoration: underline; }
.product-page, .category-page { padding-top: 28px; padding-bottom: 24px; }
.product-page-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
.product-page-cover { position: sticky; top: 24px; }
.product-page-cover img { border-radius: 20px; }
.product-page-copy h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.product-page-copy .detail-category { margin-top: 12px; }
.product-page-copy .detail-description { font-size: 16px; }
.product-tags { list-style: none; padding: 0; margin: 18px 0 24px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.product-page-copy .detail-columns { margin-top: 24px; gap: 24px; }
.product-page-copy .detail-columns h2 { font-size: 18px; margin-bottom: 12px; }
.related-section { padding-top: 40px; padding-bottom: 32px; }
.related-section .product-grid, .category-page .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-intro { margin-bottom: 32px; }
.category-intro h1 { font-size: clamp(30px, 3.5vw, 44px); line-height: 1.15; }
.category-intro p { margin-top: 16px; color: var(--muted); max-width: 65ch; }
.category-intro .price-note { display: block; margin-top: 12px; }

@media(max-width: 1050px) {
  .site-header nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% - 1px); padding: 20px 24px; background: #fff; z-index: 20; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 25px #00000012; font-size: 15px; }
  .site-header nav.is-open { display: flex; flex-direction: column; align-items: start; gap: 16px; }
  .menu-toggle { display: block; }
  .checkout-grid { gap: 28px; }
  .product-page-grid { gap: 28px; }
}
@media(max-width: 900px) {
  .checkout-grid { display: flex; flex-direction: column-reverse; gap: 32px; }
  .checkout-summary { position: static; width: 100%; }
  .product-page-grid { grid-template-columns: 1fr; }
  .product-page-cover { position: static; max-width: 680px; }
  .related-section .product-grid, .category-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 760px) {
  .header-actions { gap: 8px; }
  .language-switch { padding: 2px; }
  .language-switch a { min-width: 30px; min-height: 32px; padding: 4px; }
  .language-switch a[aria-current="page"] { display: none; }
  .cart-trigger { width: 48px; height: 44px; padding: 11px 13px; }
  .cart-trigger > .icon { width: 21px; height: 21px; }
  .cart-trigger b { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; font-size: 10px; }
  .cart-dialog { border-radius: 20px 0 0 20px; }
  .cart-dialog > .dialog-heading { padding: 18px 20px; }
  .cart-scroll { padding: 20px; }
  .cart-summary { padding: 18px 20px 22px; }
  .checkout-main > h1 { font-size: 34px; }
  .checkout-steps { gap: 14px; margin-bottom: 24px; }
  .checkout-steps li { font-size: 12px; gap: 6px; }
  .checkout-summary { padding: 22px; }
  .product-page, .category-page { padding-top: 20px; }
  .product-page-copy h1 { font-size: 32px; }
  .product-page-copy .detail-description { font-size: 15px; }
  .product-page-copy .detail-columns { grid-template-columns: 1fr; }
  .related-section .product-grid, .category-page .product-grid { grid-template-columns: 1fr; }
  .category-intro h1 { font-size: 32px; }
}
@media(max-width: 370px) {
  .site-header .brand > svg { display: none; }
  .cart-item { grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 10px; }
  .cart-item h3 { font-size: 14px; }
  .cart-scroll { padding-inline: 16px; }
  .cart-dialog > .dialog-heading { padding-inline: 16px; }
  .cart-summary { padding-inline: 16px; }
  .payment-tabs span { font-size: 12px; padding: 10px; }
  .checkout-steps { gap: 10px; }
  .checkout-steps li { font-size: 11px; }
  .checkout-steps li::before { width: 22px; height: 22px; }
  .payment-frame { width: 312px; justify-self: center; }
}

/* Category cards use H2 below the category H1. */
.category-page .product-card h2 { margin-top: 14px; font-size: 22px; line-height: 1.25; }
.pack-guide { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.pack-guide > h2 { font-size: 26px; }
.pack-guide > p { margin-top: 16px; max-width: 90ch; color: var(--muted); font-size: 15px; }
.pack-table-wrap { margin-top: 20px; overflow-x: auto; }
.pack-guide table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; text-align: left; line-height: 1.6; }
.pack-guide th, .pack-guide td { padding: 14px 16px 14px 0; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.pack-guide tbody th { font-weight: 500; }
.pack-guide a { text-decoration: underline; }
@media (max-width: 760px) { .category-page .product-card h2 { margin-top: 12px; font-size: 22px; } .pack-guide > h2 { font-size: 24px; } .pack-guide th, .pack-guide td { padding-right: 10px; } }
