/* Last stylesheet. One storefront palette: paper #F7F5F2, ink #1A1A1A, button #111.
   Loaded after gallery, atelier, commerce, journey, footer, and checkout. */

body:has(> .site-header),
body:has(.home-gallery) {
  --color-bg: #f4f1ec;
  --color-surface: #FFFFFF;
  --color-ink: #1A1A1A;
  --color-ink-soft: #5E5C58;
  --color-ink-muted: #8a8a86;
  --color-line: #e3e0da;
  --color-btn: #111111;
  --color-btn-hover: #000000;
  --color-btn-text: #FFFFFF;
  background: #f4f1ec;
  color: #1A1A1A;
}

body:has(> .site-header) .announce,
body:has(.home-gallery) .announce {
  background: #111111;
  color: #F7F5F2;
}

body:has(> .site-header) .site-header,
body:has(.home-gallery) .site-header {
  background: rgba(244, 241, 236, .96);
  border-bottom: 1px solid #e3e0da;
}

body:has(> .site-header) .site-header .brand,
body:has(.home-gallery) .site-header .brand,
body:has(> .site-header) .site-header .nav__links a {
  color: #1A1A1A;
}

body:has(> .site-header) .cart-badge,
body:has(.home-gallery) .cart-badge {
  background: #111111;
  color: #FFFFFF;
}

body :is(a, button, input, select, textarea, summary):focus-visible,
body .journey-page :is(a, button, input, textarea, summary):focus-visible,
body .journey-payment :is(a, button, input):focus-visible {
  outline-color: #1A1A1A;
}

body .site-footer :is(a, button):focus-visible {
  outline-color: #F7F5F2;
}

.home-gallery {
  --wine: #111111;
  background: #f4f1ec;
  color: #1A1A1A;
}

.home-gallery__family,
.home-gallery h1 em,
#home-title em,
#collection-title em {
  color: #1A1A1A;
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-style: normal;
  font-weight: 500;
}

.home-gallery__copy p {
  color: #5E5C58;
}

.home-gallery__shop {
  background: #111111;
  color: #FFFFFF;
  border-radius: 999px;
}

.home-gallery__shop:hover {
  background: #000000;
  color: #FFFFFF;
}

.home-gallery__how,
.home-gallery__controls,
.home-gallery__controls button,
.home-gallery__caption {
  color: #1A1A1A;
}

.home-gallery__choices [aria-current="true"]::before {
  background: #111111;
}

.home-gallery__display {
  border-color: #e3e0da;
  background: #FFFFFF;
}

.home-gallery__controls {
  border-top-color: #e3e0da;
  background: #f4f1ec;
}

.home-terms {
  background: #111111;
  color: #F7F5F2;
}

.home-terms__fee span,
.home-terms__balance p {
  color: #d8d8d3;
}

.home-terms__balance {
  border-left-color: #333333;
}

.home-terms a {
  color: #FFFFFF;
}

body:has(.home-gallery) .premium-process,
body:has(> .site-header) .premium-process {
  background: #EFEDE8;
  border-color: #e3e0da;
}

body:has(.home-gallery) .premium-process__steps li,
body:has(> .site-header) .premium-process__steps li {
  border-color: #d9d4cc;
}

body:has(.home-gallery) .premium-process__steps li > span,
.premium-process__steps li > span,
.premium-process__steps p,
.premium-section-heading > p {
  color: #6b6b66;
}

body:has(.home-gallery) .premium-story,
body:has(> .site-header) .premium-story,
main#main .premium-featured,
.premium-collection {
  background: #f4f1ec;
}

body:has(.home-gallery) main#main .review,
main#main .review {
  background: #FFFFFF;
  border-color: #e3e0da;
}

main#main .eyebrow {
  color: #6b6b66;
}

.premium-text-link,
.premium-delivery-note,
.premium-delivery-note strong,
.premium-delivery-note a {
  color: #1A1A1A;
}

.premium-delivery-note {
  background: #f4f1ec;
  border-bottom-color: #e3e0da;
}

.premium-filters .filter-opt input,
.consent-check input,
.pay-option input,
.inspection-choice input,
body .checkout-shell .checkout-check input,
body .journey-order .inspection-choice input {
  accent-color: #111111;
}

