/* Purchase flow: scoped styles, shared tenant palette, touch-sized controls. */
.shop-page { max-width: 1120px; margin: 4px auto 48px; color: var(--ink); }
.shop-page [hidden] { display: none !important; }
.shop-page * { min-width: 0; }
.shop-page h1 { margin: 8px 0 12px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
.shop-page h2 { margin: 0 0 20px; font-size: 1.2rem; line-height: 1.5; }
.shop-page p { line-height: 1.7; }
.shop-page a { text-underline-offset: 4px; }
.shop-back { display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; color: var(--muted); text-decoration: none; }
.shop-steps { display: flex; gap: 24px; padding: 18px 0; margin: 0; list-style: none; border-bottom: 1px solid var(--line); }
.shop-steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.shop-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font-size: .72rem; }
.shop-steps [aria-current] { font-weight: 700; color: var(--primary-color); }
.shop-steps [aria-current] span { background: var(--primary-color); border-color: var(--primary-color); color: white; }
.shop-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; }
.shop-heading p { margin: 0; color: var(--muted); }
.shop-kicker { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .07em; font-weight: 600; }
.shop-badge { display: inline-flex; flex-shrink: 0; align-items: center; padding: 5px 10px; border-radius: 6px; background: var(--secondary-color); color: var(--primary-color); font-size: .75rem; }
.shop-panel { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.panel-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 24px; }
.panel-heading h2 { margin: 0; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.purchase-panel { grid-column: 2; grid-row: 1; }
.product-story { grid-column: 1; grid-row: 1; display: grid; gap: 24px; }
.destination-cover { overflow: hidden; border-radius: 20px; background: var(--palette-placeholder); }
.destination-cover img { display: block; width: 100%; height: 280px; object-fit: cover; }
.destination-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; padding: 32px; overflow: hidden; color: var(--palette-panel-text); }
.destination-art strong { position: relative; font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 600; line-height: 1.3; margin: 12px 0; overflow-wrap: anywhere; }
.destination-art > span:last-child { position: relative; font-size: .85rem; }
.destination-orbit { position: absolute; right: -14px; top: -40px; font-size: 210px; line-height: 1.1; opacity: .13; }
.plan-field { margin: 24px 0; padding: 0; border: 0; }
.plan-field legend { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 12px; font-size: .92rem; font-weight: 600; }
.step-dot { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--canvas); color: var(--muted); font-size: .7rem; }
.plan-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.plan-chip { min-height: 48px; padding: 11px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; overflow-wrap: anywhere; }
.plan-chip:hover { border-color: var(--primary-color); }
.plan-chip[aria-pressed="true"] { border-color: var(--primary-color); background: var(--secondary-color); color: var(--primary-color); box-shadow: inset 0 0 0 1px var(--primary-color); font-weight: 700; }
.plan-alternatives { display: grid; gap: 8px; }
.plan-alternatives .plan-chip { text-align: left; font-size: .85rem; line-height: 1.6; padding: 12px 16px; }
.chosen-plan { display: grid; gap: 4px; padding: 18px; border-radius: 12px; background: var(--canvas); }
.chosen-plan > strong { font-size: 1.1rem; }
.chosen-plan .unit-price { display: inline-block; margin-top: 8px; font-size: 1.6rem; letter-spacing: -.035em; }
.shop-hint { color: var(--muted); font-size: .82rem; line-height: 1.7; overflow-wrap: anywhere; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; }
.shop-page .quantity-stepper { display: inline-flex; align-items: stretch; width: 144px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); flex-shrink: 0; }
.shop-page .quantity-stepper input { width: 56px; min-height: 44px; padding: 6px 2px; border: 0; border-radius: 0; text-align: center; appearance: textfield; background: transparent; color: var(--ink); font-size: 16px; box-shadow: none; flex: 1; }
.quantity-stepper input::-webkit-inner-spin-button, .quantity-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-stepper button { width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; flex-shrink: 0; }
.quantity-stepper button:hover { background: var(--secondary-color); }
.shop-field { display: grid; gap: 8px; margin: 20px 0; }
.shop-field label { font-size: .9rem; font-weight: 600; }
.shop-field p { margin: 0; }
.shop-page input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]), .shop-page select { min-height: 48px; max-width: 100%; font-size: 16px; color: var(--ink); background-color: var(--surface); border-color: var(--line); }
.required-mark { margin-left: 6px; color: var(--muted); font-size: .75rem; font-weight: 400; }
.shop-action-bar { display: flex; align-items: center; gap: 20px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.shop-action-bar > div { display: grid; gap: 2px; }
.shop-action-bar strong { font-size: 1.15rem; overflow-wrap: anywhere; }
.shop-page .shop-primary { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; border-radius: 12px; font-size: .95rem; padding: 12px 20px; white-space: nowrap; }
.shop-page button:disabled, .shop-page [aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.shop-page :focus-visible { outline: 3px solid var(--primary-color); outline-offset: 3px; }
.stock-note { font-size: .8rem; color: var(--muted); }
.spec-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.spec-strip > div { display: grid; gap: 8px; }
.spec-strip span { font-size: .75rem; color: var(--muted); }
.spec-strip strong { font-size: .85rem; overflow-wrap: anywhere; }
.plan-description { white-space: pre-line; line-height: 1.9; font-size: .9rem; overflow-wrap: anywhere; }
.shared-product-guide { margin-top: 32px; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.shared-product-guide-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.shared-product-guide-heading h2 { margin: 6px 0 0; font-size: clamp(1.45rem, 3vw, 2rem); }
.shared-product-guide-heading p { max-width: 420px; margin: 0; color: var(--muted); font-size: .86rem; text-align: right; }
.shared-product-descriptions { display: grid; gap: 14px; }
.shared-product-description { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); }
.shared-product-description summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 14px 20px; color: var(--ink); cursor: pointer; font-weight: 700; list-style: none; }
.shared-product-description summary::-webkit-details-marker { display: none; }
.shared-product-description summary:hover { background: var(--secondary-color); }
.shared-product-toggle { display: grid; width: 30px; height: 30px; flex-shrink: 0; place-items: center; border-radius: 50%; background: var(--secondary-color); color: var(--primary-color); font-size: 1.2rem; transition: transform .2s ease; }
.shared-product-description[open] .shared-product-toggle { transform: rotate(45deg); }
.shared-product-description > .rich-content { max-width: 920px; padding: 8px 24px 24px; color: var(--ink); font-size: .96rem; line-height: 1.9; overflow-wrap: anywhere; }
.shared-product-description > .rich-content > :first-child { margin-top: 8px; }
.shared-product-description > .rich-content > :last-child { margin-bottom: 0; }
.shared-product-description img { max-width: 100%; height: auto; border-radius: 10px; }
.shared-product-description table { display: block; max-width: 100%; overflow-x: auto; }
.shop-details { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 4px; }
.shop-details summary { padding: 14px 0; cursor: pointer; font-size: .85rem; font-weight: 600; min-height: 48px; }
.shop-details > p { margin-top: 0; }
.shop-two-column { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
.cart-lines { display: grid; gap: 18px; }
.cart-line-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; }
.cart-line-head h2 { font-size: 1rem; margin: 4px 0; overflow-wrap: anywhere; }
.cart-line-head h2 a { color: inherit; text-decoration: none; }
.cart-line-head p { margin: 0; }
.cart-destination { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 8px; background: var(--palette-placeholder); border-radius: 12px; color: var(--palette-panel-text); font-weight: 600; font-size: .85rem; overflow-wrap: anywhere; }
.cart-line-price { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 16px; }
.cart-line-price > strong { font-size: 1.2rem; }
.cart-line-price small { font-size: .72rem; font-weight: 400; }
.cart-line-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; gap: 12px; }
.cart-quantity-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.shop-text-button { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 0; border: 0; background: transparent; color: var(--primary-color); text-decoration: underline; text-underline-offset: 4px; font: inherit; font-size: .82rem; cursor: pointer; }
.shop-remove { color: var(--muted); }
.activation-note { background: var(--canvas); padding: 8px 12px; border-radius: 8px; font-size: .8rem; }
.activation-note strong { margin-left: 8px; }
.staff-tools { border-style: dashed; }
.staff-tools summary, .staff-note { color: var(--muted); font-size: .78rem; }
.shop-fields p { display: grid; gap: 8px; }
.order-summary { position: sticky; top: 108px; }
.price-breakdown { margin: 0; }
.price-breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; font-size: .85rem; }
.price-breakdown dt { color: var(--muted); }
.price-breakdown dd { margin: 0; text-align: right; }
.price-breakdown .summary-total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 20px; font-weight: 600; }
.summary-total dd { font-size: 1.5rem; }
.summary-total small { font-size: .75rem; font-weight: 400; }
.discount-line, .applied-offers { color: var(--primary-color); }
.applied-offers { margin: 12px 0; padding-left: 20px; font-size: .78rem; }
.order-summary > .shop-hint { margin-top: 18px; }
.order-summary .shop-action-bar { flex-direction: column; align-items: stretch; border: 0; padding-top: 0; }
.order-summary .shop-action-bar > div { display: none; }
.coupon-form { display: grid; gap: 8px; }
.coupon-form > div { display: flex; gap: 8px; }
.coupon-form input { flex: 1; }
.coupon-form button { flex-shrink: 0; }
.empty-cart { padding: 56px 24px; text-align: center; }
.empty-cart h2 { margin: 20px 0 10px; }
.empty-cart p { color: var(--muted); margin-bottom: 28px; font-size: .9rem; }
.empty-cart-symbol { display: inline-grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; background: var(--secondary-color); color: var(--primary-color); font-size: 28px; }
.shop-status:empty { display: none; }
.shop-status { margin: 0 0 20px; padding: 12px 16px; border-radius: 10px; background: var(--secondary-color); font-size: .85rem; }
.checkout-fields { display: grid; gap: 24px; }
.checkout-fields > .shop-panel h2 { display: flex; gap: 10px; align-items: center; }
.checkout-fields .shop-panel > p:first-of-type { margin-top: 0; }
.checkout-summary-lines { list-style: none; margin: 0 0 20px; padding: 0; }
.checkout-summary-lines li { display: grid; gap: 5px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .85rem; overflow-wrap: anywhere; }
.checkout-summary-lines li > span { color: var(--muted); font-size: .8rem; }
.checkout-summary-lines li > strong { font-size: .88rem; }
.payment-options { display: grid; gap: 10px; }
.payment-option { display: flex !important; align-items: center; gap: 12px; min-height: 56px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.payment-option:has(input:checked) { background: var(--secondary-color); border-color: var(--primary-color); }
.shop-page .payment-option input { width: 18px; min-height: 18px; margin: 0; accent-color: var(--primary-color); flex-shrink: 0; }
.shipping-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.shipping-fields .wide-field { grid-column: 1 / -1; }
.shop-page .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
@media (max-width: 850px) {
  .product-layout, .shop-two-column { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .purchase-panel, .product-story { grid-column: auto; grid-row: auto; }
  .order-summary { position: static; }
  .destination-cover { display: none; }
  .shop-heading { padding: 24px 0; }
  .shop-heading > .shop-badge { display: none; }
  .shop-steps { gap: 16px; justify-content: space-between; }
  .shop-steps li { gap: 6px; font-size: .75rem; }
  .shop-page { padding-bottom: 100px; }
  .shop-page:not(:has(.shop-action-bar)) { padding-bottom: 0; }
  .shop-panel { padding: 22px; border-radius: 16px; }
  .shared-product-guide { margin-top: 20px; padding: 22px; border-radius: 16px; }
  .shared-product-guide-heading { align-items: start; flex-direction: column; gap: 10px; }
  .shared-product-guide-heading p { max-width: none; text-align: left; }
  .shared-product-description summary { min-height: 56px; padding: 14px 16px; }
  .shared-product-description > .rich-content { padding: 6px 16px 20px; }
  .shop-page .shop-action-bar { position: fixed; z-index: 40; bottom: 0; left: 0; width: 100%; margin: 0; padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -6px 24px rgb(0 0 0 / 5%); flex-direction: row; align-items: center; gap: 12px; }
  .shop-action-bar > div, .order-summary .shop-action-bar > div { display: grid; flex: 1; }
  .shop-action-bar strong { font-size: 1.05rem; }
  .shop-page .shop-primary { min-width: 148px; padding-inline: 16px; }
  .shop-page .shop-action-bar > .shop-primary { flex-shrink: 0; }
  .cart-line-head { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .cart-destination { min-height: 52px; }
  .shipping-fields { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .shop-panel { padding: 18px; }
  .shop-steps { gap: 8px; }
  .shop-steps li { font-size: .68rem; }
  .shop-steps li span { width: 20px; height: 20px; }
  .cart-line-bottom { flex-wrap: wrap; }
  .shop-page .shop-primary { min-width: 132px; font-size: .85rem; }
  .shared-product-guide { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .shop-page * { scroll-behavior: auto; transition: none; } }
@media (max-width: 850px) {
  /* Leave room for the bottom action and the expanded navigation without JS. */
  body:has(.shop-page) .site-header { position: relative; top: auto; }
  .shop-page input, .shop-page button, .shop-page select, .shop-page summary { scroll-margin-block: 110px; }
}
