/* Store cart & checkout — public storefront */

.store-cart-page {
  --store-radius: 1rem;
  --store-shadow: 0 4px 24px rgba(17, 24, 39, 0.06);
}

.store-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--store-radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--store-shadow);
}

.store-panel--accent {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.store-cart-header h1 {
  letter-spacing: -0.02em;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.store-btn:active {
  transform: scale(0.98);
}

.store-btn--primary {
  background: #D81921;
  color: #fff;
  box-shadow: 0 4px 14px rgba(216, 25, 33, 0.25);
}

.store-btn--primary:hover {
  filter: brightness(1.05);
}

.store-btn--secondary {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.store-btn--secondary:hover {
  border-color: #D81921;
  color: #D81921;
}

.store-btn--ghost {
  background: transparent;
  color: #6b7280;
  border: none;
  min-height: auto;
  padding: 0.25rem 0.5rem;
}

.store-btn--ghost:hover {
  color: #D81921;
}

.store-input {
  height: 2.75rem;
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.625rem;
  padding: 0 0.75rem;
  font-weight: 600;
}

.store-input:focus {
  outline: none;
  border-color: #D81921;
  box-shadow: 0 0 0 3px rgba(216, 25, 33, 0.12);
}

/* Add-to-cart on product cards */
.store-add-cart {
  border-top: 1px solid #f3f4f6;
  padding-top: 0.75rem;
}

.store-add-cart__limit {
  font-size: 0.7rem;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.store-add-cart__limit.is-warning {
  color: #b45309;
}

.store-add-cart__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.store-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #fff;
}

.store-qty-stepper button {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #D81921;
  font-weight: 800;
  font-size: 1.1rem;
  background: #fff;
  border: none;
  cursor: pointer;
}

.store-qty-stepper button:hover:not(:disabled) {
  background: #fef2f2;
}

.store-qty-stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.store-qty-stepper input {
  width: 2.75rem;
  text-align: center;
  font-weight: 800;
  border: none;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  height: 2.25rem;
  -moz-appearance: textfield;
}

.store-qty-stepper input::-webkit-outer-spin-button,
.store-qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.store-add-cart__submit {
  width: 100%;
  margin-top: 0;
  min-height: 2.5rem;
  border-radius: 0.625rem;
  background: #D81921;
  color: #fff;
  font-weight: 800;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(216, 25, 33, 0.2);
}

.store-add-cart__submit:hover:not(:disabled) {
  filter: brightness(1.05);
}

.store-add-cart__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.store-add-cart__submit.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Cart table */
.store-cart-table-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--store-radius);
  overflow: hidden;
  box-shadow: var(--store-shadow);
}

.store-cart-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  min-width: 640px;
}

.store-cart-table thead tr {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.8125rem;
  color: #6b7280;
}

.store-cart-table th,
.store-cart-table td {
  padding: 1rem;
  vertical-align: middle;
}

.store-cart-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
}

.store-cart-table tbody tr:hover {
  background: rgba(249, 250, 251, 0.8);
}

.store-cart-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.store-cart-product img,
.store-cart-product__placeholder {
  width: 4rem;
  height: 4rem;
  border-radius: 0.625rem;
  object-fit: cover;
  background: #f3f4f6;
  flex-shrink: 0;
}

.store-cart-product__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.store-cart-summary {
  position: sticky;
  top: 6rem;
}

.store-cart-summary__total {
  font-size: 1.25rem;
  font-weight: 800;
  color: #D81921;
}

.store-cart-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border: 2px dashed #e5e7eb;
  border-radius: var(--store-radius);
}

/* Toast notifications */
#storeCartToastHost {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(92vw, 24rem);
  pointer-events: none;
}