.btn--primary,
body .journey-order .btn--primary,
body .journey-auth .auth-card .journey-submit,
body .journey-account__empty .btn,
body .journey-payment.order-payment .btn[data-pay-button],
body .journey-interruption__actions .btn--primary {
  background: #111111;
  border-color: #111111;
  color: #FFFFFF;
}

.btn--primary:hover,
body .journey-order .btn--primary:hover,
body .journey-auth .journey-submit:hover,
body .journey-payment.order-payment .btn[data-pay-button]:hover:not(:disabled) {
  background: #000000;
  border-color: #000000;
  color: #FFFFFF;
}

.journey-page,
.journey-payment {
  --journey-paper: #f4f1ec;
  --journey-ink: #1A1A1A;
  --journey-muted: #6b6b66;
  --journey-line: #e3e0da;
  --journey-sage: #111111;
  background: #f4f1ec;
  color: #1A1A1A;
}

body .journey-auth .field input:focus {
  border-color: #111111;
  outline-color: #111111;
}

body .journey-order .order-timeline li.is-done {
  border-color: #111111;
}

body .journey-order .order-timeline li.is-done:before {
  background: #111111;
}

body .journey-payment-progress li.is-current,
body .journey-payment-progress li.is-current:before {
  color: #FFFFFF;
  background: transparent;
  border-color: #111111;
}

body .journey-payment-progress li.is-current:before {
  background: #111111;
  color: #FFFFFF;
}

.commerce-detail-page .commerce-product .buy-actions {
  background: #FFFFFF;
  border-color: #e3e0da;
}

.commerce-detail-page .commerce-product .add-row .btn {
  color: #1A1A1A;
  border-color: #1A1A1A;
  background: #FFFFFF;
}

