body { --cart-panel-width: 410px; }
body > :not(.cart-layer):not(.page-back-button):not(script):not(style) { transition: width .24s ease; }
.header-brand-group { min-width: 0; display: flex; align-items: center; gap: clamp(28px, 7vw, 64px); grid-column: 1; grid-row: 1; }
.page-back-button { position: static; z-index: auto; flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; margin: 0; border: 1px solid rgba(41,104,163,.2); border-radius: 50%; color: #245f91; background: rgba(255,255,255,.92); box-shadow: 0 3px 12px rgba(21,56,88,.1); transition: color .18s ease, background .18s ease, transform .18s ease; }
.page-back-button:hover { color: #fff; background: #2968a3; transform: translateX(-2px); }
.page-back-button svg { width: 18px; height: 18px; }
.site-header .header-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
.site-header .nav-links { grid-column: 2; grid-row: 1; justify-content: center; justify-self: center; gap: clamp(24px,2.5vw,36px); padding: 0; }
.site-header .cart-trigger { position: relative; grid-column: 3; grid-row: 1; justify-self: end; width: 40px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; color: #34404d; background: transparent; cursor: pointer; }
.cart-trigger svg { width: 25px; height: 25px; }
.cart-trigger:hover { color: #2968a3; }
.cart-count { position: absolute; top: -2px; right: -4px; min-width: 23px; height: 23px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; color: white; background: #2968a3; font-size: 12px; line-height: 1; font-weight: 700; }
.cart-count[hidden] { display: none; }
body.cart-open { overflow: hidden; }
.cart-layer { position: fixed; inset: 0; z-index: 60; }
.cart-layer[hidden] { display: none; }
.cart-scrim { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: default; }
.cart-drawer { position: absolute; top: 0; right: 0; width: min(var(--cart-panel-width), 100%); height: 100%; display: flex; flex-direction: column; padding: 20px; background: rgba(255,255,255,.98); box-shadow: -16px 0 48px rgba(15, 36, 57, .17); }
.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid #e2e8f0; }
.cart-drawer-kicker { margin: 0 0 3px; color: #64748b; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.cart-drawer-title { margin: 0; color: #17212b; font-size: 20px; line-height: 1.2; }
.cart-close { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid #e2e8f0; border-radius: 50%; color: #334155; background: white; font-size: 20px; line-height: 1; cursor: pointer; }
.cart-items { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 14px 0; }
.cart-empty { margin: 24px 0; color: #64748b; text-align: center; font-size: 13px; }
.cart-empty[hidden] { display: none; }
.cart-item { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid #edf1f5; }
.cart-item-image { width: 54px; height: 54px; object-fit: contain; border: 1px solid #e8edf3; border-radius: 8px; background: #fff; }
.cart-item-details { min-width: 0; }
.cart-item-name { margin: 0 0 3px; color: #17212b; font-size: 13px; font-weight: 650; }
.cart-item-price { margin: 0; color: #526273; font-size: 11px; }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }
.cart-quantity { display: inline-flex; align-items: center; gap: 9px; padding: 2px; border: 1px solid #dbe3ec; border-radius: 7px; background: #f8fafc; }
.cart-quantity button { width: 22px; height: 22px; border: 0; border-radius: 5px; color: #34404d; background: transparent; font-size: 15px; cursor: pointer; }
.cart-quantity button:hover { background: #e8eef5; }
.cart-quantity span { min-width: 14px; color: #17212b; text-align: center; font-size: 11px; }
.cart-remove { padding: 3px 0; border: 0; color: #64748b; background: transparent; font-size: 10px; text-decoration: underline; cursor: pointer; }
.cart-remove:hover { color: #b33b47; }
.cart-drawer-footer { flex: 0 0 auto; padding-top: 14px; border-top: 1px solid #e2e8f0; }
.cart-promo { margin: 0 0 11px; padding: 9px 11px; border: 1px solid #a8ead3; border-radius: 9px; color: #178360; background: rgba(222,248,240,.68); }
.cart-promo strong { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 650; }
.cart-promo p { margin: 0; font-size: 11px; line-height: 1.4; }
.cart-shipping { display: grid; gap: 6px; margin: 0 0 11px; }
.cart-shipping-label { color: #34404d; font-size: 11px; font-weight: 600; }
.cart-shipping-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.cart-shipping-option { min-width: 0; min-height: 32px; padding: 6px 4px; border: 1px solid #dbe3ec; border-radius: 7px; color: #34404d; background: #f8fafc; font: inherit; font-size: 10px; line-height: 1.2; white-space: nowrap; cursor: pointer; }
.cart-shipping-option:hover { border-color: #8cb8dc; }
.cart-shipping-option.is-selected { border-color: #3e83b8; color: #245f91; background: #eaf3fa; box-shadow: inset 0 0 0 1px #3e83b8; }
.cart-shipping-option:focus-visible { outline: 2px solid #2968a3; outline-offset: 2px; }
.cart-shipping p { margin: 0; color: #64748b; font-size: 9px; line-height: 1.35; }
.cart-summary { display: grid; gap: 6px; }
.cart-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #34404d; font-size: 13px; }
.cart-summary-row strong { color: #17212b; font-size: 14px; font-weight: 600; }
.cart-discount-row { color: #178360; }
.cart-discount-row strong { color: #178360; }
.cart-discount-row[hidden] { display: none; }
.cart-total { margin-top: 2px; padding-top: 8px; border-top: 1px solid #e2e8f0; color: #17212b; font-weight: 700; }
.cart-total strong { font-size: 17px; font-weight: 700; }
.cart-disclaimer { margin: 8px 0 0; color: #64748b; font-size: 10px; line-height: 1.4; }
@media (min-width: 701px) and (max-width: 1200px) {
  .site-header .header-brand-group { gap: 12px; }
}
@media (max-width: 960px) {
  .header-inner { grid-template-columns: 145px minmax(0,1fr) auto; }
  .nav-links { padding-right: 8px; }
}
@media (max-width: 700px) {
  .header-inner { grid-template-columns: minmax(0,1fr) 40px; }
  .site-header .header-inner { grid-template-columns: minmax(0,1fr) 40px; }
  .header-brand-group { gap: clamp(18px, 7vw, 42px); grid-column: 1; grid-row: 1; }
  .site-header .brand { grid-column: auto; grid-row: auto; margin-left: 0; }
  .site-header .cart-trigger { grid-column: 2; grid-row: 1; }
  .site-header .nav-links { grid-column: 1 / -1; grid-row: 2; padding: 7px 0; }
  .page-back-button { width: 30px; height: 30px; }
  .cart-drawer { padding: 18px 16px; }
}
@media (min-width: 900px) {
  body.cart-open { overflow-x: hidden; overflow-y: auto; }
  body.cart-open > :not(.cart-layer):not(.page-back-button):not(script):not(style) { width: calc(100% - var(--cart-panel-width)); }
  body.cart-open .cart-layer { pointer-events: none; }
  body.cart-open .cart-scrim { pointer-events: none; }
  body.cart-open .cart-drawer { pointer-events: auto; }
}

.cart-checkout { display: block; margin-top: 1rem; padding: 1rem 1.25rem; border-radius: .5rem; background: #315bf5; color: #fff; font-weight: 700; text-align: center; text-decoration: none; }
.cart-checkout:hover, .cart-checkout:focus-visible { background: #2347d6; color: #fff; }
.cart-checkout[aria-disabled='true'] { opacity: .65; pointer-events: none; }

/* Products without a supplied photo retain a quiet catalog placeholder. */
.cart-item-image-placeholder { display: grid; place-items: center; color: #245f91; background: #eaf2fb; font-size: 16px; font-weight: 700; letter-spacing: .08em; }