.store-cart-toast {
  pointer-events: auto;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  animation: storeToastIn 0.28s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.store-cart-toast--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.store-cart-toast--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.store-cart-toast--warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

@keyframes storeToastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header cart badge pulse */
[data-store-cart-badge].is-updated {
  animation: cartBadgePulse 0.45s ease;
}

@keyframes cartBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Order tracking */
.track-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.track-status--pending {
  background: #fef3c7;
  color: #92400e;
}

.track-status--confirmed {
  background: #dbeafe;
  color: #1e40af;
}

.track-status--completed {
  background: #d1fae5;
  color: #065f46;
}

.track-status--cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.track-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.track-timeline__item {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 1rem;
  position: relative;
}

.track-timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  right: 0.4375rem;
  top: 1.25rem;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.track-timeline__dot {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: #D81921;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.store-limit-banner {
  font-size: 0.8125rem;
  color: #4b5563;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  margin-bottom: 1rem;
}

.store-limit-banner strong {
  color: #D81921;
}

.store-price-change-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: #92400e;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #f59e0b;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 0 rgba(245, 158, 11, 0.15);
}

.store-price-change-banner__icon {
  font-size: 1.35rem;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.store-price-change-banner strong {
  display: block;
  color: #92400e;
  margin-bottom: 0.15rem;
}

.store-price-change-banner span {
  color: #b45309;
}

.store-price-change {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 9999px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.45rem;
}

.store-price-change__icon {
  font-size: 1rem;
  line-height: 1;
}

.store-price-change--up {
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fcd34d;
}

.store-price-change--down {
  color: #047857;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
}

.store-price-change--changed {
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #93c5fd;
}

.store-price-change-detail {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
}

.store-price-change-detail--up {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.store-price-change-detail--down {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.store-price-change-detail--changed {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.store-price-change-detail__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.store-price-change-detail__row .material-symbols-outlined {
  font-size: 1.05rem;
}

.store-price-change-detail__label {
  font-weight: 700;
}

.store-price-change-detail__old {
  text-decoration: line-through;
  opacity: 0.72;
}

.store-price-change-detail__sep {
  opacity: 0.55;
  font-weight: 700;
}

.store-price-change-detail__new {
  font-weight: 800;
}

.store-cart-line-card--price-up {
  border-color: #fcd34d;
  box-shadow: inset 3px 0 0 #f59e0b;
}

.store-cart-line-card--price-down {
  border-color: #6ee7b7;
  box-shadow: inset 3px 0 0 #10b981;
}

.store-cart-line-card--price-changed {
  border-color: #93c5fd;
  box-shadow: inset 3px 0 0 #3b82f6;
}

.store-cart-lines {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.store-cart-section {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.store-cart-section + .store-cart-section {
  margin-top: 0.75rem;
}

.store-cart-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.store-cart-section--priced .store-cart-section__head {
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
  border-bottom-color: #bbf7d0;
}

.store-cart-section--unpriced .store-cart-section__head {
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
  border-bottom-color: #fde68a;
}

.store-cart-section__title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  min-width: 0;
}

.store-cart-section__icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.store-cart-section--priced .store-cart-section__icon {
  color: #059669;
}

.store-cart-section--unpriced .store-cart-section__icon {
  color: #d97706;
}

.store-cart-section__title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
}

.store-cart-section__subtitle {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

.store-cart-section__count {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
}

.store-cart-section .store-cart-lines {
  padding: 0.5rem;
}

.store-cart-line-card--no-price {
  background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
}

.store-cart-line-card__no-price {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.5rem;
  padding: 0.3rem 0.55rem;
}

.store-cart-line-card__no-price .material-symbols-outlined {
  font-size: 1rem;
}

.store-cart-summary__unpriced-note {
  font-size: 0.75rem;
  font-weight: 600;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.625rem;
  padding: 0.5rem 0.75rem;
  line-height: 1.45;
}

.store-cart-line-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
}

.store-cart-line-card__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: #dc2626;
  cursor: pointer;
  transition: background 0.2s ease;
}

.store-cart-line-card__remove .material-symbols-outlined {
  font-size: 1.05rem;
}

.store-cart-line-card__remove:hover {
  background: #fef2f2;
}

.store-cart-line-card__foot {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.store-cart-line-card__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.store-cart-line-card__qty-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.store-cart-line-card__unit {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #94a3b8;
}

.store-cart-line-card__total {
  margin: 0;
  padding: 0;
  border: none;
  flex-shrink: 0;
}

.store-qty-stepper--compact button {
  width: 1.65rem;
  height: 1.65rem;
  font-size: 0.95rem;
}

.store-qty-stepper--compact input {
  width: 2.35rem;
  height: 1.65rem;
  font-size: 0.8125rem;
}

@media (max-width: 640px) {
  .store-cart-table-wrap {
    border-radius: 0.75rem;
  }

  .store-cart-summary {
    position: static;
  }
}

.store-cart-unavailable {
  border: 1px solid #fecaca;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.store-cart-unavailable__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #fee2e2;
  background: #fef2f2;
}

.store-cart-unavailable__list {
  display: flex;
  flex-direction: column;
}

.store-cart-unavailable__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #fef2f2;
}

.store-cart-unavailable__item:last-child {
  border-bottom: none;
}

.store-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100050;
}

.store-cart-drawer[hidden] {
  display: none !important;
}

.store-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.store-cart-drawer.is-open .store-cart-drawer__backdrop {
  opacity: 1;
}

.store-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100vw, 28rem);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.24s ease;
}

