/**
 * Appily fortythree — Orchard Harvest Tote (cart)
 * Layout: diagonal hero + checkout ribbon + bento item grid + bottom summary deck
 */

.page-cart-orchard {
  --tote-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tote-glass: rgba(255, 252, 247, 0.92);
  --tote-glass-border: rgba(255, 255, 255, 0.7);
  --tote-ink: #101a12;
  --tote-muted: #3f5246;
  background: var(--a43-cream);
  color: var(--tote-ink);
}
.page-cart-orchard .page-main { padding-top: 0; }

.a43-tote { padding-bottom: 3rem; }

/* Undo shared pages-crudo fade on hero grids (opacity: 0.35) */
.page-cart-orchard .a43-tote-hero-grid {
  opacity: 1 !important;
}

/* ── Reveal ── */
.a43-tote-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--tote-ease), transform 0.65s var(--tote-ease);
}
.a43-tote-reveal.is-visible { opacity: 1; transform: none; }

/* ── Hero ── */
.a43-tote-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 5vw, 3.25rem) 0 clamp(3.25rem, 6vw, 4.25rem);
  color: #f5faf2;
}
.a43-tote-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(128deg, #0c1810 0%, #142618 42%, #1a3320 72%, #243d28 100%);
  pointer-events: none;
  z-index: 0;
}
.a43-tote-slice {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--a43-cream);
  clip-path: polygon(0 100%, 100% 45%, 100% 100%);
  z-index: 0;
  pointer-events: none;
}
.a43-tote-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.38;
  animation: a43ToteBlob 13s ease-in-out infinite alternate;
}
.a43-tote-blob--1 {
  width: 320px;
  height: 320px;
  top: -14%;
  right: 10%;
  background: rgba(212, 160, 23, 0.52);
}
.a43-tote-blob--2 {
  width: 260px;
  height: 260px;
  bottom: 0;
  left: -4%;
  background: rgba(196, 220, 200, 0.35);
  animation-delay: -5s;
}
@keyframes a43ToteBlob {
  to { transform: translate(14px, -12px) scale(1.05); }
}
.a43-tote-basket-glow {
  position: absolute;
  top: 20%;
  right: 20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.2), transparent 70%);
  animation: a43ToteGlow 6s ease-in-out infinite alternate;
}
@keyframes a43ToteGlow {
  to { transform: scale(1.15); opacity: 0.6; }
}

.a43-tote-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
}
.a43-tote-hero-copy {
  color: #f5faf2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.a43-tote-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f5faf2;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.a43-tote-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fcd34d;
  animation: a43ToteLive 2s ease-out infinite;
}
@keyframes a43ToteLive {
  0% { box-shadow: 0 0 0 0 rgba(252, 211, 77, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(252, 211, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(252, 211, 77, 0); }
}

.a43-tote-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0d78a;
}
.a43-tote-hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.a43-tote-hero h1 em {
  font-style: normal;
  color: #c8f06e;
}
.a43-tote-lede {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(245, 250, 242, 0.92);
  max-width: 46ch;
}

.a43-tote-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.a43-tote-metrics li {
  display: flex;
  flex-direction: column;
  padding: 0.48rem 0.85rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  min-width: 72px;
  backdrop-filter: blur(6px);
}
.a43-tote-metrics strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #ffffff;
}
.a43-tote-metrics span {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245, 250, 242, 0.78);
}
.a43-tote-metrics-free strong { color: #9af0c8; }

.a43-tote-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.28);
  color: var(--tote-ink);
  transform: rotate(-3deg);
  transition: transform 0.35s var(--tote-ease);
}
.a43-tote-gauge:hover { transform: rotate(0deg) scale(1.03); }
.a43-tote-gauge-icon { font-size: 1.65rem; line-height: 1; margin-bottom: 0.15rem; }
.a43-tote-gauge strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: #14301c;
  line-height: 1;
}
.a43-tote-gauge span:last-child {
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tote-muted);
}

