/* HORIZON MATERIALS PRIVATE LIMITED — Grove Tote cart (Neon Grove creative) */

@keyframes a36-tote-spin {
  to { transform: rotate(360deg); }
}
@keyframes a36-tote-glow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}
@keyframes a36-tote-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.page-cart-tote.a36-cart-creative {
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --tote-ink: #0B1320;
  --tote-panel: #121B2E;
  --tote-surface: #F4F0E8;
  --tote-muted: #5C6778;
  --tote-line: rgba(11, 19, 32, 0.1);
  --tote-mint: #4ECDC4;
  --tote-mango: #FF9F1C;
  --tote-berry: #E63946;
  background:
    radial-gradient(circle at 0% 100%, rgba(90, 24, 154, 0.05) 0%, transparent 42%),
    var(--tote-surface);
}

.a36-tote {
  padding: 0 0 3.75rem;
}

/* ── Hero ── */
.a36-tote-hero {
  position: relative;
  padding: 2.5rem 0 2.25rem;
  overflow: hidden;
  background: var(--tote-panel);
  color: #fff;
  margin-bottom: 0.5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.a36-tote-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(78, 205, 196, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 205, 196, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  pointer-events: none;
}

.a36-tote-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 88% 15%, rgba(255, 159, 28, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 45% 45% at 8% 85%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.a36-tote-hero-arch {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tote-mango), var(--tote-mint), var(--tote-berry));
  opacity: 0.85;
  pointer-events: none;
}

.a36-tote-watermark {
  position: absolute;
  top: 0.5rem;
  right: 3%;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: -0.04em;
  pointer-events: none;
}

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

.a36-tote-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tote-mint);
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.22);
}

.a36-tote-kicker::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tote-mango);
  box-shadow: 0 0 8px rgba(255, 159, 28, 0.45);
  animation: a36-tote-glow 2.5s ease-in-out infinite;
}

.a36-tote-hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.a36-tote-hero h1 em {
  font-style: normal;
  color: var(--tote-mango);
  position: relative;
}

.a36-tote-hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.32em;
  background: rgba(255, 159, 28, 0.22);
  z-index: -1;
  transform: skewX(-6deg);
}

.a36-tote-lede {
  margin: 0;
  max-width: 50ch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

.a36-tote-badge {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.a36-tote-badge-ring {
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(78, 205, 196, 0.28);
  animation: a36-tote-spin 22s linear infinite;
  pointer-events: none;
}

.a36-tote-badge-icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.1rem;
}

.a36-tote-badge strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--tote-mango);
  line-height: 1;
}

.a36-tote-badge span:last-child {
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Buttons ── */
.a36-tote-btn {
  display: inline-block;
  padding: 0.62rem 1.1rem;
  border: 0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none !important;
  text-align: center;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s, background 0.2s, border-color 0.2s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.a36-tote-btn--primary {
  background: var(--tote-mango);
  color: var(--tote-ink);
}

.a36-tote-btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.a36-tote-btn--ghost {
  background: rgba(78, 205, 196, 0.12);
  color: var(--tote-ink);
  border: 1px solid rgba(78, 205, 196, 0.28);
}

.a36-tote-btn--ghost:hover {
  background: rgba(78, 205, 196, 0.2);
}

.a36-tote-btn--outline {
  background: transparent;
  color: var(--tote-ink);
  border: 1px solid rgba(11, 19, 32, 0.18);
}

.a36-tote-btn--outline:hover {
  background: rgba(11, 19, 32, 0.04);
  border-color: rgba(11, 19, 32, 0.28);
}

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

.a36-tote-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border: 1px solid var(--tote-line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  box-shadow: 0 20px 50px rgba(11, 19, 32, 0.1);
}

.a36-tote-empty-bag {
  position: relative;
  width: 88px;
  height: 78px;
  margin: 0 auto 1.35rem;
  background: var(--tote-panel);
  border: 1px solid rgba(78, 205, 196, 0.22);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  animation: a36-tote-float 3.5s ease-in-out infinite;
}

.a36-tote-empty-handle {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 28px;
  border: 2px solid var(--tote-mint);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: transparent;
}

.a36-tote-empty h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tote-ink);
}

.a36-tote-empty p {
  margin: 0 0 1.35rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--tote-muted);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── Layout ── */
.a36-tote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(var(--a36-sidebar-min), var(--a36-sidebar-max));
  gap: var(--a36-layout-gap);
  align-items: start;
}

