/* Quantity controls and cart share the existing green storefront palette. */
.storefront .product-bottom { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.storefront .product-bottom .prices { min-height: 44px; }
.storefront .card-buy-form { display: grid; gap: 12px; width: 100%; }
.storefront .card-quantity { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.storefront .card-quantity > span, .storefront .quantity-caption { color: #bdcbb7; font-size: .75rem; }
.storefront .quantity-caption { display: block; margin-bottom: 8px; }
.storefront .quantity-control { display: grid; grid-template-columns: 1fr; width: 132px; max-width: 100%; height: 44px; border: 1px solid #50664c; background: #0c180f; border-radius: 3px; overflow: hidden; }
.storefront .quantity-control.quantity-enhanced { grid-template-columns: 40px minmax(0, 1fr) 40px; }
.storefront .quantity-control:focus-within { outline: 2px solid #abc98e; outline-offset: 2px; }
.storefront .quantity-control input[type=number][name] { min-width: 0; width: 100%; min-height: 0; height: 42px; border: 0; border-radius: 0; background: transparent; padding: 0; text-align: center; font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; outline: none; }
.storefront .quantity-enhanced input { appearance: textfield; -moz-appearance: textfield; }
.storefront .quantity-enhanced input::-webkit-inner-spin-button, .storefront .quantity-enhanced input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.storefront .quantity-step { display: none; align-items: center; justify-content: center; border: 0; padding: 0; background: transparent; color: #d0e4ba; font-size: 1.25rem; min-width: 0; }
.storefront .quantity-enhanced .quantity-step { display: flex; }
.storefront .quantity-step:hover:not(:disabled), .storefront .quantity-step:focus-visible { background: #263d22; outline: none; }
.storefront .quantity-step:disabled { opacity: .3; }
.storefront .cart-add-button { width: 100%; min-height: 44px; }
.storefront .buy-form > div { flex-shrink: 0; }
html:has(> body.storefront) { scrollbar-gutter: stable; }
html.cart-open { overflow: hidden; }
.cart-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(520px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; padding: 0; background: #0c180f; color: #f0f0e7; border: 0; border-left: 1px solid #4c6542; box-shadow: -16px 0 60px #0005; text-shadow: none; }
.cart-drawer[open] { display: flex; flex-direction: column; }
.cart-drawer::backdrop { background: #020805b3; backdrop-filter: blur(3px); }
.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; border-bottom: 1px solid #344936; flex-shrink: 0; }
.cart-drawer-header .eyebrow { font-size: 12px; margin-bottom: 8px; }
.cart-drawer-header h2 { font-size: 28px; margin: 0; }
.cart-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #50664c; background: #172a1b; color: #d0e4ba; border-radius: 50%; font-size: 26px; flex-shrink: 0; }
.cart-drawer-body { padding: 24px 28px max(28px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.cart-panel-intro { font-size: .8125rem; color: #b6c5b0; margin-bottom: 22px; }
.cart-lines { list-style: none; padding: 0; margin: 0; }
.cart-line { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 20px 0; border-bottom: 1px solid #344936; }
.cart-line:first-child { padding-top: 0; }
.cart-line > strong { font-size: .875rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-line-photo { display: grid; place-items: center; width: 68px; height: 76px; background: #fff; color: #406044; border-radius: 3px; overflow: hidden; }
.cart-line-photo img { height: 100%; width: 100%; object-fit: contain; }
.cart-line-name { font-weight: 600; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.cart-line-option, .cart-line-quantity { margin: 7px 0 0; color: #b8c8b0; font-size: .75rem; overflow-wrap: anywhere; }
.cart-panel-summary .button { margin-bottom: 12px; }
.cart-panel-summary .notice { margin: 6px 0 12px; }
.cart-continue { display: block; width: 100%; padding: 12px; min-height: 44px; background: transparent; border: 0; color: #cadfba; text-decoration: underline; text-underline-offset: 4px; }
.cart-panel-empty { padding: 40px 0; text-align: center; }
.cart-panel-empty > span { font-size: 44px; color: #afce90; }
.cart-panel-empty h3 { margin-top: 18px; }
.cart-panel-empty p { color: #b6c5b0; }
.cart-dock { position: fixed; z-index: 20; bottom: 22px; right: max(22px, env(safe-area-inset-right)); display: flex; align-items: center; gap: 22px; padding: 10px 12px 10px 20px; border: 1px solid #819e6b; border-radius: 8px; background: #12251a; color: #eff6e6; box-shadow: 0 6px 25px #0006; text-shadow: none; }
.cart-dock > span { font-size: .8125rem; font-variant-numeric: tabular-nums; }
.cart-dock > a { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding: 10px 18px; background: #afce90; color: #0b180f; border-radius: 4px; font-size: .875rem; font-weight: 700; }
.has-cart-dock { padding-bottom: 94px; }
.cart-dock[hidden], .cart-feedback[hidden] { display: none; }
.cart-feedback { position: fixed; z-index: 21; bottom: 110px; right: 22px; max-width: min(430px, calc(100% - 32px)); padding: 15px 18px; border: 1px solid #7e9a6b; border-radius: 6px; background: #172a1c; color: #edf6e5; box-shadow: 0 5px 25px #0005; font-size: .875rem; text-shadow: none; }
@media (max-width: 580px) {
  .storefront .card-quantity { flex-direction: column; align-items: stretch; gap: 6px; }
  .storefront .card-quantity > span { font-size: .6875rem; }
  .storefront .card-quantity .quantity-control { width: 100%; }
  .storefront .card-buy-form .cart-add-button { font-size: .75rem; padding-inline: 4px; }
  .cart-drawer-header { padding: 20px; }
  .cart-drawer-body { padding: 20px; }
  .cart-line { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .cart-line-photo { width: 56px; height: 64px; grid-row: span 2; }
  .cart-line > strong { grid-column: 2; }
  .cart-dock { inset-inline: 14px; bottom: max(14px, env(safe-area-inset-bottom)); gap: 12px; justify-content: space-between; padding-left: 14px; }
  .cart-dock > a { gap: 8px; padding-inline: 14px; }
  .cart-feedback { right: 16px; }
}
@media print { .cart-dock, .cart-drawer, .cart-feedback, .quantity-step { display: none !important; } .has-cart-dock { padding-bottom: 0; } }
