/* Appily twentyone — Greensphere Harvest Hamper cart */

.page-harvest-hamper {
  --hh-ink: #1f2418;
  --hh-muted: #5c6354;
  --hh-line: #d4c8b0;
  --hh-paper: #f8f4ec;
  --hh-wicker: #c4a574;
  --hh-wicker-dark: #8b6914;
  --hh-straw: #e8dcc4;
  --hh-green: #1a5c38;
  --hh-green-light: #2d8a55;
  --hh-barn: #3d2e1c;
  --hh-barn-light: #5c4528;
  background: var(--hh-paper);
}

/* ── Barn hero ── */
.hh-barn {
  position: relative;
  padding: 40px 0 48px;
  background: linear-gradient(165deg, var(--hh-barn) 0%, var(--hh-barn-light) 40%, #4a6b38 100%);
  color: #fff;
  overflow: hidden;
}

.hh-weave {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      rgba(196, 165, 116, 0.15) 8px,
      rgba(196, 165, 116, 0.15) 10px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(196, 165, 116, 0.1) 8px,
      rgba(196, 165, 116, 0.1) 10px
    );
  pointer-events: none;
}

.hh-straw {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: repeating-linear-gradient(
    90deg,
    rgba(232, 220, 196, 0.08) 0,
    rgba(232, 220, 196, 0.08) 3px,
    transparent 3px,
    transparent 12px
  );
  pointer-events: none;
}

.hh-barn-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(200px, 0.75fr);
  gap: 32px;
  align-items: center;
}

.hh-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hh-wicker);
}

.hh-barn-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.12;
  margin: 0 0 12px;
  color: #fff;
}

.hh-barn-copy h1 em {
  font-style: normal;
  color: #d4e8b0;
}

.hh-lede {
  margin: 0;
  max-width: 52ch;
  line-height: 1.65;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.88);
}

/* Circular hamper gauge */
.hh-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(196, 165, 116, 0.4);
  border-radius: 12px;
  text-align: center;
}

.hh-gauge-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.hh-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hh-gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 8;
}

.hh-gauge-progress {
  fill: none;
  stroke: var(--hh-wicker);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: calc(326.73 - (326.73 * var(--hh-fill, 0) / 100));
  transition: stroke-dashoffset 0.4s ease;
}

.hh-gauge-core {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.hh-gauge-core strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: #fff;
}

.hh-gauge-core span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hh-gauge-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0e6d0;
}

.hh-gauge-badge {
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hh-green-light);
  background: rgba(45, 138, 85, 0.2);
  border: 1px solid rgba(45, 138, 85, 0.35);
  border-radius: 3px;
}

.hh-barn-lip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--hh-wicker),
    var(--hh-wicker) 14px,
    var(--hh-straw) 14px,
    var(--hh-straw) 28px
  );
}

/* ── Floor ── */
.hh-floor {
  padding: 28px 0 64px;
}

.hh-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--hh-muted);
}

.hh-crumb a {
  color: var(--hh-green);
  font-weight: 600;
  text-decoration: none;
}

.hh-crumb a:hover {
  text-decoration: underline;
}

/* Empty state */
.hh-empty {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}

.hh-empty-basket {
  position: relative;
  width: 140px;
  height: 100px;
  margin: 0 auto 24px;
}

.hh-empty-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 28px;
  border: 4px solid var(--hh-wicker);
  border-bottom: none;
  border-radius: 30px 30px 0 0;
}

.hh-empty-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: linear-gradient(180deg, var(--hh-straw), var(--hh-line));
  border: 3px solid var(--hh-wicker);
  border-radius: 0 0 8px 8px;
}

.hh-empty-label {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hh-muted);
}

.hh-empty h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--hh-ink);
}

.hh-empty p {
  margin: 0 0 20px;
  line-height: 1.6;
  color: var(--hh-muted);
}

/* Layout */
.hh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 28px;
  align-items: start;
}

/* Form */
.hh-form {
  padding: 24px 24px 20px;
  background: #fff;
  border: 2px solid var(--hh-line);
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(61, 46, 28, 0.08);
}

.hh-form-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--hh-line);
}

.hh-form-handle {
  width: 48px;
  height: 20px;
  margin-top: 4px;
  border: 4px solid var(--hh-wicker);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  flex-shrink: 0;
}

.hh-form-tag {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hh-wicker-dark);
}

.hh-form-meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--hh-muted);
}

/* Band rows */
.hh-bands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hh-band {
  position: relative;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0;
}

.hh-band-weave {
  background: repeating-linear-gradient(
    0deg,
    var(--hh-wicker) 0,
    var(--hh-wicker) 4px,
    var(--hh-straw) 4px,
    var(--hh-straw) 8px
  );
  border-radius: 4px 0 0 4px;
  min-height: 100%;
}

.hh-band-num {
  position: absolute;
  top: 10px;
  left: 2px;
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--hh-barn);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.7;
}

.hh-band-card {
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--hh-paper);
  border: 1px solid var(--hh-line);
  border-left: none;
  border-radius: 0 6px 6px 0;
}

.hh-band-thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hh-line);
  display: block;
}

.hh-band-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hh-band-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.6rem;
}

.hh-band-body {
  min-width: 0;
}

.hh-band-aisle {
  display: block;
  margin-bottom: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hh-green);
}

.hh-band-body h2 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.hh-band-body h2 a {
  color: var(--hh-ink);
  text-decoration: none;
}

.hh-band-body h2 a:hover {
  color: var(--hh-green);
}

