/* Scoped product, cart and checkout finishes. Keep inventory and payment hooks native. */
.commerce-detail-page,
.commerce-model-page,
.commerce-cart-page {
  --commerce-ink: #181b19;
  --commerce-muted: #6e706b;
  --commerce-line: #dddfd8;
  color: var(--commerce-ink);
}

.commerce-detail-page > .breadcrumb,
.commerce-model-page > .breadcrumb {
  padding-block: 28px;
  font-size: 12px;
  gap: 12px;
}

.commerce-product {
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .9fr);
  gap: clamp(36px, 5.5vw, 88px);
  padding-bottom: 88px;
}

.commerce-product .gallery {
  gap: 10px;
  top: 112px;
}

.commerce-product .gallery__main {
  aspect-ratio: 1 / 1.05;
  border-radius: 10px;
  background: #f5f5f3;
}

.commerce-product .gallery__main img {
  padding: 22px;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.commerce-product .gallery__zoom-hint {
  right: 20px;
  bottom: 20px;
  padding: 10px 13px;
  border: 1px solid #e5e5e0;
  border-radius: 5px;
  font-size: 11px;
}

.commerce-product .gallery__caption {
  padding: 8px 0 12px;
  gap: 20px;
  line-height: 1.7;
  color: var(--commerce-muted);
}

.commerce-product .gallery__caption > :last-child {
  text-align: right;
  max-width: 65%;
}

.commerce-product .gallery__thumbs {
  gap: 12px;
  padding-bottom: 8px;
}

.commerce-product .gallery__thumb {
  width: 88px;
  height: 88px;
  flex-basis: 88px;
  border-radius: 5px;
  transition: border-color .2s, opacity .2s;
}

.commerce-product .buybox {
  padding-top: 9px;
  gap: 20px;
}

.commerce-product .buybox__eyebrow {
  gap: 8px;
}

.commerce-product .buybox__eyebrow .badge {
  padding: 6px 9px;
  border: 1px solid var(--commerce-line);
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: .015em;
  background: #fff;
}

.commerce-product .buybox h1 {
  font-size: clamp(36px, 3.6vw, 54px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.commerce-product .price-block {
  gap: 9px 14px;
  margin-top: 1px;
}

.commerce-product .price-block .now {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.2;
}

.commerce-product .price-block .was {
  font-size: 15px;
}

.commerce-product .price-block .save {
  padding: 4px 7px;
  border-radius: 2px;
  font-size: 11px;
}

.commerce-product .reservation-fine,
.commerce-product .offer-reference {
  font-size: 12px;
  line-height: 1.75;
  color: var(--commerce-muted);
}

.commerce-product .offer-reference a {
  color: var(--commerce-ink);
  text-underline-offset: 3px;
}

.commerce-product .rating-summary {
  font-size: 12px;
  gap: 9px;
}

.commerce-product .variant {
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--commerce-line);
}

.commerce-product .variant__label {
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 600;
  gap: 16px;
}

.commerce-product .variant__label .selected,
.commerce-product [data-selected-finish] {
  font-size: 12px;
  font-weight: 400;
  color: var(--commerce-muted);
  text-align: right;
}

.commerce-product .variant__options {
  gap: 9px;
}

.commerce-product .variant__options .option {
  min-height: 46px;
  border-color: #d1d5cd;
  border-radius: 5px;
  font-size: 13px;
  background: #fff;
  color: var(--commerce-ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.commerce-product .variant__options .option.selected {
  color: var(--commerce-ink);
  background: #f4f5f1;
  border-color: var(--commerce-ink);
  box-shadow: inset 0 0 0 1px var(--commerce-ink);
}

.commerce-product .variant__options .option:disabled {
  opacity: .38;
  background: #f5f5f3;
  box-shadow: none;
}

.commerce-product .storage-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.commerce-product .storage-options .option--storage {
  height: auto;
  min-height: 96px;
  padding: 19px 36px 19px 18px;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

.commerce-product .option--storage strong {
  font-size: 19px;
  letter-spacing: -.025em;
  font-weight: 500;
}

.commerce-product .option--storage .option__price {
  font-size: 12px;
  color: #5f655b;
}

.commerce-product .storage-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.commerce-product .grade-guide summary {
  font-size: 12px;
}

.commerce-product .buy-actions {
  margin-top: 2px;
  padding-top: 4px;
}

.commerce-product .add-row {
  gap: 12px;
  flex-wrap: nowrap;
}

.commerce-product .qty {
  height: 56px;
  border-radius: 5px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #fff;
}

.commerce-product .qty button {
  width: 35px;
}

.commerce-product .qty input {
  width: 30px;
}

.commerce-product .add-row .btn,
.commerce-product .model-view__links .btn {
  min-height: 56px;
  border-radius: 5px;
  font-size: 13px;
  background: var(--commerce-ink);
  border-color: var(--commerce-ink);
  color: #fff;
}

.commerce-product .microtrust {
  display: grid;
  gap: 10px;
  padding-top: 5px;
  font-size: 12px;
  color: #596155;
}

.commerce-product .microtrust span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.commerce-product .acc-item summary {
  padding-block: 20px;
  font-size: 14px;
  font-weight: 500;
}

.commerce-product .acc-item__body,
.commerce-product .desc-readmore {
  font-size: 13px;
  line-height: 1.8;
}

.commerce-detail-page > .section {
  border-top: 1px solid #e1e2db;
}

.commerce-detail-page .qc {
  background: #eeeee8;
}

.commerce-detail-page .qc__head h2,
.commerce-detail-page .section-head h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.commerce-detail-page .qc__head p {
  max-width: 59ch;
  font-size: 14px;
  line-height: 1.8;
}

.commerce-detail-page .qc__item {
  border-color: #d7dbd1;
}

.commerce-detail-page .review {
  border-radius: 7px;
  background: #fff;
}

.commerce-model-page .commerce-product {
  margin-top: 0;
}

.commerce-model-page .buybox {
  padding-top: 30px;
  gap: 25px;
}

.commerce-model-page .buybox > .eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--commerce-muted);
}

.commerce-model-page .model-view__desc {
  font-size: 17px;
  line-height: 1.8;
  max-width: 36ch;
}

.commerce-model-page .finish-options {
  gap: 10px;
}

.commerce-model-page .finish-option {
  border-radius: 5px;
  min-height: 90px;
  font-size: 12px;
  transition: border-color .2s, background .2s;
}

.commerce-model-page .finish-option.is-active {
  background: #f4f5f1;
}

.commerce-model-page .model-view__status {
  padding-block: 23px;
  border-color: var(--commerce-line);
}

.commerce-model-page .model-view__status p,
.commerce-model-page .model-view__fine {
  font-size: 12px;
  line-height: 1.8;
}

/* Cart keeps each image, configuration and quantity on an intentional grid. */
.commerce-cart-page {
  padding-block: 64px 100px;
}

.commerce-cart-page .section-head {
  align-items: flex-end;
  margin-bottom: 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--commerce-line);
}

.commerce-cart-page .section-head h1 {
  font-size: clamp(37px, 4.2vw, 58px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -.055em;
}

.commerce-cart-page .link-more {
  padding-bottom: 4px;
  font-size: 12px;
}

.commerce-cart-page .cart-layout {
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: clamp(30px, 5vw, 72px);
}

.commerce-cart-page .cart-item {
  grid-template-columns: 108px minmax(0, 1fr) auto auto 30px;
  gap: 18px;
  padding-block: 26px;
  border-color: var(--commerce-line);
}

.commerce-cart-page .cart-item:first-child {
  padding-top: 0;
}

.commerce-cart-page .cart-thumb {
  width: 108px;
  height: 120px;
  border: 0;
  border-radius: 5px;
  background: #f5f5f3;
}

.commerce-cart-page .cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.commerce-cart-page .cart-info h3 {
  font-size: 17px;
  letter-spacing: -.03em;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 7px;
}

.commerce-cart-page .cart-variant {
  font-size: 12px;
  color: var(--commerce-muted);
  line-height: 1.7;
}

.commerce-cart-page .cart-sku {
  margin-top: 5px;
  font-size: 10px;
  color: #81867b;
  overflow-wrap: anywhere;
}

.commerce-cart-page .qty-stepper {
  border: 1px solid #d5d9d0;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}

.commerce-cart-page .cart-qty .qty-stepper button {
  width: 30px;
  height: 40px;
}

.commerce-cart-page .cart-qty .qty-stepper input {
  width: 28px;
  font-weight: 400;
}

.commerce-cart-page .cart-subtotal {
  min-width: 64px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.025em;
}

.commerce-cart-page .cart-remove {
  width: 30px;
  min-height: 42px;
  padding: 3px;
  font-size: 14px;
  color: #7d8277;
}

.commerce-cart-page .cart-summary {
  padding: 30px;
  border: 1px solid #dedfd7;
  border-radius: 8px;
  background: #fff;
  top: 112px;
  box-shadow: 0 12px 30px #20251b04;
}

.commerce-cart-page .cart-summary h3 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.035em;
  margin-bottom: 24px;
}

.commerce-cart-page .summary-row {
  font-size: 12px;
  gap: 20px;
  line-height: 1.6;
  padding-block: 10px;
}

.commerce-cart-page .summary-row > :last-child {
  color: var(--commerce-ink);
  white-space: nowrap;
}

.commerce-cart-page .summary-total {
  margin-top: 16px;
  padding-top: 20px;
  border-color: var(--commerce-line);
  font-size: 13px;
}

.commerce-cart-page .cart-summary .btn {
  margin-top: 22px;
  min-height: 54px;
  border-radius: 5px;
  font-size: 13px;
  padding: 15px 16px;
}

.commerce-cart-page .empty-state {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--commerce-line);
  border-radius: 8px;
  padding: 44px 24px;
}

.commerce-cart-page .empty-state p {
  font-size: 17px;
  color: var(--commerce-muted);
  margin: 0;
}

.commerce-cart-page .empty-state .btn {
  border-radius: 5px;
  width: auto;
}

/* Quiet, readable checkout with provider-hosted payment controls untouched. */
.checkout-shell {
  --checkout-accent: #293126;
  background: linear-gradient(to right, #fff 55%, #f3f3ed 55%);
  color: #20251d;
}

.checkout-header {
  border-color: #e2e5dc;
}

.checkout-header__inner,
.checkout-grid {
  max-width: 1180px;
}

.checkout-header__inner {
  min-height: 100px;
  padding-block: 29px;
}

.checkout-header__secure {
  font-size: 12px;
  color: #767d70;
}

.checkout-grid {
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
}

.checkout-shell .checkout-main {
  padding: 46px 56px 40px 32px;
}

.checkout-order-summary {
  padding: 48px 32px 56px 48px;
  background: #f3f3ed;
  min-height: calc(100vh - 100px);
}

.checkout-shell h2 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.035em;
}

.checkout-section {
  margin-bottom: 36px;
}

.checkout-shell .express-button {
  min-height: 51px;
  border-radius: 5px;
}

.checkout-shell .checkout-field input,
.checkout-shell .checkout-field select,
.checkout-shell .checkout-field textarea {
  border-color: #d6dbd0;
  border-radius: 5px;
  min-height: 57px;
  padding-top: 23px;
  font-size: 15px;
  box-shadow: none;
}

.checkout-shell .checkout-field > label {
  color: #737b6b;
}

.checkout-shell .checkout-field input:focus + label,
.checkout-shell .checkout-field input:not(:placeholder-shown) + label,
.checkout-shell .checkout-field textarea:focus + label,
.checkout-shell .checkout-field textarea:not(:placeholder-shown) + label,
.checkout-shell .checkout-field--select > label {
  font-size: 11px;
}

.checkout-shipping,
.checkout-payment-tile,
.checkout-payment-detail,
.checkout-more-payments__grid > label {
  border-radius: 5px;
  border-color: #d6dbd0;
}

.checkout-shipping {
  background: #f5f7f1;
  padding: 17px 15px;
}

.checkout-shipping strong,
.checkout-payment-tile strong {
  font-size: 13px;
}

.checkout-shipping small,
.checkout-payment-tile small,
.checkout-region,
.checkout-agreement .checkout-check,
.checkout-bottom-note,
.checkout-policies {
  font-size: 11px;
  line-height: 1.7;
}

.checkout-payment-tile {
  min-height: 100px;
  padding: 16px;
  gap: 8px;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.checkout-payment-tile:has(input:checked),
.checkout-more-payments__grid > label:has(input:checked) {
  border-color: var(--checkout-accent);
  background: #f1f4ec;
  box-shadow: inset 0 0 0 1px var(--checkout-accent);
}

.checkout-payment-detail p {
  font-size: 12px;
  line-height: 1.8;
}

.checkout-continue {
  min-height: 58px;
  border-radius: 5px;
  background: #181b19;
  font-weight: 500;
}

.checkout-policies {
  color: #69735e;
}

.checkout-product {
  gap: 16px;
  margin-bottom: 26px;
}

.checkout-product__image {
  width: 74px;
  height: 80px;
  background: #f5f5f3;
  border: 1px solid #e0e3d9;
  border-radius: 6px;
  padding: 0;
}

.checkout-product__copy strong {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.checkout-product__copy small {
  font-size: 11px;
  line-height: 1.7;
}

.checkout-product__price {
  font-size: 13px;
  font-weight: 500;
}

.checkout-coupon button {
  border-radius: 5px;
  border-color: #d5dacf;
  background: #e9ece2;
}

.checkout-totals > div {
  font-size: 13px;
  line-height: 1.6;
  padding-block: 6px;
}

.checkout-totals .checkout-total {
  margin-top: 13px;
  padding-top: 21px;
  font-size: 18px;
  letter-spacing: -.025em;
  border-color: #d9dfd0;
}

.checkout-today {
  margin-top: 28px;
  padding: 20px;
  border-radius: 6px;
  background: #e9eee1;
  border-color: #d6ddcc;
}

.checkout-today > div,
.checkout-after > div {
  font-size: 13px;
}

.checkout-today strong {
  font-size: 32px;
  letter-spacing: -.05em;
}

.checkout-today p,
.checkout-after p,
.checkout-promise p,
.checkout-pricing-note {
  font-size: 11px;
  line-height: 1.8;
  color: #737e68;
}

.checkout-after {
  padding: 20px 3px;
  border-color: #d9dfd0;
}

.checkout-promise {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #d9dfd0;
}

.checkout-promise > strong {
  margin-top: 11px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.checkout-inline-payment .order-payment {
  border-color: #d5dacf;
  border-radius: 6px;
}

.commerce-product :is(button, a, input):focus-visible,
.commerce-cart-page :is(button, a, input):focus-visible {
  outline: 2px solid #293126;
  outline-offset: 4px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .commerce-product .gallery__zoom:hover img {
    transform: scale(1.025);
  }
  .commerce-product .option:not(:disabled):hover,
  .commerce-model-page .finish-option:hover {
    border-color: #505c49;
  }
}

@media (max-width: 1100px) {
  .commerce-cart-page .cart-item {
    grid-template-columns: 96px minmax(0, 1fr) auto 26px;
    gap: 14px;
  }
  .commerce-cart-page .cart-subtotal {
    display: none;
  }
  .commerce-cart-page .cart-line-price {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
  }
  .commerce-cart-page .cart-thumb {
    width: 96px;
    height: 108px;
  }
  .commerce-cart-page .cart-summary {
    padding: 26px;
  }
  .checkout-shell .checkout-main {
    padding-right: 36px;
  }
  .checkout-order-summary {
    padding-left: 36px;
  }
}

@media (max-width: 900px) {
  .commerce-product {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
    padding-bottom: 64px;
  }
  .commerce-product .gallery {
    position: static;
  }
  .commerce-product .gallery__main {
    aspect-ratio: 1.08 / 1;
  }
  .commerce-product .buybox,
  .commerce-model-page .buybox {
    padding-top: 0;
  }
  .commerce-product .buybox h1 {
    font-size: clamp(36px, 5.5vw, 48px);
  }
  .commerce-cart-page .cart-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .commerce-cart-page .cart-summary {
    position: static;
  }
  .checkout-shell {
    background: #fff;
  }
  .checkout-header__inner,
  .checkout-grid {
    max-width: 650px;
  }
  .checkout-header__inner {
    min-height: 85px;
    padding: 24px;
  }
  .checkout-grid {
    display: flex;
    flex-direction: column;
  }
  .checkout-shell .checkout-main {
    padding: 34px 24px 30px;
  }
  .checkout-order-summary {
    position: static;
    min-height: 0;
    padding: 0;
    background: #f3f3ed;
  }
  .checkout-summary-toggle {
    padding-block: 22px;
    font-size: 13px;
    color: #4f5e43;
  }
  .checkout-summary-content {
    padding-bottom: 28px;
  }
}

@media (max-width: 640px) {
  .checkout-shell .checkout-field input,
  .checkout-shell .checkout-field select,
  .checkout-shell .checkout-field textarea { font-size: 16px; }
  .commerce-detail-page > .breadcrumb,
  .commerce-model-page > .breadcrumb {
    padding-block: 22px;
    font-size: 11px;
    gap: 9px;
  }
  .commerce-product {
    gap: 30px;
    padding-bottom: 52px;
  }
  .commerce-product .gallery__main {
    aspect-ratio: 1 / 1.02;
    border-radius: 6px;
  }
  .commerce-product .gallery__main img {
    padding: 13px;
  }
  .commerce-product .gallery__zoom-hint {
    bottom: 12px;
    right: 12px;
    padding: 8px 10px;
  }
  .commerce-product .gallery__caption {
    font-size: 10px;
    gap: 12px;
  }
  .commerce-product .gallery__thumb {
    width: 74px;
    height: 74px;
    flex-basis: 74px;
  }
  .commerce-product .buybox {
    gap: 18px;
  }
  .commerce-product .buybox h1 {
    font-size: 37px;
  }
  .commerce-product .price-block .now {
    font-size: 30px;
  }
  .commerce-product .variant {
    padding-top: 18px;
  }
  .commerce-product .storage-options {
    gap: 10px;
  }
  .commerce-product .storage-options .option--storage {
    min-height: 92px;
    padding-left: 14px;
  }
  .commerce-product .option--storage strong {
    font-size: 18px;
  }
  .commerce-product .add-row .btn {
    padding-inline: 12px;
    min-width: 0;
    width: auto;
    font-size: 12px;
  }
  .commerce-model-page .model-view__desc {
    font-size: 16px;
  }
  .commerce-model-page .finish-option {
    font-size: 11px;
  }
  .commerce-cart-page {
    padding-block: 38px 60px;
  }
  .commerce-cart-page .section-head {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
    margin-bottom: 28px;
    padding-bottom: 24px;
  }
  .commerce-cart-page .section-head h1 {
    font-size: 40px;
  }
  .commerce-cart-page .cart-item {
    grid-template-columns: 90px minmax(0, 1fr) 44px;
    grid-template-areas: 'image info remove' 'image quantity quantity';
    column-gap: 15px;
    row-gap: 12px;
    padding-block: 24px;
    align-items: start;
  }
  .commerce-cart-page .cart-thumb {
    grid-area: image;
    width: 90px;
    height: 116px;
  }
  .commerce-cart-page .cart-info {
    grid-area: info;
    overflow-wrap: anywhere;
  }
  .commerce-cart-page .cart-info h3 {
    font-size: 16px;
  }
  .commerce-cart-page .cart-qty {
    grid-area: quantity;
    justify-self: start;
  }
  .commerce-cart-page .cart-remove {
    grid-area: remove;
    margin-top: 0;
    width: 44px;
    min-height: 44px;
  }
  .commerce-cart-page .cart-qty .qty-stepper button {
    width: 44px;
    height: 44px;
  }
  .commerce-cart-page .cart-qty .qty-stepper input {
    width: 40px;
    min-height: 44px;
    font-size: 16px;
  }
  .commerce-cart-page .summary-row > :first-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .commerce-cart-page .summary-row > :last-child {
    flex-shrink: 0;
  }
  .commerce-cart-page .cart-sku {
    font-size: 9px;
  }
  .commerce-cart-page .cart-summary {
    padding: 25px;
  }
  .commerce-cart-page .empty-state {
    min-height: 280px;
  }
  .checkout-shell h2 {
    font-size: 20px;
  }
  .checkout-header__secure {
    font-size: 11px;
    margin-right: 0;
  }
  .checkout-product {
    gap: 12px;
  }
  .checkout-product__image {
    width: 66px;
    height: 72px;
  }
  .checkout-product__price {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .commerce-product .buybox h1 {
    font-size: 34px;
  }
  .commerce-product .qty button {
    width: 30px;
  }
  .commerce-product .qty input {
    width: 25px;
  }
  .checkout-header__inner {
    padding-inline: 20px;
    gap: 12px;
  }
  .checkout-header__secure {
    font-size: 0;
  }
  .checkout-shell .checkout-main {
    padding-inline: 20px;
  }
  .checkout-product__copy strong {
    font-size: 13px;
  }
  .checkout-product__copy small {
    font-size: 10px;
  }
  .checkout-payment-tile {
    padding: 13px;
  }
  .checkout-payment-tile small {
    font-size: 10px;
  }
  .checkout-coupon button {
    padding-inline: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .commerce-product *,
  .commerce-cart-page *,
  .checkout-shell * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
