/* Wheelbarrow Bench — cart (CityTribe Farms ONLY)
   Potting-bench loads · hose promo · tip-handles checkout.
   Scoped to data-a103-project so styles never paint another store's cart. */
body[data-a103-project="appily-onehundredthree"].page-a103-wheelbarrow {
  --wb-ink: var(--a103-ink, #101810);
  --wb-mute: var(--a103-mute, #3D5348);
  --wb-leaf: var(--a103-primary, #008C5A);
  --wb-leaf-deep: var(--a103-primary-deep, #006644);
  --wb-sun: var(--a103-secondary, #FFC400);
  --wb-sun-deep: var(--a103-secondary-deep, #D4A000);
  --wb-bloom: var(--a103-accent, #FF2D7B);
  --wb-bloom-deep: var(--a103-accent-deep, #D0185C);
  --wb-sprout: var(--a103-highlight, #5CFFB0);
  --wb-soil: #1A2E24;
  --wb-soil-deep: #0E2A22;
  --wb-kraft: #FFFDF5;
  --wb-field: var(--a103-field, #E6FFF3);
  --wb-field-warm: var(--a103-field-blush, #FFF3E8);
  --wb-surface: var(--a103-surface, #FFFFFF);
  --wb-ok: var(--a103-ok, #008C5A);
  --wb-err: var(--a103-err, #C44000);
  --wb-radius: var(--a103-radius, 10px);
  --wb-font-display: var(--a103-font-display, "Shrikhand", Georgia, serif);
  --wb-font-body: var(--a103-font-body, "Hind", "Segoe UI", system-ui, sans-serif);
  font-family: var(--wb-font-body);
  color: var(--wb-ink);
  background:
    radial-gradient(ellipse 48% 34% at 8% 0%, rgba(0, 140, 90, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 28% at 94% 6%, rgba(255, 196, 0, 0.14), transparent 50%),
    linear-gradient(168deg, var(--wb-field) 0%, #C5FFF0 46%, var(--wb-field-warm) 100%);
}

.wb-stage {
  padding-bottom: 56px;
  min-width: 0;
}

.wb-mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 24px;
  align-items: end;
  padding: 28px 0 18px;
}
.wb-kicker {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wb-leaf-deep);
}
.wb-mast h1 {
  margin: 0;
  font-family: var(--wb-font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}
.wb-mast-copy p:last-child {
  margin: 10px 0 0;
  max-width: 46ch;
  font-weight: 600;
  line-height: 1.45;
  color: var(--wb-mute);
}
.wb-meter {
  min-width: 92px;
  padding: 14px 16px;
  text-align: center;
  background: var(--wb-soil-deep);
  color: #F5FFF8;
  border: 3px solid var(--wb-ink);
  border-radius: 50% 50% 14px 14px;
  box-shadow: 4px 4px 0 rgba(16, 24, 16, 0.16);
}
.wb-meter strong {
  display: block;
  font-family: var(--wb-font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--wb-sun);
}
.wb-meter span {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 255, 248, 0.85);
}

.wb-body {
  padding-top: 4px;
  min-width: 0;
}

/* Empty */
.wb-empty {
  padding: 48px 24px;
  text-align: center;
  background: var(--wb-kraft);
  border: 3px solid var(--wb-ink);
  border-radius: var(--wb-radius);
  box-shadow: 4px 4px 0 rgba(16, 24, 16, 0.1);
}
.wb-empty-barrow {
  position: relative;
  width: 120px;
  height: 72px;
  margin: 0 auto 18px;
}
.wb-empty-tub {
  display: block;
  width: 100%;
  height: 48px;
  background: var(--wb-leaf);
  border: 3px solid var(--wb-ink);
  border-radius: 8px 8px 28px 28px;
}
.wb-empty-wheel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border: 3px solid var(--wb-ink);
  border-radius: 50%;
  background: var(--wb-sun);
  box-shadow: inset 0 0 0 6px var(--wb-soil);
}
.wb-empty h2 {
  margin: 0 0 8px;
  font-family: var(--wb-font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 400;
}
.wb-empty p {
  margin: 0 0 20px;
  font-weight: 600;
  color: var(--wb-mute);
}

/* Buttons */
.wb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 3px solid var(--wb-ink);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.wb-btn--hot {
  background: var(--wb-bloom);
  color: #fff !important;
  box-shadow: 3px 3px 0 rgba(16, 24, 16, 0.18);
}
.wb-btn--hot:hover,
.wb-btn--hot:focus-visible {
  background: var(--wb-bloom-deep);
  color: #fff !important;
  transform: translateY(-2px);
  outline: none;
}
.wb-btn--teal {
  background: var(--wb-leaf);
  color: #fff !important;
  box-shadow: 3px 3px 0 rgba(16, 24, 16, 0.14);
}
.wb-btn--teal:hover,
.wb-btn--teal:focus-visible {
  background: var(--wb-leaf-deep);
  color: #fff !important;
  outline: none;
}
.wb-btn--tip {
  min-width: min(100%, 220px);
}
.wb-btn--tip.is-swing {
  animation: wb-tip 0.45s ease;
}
@keyframes wb-tip {
  0%, 100% { transform: rotate(0); }
  35% { transform: rotate(-4deg) translateY(-2px); }
  70% { transform: rotate(2deg); }
}

/* Barrow */
.wb-form { margin-bottom: 16px; min-width: 0; }

.wb-barrow {
  margin-bottom: 16px;
  padding: 16px 14px 20px;
  background: linear-gradient(180deg, #244838 0%, var(--wb-soil) 40%, var(--wb-soil-deep) 100%);
  border: 3px solid var(--wb-ink);
  border-radius: 16px 16px 40% 40% / 16px 16px 26px 26px;
  box-shadow: 5px 5px 0 rgba(16, 24, 16, 0.14);
  min-width: 0;
}
.wb-barrow-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
  padding: 0 6px;
  color: #F5FFF8;
}
.wb-barrow-head h2 {
  margin: 0;
  font-family: var(--wb-font-display);
  font-size: 1.35rem;
  font-weight: 400;
}
.wb-barrow-head p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wb-sun);
}

.wb-tub { position: relative; min-width: 0; }
.wb-tub-rim {
  display: block;
  height: 8px;
  margin: 0 2px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wb-leaf), var(--wb-sun), var(--wb-bloom));
  border: 2px solid var(--wb-ink);
}

.wb-loads {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  min-width: 0;
}
.wb-load {
  position: relative;
  background: var(--wb-surface);
  border: 3px solid var(--wb-ink);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .wb-load {
    animation: wb-load-in 0.4s ease both;
    animation-delay: calc(var(--wb-i, 0) * 55ms);
  }
}
.wb-load.is-sprouting { animation: wb-bounce 0.35s ease; }
.wb-load.is-removing {
  opacity: 0;
  transform: translateX(36px) rotate(2deg);
  pointer-events: none;
}

@keyframes wb-load-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wb-bounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.015) translateY(-2px); }
}

.wb-load-num {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 28px;
  padding: 2px 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  background: var(--wb-ink);
  color: var(--wb-sun);
  border-radius: 6px;
  pointer-events: none;
}
.wb-load--rust { border-left: 8px solid #E85D04; }
.wb-load--teal { border-left: 8px solid var(--wb-leaf); }
.wb-load--berry { border-left: 8px solid var(--wb-bloom); }
.wb-load--lemon { border-left: 8px solid var(--wb-sun); }
.wb-load--fern { border-left: 8px solid #43A047; }

.wb-load-body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(132px, auto);
  gap: 14px 16px;
  align-items: center;
  padding: 14px 14px 14px 18px;
  min-width: 0;
}

.wb-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  background: var(--wb-kraft);
  border: 2px solid var(--wb-ink);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--wb-mute);
  font-weight: 800;
}
.wb-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wb-copy {
  min-width: 0;
}
.wb-copy h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 800;
}
.wb-copy h2 a {
  color: var(--wb-ink) !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}
.wb-copy h2 a:hover,
.wb-copy h2 a:focus-visible {
  color: var(--wb-leaf-deep) !important;
  outline: none;
}
.wb-meta {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--wb-mute);
  overflow-wrap: anywhere;
}
.wb-unit {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--wb-leaf-deep);
}

.wb-steer {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 0;
}
.wb-qty {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid var(--wb-ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--wb-field);
}
.wb-dial {
  width: 40px;
  min-height: 40px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  color: var(--wb-ink);
}
.wb-dial:hover,
.wb-dial:focus-visible {
  background: var(--wb-sun);
  outline: none;
}
.wb-qty input {
  width: 44px;
  min-height: 40px;
  border: 0;
  border-left: 2px solid var(--wb-ink);
  border-right: 2px solid var(--wb-ink);
  text-align: center;
  font: inherit;
  font-weight: 800;
  background: var(--wb-surface);
  color: var(--wb-ink);
  -moz-appearance: textfield;
  appearance: textfield;
}
.wb-qty input::-webkit-outer-spin-button,
.wb-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.wb-qty input:focus-visible {
  outline: 2px solid var(--wb-leaf);
  outline-offset: -2px;
}
.wb-qty input.is-pulse { animation: wb-pulse 0.18s ease; }

@keyframes wb-pulse {
  50% { background: var(--wb-sun); transform: scale(1.06); }
}

.wb-line {
  font-family: var(--wb-font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--wb-ink);
  line-height: 1.1;
}
.wb-remove {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--wb-bloom-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 2px 0;
}
.wb-remove:hover,
.wb-remove:focus-visible {
  color: var(--wb-err);
  outline: none;
}

/* Hose / promo */
.wb-hose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
  min-width: 0;
}
.wb-hose-ship,
.wb-promo {
  min-width: 0;
  padding: 16px 18px;
  background: var(--wb-surface);
  border: 3px solid var(--wb-ink);
  border-radius: var(--wb-radius);
  box-shadow: 3px 3px 0 rgba(16, 24, 16, 0.08);
}
.wb-hose-ship h3,
.wb-promo label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  color: var(--wb-ink);
}
.wb-hose-ship p {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
  color: var(--wb-mute);
}
.wb-ok {
  color: var(--wb-ok);
  font-style: normal;
  font-weight: 800;
}
.wb-promo-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}
.wb-promo-row input {
  flex: 1 1 140px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--wb-ink);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  color: var(--wb-ink);
  background: #F5FFF8;
}
.wb-promo-row input:focus-visible {
  outline: 3px solid var(--wb-sun);
  outline-offset: 1px;
}
.wb-promo.is-hit {
  animation: wb-hose-hit 0.35s ease;
}
.wb-promo-note {
  margin: 8px 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.wb-promo-note.is-ok { color: var(--wb-ok); }
.wb-promo-note.is-err { color: var(--wb-err); }

@keyframes wb-hose-hit {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-3px); }
  60% { transform: translateX(3px); }
}