/* ── Checkout ribbon ── */
.a43-tote-ribbon {
  position: sticky;
  top: 0;
  z-index: 25;
  margin-top: -1rem;
  padding: 0.65rem 0;
  background: rgba(255, 252, 247, 0.88);
  border-bottom: 1px solid rgba(47, 82, 51, 0.1);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(33, 37, 41, 0.06);
}
.a43-tote-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.a43-tote-ribbon-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tote-muted);
  margin-bottom: 0.15rem;
}
.a43-tote-ribbon-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #14301c;
  line-height: 1;
}
.a43-tote-ribbon-copy small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: var(--tote-muted);
}

/* ── Stage ── */
.a43-tote-stage {
  padding-top: 1.25rem;
}

/* Empty state */
.a43-tote-empty {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  background: var(--tote-glass);
  border: 1px dashed rgba(47, 82, 51, 0.18);
  border-radius: 22px;
  backdrop-filter: blur(10px);
}
.a43-tote-empty-scene {
  position: relative;
  width: 180px;
  height: 140px;
  margin: 0 auto 1.5rem;
}
.a43-tote-empty-tote {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(33, 37, 41, 0.12));
}
.a43-tote-empty-fruit {
  position: absolute;
  font-size: 1.65rem;
  animation: a43ToteFloat 3.2s ease-in-out infinite;
}
.a43-tote-empty-fruit--1 { top: 8px; left: 8%; animation-delay: 0s; }
.a43-tote-empty-fruit--2 { top: 0; right: 10%; animation-delay: -1s; }
.a43-tote-empty-fruit--3 { top: 24px; left: 42%; animation-delay: -2s; }
.a43-tote-empty-trail {
  position: absolute;
  bottom: 12px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.45), transparent);
  border-radius: 999px;
}
@keyframes a43ToteFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}
.a43-tote-empty h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #14301c;
}
.a43-tote-empty p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--tote-muted);
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* Form head */
.a43-tote-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}
.a43-tote-head-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b45309;
}
.a43-tote-head h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #14301c;
}
.a43-tote-head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--tote-muted);
}

/* Bento grid */
.a43-tote-grid {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.a43-tote-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(47, 82, 51, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(33, 37, 41, 0.05);
  transition: transform 0.35s var(--tote-ease), box-shadow 0.35s, border-color 0.35s;
  animation: a43ToteCardIn 0.5s var(--tote-ease) both;
  animation-delay: calc(var(--card-i, 0) * 0.06s);
}
@keyframes a43ToteCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.a43-tote-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 160, 23, 0.35);
  box-shadow: 0 18px 44px rgba(26, 51, 32, 0.1);
}

.a43-tote-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1.15;
  background: linear-gradient(165deg, #f8faf7 0%, #eef3ec 100%);
  overflow: hidden;
}
.a43-tote-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.45s var(--tote-ease);
}
.a43-tote-card:hover .a43-tote-card-media img { transform: scale(1.06); }
.a43-tote-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, transparent 50%);
  pointer-events: none;
}
.a43-tote-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
}

.a43-tote-card-body {
  padding: 0.85rem 1rem 0.65rem;
  flex: 1;
}
.a43-tote-card-body h3 {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}
.a43-tote-card-body h3 a {
  color: #101a12;
  text-decoration: none !important;
}
.a43-tote-card-body h3 a:hover { color: #9a3412; }
.a43-tote-card-variant {
  margin: 0 0 0.25rem;
  font-size: 0.76rem;
  color: var(--tote-muted);
}
.a43-tote-card-unit {
  font-size: 0.76rem;
  font-weight: 600;
  color: #9a3412;
}

.a43-tote-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(47, 82, 51, 0.08);
  background: rgba(196, 220, 200, 0.12);
}
.a43-tote-card-total {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #14301c;
  white-space: nowrap;
}

/* Qty stepper */
.a43-tote-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(47, 82, 51, 0.12);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.a43-tote-qty-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--a43-ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.a43-tote-qty-btn:hover { background: var(--a43-cream); color: var(--a43-orange); }
.a43-tote-qty input {
  width: 40px;
  padding: 0.35rem 0;
  border: 0;
  border-left: 1px solid rgba(47, 82, 51, 0.1);
  border-right: 1px solid rgba(47, 82, 51, 0.1);
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}
.a43-tote-qty input::-webkit-outer-spin-button,
.a43-tote-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Bottom deck */
.a43-tote-deck {
  padding: 1.35rem 1.35rem 1.25rem;
  background: linear-gradient(145deg, var(--a43-green-dark) 0%, #2f5233 100%);
  border-radius: 22px;
  color: #fff;
  box-shadow: 0 16px 48px rgba(26, 51, 32, 0.24);
}

.a43-tote-deck-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}
.a43-tote-tile {
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  transition: transform 0.25s var(--tote-ease);
}
.a43-tote-tile:hover { transform: translateY(-2px); }
.a43-tote-tile span {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 0.25rem;
}
.a43-tote-tile strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}
.a43-tote-tile--total {
  background: rgba(212, 160, 23, 0.18);
  border-color: rgba(212, 160, 23, 0.35);
}
.a43-tote-tile--total strong { font-size: 1.2rem; color: var(--a43-gold); }

