/* Appily Thirtyfour — Grove Tote cart (unique canvas pocket + hang-tag layout) */

.page-cart-tote {
  --tote-cream: #FEF7ED;
  --tote-warm: #FFF9F3;
  --tote-canvas: #F5F0E6;
  --tote-ink: #2C2416;
  --tote-muted: #6B5E52;
  --tote-line: #E8DFD4;
  --tote-stitch: #C4B5A5;
  --tote-terra: #C84B31;
  --tote-olive: #5A7247;
  --tote-sage: #52796F;
  --tote-gold: #D4A017;
  background: var(--tote-warm);
}

.a34-tote {
  padding: 0 0 3.5rem;
}

/* ── Hero ── */
.a34-tote-hero {
  position: relative;
  padding: 2.25rem 0 2rem;
  overflow: hidden;
}

.a34-tote-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(200, 75, 49, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, var(--tote-cream) 0%, var(--tote-warm) 100%);
  pointer-events: none;
}

.a34-tote-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.a34-tote-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tote-olive);
}

.a34-tote-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--tote-ink);
}

.a34-tote-hero h1 em {
  font-style: italic;
  color: var(--tote-terra);
}

.a34-tote-lede {
  margin: 0;
  max-width: 50ch;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--tote-muted);
}

.a34-tote-badge {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: #fff;
  border: 2px solid var(--tote-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 28px rgba(44, 36, 22, 0.08);
  transform: rotate(3deg);
}

.a34-tote-badge-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.a34-tote-badge strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--tote-terra);
  line-height: 1;
}

.a34-tote-badge 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);
}

/* ── Empty state ── */
.a34-tote-stage {
  padding-top: 1.5rem;
}

.a34-tote-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border: 2px dashed var(--tote-line);
  border-radius: 20px;
}

.a34-tote-empty-bag {
  position: relative;
  width: 100px;
  height: 90px;
  margin: 0 auto 1.25rem;
  background: var(--tote-canvas);
  border: 2px dashed var(--tote-stitch);
  border-radius: 0 0 16px 16px;
}

.a34-tote-empty-handle {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 32px;
  border: 3px solid var(--tote-stitch);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: transparent;
}

.a34-tote-empty h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--tote-ink);
}

.a34-tote-empty p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--tote-muted);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.a34-tote-empty .btn {
  border-radius: 999px;
  font-weight: 700;
}

/* ── Layout ── */
.a34-tote-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: 1.75rem;
  align-items: start;
}

/* Canvas tote body */
.a34-tote-canvas {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 11px,
      rgba(196, 181, 165, 0.15) 11px,
      rgba(196, 181, 165, 0.15) 12px
    ),
    var(--tote-canvas);
  border-radius: 20px;
  border: 2px solid var(--tote-stitch);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    0 12px 36px rgba(44, 36, 22, 0.08);
  overflow: hidden;
}

.a34-tote-canvas-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 2px dashed var(--tote-stitch);
}

.a34-tote-canvas-head h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--tote-ink);
}

.a34-tote-canvas-head p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--tote-muted);
}

.a34-tote-canvas-code {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--tote-olive);
  padding: 0.3rem 0.55rem;
  background: rgba(90, 114, 71, 0.1);
  border-radius: 6px;
}

.a34-tote-pockets {
  list-style: none;
  margin: 0;
  padding: 1rem 1.15rem;
  display: grid;
  gap: 0.85rem;
}

/* Pocket rows */
.a34-tote-pocket {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 1rem 1.1rem 1rem 2.5rem;
  background: #fff;
  border-radius: 14px;
  border: 2px dashed var(--tote-stitch);
  box-shadow: 0 4px 14px rgba(44, 36, 22, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.a34-tote-pocket:hover {
  border-color: var(--tote-olive);
  box-shadow: 0 8px 22px rgba(44, 36, 22, 0.08);
}

.a34-tote-pocket-stitch {
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  background: repeating-linear-gradient(
    180deg,
    var(--tote-terra) 0,
    var(--tote-terra) 6px,
    transparent 6px,
    transparent 10px
  );
  border-radius: 2px;
}

.a34-tote-pocket-num {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--tote-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: translateY(-50%) rotate(180deg);
}

.a34-tote-pocket-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tote-warm);
  border: 2px solid var(--tote-line);
  display: grid;
  place-items: center;
}