body .checkout-shell,
body .journey-payment-shell.checkout-shell {
  --checkout-accent: #111111;
  background: linear-gradient(to right, #FFFFFF 55%, #f4f1ec 55%);
  color: #1A1A1A;
}

body .checkout-shell .checkout-main {
  background: #FFFFFF;
}

body .checkout-shell .checkout-order-summary {
  background: #f4f1ec;
}

body .checkout-shell .checkout-header {
  background: #FFFFFF;
  border-bottom-color: #e3e0da;
}

body .checkout-shell .checkout-bag,
body .checkout-shell .checkout-section__heading a,
body .checkout-shell .checkout-policies,
body .checkout-shell .checkout-policies a {
  color: #1A1A1A;
}

body .checkout-shell .checkout-field input:focus,
body .checkout-shell .checkout-field select:focus,
body .checkout-shell .checkout-field textarea:focus {
  border-color: #111111;
  box-shadow: 0 0 0 1px #111111;
}

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

body .checkout-shell .checkout-continue {
  background: #111111;
  color: #FFFFFF;
}

body .checkout-shell .checkout-continue:hover {
  background: #000000;
}

body .checkout-shell .checkout-region {
  color: #5E5C58;
}

body .checkout-shell .checkout-region__dot {
  background: #111111;
}

body .checkout-shell .checkout-region--blocked,
body .checkout-shell .checkout-region--blocked .checkout-region__dot {
  color: #8a2b22;
  background: transparent;
}

body .checkout-shell .checkout-region--blocked .checkout-region__dot {
  background: #8a2b22;
}

body .checkout-shell .express-button--wallet {
  background: #111111;
  color: #FFFFFF;
}

.cart-drawer {
  background: #f4f1ec;
}

.cart-drawer__head,
.cart-drawer__foot {
  border-color: #e3e0da;
  background: #f4f1ec;
}

.cart-drawer__note {
  color: #6b6b66;
}

body:has(> .site-header) .site-footer,
body:has(.home-gallery) .site-footer {
  background: #111111;
  color: #d8d8d3;
}

.site-footer .brand,
.site-footer .footer__col h4,
.site-footer .footer-assurance__item strong,
.site-footer .footer-resources h4,
.site-footer .footer-credential-card strong {
  color: #F7F5F2;
}

.site-footer .footer__brand p,
.site-footer .footer__col a,
.site-footer .footer__col li,
.site-footer .footer__bottom,
.site-footer .footer__legal a,
.site-footer .footer__pay,
.site-footer .footer-assurance__item,
.site-footer .footer-assurance__item small,
.site-footer .footer-payments > p,
.site-footer .footer-credential-card p,
.site-footer .footer-market {
  color: #bdbdb8;
}

.site-footer .footer__col a:hover,
.site-footer .footer__legal a:hover,
.site-footer .footer-credential-card__link,
.site-footer .footer-verification-links a {
  color: #FFFFFF;
}

.site-footer .footer-assurance,
.site-footer .footer-resources,
.site-footer .footer__bottom,
.site-footer .footer-assurance__item + .footer-assurance__item {
  border-color: #2e2e2e;
}

.site-footer .footer-social a {
  border-color: #3a3a3a;
}

.site-footer .footer-social a:hover {
  background: #2a2a2a;
  border-color: #d8d8d3;
}

.site-footer .footer-payments__status,
.site-footer .footer-credential-card {
  border-color: #3a3a3a;
  color: #d8d8d3;
  background: #1a1a1a;
}

.site-footer .footer-credential-card__seal,
.site-footer .footer-assurance__arrow {
  color: #d8d8d3;
}

@media (max-width: 900px) {
  body .checkout-shell,
  body .journey-payment-shell.checkout-shell {
    background: #FFFFFF;
  }

  body .checkout-shell .checkout-order-summary {
    background: #f4f1ec;
  }

  body .checkout-shell .checkout-summary-toggle,
  body .checkout-shell .checkout-summary-toggle strong,
  body .journey-payment-shell .checkout-summary-toggle {
    color: #1A1A1A;
  }
}

body .journey-page.journey-help,
body .journey-help {
  background: #f4f1ec;
  color: #1A1A1A;
}

body .journey-help .reservation-head h1,
body .journey-help .acc-item summary,
body .journey-help__footer h2,
body .journey-help .journey-text-link,
body .journey-help .acc-item__body strong,
body .journey-help .acc-item__body a {
  color: #1A1A1A;
}

body .journey-help .reservation-head p,
body .journey-help__nav a,
body .journey-help .journey-kicker,
body .journey-help .acc-item__body,
body .journey-help .acc-item__body p {
  color: #6b6b66;
}

body .journey-help__nav a:hover,
body .journey-help .journey-text-link:hover {
  color: #1A1A1A;
}

body .journey-help .journey-accordion-icon {
  color: #1A1A1A;
}

body .journey-help__layout,
body .journey-help__footer,
body .journey-help .acc-item {
  border-color: #e3e0da;
  background: transparent;
}

@media (max-width: 640px) {
  body .journey-order .order-timeline li {
    border-left-color: #e3e0da;
  }

  body .journey-order .order-timeline li.is-done {
    border-left-color: #111111;
  }
}

/* Product option cards: white surface, black ring. Never a solid black fill. */
body .commerce-product .option.selected,
body .commerce-product .option--storage.selected,
body .commerce-product .option--swatch.selected {
  background: #fff !important;
  color: #1A1A1A !important;
  border-color: #111 !important;
  box-shadow: inset 0 0 0 1px #111 !important;
}

body .commerce-product .option.selected::before {
  content: none !important;
  display: none !important;
}

body .commerce-product .option--storage.selected .option__price {
  color: #5E5C58 !important;
}

body .commerce-product .option--storage.selected .option__check {
  background: #111;
  border-color: #111;
  color: #fff;
}

body .commerce-product .option.is-unavailable {
  background: #f4f1ec !important;
  color: #8a8a86 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.premium-hero[data-official-hero] .premium-hero__frame > .premium-hero__image,
.premium-hero[data-official-hero][data-hero-state="running"] .premium-hero__frame > .premium-hero__image {
  scale: 1 !important;
  transform: none !important;
  object-fit: contain !important;
}

.premium-hero__visual > .premium-hero__frame > .premium-hero__image,
[data-hero-state="running"] .premium-hero__visual > .premium-hero__frame > .premium-hero__image {
  transform: none !important;
  scale: 1 !important;
}

/* atelier pass */
:root { --serif: "Newsreader", "Iowan Old Style", Georgia, serif; }
h1, h2, .home-gallery__copy h1, #home-title, #collection-title {
  font-family: var(--serif);
  font-weight: 460;
  letter-spacing: -.025em;
}
.home-gallery__family, .eyebrow, .premium-filters__hint { letter-spacing: .18em; font-weight: 500; }
.home-gallery { background: #f4f1ec; }
@media (max-width: 740px) {
  .home-gallery__grid { display: flex; flex-direction: column-reverse; gap: 18px; padding-block: 8px 28px; }
  .home-gallery__display { margin-inline: -16px; }
  .home-gallery[data-hero-motion] .premium-hero__visual { height: 78vw; border-radius: 0; }
  .home-gallery__copy { padding-inline: 6px; }
  #home-title, #collection-title { font-size: 46px; line-height: 1.02; margin: 10px 0 12px; }
  .home-gallery__controls { padding-inline: 16px; }
}
.premium-hero__visual { background: #efeae3; border-radius: 18px; }
.home-gallery__shop { border-radius: 999px; padding: 0 26px; background: #1c1917; color: #f7f4ef; }
.price, .product-price, [data-price] { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.buybox h1, .commerce-product h1, main h1 {
  font-family: var(--serif);
  font-weight: 460;
  letter-spacing: -.02em;
}
.price-block .now, .price-block .price { font-family: var(--serif); font-weight: 500; letter-spacing: -.03em; }
.price-block .compare, .price-block s, .price-block .was { font-weight: 400; }

.premium-hero__visual,
.premium-hero__frame,
.gallery__main,
.gallery__zoom,
.gallery__thumb,
main#main .card__media {
  background: transparent !important;
  box-shadow: none !important;
}
/* Apple family-page image stage: one field, product centered, no inner card */
.home-gallery__grid {
  display: grid !important;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
  align-items: center !important;
  gap: clamp(24px, 4vw, 72px) !important;
}
.home-gallery__display {
  order: 0;
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.home-gallery__copy { text-align: left; max-width: 34rem; }
.home-gallery__actions { justify-content: flex-start; }
@media (max-width: 860px) {
  .home-gallery__grid { grid-template-columns: 1fr !important; }
  .home-gallery__display { order: -1; }
  .home-gallery__copy { text-align: center; }
  .home-gallery__actions { justify-content: center; }
}
.home-gallery[data-hero-motion] .premium-hero__visual,
.premium-hero__visual {
  height: min(78vw, 640px) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.home-gallery__controls {
  border: 0 !important;
  background: transparent !important;
  justify-content: center;
}
.premium-hero__image,
.gallery__zoom img,
.gallery__main img,
.gallery__thumb img,
main#main .card__media > img,
.product-thumb img,
.cart-thumb img {
  background: transparent !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  transform: none !important;
  scale: 1 !important;
}
.gallery__main,
.gallery__zoom,
.gallery__thumb,
.product-thumb,
.cart-thumb,
main#main .card__media {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
main#main .card__media > img { padding: 6%; }

@media (min-width: 741px) {
  .home-gallery__display {
    width: min(640px, 92vw) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .home-gallery[data-hero-motion] .premium-hero__visual,
  .home-gallery .premium-hero__visual {
    width: 100% !important;
    height: min(62vh, 640px) !important;
    aspect-ratio: auto !important;
  }
  .home-gallery .premium-hero__visual > .premium-hero__frame > .premium-hero__image {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  .home-gallery__controls { width: 100% !important; }
  .commerce-product .gallery__main {
    aspect-ratio: auto !important;
    width: min(460px, 100%) !important;
    height: auto !important;
    margin-inline: auto;
  }
  .commerce-product .gallery__main img {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
  }
  .commerce-product .gallery__main { min-height: 0 !important; overflow: visible !important; }
  .commerce-product .gallery__zoom-hint { position: static; margin: 12px auto 0; }
}

/* Closed cart drawer must not intercept touches: it is full-screen and above
   the page, so without this every swipe lands on it instead of the content. */
.cart-drawer[aria-hidden="true"]:not(.open) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.cart-drawer.open {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.cart-drawer-overlay[hidden] {
  display: none !important;
  pointer-events: none !important;
}