/* Checkout handles */
.wb-handles {
  position: relative;
  padding: 20px 22px 18px 72px;
  background: var(--wb-kraft);
  border: 3px solid var(--wb-ink);
  border-radius: var(--wb-radius);
  box-shadow: 4px 4px 0 rgba(16, 24, 16, 0.12);
  min-width: 0;
}
.wb-wheel {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 3px solid var(--wb-ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--wb-sun) 0 28%, transparent 29%),
    conic-gradient(from 0deg, var(--wb-leaf), var(--wb-sun), var(--wb-bloom), var(--wb-leaf));
  box-shadow: inset 0 0 0 8px var(--wb-soil);
}
@media (prefers-reduced-motion: no-preference) {
  .wb-wheel { animation: wb-spin 10s linear infinite; }
}
@keyframes wb-spin {
  to { transform: rotate(360deg); }
}

.wb-handles-inner { min-width: 0; }

.wb-score {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.wb-score div {
  min-width: 0;
  padding: 10px 12px;
  background: var(--wb-surface);
  border: 2px solid var(--wb-ink);
  border-radius: 8px;
}
.wb-score dt {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wb-mute);
}
.wb-score dd {
  margin: 4px 0 0;
  font-weight: 800;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.wb-score-due {
  background: var(--wb-sun) !important;
}
.wb-score-due dd.is-pulse {
  animation: wb-pulse 0.35s ease;
}

.wb-handles-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.wb-text-btn {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  color: var(--wb-leaf-deep) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px 0;
}
.wb-text-btn:hover,
.wb-text-btn:focus-visible {
  color: var(--wb-bloom-deep) !important;
  outline: none;
}

/* Mid */
@media (max-width: 900px) {
  .wb-load-body {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
  }
  .wb-thumb {
    width: 80px;
    height: 80px;
    flex-basis: 80px;
  }
  .wb-steer {
    grid-column: 1 / -1;
    justify-items: stretch;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "qty line remove";
    align-items: center;
    gap: 10px 12px;
    padding-top: 4px;
    border-top: 2px dashed rgba(16, 24, 16, 0.12);
  }
  .wb-qty { grid-area: qty; justify-self: start; }
  .wb-line { grid-area: line; justify-self: end; }
  .wb-remove { grid-area: remove; justify-self: end; }
}

@media (max-width: 760px) {
  .wb-mast {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .wb-meter {
    justify-self: start;
  }
  .wb-hose { grid-template-columns: 1fr; }
  .wb-handles {
    padding: 56px 16px 16px;
  }
  .wb-wheel {
    top: 14px;
    left: 50%;
    margin-left: -22px;
    margin-top: 0;
  }
  .wb-score { grid-template-columns: 1fr; }
  .wb-handles-path {
    flex-direction: column;
    align-items: stretch;
  }
  .wb-btn--tip,
  .wb-promo-row .wb-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .wb-load-body {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 12px;
  }
  .wb-thumb {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }
  .wb-load-num {
    top: 6px;
    left: 6px;
  }
  .wb-steer {
    grid-template-columns: 1fr;
    grid-template-areas: "qty" "line" "remove";
    justify-items: start;
  }
  .wb-line,
  .wb-remove { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .wb-load,
  .wb-btn,
  .wb-wheel,
  .wb-promo.is-hit,
  .wb-btn--tip.is-swing {
    animation: none !important;
    transition: none !important;
  }
}