.a34-tote-pocket-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.a34-tote-pocket-placeholder {
  font-size: 1.75rem;
  opacity: 0.4;
}

.a34-tote-pocket-info {
  min-width: 0;
}

.a34-tote-pocket-info h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.a34-tote-pocket-info h3 a {
  color: var(--tote-ink);
  text-decoration: none;
}

.a34-tote-pocket-info h3 a:hover {
  color: var(--tote-terra);
  text-decoration: underline;
}

.a34-tote-pocket-meta {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  color: var(--tote-muted);
}

.a34-tote-pocket-unit {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tote-olive);
}

.a34-tote-pocket-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.a34-tote-qty {
  display: inline-flex;
  align-items: center;
  background: var(--tote-warm);
  border: 1px solid var(--tote-line);
  border-radius: 999px;
  overflow: hidden;
}

.a34-tote-qty-btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tote-olive);
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s;
}

.a34-tote-qty-btn:hover {
  background: rgba(90, 114, 71, 0.12);
}

.a34-tote-qty input {
  width: 2.5rem;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tote-ink);
  -moz-appearance: textfield;
}

.a34-tote-qty input::-webkit-outer-spin-button,
.a34-tote-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.a34-tote-pocket-total {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tote-terra);
}

.a34-tote-canvas-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.35rem 1.25rem;
  background: rgba(255, 255, 255, 0.5);
  border-top: 2px dashed var(--tote-stitch);
}

.a34-tote-canvas-foot .btn {
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}

/* Hang tag summary */
.a34-tote-tag {
  position: sticky;
  top: 90px;
  transform: rotate(-2deg);
  filter: drop-shadow(0 12px 28px rgba(44, 36, 22, 0.12));
}

.a34-tote-tag-hole {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tote-warm);
  border: 2px solid var(--tote-stitch);
  z-index: 2;
}

.a34-tote-tag-string {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 28px;
  background: var(--tote-stitch);
  z-index: 1;
}

.a34-tote-tag-body {
  padding: 1.75rem 1.35rem 1.35rem;
  background: #fff;
  border: 2px solid var(--tote-line);
  border-radius: 4px 4px 12px 12px;
  position: relative;
}

.a34-tote-tag-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--tote-terra);
  border-radius: 2px 2px 0 0;
}

.a34-tote-tag-kicker {
  margin: 0.35rem 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tote-olive);
}

.a34-tote-tag-body h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tote-ink);
}

.a34-tote-tag-rows {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.5rem;
}

.a34-tote-tag-rows div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dotted var(--tote-line);
}

.a34-tote-tag-rows dt {
  color: var(--tote-muted);
  font-weight: 600;
}

.a34-tote-tag-rows dd {
  margin: 0;
  font-weight: 700;
  color: var(--tote-ink);
}

.a34-tote-tag-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  margin-bottom: 0.75rem;
  border-top: 2px solid var(--tote-ink);
  border-bottom: 2px solid var(--tote-ink);
}

.a34-tote-tag-total span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tote-muted);
}

.a34-tote-tag-total strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--tote-terra);
}

.a34-tote-ship-note {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--tote-muted);
}

.a34-tote-ship-note em {
  font-style: normal;
  font-weight: 700;
  color: var(--tote-olive);
}

.a34-tote-tag-actions {
  display: grid;
  gap: 0.5rem;
}

.a34-tote-tag-actions .btn {
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .a34-tote-hero-inner {
    grid-template-columns: 1fr;
  }

  .a34-tote-badge {
    justify-self: start;
    transform: none;
  }

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

  .a34-tote-tag {
    position: static;
    transform: none;
    order: -1;
  }

  .a34-tote-pocket {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    padding-left: 1.1rem;
  }

  .a34-tote-pocket-num,
  .a34-tote-pocket-stitch {
    display: none;
  }

  .a34-tote-pocket-thumb {
    grid-row: span 2;
  }

  .a34-tote-pocket-actions {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .a34-tote-pocket {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .a34-tote-pocket-thumb {
    margin: 0 auto;
    grid-row: auto;
  }

  .a34-tote-pocket-actions {
    grid-column: 1;
    flex-direction: column;
    align-items: center;
  }
}
