.cart-page { min-height: 100vh; background: var(--white); }
.cart-wrap { max-width: 1200px; margin: auto; padding: 28px 22px 72px; }
.cart-wrap > .back-link { min-height: 44px; margin-bottom: 26px; font-size: 12px; }
.cart-heading { margin-bottom: 32px; }
.cart-clear-actions { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.cart-clear { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border-control); border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.cart-clear svg { width: 18px; height: 18px; }
.cart-clear:hover { background: var(--cream); }
.cart-clear:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.cart-heading .eyebrow { margin-bottom: 14px; }
.cart-heading h1 { font-size: clamp(48px, 9vw, 76px); line-height: 1.05; margin-bottom: 18px; }
.cart-heading > p:last-child { font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.cart-layout { display: grid; gap: 32px; }
.cart-items { margin: 0; padding: 0; list-style: none; }
.cart-item { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--border); }
.cart-item-image { grid-row: span 2; align-self: start; background: var(--sand); border-radius: 8px; overflow: hidden; }
.cart-item-image img { display: block; width: 100%; aspect-ratio: .85; object-fit: contain; }
.cart-item .eyebrow { font-size: 9px; margin-bottom: 10px; line-height: 1.5; }
.cart-item h2 { font-size: 23px; letter-spacing: -.035em; line-height: 1.15; margin-bottom: 8px; }
.cart-item-info > p:not(.eyebrow) { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.cart-item-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.cart-quantity { display: flex; align-items: center; border: 1px solid var(--border-control); border-radius: 5px; }
.cart-quantity button { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; }
.cart-quantity svg { width: 14px; height: 14px; }
.cart-quantity output { min-width: 24px; text-align: center; font-size: 13px; }
.cart-quantity button:disabled { opacity: .4; cursor: not-allowed; }
.cart-remove { min-height: 44px; padding: 0 4px; background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; font-size: 12px; }
.cart-line-total { grid-column: 2; font-size: 14px; }
.cart-summary { background: var(--cream); border: 1px solid var(--border); border-radius: 10px; padding: 28px 22px; align-self: start; }
.cart-summary .eyebrow { font-size: 9px; line-height: 1.6; margin-bottom: 16px; }
.cart-summary h2 { font-size: 30px; letter-spacing: -.04em; margin-bottom: 26px; }
.cart-subtotal,
.cart-totals { border-top: 1px solid var(--border); padding-top: 22px; margin-bottom: 12px; font-size: 14px; }
.cart-total-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.cart-total-row.is-muted { color: var(--text-muted); }
.cart-total-row.is-grand { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.cart-total-row strong { font-size: 16px; }
.cart-total-row.is-grand strong { font-size: 20px; }
.cart-subtotal { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.cart-subtotal strong { font-size: 20px; }
.cart-summary > p:not(.eyebrow) { color: var(--text-muted); font-size: 12px; line-height: 1.7; }
.cart-checkout select { width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; background: #fff; color: inherit; font: inherit; }
.cart-checkout-note { margin: 26px 0; padding: 18px; border-radius: 6px; background: color-mix(in srgb, var(--sage) 30%, var(--cream)); font-size: 12px; line-height: 1.7; }
.cart-checkout-note p { margin: 6px 0 0; }
.cart-summary .button, .cart-checkout .button { width: 100%; min-height: 48px; }
.cart-checkout { display: grid; gap: 12px; margin: 22px 0 8px; }
.cart-checkout h3 { font-size: 22px; letter-spacing: -.03em; }
.cart-checkout p { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.7; }
.cart-checkout label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.cart-checkout .field-optional { font-weight: 500; color: var(--text-muted); margin-left: 6px; }
.cart-checkout input, .cart-checkout textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-control); border-radius: 4px; background: var(--white); color: var(--ink); font: 16px/1.4 Arial, sans-serif; }
.cart-checkout textarea { min-height: 88px; resize: vertical; }
.cart-checkout .checkout-status { padding: 12px; background: var(--sand); }
.cart-checkout .checkout-status[hidden] { display: none; }
.cart-account-note a { text-decoration: underline; text-underline-offset: 3px; }
.cart-empty { padding: 48px 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--cream); text-align: center; }
.cart-empty-icon { margin: 0 auto 24px; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--sand); }
.cart-empty-icon svg { width: 28px; height: 28px; stroke-width: 1.3; }
.cart-empty h2 { font-size: clamp(32px, 6vw, 48px); line-height: 1.15; margin-bottom: 18px; }
.cart-empty p { max-width: 40ch; margin: 0 auto 26px; font-size: 14px; line-height: 1.8; color: var(--text-muted); }
.cart-empty .button { min-height: 48px; }
.cart-storage-note { padding: 16px; background: var(--sand); font-size: 13px; line-height: 1.6; }
.cart-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 600px) {
  .cart-item { grid-template-columns: 110px minmax(0, 1fr) auto; gap: 22px; }
  .cart-item-image { grid-row: auto; }
  .cart-line-total { grid-column: 3; }
  .cart-wrap { padding: 40px 40px 100px; }
}
@media (min-width: 960px) {
  .cart-layout { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 48px; }
  .cart-summary { position: sticky; top: 110px; }
}