.hh-band-pack {
  margin: 0 0 4px;
  font-size: 0.8rem;
  color: var(--hh-muted);
}

.hh-band-sku {
  font-size: 0.72rem;
  color: var(--hh-muted);
}

.hh-band-unit,
.hh-band-qty,
.hh-band-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  min-width: 72px;
}

.hh-band-unit span,
.hh-band-qty span,
.hh-band-line span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hh-muted);
}

.hh-band-unit strong,
.hh-band-line strong {
  font-size: 0.9rem;
  color: var(--hh-ink);
}

/* Stepper */
.hh-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hh-line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.hh-step-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--hh-ink);
  background: var(--hh-straw);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.hh-step-btn:hover {
  background: var(--hh-line);
}

.hh-stepper input {
  width: 40px;
  height: 32px;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-left: 1px solid var(--hh-line);
  border-right: 1px solid var(--hh-line);
  -moz-appearance: textfield;
}

.hh-stepper input::-webkit-outer-spin-button,
.hh-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.hh-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dashed var(--hh-line);
}

/* Buttons */
.hh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.hh-btn-primary {
  background: var(--hh-green);
  color: #fff;
  border-color: var(--hh-green);
}

.hh-btn-primary:hover {
  background: var(--hh-green-light);
  border-color: var(--hh-green-light);
}

.hh-btn-soft {
  background: #fff;
  color: var(--hh-ink);
  border-color: var(--hh-line);
}

.hh-btn-soft:hover {
  background: var(--hh-paper);
  border-color: var(--hh-wicker);
}

.hh-btn-ghost {
  background: transparent;
  color: var(--hh-green);
  border-color: transparent;
}

.hh-btn-ghost:hover {
  background: rgba(26, 92, 56, 0.06);
}

.hh-btn-block {
  width: 100%;
}

/* Aside */
.hh-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hh-nudge {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--hh-line);
  border-radius: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hh-nudge:hover {
  border-color: var(--hh-green);
  box-shadow: 0 4px 12px rgba(26, 92, 56, 0.1);
}

.hh-nudge img {
  width: 80px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.hh-nudge-copy span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hh-muted);
}

.hh-nudge-copy strong {
  font-size: 0.9rem;
  color: var(--hh-ink);
}

/* Manifest card */
.hh-manifest {
  position: relative;
  padding: 22px 20px 24px;
  background: #fff;
  border: 2px solid var(--hh-wicker);
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(61, 46, 28, 0.1);
}

.hh-manifest-twine {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 28px;
  background: var(--hh-wicker-dark);
  border-radius: 2px;
}

.hh-manifest-twine::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border: 2px solid var(--hh-wicker-dark);
  border-radius: 50%;
  background: var(--hh-paper);
}

.hh-manifest-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--hh-line);
  text-align: center;
}

.hh-manifest-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hh-wicker-dark);
  background: rgba(196, 165, 116, 0.15);
  border-radius: 2px;
}

.hh-manifest-head h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--hh-ink);
}

.hh-manifest-head p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--hh-muted);
}

.hh-manifest-rows {
  margin: 0 0 12px;
}

.hh-manifest-rows div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.hh-manifest-rows dt {
  margin: 0;
  font-size: 0.84rem;
  color: var(--hh-muted);
}

.hh-manifest-rows dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hh-ink);
}

.hh-manifest-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: var(--hh-paper);
  border-radius: 4px;
}

.hh-manifest-total span {
  font-weight: 600;
  color: var(--hh-ink);
}

.hh-manifest-total strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--hh-green);
}

.hh-manifest-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hh-manifest-stamp {
  position: absolute;
  bottom: 16px;
  right: 14px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--hh-green);
  border: 2px solid var(--hh-green);
  border-radius: 3px;
  opacity: 0.3;
  transform: rotate(-12deg);
  pointer-events: none;
}

/* Notes */
.hh-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hh-notes li {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--hh-line);
  border-left: 4px solid var(--hh-wicker);
  border-radius: 0 4px 4px 0;
}

.hh-note-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hh-notes strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.84rem;
  color: var(--hh-ink);
}

.hh-notes p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--hh-muted);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hh-band-card {
    grid-template-columns: 64px 1fr auto;
    grid-template-rows: auto auto;
  }

  .hh-band-unit {
    grid-column: 3;
    grid-row: 1;
  }

  .hh-band-qty {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .hh-band-line {
    grid-column: 3;
    grid-row: 2;
    text-align: right;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
  }
}

@media (max-width: 960px) {
  .hh-barn-grid {
    grid-template-columns: 1fr;
  }

  .hh-gauge {
    max-width: 200px;
  }

  .hh-layout {
    grid-template-columns: 1fr;
  }

  .hh-manifest {
    order: -1;
  }
}

@media (max-width: 640px) {
  .hh-barn {
    padding: 32px 0 40px;
  }

  .hh-form {
    padding: 18px 14px 16px;
  }

  .hh-band {
    grid-template-columns: 8px 1fr;
  }

  .hh-band-card {
    grid-template-columns: 56px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .hh-band-thumb {
    width: 56px;
    height: 56px;
  }

  .hh-band-unit,
  .hh-band-qty,
  .hh-band-line {
    grid-column: 2;
    text-align: left;
    flex-direction: row;
    justify-content: flex-start;
    min-width: 0;
  }

  .hh-form-actions {
    flex-direction: column;
  }

  .hh-btn {
    width: 100%;
    text-align: center;
  }

  .hh-manifest-stamp {
    display: none;
  }
}