/* Canvas tote body */
.a36-tote-canvas {
  background: #fff;
  border: 1px solid var(--tote-line);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  box-shadow: 0 20px 50px rgba(11, 19, 32, 0.1);
}

.a36-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: var(--tote-ink);
  color: #fff;
  position: relative;
}

.a36-tote-canvas-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tote-mango), var(--tote-mint));
}

.a36-tote-canvas-head h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.a36-tote-canvas-head p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.a36-tote-canvas-code {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--tote-mint);
  padding: 0.3rem 0.55rem;
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.22);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

.a36-tote-pockets {
  list-style: none;
  margin: 0;
  padding: 1rem 1.15rem;
  display: grid;
  gap: 0.75rem;
  background:
    linear-gradient(rgba(78, 205, 196, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 205, 196, 0.03) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* Pocket rows */
.a36-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: var(--tote-surface);
  border: 1px solid var(--tote-line);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.a36-tote-pocket:hover {
  transform: translateX(4px);
  border-color: rgba(78, 205, 196, 0.35);
  box-shadow: 0 8px 24px rgba(11, 19, 32, 0.08);
}

.a36-tote-pocket-stitch {
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3px;
  background: linear-gradient(180deg, var(--tote-mango), var(--tote-mint));
  clip-path: polygon(0 0, 100% 4px, 100% calc(100% - 4px), 0 100%);
}

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

.a36-tote-pocket-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tote-line);
  display: grid;
  place-items: center;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: border-color 0.2s;
}

.a36-tote-pocket:hover .a36-tote-pocket-thumb {
  border-color: rgba(255, 159, 28, 0.35);
}

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

.a36-tote-pocket-placeholder {
  font-size: 1.75rem;
  opacity: 0.35;
}

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

.a36-tote-pocket-info h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

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

.a36-tote-pocket-info h3 a:hover {
  color: var(--tote-mango);
}

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

.a36-tote-pocket-unit {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tote-mint);
}

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

.a36-tote-qty {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--tote-line);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.a36-tote-qty-btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tote-ink);
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.a36-tote-qty-btn:hover {
  background: rgba(255, 159, 28, 0.15);
  color: var(--tote-mango);
}

.a36-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;
}

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

.a36-tote-pocket-total {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tote-mango);
}

.a36-tote-canvas-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.35rem 1.25rem;
  background: rgba(11, 19, 32, 0.02);
  border-top: 1px solid var(--tote-line);
}

/* Hang tag summary */
.a36-tote-tag {
  position: sticky;
  top: 90px;
}

.a36-tote-tag-hole {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--tote-surface);
  border: 2px solid rgba(78, 205, 196, 0.35);
  z-index: 2;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.a36-tote-tag-string {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 26px;
  background: linear-gradient(180deg, var(--tote-mint), rgba(78, 205, 196, 0.3));
  z-index: 1;
}

.a36-tote-tag-body {
  padding: 1.75rem 1.35rem 1.35rem;
  background: var(--tote-panel);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(78, 205, 196, 0.12);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: 0 16px 40px rgba(11, 19, 32, 0.22);
}

.a36-tote-tag-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tote-mango), var(--tote-mint), var(--tote-berry));
}

.a36-tote-tag-kicker {
  margin: 0.35rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tote-mango);
}

.a36-tote-tag-body h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

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

.a36-tote-tag-rows div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.84rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.a36-tote-tag-rows dt {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.a36-tote-tag-rows dd {
  margin: 0;
  font-weight: 700;
  color: #fff;
}

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

.a36-tote-tag-total span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.a36-tote-tag-total strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--tote-mango);
}

.a36-tote-ship-note {
  margin: 0 0 1rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

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

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

.a36-tote-tag-actions .a36-tote-btn--primary {
  width: 100%;
}

.a36-tote-tag-actions .a36-tote-btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.a36-tote-tag-actions .a36-tote-btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .a36-tote-hero {
    clip-path: none;
  }

  .a36-tote-hero-inner {
    grid-template-columns: 1fr;
  }

  .a36-tote-badge {
    justify-self: start;
  }

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

  .a36-tote-tag {
    position: static;
    order: -1;
  }

  .a36-tote-tag-body {
    clip-path: none;
  }

  .a36-tote-canvas {
    clip-path: none;
  }

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

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

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

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

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

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

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

  .a36-tote-watermark {
    display: none;
  }

  .a36-tote-empty {
    clip-path: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a36-tote-kicker::before,
  .a36-tote-badge-ring,
  .a36-tote-empty-bag {
    animation: none;
  }
}