.store-cart-drawer.is-open .store-cart-drawer__panel {
  transform: translateX(0);
}

.store-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.store-cart-drawer__title {
  font-size: 1.125rem;
  font-weight: 800;
}

.store-cart-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
}

.store-cart-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.25rem 1.5rem;
}

.store-cart-drawer__shell {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.store-cart-drawer__scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.75rem 1.25rem 1rem;
}

.store-cart-drawer__footer {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.store-cart-drawer__loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  font-size: 0.875rem;
  font-weight: 700;
}

.store-cart-drawer__loading-overlay[hidden] {
  display: none !important;
}

.store-cart-drawer__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e5e7eb;
  border-top-color: #d81921;
  border-radius: 999px;
  animation: store-cart-drawer-spin 0.75s linear infinite;
}

@keyframes store-cart-drawer-spin {
  to { transform: rotate(360deg); }
}

.store-cart-drawer.is-loading-cart .store-cart-drawer__scroll,
.store-cart-drawer.is-loading-cart .store-cart-drawer__footer {
  visibility: hidden;
}

body.store-cart-drawer-open {
  overflow: hidden;
}

.store-cart-drawer .store-cart-lines {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.store-cart-drawer .store-cart-summary {
  box-shadow: none;
  border: none;
  padding: 0;
  background: transparent;
}

.store-cart-summary--drawer .store-cart-summary__totals {
  margin-bottom: 0.25rem;
}

.store-cart-checkout {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.store-cart-checkout[hidden] {
  display: none !important;
}

.store-cart-checkout__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
}

.store-cart-checkout__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-height: 88%;
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.18);
  animation: store-cart-checkout-rise 0.28s ease;
}