.a43-tote-deck-meta {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.a43-tote-ship-note {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.88;
}
.a43-tote-ship-note em {
  font-style: normal;
  color: var(--a43-gold);
  font-weight: 700;
}
.a43-tote-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}
.a43-tote-trust li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.a43-tote-deck-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Buttons — beat shared .a43-tote .a43-tote-btn from pages-crudo */
.page-cart-orchard .a43-tote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.68rem 1.2rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none !important;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.page-cart-orchard .a43-tote-btn--primary {
  background: linear-gradient(120deg, #c45a35, #d4a017);
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(224, 122, 47, 0.28);
}
.page-cart-orchard .a43-tote-btn--primary:hover { filter: brightness(1.06); transform: translateY(-2px); }
.page-cart-orchard .a43-tote-deck .a43-tote-btn--primary {
  background: #ffffff;
  color: #14301c !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.page-cart-orchard .a43-tote-deck .a43-tote-btn--primary:hover {
  background: #f0d78a;
  color: #101a12 !important;
}
.page-cart-orchard .a43-tote-btn--ghost {
  background: rgba(20, 48, 28, 0.08);
  color: #14301c !important;
  border: 1px solid rgba(20, 48, 28, 0.22);
}
.page-cart-orchard .a43-tote-btn--ghost:hover { background: rgba(20, 48, 28, 0.14); }
.page-cart-orchard .a43-tote-deck .a43-tote-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35);
}
.page-cart-orchard .a43-tote-deck .a43-tote-btn--ghost:hover { background: rgba(255, 255, 255, 0.22); }
.page-cart-orchard .a43-tote-btn--outline {
  background: transparent;
  color: #101a12 !important;
  border: 1px solid rgba(20, 48, 28, 0.28);
}
.page-cart-orchard .a43-tote-btn--outline:hover { border-color: #9a3412; color: #9a3412 !important; }
.page-cart-orchard .a43-tote-deck .a43-tote-btn--outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff !important;
}
.page-cart-orchard .a43-tote-deck .a43-tote-btn--outline:hover { border-color: #fff; }

.page-cart-orchard .a43-tote-deck {
  color: #f5faf2;
}
.page-cart-orchard .a43-tote-tile span {
  opacity: 0.9;
  color: rgba(245, 250, 242, 0.88);
}
.page-cart-orchard .a43-tote-tile strong {
  color: #ffffff;
}
.page-cart-orchard .a43-tote-tile--total strong {
  color: #f0d78a;
}
.page-cart-orchard .a43-tote-ship-note,
.page-cart-orchard .a43-tote-trust {
  opacity: 1;
  color: rgba(245, 250, 242, 0.92);
}

/* Responsive */
@media (max-width: 960px) {
  .a43-tote-hero-grid { grid-template-columns: 1fr; }
  .a43-tote-gauge { justify-self: start; transform: none; }
  .a43-tote-deck-tiles { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .a43-tote-grid { grid-template-columns: 1fr; }
  .a43-tote-ribbon-inner { flex-direction: column; align-items: stretch; }
  .a43-tote-ribbon .a43-tote-btn--primary { width: 100%; }
  .a43-tote-deck-actions { flex-direction: column; }
  .a43-tote-deck-actions .a43-tote-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .a43-tote-reveal, .a43-tote-card { animation: none !important; opacity: 1; transform: none; transition: none; }
  .a43-tote-blob, .a43-tote-basket-glow, .a43-tote-live-dot, .a43-tote-empty-fruit { animation: none !important; }
  .a43-tote-gauge:hover, .a43-tote-card:hover { transform: none; }
}