/* Basket preview, opened from the navigation. Mobile stays a bottom sheet. */
.cart-sheet { position: fixed; inset: auto 0 0; margin: 0 auto; width: min(100%, 720px); max-width: 100%; max-height: 85dvh; padding: 0 0 env(safe-area-inset-bottom, 0px); border: 1px solid var(--border); border-radius: 24px 24px 0 0; background: var(--white, #fff); color: var(--ink); box-shadow: 0 -12px 50px #0002; }
.cart-sheet[open] { display: flex; flex-direction: column; animation: cart-sheet-rise .25s ease-out; }
.cart-sheet::backdrop { background: #0006; }
.cart-sheet-header, .cart-sheet-footer { flex-shrink: 0; padding: 20px 24px; }
.cart-sheet-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.cart-sheet-header h2 { margin: 0; }
.cart-sheet-header button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; box-shadow: none; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.cart-sheet-content { overflow-y: auto; padding: 20px 24px; overscroll-behavior: contain; }
.cart-sheet-content ul { list-style: none; margin: 0; padding: 0; }
.cart-sheet-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-sheet-item img, .cart-sheet-item .cart-sheet-missing { width: 64px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-sheet-item .cart-sheet-missing { display: block; background: var(--sand); }
.cart-sheet-item strong.is-unavailable { color: var(--text-muted); font-size: 13px; font-weight: 600; }
.cart-sheet-item > div { flex: 1; min-width: 0; }
.cart-sheet-item a { overflow-wrap: anywhere; }
.cart-sheet-item p { margin: 6px 0 0; font-size: 13px; }
.cart-sheet-subtotal { display: flex; justify-content: space-between; margin-top: 24px; }
.cart-sheet-footer { border-top: 1px solid var(--border); }
.cart-sheet-footer .button { width: 100%; }
@keyframes cart-sheet-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes cart-sheet-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (min-width: 801px) {
  .cart-sheet { inset: 0 0 0 auto; margin: 0; width: min(420px, 100%); height: 100dvh; max-height: 100dvh; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) 0; border-radius: 28px 0 0 28px; border-right: 0; box-shadow: -24px 0 64px #55473d24; overflow: hidden; }
  .cart-sheet[open] { animation-name: cart-sheet-slide; }
}
@media (prefers-reduced-motion: reduce) { .cart-sheet[open] { animation: none; } }

/* Large desktops: the storefront column grows with the viewport instead of sitting in a narrow centered band. */
@media (min-width: 1400px) {
  .bb-navbar { padding-inline: max(32px, calc((100% - 1920px) / 2)); }
  .bb-navbar-inner { width: 100%; }
  .bb-home .bb-wrap,
  .bb-home .bb-hero-editorial,
  .bb-page,
  .bb-footer-inner,
  .editorial-wrap,
  .cart-wrap,
  .catalog-hero,
  .catalog-layout,
  .detail-wrap,
  .footer .inner {
    width: min(1920px, calc(100% - 64px));
    max-width: none;
  }
  .bb-home .bb-wrap { padding-inline: 24px; }
  .bb-collection-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
  .bb-hero-stage { height: 560px; }
  .bb-hero-primary { width: min(26%, 420px); top: 0; }
  .bb-hero-detail { width: min(13%, 190px); }
}

.cart-item-info { display: contents; }
.cart-item-info > .eyebrow { grid-column: 2; grid-row: 1; margin: 0; }
.cart-item-info > h2 { grid-column: 2; grid-row: 2; margin: 0; overflow-wrap: anywhere; }
.cart-item-info > p:not(.eyebrow) { grid-column: 2; grid-row: 3; margin: 0; }
/* A single horizontal action line beside each product. */
.cart-item { grid-template-columns: 72px minmax(0, 1fr) max-content max-content 36px; column-gap: 16px; row-gap: 5px; padding: 22px 0; }
.cart-item-image { grid-row: 1 / 4; border-radius: 12px; }
.cart-item-controls { display: contents; }
.cart-quantity { grid-column: 3; grid-row: 1 / 4; align-self: center; justify-self: start; width: max-content; border-radius: 8px; background: var(--white); }
.cart-quantity button { flex: none; width: 44px; height: 44px; }
.cart-line-total { grid-column: 4; grid-row: 1 / 4; align-self: center; justify-self: center; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-remove { grid-column: 5; grid-row: 1 / 4; align-self: center; display: grid; place-items: center; width: 36px; min-height: 36px; padding: 0; border-radius: 8px; color: var(--text-muted); text-decoration: none; }
.cart-remove svg { width: 18px; height: 18px; }
.cart-remove:hover { background: #faeeea; color: #a63f32; }
.cart-remove:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.cart-heading h1 { font-size: clamp(40px, 6vw, 60px); }
.cart-heading { margin-bottom: 24px; }
.cart-summary { border-radius: 18px; box-shadow: 0 12px 36px #55473d08; }
@media (max-width: 599px) {
  .cart-wrap { padding-inline: 12px; }
  .cart-item { grid-template-columns: 40px minmax(0, 1fr) max-content max-content 28px; column-gap: 6px; }
  .cart-item h2 { font-size: 15px; }
  .cart-item .eyebrow { font-size: 8px; }
  .cart-quantity button { width: 44px; height: 44px; }
  .cart-quantity output { min-width: 16px; font-size: 12px; }
  .cart-line-total { font-size: 12px; }
  .cart-remove { width: 28px; }
}
.cart-checkout input, .cart-checkout textarea { border-radius: 12px; }
.cart-checkout .payment-options { margin: 4px 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; display: grid; gap: 12px; }
.payment-options legend { padding: 0 6px; font-size: 12px; font-weight: 700; }
.cart-checkout .payment-options label { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.cart-checkout .payment-options input { width: 18px; height: 18px; min-height: 0; accent-color: var(--ink); }
.whish-payment { padding: 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--border); }
.whish-payment[hidden] { display: none; }
.whish-payment { text-align: center; } .whish-payment img { display: block; margin: 0 auto 12px; max-width: 100%; border-radius: 8px; }

.option-modal {
  --option-top-gap: calc(16px + env(safe-area-inset-top, 0px));
  --option-bottom-gap: calc(24px + env(safe-area-inset-bottom, 0px));
  width: min(920px, calc(100% - 28px));
  inset: var(--option-top-gap) 0 var(--option-bottom-gap);
  height: auto;
  max-height: calc(100dvh - var(--option-top-gap) - var(--option-bottom-gap));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #fffcf8;
  color: var(--ink);
  box-shadow: 0 28px 80px #3f332b47;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}
.option-modal::backdrop { background: #3f332b73; }
.option-modal[open] { display: block; }
.option-layout { display: grid; margin: 0; }
.option-media { min-height: 0; overflow: hidden; background: #ece2cf; }
.option-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.option-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.option-head { display: flex; flex-shrink: 0; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 0; }
.option-head .eyebrow { margin-bottom: 8px; }
.option-head h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; letter-spacing: -.04em; }
.option-head button[data-close-options] {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 24px; line-height: 1;
}
.option-scroll { padding: 16px 22px 8px; }
.option-lead { margin: 0 0 14px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.option-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.option-price strong { font-family: Georgia, serif; font-size: 34px; font-weight: normal; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.option-price s { color: var(--text-muted); font-size: 16px; }
.option-price span { color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.option-group { margin: 0 0 18px; padding: 0; border: 0; }
.option-group legend { margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.option-group > p { margin: 0 0 10px; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.option-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.option-choice {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff; cursor: pointer;
}
.option-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.option-choice span { font-size: 14px; }
.option-choice b { color: var(--accent-text); font-size: 12px; font-variant-numeric: tabular-nums; }
.option-choice s { color: var(--text-muted); font-size: 12px; }
.option-choice:has(input:checked) { border-color: #714a35; background: #fff5e3; box-shadow: inset 0 0 0 1px #714a35; }
.option-choice:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.option-error { margin: 0 0 8px; color: #8a3d2a; font-size: 13px; font-weight: 700; }
.option-error[hidden] { display: none; }
.option-foot { display: flex; flex-shrink: 0; justify-content: flex-end; gap: 10px; padding: 14px 22px max(20px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); background: #fffcf8; }
.option-foot .button { min-width: 132px; }
.option-foot .button-outline { border: 1px solid var(--border-control); background: transparent; color: var(--ink); }
@media (min-width: 760px) {
  .option-layout { grid-template-columns: minmax(260px, .86fr) minmax(0, 1.14fr); }
  .option-media { position: relative; }
  .option-media img { position: absolute; inset: 0; }
}
@media (max-width: 759px) {
  .option-modal { width: calc(100% - 16px); }
  .option-media { height: clamp(220px, 65vw, 320px); }
  .option-head { padding: 16px 16px 0; }
  .option-scroll { padding-inline: 16px; }
  .option-foot { padding-inline: 16px; }
  .option-foot .button { min-width: 0; }
  .option-foot .button-primary { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .option-modal[open] { animation: none; }
}

.cart-place-order { margin-bottom: 24px; }
.cart-checkout { scroll-margin-top: 110px; }

.profile-complete-modal {
  width: min(100% - 24px, 420px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white, #fff);
  color: var(--ink);
  box-shadow: 0 24px 64px #55473d33;
}
.profile-complete-modal::backdrop { background: #3f332b73; }
.profile-complete-modal[open] { display: block; }
.profile-complete-panel {
  display: grid;
  gap: 12px;
  padding: 28px 24px 24px;
}
.profile-complete-panel .eyebrow { margin: 0; }
.profile-complete-panel h2 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.profile-complete-panel > p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.profile-complete-panel label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.profile-complete-panel input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-control, var(--border));
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.4 Arial, sans-serif;
}
.profile-complete-status { margin: 0; padding: 12px; background: var(--sand); font-size: 13px; }
.profile-complete-status[hidden] { display: none; }
.profile-complete-panel .button { width: 100%; min-height: 48px; margin-top: 4px; }