@keyframes store-cart-checkout-rise {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.store-cart-checkout__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.store-cart-checkout__back {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.store-cart-checkout__title {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
}

.store-cart-checkout__body {
  overflow: auto;
  padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.store-cart-checkout__lead {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  color: #64748b;
}

.store-cart-fly-dot {
  position: fixed;
  z-index: 120000;
  width: 0.85rem;
  height: 0.85rem;
  margin: -0.425rem 0 0 -0.425rem;
  border-radius: 999px;
  background: #D81921;
  box-shadow: 0 0 0 4px rgba(216, 25, 33, 0.22);
  pointer-events: none;
}

.store-cart-fly-dot.is-flying {
  animation: store-cart-fly 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes store-cart-fly {
  to {
    transform: translate(var(--fly-x, 0), var(--fly-y, 0)) scale(0.35);
    opacity: 0.15;
  }
}

.site-header__icon-btn.is-cart-bump {
  animation: store-cart-icon-bump 0.55s ease;
}

@keyframes store-cart-icon-bump {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.14); }
  65% { transform: scale(0.96); }
}

.store-add-cart--in-cart .store-add-cart__submit {
  display: none;
}

/* Product card cart panel — before/after add */
.store-cart-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.8rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.store-cart-panel--add {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.store-cart-panel--in-cart {
  background: linear-gradient(180deg, #f7fef9 0%, #ecfdf5 100%);
  border: 1px solid #86efac;
}

.store-cart-panel__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #047857;
  white-space: nowrap;
}

.store-cart-panel__badge .material-symbols-outlined {
  font-size: 1rem;
  line-height: 1;
}

@media (min-width: 640px) {
  .store-cart-panel__badge {
    font-size: 0.75rem;
  }
}

.store-cart-panel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.store-cart-panel__qty-slot {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.store-cart-panel__qty-slot > [hidden] {
  display: none !important;
}

.store-cart-panel__qty-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  min-height: 2.625rem;
  padding: 0 0.75rem;
  border-radius: 0.7rem;
  background: #fff;
  border: 1px solid #bbf7d0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
}

.store-cart-panel__qty-locked strong {
  font-size: 1rem;
  font-weight: 800;
  color: #047857;
  min-width: 1.25rem;
  text-align: center;
}

.store-cart-panel--add .store-add-cart__submit {
  width: 100%;
  margin-top: 0;
  min-height: 2.5rem;
}

/* Unified card stepper — equal buttons, qty + unit in center cell */
.store-qty-stepper--card {
  display: grid;
  grid-template-columns: 2.75rem minmax(5rem, 1fr) 2.75rem;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid #d1d5db;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.store-cart-panel--in-cart .store-qty-stepper--card {
  border-color: #86efac;
}

.store-qty-stepper--card button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.625rem;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  background: #f8fafc;
  color: #D81921;
  transition: background 0.15s ease, color 0.15s ease;
}

.store-qty-stepper--card button:hover:not(:disabled) {
  background: #fef2f2;
}

.store-qty-stepper--card button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.store-cart-panel--in-cart .store-qty-stepper--card button {
  color: #047857;
  background: #f0fdf4;
}

.store-cart-panel--in-cart .store-qty-stepper--card button:hover:not(:disabled) {
  background: #dcfce7;
}

.store-qty-stepper__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
  height: 2.625rem;
  padding: 0 0.4rem;
  border-inline: 1px solid #e5e7eb;
  background: #fff;
}

.store-qty-stepper__value input,
.store-qty-stepper__value output {
  display: block;
  width: 2.35rem;
  min-width: 1.15rem;
  max-width: 3.5rem;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.975rem;
  font-weight: 800;
  color: #111827;
  text-align: center;
  line-height: 1.2;
  -moz-appearance: textfield;
}

.store-qty-stepper__unit {
  flex: 0 0 auto;
  font-size: 0.625rem;
  font-weight: 800;
  color: #94a3b8;
  white-space: nowrap;
  line-height: 1;
}

.store-cart-panel--in-cart .store-qty-stepper__value {
  border-color: #bbf7d0;
}

.store-cart-panel--in-cart .store-qty-stepper__value input,
.store-cart-panel--in-cart .store-qty-stepper__value output {
  color: #047857;
}

.store-cart-panel--in-cart .store-qty-stepper__unit,
.store-cart-panel--in-cart .store-cart-panel__qty-locked .store-qty-stepper__unit {
  color: #059669;
}

.store-cart-panel--add .store-qty-stepper__unit {
  color: #94a3b8;
}

.store-qty-stepper__value input::-webkit-outer-spin-button,
.store-qty-stepper__value input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.store-add-cart__note {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 0.4rem;
}

.store-add-cart__note.is-warning {
  color: #b45309;
}

.store-add-cart__note-sep {
  margin: 0 0.2rem;
  opacity: 0.5;
}

.store-qty-stepper--locked input {
  background: #f8fafc;
  color: #475569;
}
