html:has(.storefront) { background: #f5f5f7; }

.storefront .button, .storefront .bag-button, .storefront .filter, .storefront .sort select { border-radius: 9999px; }
.storefront .button-primary:hover:not(:disabled) { background: #0077ed; border-color: #0077ed; }
.storefront .bag-button { padding-inline: 13px 8px; }
.storefront .bag-count { border-radius: 9999px; }
.storefront .main-nav { color: #3a3a40; }
.storefront .brand { letter-spacing: -.045em; }
.storefront .hero { min-height: 450px; border-radius: 28px; }
.storefront .hero-copy { max-width: 610px; padding-block: 43px 40px; }
.storefront .hero-kicker { padding: 0; background: transparent; border: 0; color: #c9d8f4; }
.storefront .hero h1 { margin-top: 12px; font-weight: 700; letter-spacing: -.025em; line-height: 1.08; font-size: clamp(3.05rem,5.3vw,4.8rem); }
.storefront .hero-copy p { max-width: 390px; margin: 14px 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.hero-actions .button { min-height: 45px; padding-inline: 17px; }
.button-glass { background: #e3edff14; color: #fff; border-color: #e4ebfa67; backdrop-filter: blur(9px); }
.button-glass:hover { background: #e3edff2c; border-color: #e4ebfaa0; }
.storefront .hero-copy .hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 13px 0 0; color: #cbd7ef; font-size: .85rem; }
.hero-note strong { color: #fff; font-weight: 690; }
.hero-note strong:not([hidden])::after { content: "·"; display: inline-block; padding-left: 8px; color: #aebddd; }
.storefront .benefits { border-color: #0000000f; }
.storefront .benefit { gap: 12px; }
.storefront .benefit-icon { color: var(--blue-dark); background: #edf5ff; }
.storefront .benefit strong { font-size: .95rem; }
.storefront .benefit div > span { margin-top: 1px; }
.storefront .section-heading h2 { letter-spacing: -.035em; }
.storefront .search { border-radius: 9999px; }
.storefront .filter:not([aria-pressed=true]) { border-color: #e2e2e7; color: #3d3d43; }

.storefront .products { gap: 17px; }
.storefront .product-card {
  min-height: 0;
  padding: 8px;
  border: 1px solid rgb(0 0 0 / .06);
  border-radius: 20px;
  transition: border-color .16s;
}
.storefront .product-card:hover { transform: none; box-shadow: none; border-color: #cfd0d5; }
.storefront .product-media { height: 218px; padding: 24px 12px 13px; border-radius: 13px; background: #f5f5f7; }
.storefront .product-media img { height: 178px; transition: transform .25s ease; }
@media (hover: hover) {
  .storefront .product-media:hover img { transform: scale(1.03); }
}
.storefront .condition { top: 8px; left: 8px; padding: 3px 8px; color: #034884; background: #e8f3ff; border: 0; border-radius: 9999px; font-size: .72rem; }
.storefront .condition-last { color: #7b430e; background: #fff0e0; }
.storefront .product-copy { padding: 9px 8px 6px; }
.swatches { min-height: 21px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 8px; }
.swatch { width: 18px; height: 18px; display: grid; flex: none; place-items: center; border: 1px solid transparent; border-radius: 50%; }
.swatch svg { width: 12px; height: 12px; }
.swatch-live { border-color: #a5a5ae; }
.storefront .product-copy h3 { font-size: 1.125rem; line-height: 1.33; letter-spacing: -.01em; }
.storefront .product-title { font-weight: 700; }
.storefront .product-capacity { color: #6e6e73; font-size: .8125rem; line-height: 1.45; }
.storefront .product-bottom { gap: 6px; padding-top: 14px; align-items: end; }
.product-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; }
.storefront .product-prices strong { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; }
.product-prices strong span { font-size: .81em; font-weight: 650; }
.reference-price { color: #6e6e73; font-size: .82rem; white-space: nowrap; }
.storefront .stock { margin-top: 5px; }
.storefront .add-product { border-radius: 50%; color: var(--blue-dark); }
.storefront .add-product:hover:not(:disabled) { color: #fff; }
.storefront .add-product:disabled { color: #76767d; background: #efeff1; }
.catalog-legend { margin: 15px 2px 0; color: var(--muted); font-size: .8rem; }
.storefront .detail-media, .storefront .cart-photo { background: #f5f5f7; }
.variant-picker { display: grid; gap: 4px; margin-bottom: 11px; font-size: .86rem; font-weight: 700; }
.variant-picker select { width: 100%; min-height: 40px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: .88rem; }

.storefront .bag-dialog { width: min(490px,100%); border-radius: 20px 0 0 20px; }
.storefront .bag-dialog.basket-opening[open] { animation: basket-slide-in 280ms cubic-bezier(.19,.82,.27,1) both; }
.storefront .bag-dialog.basket-opening[open]::backdrop { animation: basket-backdrop-in 220ms ease-out both; }
@keyframes basket-slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes basket-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .storefront .bag-dialog.basket-opening[open], .storefront .bag-dialog.basket-opening[open]::backdrop { animation: none; }
}
.storefront .bag-dialog:is([data-stage="checkout"],[data-stage="success"]) { inset: 0; margin: auto; width: min(500px, calc(100% - 24px)); height: fit-content; max-height: calc(100% - 24px); border-radius: 20px; }
.storefront .bag-dialog:is([data-stage="checkout"],[data-stage="success"]) #bag-content { height: auto; max-height: calc(100dvh - 26px); }
.storefront .bag-head { min-height: 67px; padding-inline: 22px; }
.storefront .icon-button { border-radius: 50%; }
.storefront .bag-scroll { padding-inline: 22px; }
.storefront .bag-empty-scroll { padding-top: 12px; }
.bag-empty-state { gap: 10px; padding: 19px 8px 24px; }
.bag-empty-state h3 { font-size: 1.24rem; letter-spacing: -.02em; }
.bag-empty-state > svg { width: 30px; height: 30px; color: #53545d; }
.bag-empty-state .button { margin-top: 3px; }
.bag-recommendations { border-top: 1px solid var(--line); padding-top: 15px; }
.bag-recommendations h3, .checkout-summary h3 { font-size: 1rem; font-weight: 720; }
.bag-recommendations ul, .checkout-summary ul { list-style: none; padding: 0; margin: 8px 0 0; }
.bag-recommendations li, .checkout-summary li {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) auto;
  gap: 10px;
  padding: 8px 0;
  align-items: center;
}
.bag-recommendations li + li, .checkout-summary li + li { border-top: 1px solid #ececf0; }
.bag-recommendations .cart-photo, .checkout-summary .cart-photo { width: 52px; height: 53px; }
.bag-recommendations .cart-photo img, .checkout-summary .cart-photo img { max-height: 45px; }
.recommendation-copy strong, .recommendation-copy small, .summary-item strong, .summary-item small { display: block; }
.recommendation-copy strong, .summary-item strong { overflow-wrap: anywhere; font-weight: 700; font-size: .94rem; }
.recommendation-copy small, .summary-item small { color: var(--muted); font-size: .82rem; }
.storefront .checkout-scroll { padding-block: 13px 17px; }
.storefront .payment-note { margin: 0 0 13px; padding: 1px 0 1px 10px; color: #57575e; background: transparent; border: 0; border-left: 2px solid #9bb9dc; border-radius: 0; font-size: .83rem; }
.checkout-summary { padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.checkout-summary ul { max-height: min(180px,29vh); overflow-y: auto; padding-right: 3px; }
.checkout-summary .summary-price { white-space: nowrap; font-size: .86rem; }
.checkout-summary .bag-total { margin: 3px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: .88rem; }
.checkout-summary .bag-total strong { font-size: 1.13rem; white-space: nowrap; }
.storefront .methods { gap: 7px; margin-top: 12px; }
.storefront .methods legend { margin-bottom: 5px; font-size: .95rem; font-weight: 700; }
.storefront .wallet-button { min-height: 49px; display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; padding: 5px 11px; background: #fff; color: var(--ink); border: 1px solid #d7d7df; border-radius: 10px; text-align: left; }
.storefront .wallet-button:hover:not(:disabled) { border-color: #8b9aaf; background: #fafcff; }
.storefront .wallet-button[aria-pressed=true] { border-color: var(--blue); background: #f4f9ff; box-shadow: 0 0 0 1px var(--blue); }
.wallet-mark { height: 33px; width: auto; max-width: none; justify-self: center; }
.wallet-mark-google { height: 49px; margin-block: -8px; }
.wallet-name { font-size: .94rem; font-weight: 650; }
.wallet-demo { justify-self: end; padding: 3px 7px; border-radius: 9999px; background: #efeff2; color: #53535c; font-size: .71rem; }
.storefront .bag-footer { padding: 12px 22px 15px; }
.storefront .back-button { margin-top: 5px; min-height: 32px; }
.storefront .how { background: #eef3f9; border-color: #e3e8ef; }
@media (max-width: 860px) {
  .storefront .hero { min-height: 391px; }
  .storefront .hero-copy { padding-block: 34px; }
  .storefront .hero h1 { font-size: clamp(2.85rem,6.7vw,4.25rem); }
}
@media (max-width: 680px) {
  .storefront .hero { min-height: 500px; border-radius: 23px; }
  .storefront .hero-copy { padding: 25px 17px 200px; }
  .storefront .hero h1 { font-size: clamp(2.48rem,9.5vw,3.85rem); }
  .storefront .hero-copy p { margin-block: 11px 15px; }
  .storefront .hero-copy .hero-note { margin-top: 10px; font-size: .78rem; }
  .hero-actions { gap: 7px; }
  .hero-actions .button { min-height: 40px; padding-inline: 12px; font-size: .83rem; }
  .storefront .products { gap: 9px; }
  .storefront .product-card { padding: 5px; border-radius: 15px; }
  .storefront .product-media { height: 152px; padding: 20px 6px 8px; border-radius: 10px; }
  .storefront .product-media img { height: 123px; }
  .storefront .condition { top: 5px; left: 5px; padding-inline: 5px; font-size: .64rem; }
  .storefront .product-copy { padding: 8px 3px 4px; }
  .storefront .product-copy h3 { font-size: 1rem; }
  .storefront .product-capacity { font-size: .73rem; }
  .storefront .product-bottom { padding-top: 8px; }
  .storefront .product-prices strong { font-size: 1rem; }
  .reference-price { font-size: .75rem; }
  .swatches { gap: 1px; margin-bottom: 5px; }
  .swatch { width: 16px; height: 16px; }
  .storefront .bag-dialog { border-radius: 0; }
  .storefront .bag-head, .storefront .bag-scroll, .storefront .bag-footer { padding-inline: 14px; }
}
