@layer components {
  /* ── Hero ─────────────────────────────────────────── */
  .hero {
    color: white;
    padding: var(--space-lg) var(--main-padding) var(--space-lg);
    margin: calc(-1 * var(--space-md)) calc(-1 * var(--main-padding)) 0;
    position: relative;
    overflow: hidden;
  }

  .hero__content {
    max-width: var(--max-width);
    margin-inline: auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);

    @media (min-width: 1024px) {
      grid-template-columns: 1fr 1fr;
      align-items: center;
    }
  }

  .hero__left {
    display: flex;
    flex-direction: column;
  }

  .hero__eyebrow {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent-border);
    margin-bottom: var(--space-sm);
    animation: hero-fade-up 400ms var(--ease-out) 50ms both;
  }

  .hero__logo {
    height: clamp(56px, 9vw, 80px);
    width: auto;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 4px 12px oklch(0% 0 0 / 0.3));
    margin-bottom: var(--space-sm);
    animation: hero-logo-in 650ms var(--ease-out) 100ms both;
  }

  @keyframes hero-logo-in {
    from { opacity: 0; transform: scale(0.86) translateY(-8px); }
  }

  .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-sm);
    line-height: 0.92;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    text-shadow: 0 4px 24px oklch(0% 0 0 / 0.7);
    animation: hero-h1-stamp 750ms var(--ease-out) 280ms both;
  }

  @keyframes hero-h1-stamp {
    from { opacity: 0; transform: translateY(10px); letter-spacing: 0.18em; }
    to   { opacity: 1; transform: translateY(0);    letter-spacing: 0.005em; }
  }

  .hero__left > p {
    font-size: var(--text-normal);
    color: white;
    text-shadow: 0 2px 8px oklch(0% 0 0 / 0.5);
    margin-bottom: var(--space-sm);
    max-width: 32rem;
    line-height: var(--leading-relaxed);
    animation: hero-fade-up 400ms var(--ease-out) 520ms both;
  }

  .hero__actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
    animation: hero-fade-up 400ms var(--ease-out) 680ms both;
  }

  .hero__trust {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-xs);
    animation: hero-fade-up 400ms var(--ease-out) 800ms both;
  }

  .hero__trust-item {
    font-size: var(--text-xs);
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.3ch;
  }

  /* ── Hero right — visual do álbum ── */
  .hero__right {
    display: none;

    @media (min-width: 1024px) {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      height: 260px;
    }
  }

  .hero__album {
    position: absolute;
  }

  .hero__album--main {
    height: 220px;
    width: auto;
    transform: rotate(-6deg) translateX(-20px);
    filter: drop-shadow(0 24px 48px oklch(0% 0 0 / 0.6));
    z-index: 2;
    animation: hero-album-in 700ms var(--ease-out) 300ms both;
  }

  .hero__album--pack {
    height: 130px;
    width: auto;
    transform: rotate(10deg) translateX(80px) translateY(30px);
    filter: drop-shadow(0 12px 24px oklch(0% 0 0 / 0.5));
    z-index: 1;
    animation: hero-album-in 700ms var(--ease-out) 450ms both;
  }

  @keyframes hero-album-in {
    from { opacity: 0; transform: rotate(-6deg) translateX(-20px) scale(0.8); }
  }

  @keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(8px); }
  }

  .hero__btn-primary {
    background: linear-gradient(180deg, #33cc66 0%, #1a8f45 100%);
    color: white;
    font-weight: 800;
    padding: 0.75em 1.8em;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px oklch(55% 0.2 145 / 0.4);
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) ease,
                filter var(--duration-fast) ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;

    @media (any-hover: hover) {
      &:hover {
        transform: translateY(-2px);
        filter: brightness(1.08);
        box-shadow: 0 14px 36px oklch(55% 0.2 145 / 0.5);
      }
    }

    &:active { transform: scale(0.97); }
  }

  .hero__btn-secondary {
    background: oklch(100% 0 0 / 0.12);
    color: white;
    border: 1.5px solid oklch(100% 0 0 / 0.3);
    font-weight: 800;
    font-size: var(--text-normal);
    padding: 0.75em 1.8em;
    border-radius: var(--radius-pill);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    transition: background var(--duration-fast) ease,
                border-color var(--duration-fast) ease;

    @media (any-hover: hover) {
      &:hover {
        background: oklch(100% 0 0 / 0.2);
        border-color: oklch(100% 0 0 / 0.5);
      }
    }
  }

  .hero__notice {
    display: inline-flex;
    align-items: center;
    gap: 0.5ch;
    background: oklch(100% 0 0 / 0.12);
    color: oklch(100% 0 0 / 0.85);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: var(--leading-normal);

    & strong { color: white; }
  }

  /* ── Social proof bar ───────────────────────────── */
  .social-proof {
    background: linear-gradient(160deg,
      var(--color-navy, #0D1B3E) 0%,
      oklch(18% 0.04 260) 60%,
      var(--color-navy-dark, #070F24) 100%);
    padding: var(--space-lg) var(--main-padding);
    border-radius: var(--radius-lg);
    margin: var(--space-md) 0;
    box-shadow: 0 8px 32px oklch(0% 0 0 / 0.25);
    overflow: hidden;
  }

  .social-proof__inner {
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(var(--space-lg), 5vw, var(--space-3xl));
    flex-wrap: wrap;
  }

  .social-proof__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: white;

    & strong {
      display: block;
      font-weight: 800;
      font-size: var(--text-normal);
      color: var(--color-accent-border);
      line-height: 1.1;
    }

    & span {
      font-size: var(--text-xs);
      color: white;
      font-weight: 600;
      line-height: 1.1;
    }
  }

  .social-proof__icon {
    font-size: 1.5rem;
    line-height: 1;
  }

  /* ── Product grid ────────────────────────────────── */
  .product-grid {
    display: flex;
    overflow-x: auto;
    gap: var(--space-sm);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-xs);

    &::-webkit-scrollbar { display: none; }

    @media (min-width: 768px) {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
      gap: var(--space-sm);
      overflow: visible;
    }

    @media (min-width: 1100px) {
      grid-template-columns: repeat(7, 1fr);
      gap: var(--space-sm);
    }
  }

  @keyframes product-card-in {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
  }

  .product-card {
    --_accent: var(--color-primary);
    --_accent-light: var(--color-primary-light);
    --_accent-border: var(--color-primary);

    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 9rem;
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--color-ink-border);
    background: var(--color-canvas);
    overflow: hidden;
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) ease;
    animation: product-card-in 400ms var(--ease-out) both;
    animation-delay: calc(var(--_i, 0) * 80ms);

    &:nth-child(1) { --_i: 0; }
    &:nth-child(2) { --_i: 1; }
    &:nth-child(3) { --_i: 2; }

    @media (min-width: 768px) {
      width: auto;
    }

    @media (any-hover: hover) {
      &:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px oklch(0% 0 0 / 0.1);
        border-color: var(--_accent-border);
      }
    }
  }

  .product-card--hardcover {
    --_accent: var(--color-info);
    --_accent-light: var(--color-info-light);
    --_accent-border: var(--color-info-border);
  }

  .product-card--softcover {
    --_accent: var(--color-primary);
    --_accent-light: var(--color-primary-light);
    --_accent-border: var(--color-primary);
  }

  .product-card--cover {
    --_accent: #5B7FA6;
    --_accent-light: #EBF1F8;
    --_accent-border: #5B7FA6;
  }

  .product-card--softcover_bundle {
    --_accent: var(--color-primary);
    --_accent-light: var(--color-primary-light);
    --_accent-border: var(--color-primary);
  }

  .product-card--pack {
    --_accent: var(--color-accent);
    --_accent-light: var(--color-accent-light);
    --_accent-border: var(--color-accent-border);
  }

  .product-card--other {
    --_accent: var(--color-ink-secondary);
    --_accent-light: var(--color-canvas-alt);
    --_accent-border: var(--color-ink-border);
  }

  .product-card__showcase {
    background: var(--_accent-light);
    aspect-ratio: 9 / 11;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .product-card__img {
    max-width: calc(100% - var(--space-md) * 2);
    max-height: calc(100% - var(--space-md) * 2);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
  }

  @keyframes product-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
  }

  .product-card__icon {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    line-height: 1;
    filter: drop-shadow(0 2px 4px oklch(0% 0 0 / 0.1));
    animation: product-float 3s ease-in-out infinite;
    animation-delay: calc(var(--_i, 0) * 400ms);
  }

  .product-card__details {
    padding: var(--space-sm) var(--space-md);
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .product-card__name {
    font-size: var(--text-small);
    font-weight: 700;
    color: var(--color-ink);
    line-height: var(--leading-tight);
    min-height: calc(var(--text-small) * var(--leading-tight) * 2);
    display: flex;
    align-items: center;
  }

  .product-card__price {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--text-large);
    font-weight: 900;
    color: var(--_accent);
    letter-spacing: -0.03em;
  }

  .product-card__buy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--_accent);
    color: white;
    border: none;
    font-size: var(--text-small);
    font-weight: 800;
    cursor: pointer;
    transition: filter var(--duration-fast) ease;
    min-height: 44px;

    @media (any-hover: hover) {
      &:hover { filter: brightness(1.1); }
    }

    &:active {
      filter: brightness(0.95);
      transition-duration: 50ms;
    }
  }

  /* ── Vendor grid ──────────────────────────────────── */
  .vendor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);

    @media (min-width: 640px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (min-width: 1280px) {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .vendor-card {
    --_vendor-color: var(--color-primary);

    animation: vendor-card-deal 450ms var(--ease-out) both;
    animation-delay: calc(950ms + var(--_i, 0) * 70ms);

    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 9rem;
    color: white;
    background: linear-gradient(135deg,
      var(--_vendor-color) 0%,
      color-mix(in oklch, var(--_vendor-color) 65%, black) 100%);
    box-shadow: 0 8px 24px oklch(0% 0 0 / 0.18);
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) ease;

    /* Halftone diagonal stripes */
    &::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: repeating-linear-gradient(
        45deg,
        transparent 0 16px,
        oklch(100% 0 0 / 0.04) 16px 17px
      );
      pointer-events: none;
    }

    /* Diagonal accent slice on the right */
    &::after {
      content: "";
      position: absolute;
      top: 0; right: 0; bottom: 0;
      width: 38%;
      background: oklch(100% 0 0 / 0.08);
      clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%);
      pointer-events: none;
    }

    @media (any-hover: hover) {
      &:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px oklch(0% 0 0 / 0.25);

        & .vendor-card__cta { gap: 0.7ch; }
      }
    }
  }

  @keyframes vendor-card-deal {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
  }

  /* Stagger via :nth-child (até 8 cards visíveis no first paint) */
  .vendor-card:nth-child(1) { --_i: 0; }
  .vendor-card:nth-child(2) { --_i: 1; }
  .vendor-card:nth-child(3) { --_i: 2; }
  .vendor-card:nth-child(4) { --_i: 3; }
  .vendor-card:nth-child(5) { --_i: 4; }
  .vendor-card:nth-child(6) { --_i: 5; }
  .vendor-card:nth-child(7) { --_i: 6; }
  .vendor-card:nth-child(n+8) { --_i: 7; }

  .vendor-card__header {
    padding: var(--space-md) var(--space-lg);
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
  }

  .vendor-card__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: oklch(0% 0 0 / 0.3);
    color: white;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    border: 1.5px solid oklch(100% 0 0 / 0.25);
    flex-shrink: 0;
    backdrop-filter: blur(8px);
  }

  .vendor-card__info {
    flex: 1;
    min-width: 0;
  }

  .vendor-card__name {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    line-height: 1.1;
    text-shadow: 0 2px 12px oklch(0% 0 0 / 0.3);
  }

  .vendor-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
  }

  .vendor-card__stars {
    color: white;
    font-weight: 700;
    font-size: var(--text-small);
  }

  .vendor-card__sales {
    color: oklch(100% 0 0 / 0.8);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .vendor-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    background: oklch(100% 0 0 / 0.97);
    color: var(--color-ink);
    position: relative;
    z-index: 1;
    font-size: var(--text-small);
    border-top: 2px solid oklch(0% 0 0 / 0.08);
  }

  .vendor-card__price-hint {
    font-size: var(--text-small);
    color: var(--color-ink);
    font-weight: 700;
  }

  .vendor-card__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-small);
    font-weight: 800;
    color: var(--_vendor-color);
    white-space: nowrap;
    transition: gap var(--duration-fast) var(--ease-out);
  }

  /* ── Sticker search + filters ──────────────────────── */
  .sticker-filters {
    padding-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .sticker-filters__search { margin: 0; }

  .sticker-search__input {
    width: 100%;
    padding: 0.72em 0.9em 0.72em 2.7em;
    border: 1.5px solid var(--color-ink-border);
    border-radius: var(--radius-md);
    font-size: var(--text-normal);
    font-weight: 600;
    color: var(--color-navy);
    background: var(--color-canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%230D1B3E' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 0.85em center;
    transition: border-color var(--duration-fast) ease,
                box-shadow var(--duration-fast) ease;
    min-height: 44px;

    &:focus {
      outline: none;
      border-color: var(--color-primary);
      box-shadow: 0 0 0 3px var(--color-focus-ring);
    }

    &::placeholder { color: var(--color-ink-badge); font-weight: 500; }

    &::-webkit-search-cancel-button { cursor: pointer; }
  }

  /* ── Sticker frame — keeps page height stable even when empty ── */
  .sticker-frame {
    min-height: 65dvh;
  }

  /* ── Sticker list grid ───────────────────────────── */
  .sticker-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;

    @media (min-width: 480px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (min-width: 768px) {
      grid-template-columns: repeat(3, 1fr);
      gap: 0.5rem;
    }
  }

  /* ── Category tabs ────────────────────────────────── */
  .category-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: var(--space-sm) 0 var(--space-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    &::-webkit-scrollbar { display: none; }
  }

  .category-tabs__row {
    display: contents;
  }

  .category-tabs__row--standard {
    & .tab__name {
      font-size: var(--text-small);
      letter-spacing: 0.02em;
      text-align: center;
    }

    & .tab__price {
      font-size: var(--text-xs);
    }
  }

  .category-tabs__row--custom {}

  .tab {
    --tab-accent: var(--color-navy);

    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.4em 0.95em;
    border-radius: var(--radius-md);
    background: var(--color-canvas);
    border: 1.5px solid color-mix(in oklch, var(--tab-accent) 45%, var(--color-ink-border));
    color: var(--tab-accent);
    transition: border-color var(--duration-fast) ease,
                background var(--duration-fast) ease,
                box-shadow var(--duration-fast) ease,
                transform var(--duration-fast) ease;
    cursor: pointer;
    flex-shrink: 0;
    min-height: auto;

    @media (any-hover: hover) {
      &:hover {
        border-color: var(--tab-accent);
        background: color-mix(in oklch, var(--tab-accent) 8%, var(--color-canvas));
      }
    }
  }

  .tab__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-small);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.1;

    @media (min-width: 1024px) {
      font-size: var(--text-normal);
    }
  }

  .tab__price {
    font-weight: 800;
    font-size: var(--text-xs);
    line-height: 1.1;
    margin-top: 0.15em;
    color: currentColor;
    font-variant-numeric: tabular-nums;
  }

  /* ── Cor por categoria (sempre visível, alinhada com matrix) ── */
  .tab--shield   { --tab-accent: var(--color-info); }
  .tab--stadium  { --tab-accent: var(--color-primary); }
  .tab--star     { --tab-accent: var(--color-star); }
  .tab--profile  { --tab-accent: var(--color-accent-text-dark); }
  .tab--shiny    { --tab-accent: oklch(45% 0.14 75); }
  .tab--coca     { --tab-accent: #C8161F; }
  .tab--bronze   { --tab-accent: #8B4513; }
  .tab--prata    { --tab-accent: #4B4E55; }
  .tab--ouro     { --tab-accent: #B8860B; }
  .tab--regular  { --tab-accent: #2D3140; }

  /* Tab de seleção nacional — faixas exatas das cores do time (hard stops) */
  .tab--team {
    background: var(--team-bg);
    border-color: var(--team-c1);
    color: white;
    text-shadow: 0 1px 3px oklch(0% 0 0 / 0.5),
                 -1px -1px 0 #000,  1px -1px 0 #000,
                 -1px  1px 0 #000,  1px  1px 0 #000;
  }

  .tab--team.tab--active {
    border-width: 2px;
    border-color: var(--team-c2, var(--team-c1));
    font-weight: 800;
    box-shadow: 0 4px 16px color-mix(in oklch, var(--team-c1) 45%, transparent),
                inset 0 -3px 0 var(--team-c2, var(--team-c1));
    filter: brightness(1.06);
  }

  /* Active genérico — tinted bg + borda cheia + glow */
  .tab--active {
    background: color-mix(in oklch, var(--tab-accent) 15%, var(--color-canvas));
    border-color: var(--tab-accent);
    box-shadow: 0 2px 10px color-mix(in oklch, var(--tab-accent) 30%, transparent);
  }

  /* Legends ativas — gradientes metálicos cheios da matrix */
  .tab--bronze.tab--active {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    border-color: #6B3410;
    color: white;
    box-shadow: 0 3px 12px oklch(0% 0 0 / 0.3);
  }

  .tab--prata.tab--active {
    background: linear-gradient(135deg, #C0C0C0, #6E7178);
    border-color: #4B4E55;
    color: white;
    box-shadow: 0 3px 12px oklch(0% 0 0 / 0.3);
  }

  .tab--ouro.tab--active {
    background: linear-gradient(135deg, #FFD700, #B8860B);
    border-color: #7A5A0A;
    color: #4A3508;
    text-shadow: 0 1px 1px oklch(100% 0 0 / 0.4);
    box-shadow: 0 3px 12px color-mix(in oklch, #B8860B 40%, transparent);
  }

  .tab--regular.tab--active {
    background: linear-gradient(135deg, #5C5F6B, #2D3140);
    border-color: #1A1D26;
    color: white;
    box-shadow: 0 3px 12px oklch(0% 0 0 / 0.3);
  }

  /* ── Vendor banner (show page) ────────────────────── */
  .vendor-banner {
    background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 50%, var(--color-primary-dark) 100%);
    color: white;
    padding: var(--space-md) var(--main-padding) var(--space-xl);
    margin: calc(-1 * var(--space-md)) calc(-1 * var(--main-padding)) 0;
    position: relative;
    overflow: hidden;

    @media (min-width: 1024px) {
      padding: var(--space-lg) var(--main-padding) var(--space-2xl);
    }

    /* Halftone diagonal stripes */
    &::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: repeating-linear-gradient(
        45deg,
        transparent 0 16px,
        oklch(100% 0 0 / 0.025) 16px 17px
      );
      pointer-events: none;
    }

    /* Geometric clip-path accent right */
    &::after {
      content: "";
      position: absolute;
      top: 0; right: 0; bottom: 0;
      width: 32%;
      background: linear-gradient(135deg, transparent 0%, color-mix(in oklch, var(--color-primary) 35%, transparent) 100%);
      clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%);
      pointer-events: none;
    }
  }

  .vendor-banner__back {
    color: oklch(100% 0 0 / 0.7);
    font-weight: 600;
    font-size: var(--text-small);
    margin-bottom: var(--space-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.3ch;
    min-height: auto;
    transition: color var(--duration-fast) ease;

    @media (any-hover: hover) {
      &:hover { color: white; }
    }
  }

  .vendor-banner__content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin-inline: auto;

    & h1 {
      font-family: var(--font-display);
      color: white;
      font-size: clamp(2rem, 7vw, 3.5rem);
      font-weight: 800;
      margin-bottom: 0.1em;
      letter-spacing: 0.005em;
      line-height: 0.95;
      text-transform: uppercase;
      text-shadow: 0 4px 16px oklch(0% 0 0 / 0.3);
    }
  }

  .vendor-header__avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    border: 3px solid oklch(100% 0 0 / 0.4);
    box-shadow: 0 4px 20px oklch(0% 0 0 / 0.3);

    @media (min-width: 1024px) {
      width: 5rem;
      height: 5rem;
      font-size: 2rem;
    }
  }

  .vendor-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
    flex-wrap: wrap;
  }

  .vendor-meta--light {
    color: oklch(100% 0 0 / 0.8);
    font-size: var(--text-small);

    & .vendor-card__stars {
      color: var(--color-accent-border);
      font-weight: 800;
    }

    & .badge {
      background: oklch(100% 0 0 / 0.12);
      color: white;
      border-color: transparent;
      font-weight: 700;
    }
  }

  /* ── Vendor layout ──────────────────────────────────── */
  .vendor-layout {
    width: 100%;
  }

  /* ── Storefront entrance animations ──────────────
     Coreografia: banner desce → avatar estampa → nome revela
     (letterspacing colapsa) → meta sobe → filtros entram. */
  .vendor-banner {
    animation: store-banner-in 500ms var(--ease-out) both;
  }

  @keyframes store-banner-in {
    from { opacity: 0; transform: translateY(-12px); }
  }

  .vendor-banner__back {
    animation: vendor-back-in 400ms var(--ease-out) 150ms both;
  }

  @keyframes vendor-back-in {
    from { opacity: 0; transform: translateX(-8px); }
  }

  .vendor-header__avatar {
    animation: vendor-avatar-stamp 600ms var(--ease-out) 200ms both;
  }

  @keyframes vendor-avatar-stamp {
    0%   { opacity: 0; transform: scale(0.4) rotate(-14deg); }
    60%  { opacity: 1; transform: scale(1.1) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
  }

  .vendor-banner__content h1 {
    animation: vendor-name-stamp 700ms var(--ease-out) 350ms both;
  }

  @keyframes vendor-name-stamp {
    from { opacity: 0; transform: translateY(8px); letter-spacing: 0.16em; }
    to   { opacity: 1; transform: translateY(0);   letter-spacing: 0.005em; }
  }

  .vendor-meta {
    animation: vendor-meta-in 400ms var(--ease-out) 500ms both;
  }

  @keyframes vendor-meta-in {
    from { opacity: 0; transform: translateY(6px); }
  }

  .sticker-filters {
    animation: panel-fade-in 400ms var(--ease-out) 700ms both;
  }

  .sticker-item {
    animation: store-item-in 300ms var(--ease-out) both;
  }

  .sticker-item--album,
  .sticker-item--coca-cola {
    grid-column: 1 / -1;
  }

  .sticker-list > :nth-child(1) { animation-delay: 80ms; }
  .sticker-list > :nth-child(2) { animation-delay: 120ms; }
  .sticker-list > :nth-child(3) { animation-delay: 160ms; }
  .sticker-list > :nth-child(4) { animation-delay: 200ms; }
  .sticker-list > :nth-child(5) { animation-delay: 240ms; }
  .sticker-list > :nth-child(6) { animation-delay: 280ms; }
  .sticker-list > :nth-child(n+7) { animation-delay: 320ms; }

  @keyframes store-item-in {
    from { opacity: 0; transform: translateY(8px); }
  }

  /* Empty state */
  .sticker-empty {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-canvas);
    border: 1.5px dashed var(--color-ink-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px oklch(0% 0 0 / 0.08);
    margin: var(--space-md) 0;
    animation: panel-fade-in 400ms var(--ease-out) both;

    & p:first-of-type {
      font-family: var(--font-display);
      font-size: var(--text-large);
      font-weight: 800;
      color: var(--color-navy);
      margin: 0 0 var(--space-xs);
    }

    & p.txt-subtle {
      color: var(--color-ink-secondary);
      margin: 0;
    }
  }

  .sticker-empty__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--space-sm);
    animation: empty-float 3s ease-in-out infinite;
  }

  @keyframes empty-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  .sticker-list__loading {
    text-align: center;
    padding: var(--space-lg);
    color: var(--color-ink-secondary);
    font-size: var(--text-small);
  }

  /* Paginação scoreboard — navy gradient + halftone, número da página
     atual destacado em accent, demais como chips clicáveis. */
  .sticker-pagination {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-xl) 0 var(--space-md);
    padding: var(--space-md) clamp(var(--space-md), 4vw, var(--space-xl));
    background: linear-gradient(135deg,
      var(--color-navy, #0D1B3E) 0%,
      var(--color-navy-dark, #070F24) 100%);
    color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 10px 28px oklch(0% 0 0 / 0.22);

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: repeating-linear-gradient(
        45deg,
        transparent 0 14px,
        oklch(100% 0 0 / 0.04) 14px 15px
      );
      pointer-events: none;
      z-index: 0;
    }

    & > * { position: relative; z-index: 1; }
  }

  .sticker-pagination__meta {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: oklch(100% 0 0 / 0.55);
    font-variant-numeric: tabular-nums;

    & strong {
      color: white;
      font-weight: 800;
    }
  }

  .sticker-pagination__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .sticker-pagination__pages {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.3rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sticker-pagination__num,
  .sticker-pagination__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.6rem;
    background: oklch(100% 0 0 / 0.08);
    border: 1.5px solid oklch(100% 0 0 / 0.18);
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font-display, "Big Shoulders Display", Arial, sans-serif);
    font-weight: 800;
    font-size: var(--text-normal, 1rem);
    letter-spacing: -0.005em;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    cursor: pointer;
    transition: background 140ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
                border-color 140ms ease,
                transform 140ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
                color 140ms ease;

    @media (any-hover: hover) {
      &:hover {
        background: oklch(100% 0 0 / 0.18);
        border-color: white;
        transform: translateY(-1px);
      }
    }
  }

  .sticker-pagination__nav {
    font-size: 1.15rem;
    min-width: 2.75rem;
  }

  .sticker-pagination__num--current {
    background: linear-gradient(135deg,
      var(--color-accent, #BA7517),
      color-mix(in oklch, var(--color-accent, #BA7517) 65%, black));
    border-color: var(--color-accent, #BA7517);
    color: white;
    box-shadow: 0 6px 16px oklch(60% 0.15 50 / 0.45),
                inset 0 1px 0 oklch(100% 0 0 / 0.25);
    cursor: default;
    transform: scale(1.08);

    @media (any-hover: hover) {
      &:hover {
        background: linear-gradient(135deg,
          var(--color-accent, #BA7517),
          color-mix(in oklch, var(--color-accent, #BA7517) 65%, black));
        border-color: var(--color-accent, #BA7517);
        transform: scale(1.08);
      }
    }
  }

  .sticker-pagination__nav--disabled {
    opacity: 0.28;
    pointer-events: none;
    cursor: not-allowed;
    background: oklch(100% 0 0 / 0.04);
    border-color: oklch(100% 0 0 / 0.12);
  }

  .sticker-pagination__gap {
    color: oklch(100% 0 0 / 0.4);
    padding: 0 0.2rem;
    font-weight: 800;
    user-select: none;
  }

  /* Mobile: side da janela vira 0 só pra current + extremos. */
  @media (max-width: 520px) {
    .sticker-pagination__num,
    .sticker-pagination__nav {
      min-width: 2.2rem;
      height: 2.2rem;
      font-size: 0.95rem;
    }
    .sticker-pagination__pages { gap: 0.25rem; }
  }

  /* ══════════════════════════════════════════════════════
     Cart Panel
     ══════════════════════════════════════════════════════ */

  /* Hide cart panel on the cart page itself */
  .hide-cart-panel #cart-panel { display: none; }

  /* ── Compact bar ─────────────────────────────────── */
  .cart-panel__bar {
    position: fixed;
    bottom: calc(3.5rem + env(safe-area-inset-bottom, 0.5rem));
    left: var(--space-sm);
    right: var(--space-sm);
    z-index: calc(var(--z-floating) + 1);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 0.75rem var(--space-md);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px oklch(35% 0.12 150 / 0.35);
    min-height: auto;
    cursor: pointer;
    font-family: inherit;
    animation: cart-bar-in var(--duration-normal) var(--ease-out);
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) ease;

    @media (min-width: 1024px) {
      bottom: var(--space-md);
      left: auto;
      right: var(--space-lg);
      width: auto;
      border-radius: var(--radius-pill);
      padding: 0.65rem var(--space-lg);
    }

    @media (any-hover: hover) {
      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 28px oklch(35% 0.12 150 / 0.45);
      }
    }
  }

  .cart-panel__bar-info {
    display: flex;
    align-items: center;
    gap: 0.5ch;
    font-weight: 700;
    font-size: var(--text-small);
  }

  .cart-panel__bar-icon {
    font-size: 1.1em;
  }

  .cart-panel__bar-count {
    background: white;
    color: var(--color-primary);
    padding: 0.1em 0.55em;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 800;
    line-height: 1.4;
  }

  .cart-panel__bar-count--pop {
    animation: count-pop 400ms var(--ease-spring);
  }

  @keyframes count-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    100% { transform: scale(1); }
  }

  .cart-panel__bar-total {
    font-weight: 800;
    font-size: var(--text-normal);
    letter-spacing: -0.02em;
    margin-left: auto;
  }

  .cart-panel__bar-total--pop {
    animation: count-pop 400ms var(--ease-spring) 100ms;
  }

  .cart-panel__bar-cta {
    font-weight: 600;
    font-size: var(--text-xs);
    opacity: 0.7;
    white-space: nowrap;
    display: none;

    @media (min-width: 1024px) {
      display: inline;
    }
  }

  @keyframes cart-bar-in {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ── Drawer ──────────────────────────────────────── */
  .cart-panel__drawer {
    position: fixed;
    z-index: calc(var(--z-floating) + 2);
    background: var(--color-canvas);
    display: flex;
    flex-direction: column;

    /* Mobile: bottom sheet */
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80dvh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -4px 40px oklch(0% 0 0 / 0.12);
    transform: translateY(100%);
    transition: transform var(--duration-slow) var(--ease-out);
    padding: 0 0 env(safe-area-inset-bottom, 0);

    @media (min-width: 1024px) {
      bottom: calc(var(--space-md) + 3.5rem);
      left: auto;
      right: var(--space-lg);
      width: 22rem;
      max-height: 70dvh;
      border-radius: var(--radius-xl);
      padding: 0;
      border: 0.5px solid var(--color-ink-border);
      box-shadow: 0 8px 40px oklch(0% 0 0 / 0.12);
      transform: none;
      transform-origin: bottom right;
      opacity: 0;
      scale: 0.95;
      pointer-events: none;
      transition: opacity var(--duration-normal) var(--ease-out),
                  scale var(--duration-normal) var(--ease-out);
    }
  }

  .cart-panel__drawer--open {
    transform: translateY(0);

    @media (min-width: 1024px) {
      transform: none;
      opacity: 1;
      scale: 1;
      pointer-events: auto;
    }
  }

  /* ── Header ──────────────────────────────────────── */
  .cart-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-md) var(--space-sm);
    flex-shrink: 0;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-primary-dark) 100%);
    color: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: relative;

    /* Grab handle for mobile */
    &::before {
      content: "";
      position: absolute;
      top: 0.4rem;
      left: 50%;
      transform: translateX(-50%);
      width: 2rem;
      height: 3px;
      border-radius: 2px;
      background: oklch(100% 0 0 / 0.25);
    }

    @media (min-width: 1024px) {
      border-radius: calc(var(--radius-xl) - 1px) calc(var(--radius-xl) - 1px) 0 0;

      &::before { display: none; }
    }
  }

  .cart-panel__header-title {
    display: flex;
    align-items: baseline;
    gap: 0.4ch;
    font-weight: 700;
    font-size: var(--text-small);
  }

  .cart-panel__header-count {
    font-size: var(--text-xlarge);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
  }

  .cart-panel__header-vendor {
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--on-dark-text-muted);
    margin-left: auto;
  }

  .cart-panel__header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }

  .cart-panel__clear {
    border: none;
    background: none;
    color: oklch(100% 0 0 / 0.6);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5em 0.7em;
    border-radius: var(--radius-sm);
    min-height: 2.25rem;
    min-width: auto;
    transition: color var(--duration-fast) ease;

    @media (any-hover: hover) {
      &:hover { color: white; }
    }
  }

  .cart-panel__close {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: oklch(100% 0 0 / 0.15);
    border-radius: 50%;
    font-size: var(--text-normal);
    font-weight: 600;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    min-width: auto;
    padding: 0;
    line-height: 1;
    transition: background var(--duration-fast) ease;

    @media (any-hover: hover) {
      &:hover { background: oklch(100% 0 0 / 0.3); }
    }
  }

  /* ── Items list ──────────────────────────────────── */
  .cart-panel__items {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-ink-border) transparent;
    padding: var(--space-xs) var(--space-sm);
  }

  .cart-panel__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-xs);
    border-radius: var(--radius-md);
    transition: background var(--duration-slow) ease;

    & form { display: contents; }

    & + & {
      border-top: 0.5px solid var(--color-ink-border);
      border-radius: 0;
    }
  }

  .cart-panel__item--added {
    animation: cart-item-slide-in var(--duration-normal) var(--ease-out),
               cart-item-flash-green 600ms ease;
  }

  .cart-panel__item--removed {
    animation: cart-item-flash-red 400ms ease;
  }

  @keyframes cart-item-slide-in {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
  }

  @keyframes cart-item-flash-green {
    0%, 100% { background: transparent; }
    30% { background: var(--color-primary-light); }
  }

  @keyframes cart-item-flash-red {
    0%, 100% { background: transparent; }
    30% { background: var(--color-danger-light); }
  }

  .cart-panel__item-number {
    width: 2.25rem;
    height: 1.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-weight: 800;
    font-size: var(--text-caption);
    flex-shrink: 0;
    letter-spacing: -0.02em;
  }

  .cart-panel__item-number--team,
  .cart-page__item-number--team {
    background: var(--team-bg);
    width: auto;
    min-width: 2.25rem;
    padding: 0 0.3em;
  }

  .cart-panel__item-info {
    flex: 1;
    min-width: 0;
  }

  .cart-panel__item-name {
    display: block;
    font-size: var(--text-small);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cart-panel__item-shiny {
    font-size: var(--text-xs);
  }

  .cart-panel__item-price {
    font-size: 0.7rem;
    color: var(--color-ink-secondary);
    margin-top: 0.05em;
  }

  .cart-panel__item-actions {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    background: var(--color-canvas-alt);
    border-radius: var(--radius-md);
    padding: 0.1rem;
  }

  .cart-panel__qty-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: var(--text-small);
    color: var(--color-ink-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: auto;
    min-width: auto;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) ease,
                color var(--duration-fast) ease;

    @media (any-hover: hover) {
      &:hover {
        background: var(--color-primary-light);
        color: var(--color-primary);
      }
    }
  }

  .cart-panel__qty {
    font-weight: 800;
    font-size: var(--text-small);
    min-width: 1.5ch;
    text-align: center;
  }

  .cart-panel__qty-btn--remove {
    color: var(--color-danger);

    @media (any-hover: hover) {
      &:hover {
        background: var(--color-danger-light);
        color: var(--color-danger);
      }
    }
  }

  /* ── Footer ──────────────────────────────────────── */
  .cart-panel__footer {
    padding: var(--space-sm) var(--space-md) var(--space-md);
    flex-shrink: 0;
    border-top: 0.5px solid var(--color-ink-border);
  }

  .cart-panel__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-sm);
  }

  .cart-panel__total-label {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-ink-secondary);
  }

  .cart-panel__total-value {
    font-size: var(--text-xlarge);
    font-weight: 800;
    color: var(--color-ink);
    letter-spacing: -0.03em;
  }

  .cart-panel__total--flash .cart-panel__total-value {
    animation: subtotal-pulse 500ms var(--ease-out);
  }

  @keyframes subtotal-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.06); }
    100% { transform: scale(1); }
  }

  .cart-panel__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75em;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: var(--text-small);
    text-decoration: none;
    cursor: pointer;
    min-height: 44px;
    box-shadow: 0 2px 12px oklch(35% 0.12 150 / 0.25);
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) ease;

    @media (any-hover: hover) {
      &:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 16px oklch(35% 0.12 150 / 0.35);
      }
    }

    &:active {
      transform: scale(0.98);
    }
  }

  /* CTA pulses when drawer opens to draw attention */
  .cart-panel__drawer--open .cart-panel__cta {
    animation: cta-attention 1.5s ease 400ms;
  }

  @keyframes cta-attention {
    0%, 100% { box-shadow: 0 2px 12px oklch(35% 0.12 150 / 0.25); }
    50% { box-shadow: 0 2px 20px oklch(35% 0.15 150 / 0.45); }
  }

  /* Shiny sparkle pulses in cart */
  .cart-panel__item-shiny {
    animation: sparkle-pulse 2s ease-in-out infinite;
  }

  @keyframes sparkle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

  /* ── Shared item list (orders, proposals, panel) ──── */
  .cart-items { margin-block: var(--space-md); }

  .cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 0.5px solid var(--color-ink-border);

    &:last-child { border-bottom: none; }
  }

  .cart-item__info {
    flex: 1;
    min-width: 0;

    & strong { font-size: var(--text-small); display: block; }
  }

  .cart-item__qty {
    font-size: var(--text-xs);
    color: var(--color-ink-secondary);
    white-space: nowrap;
  }

  .cart-item__price {
    font-weight: 700;
    font-size: var(--text-small);
    white-space: nowrap;
  }

  /* ── Cart page ────────────────────────────────────── */
  .cart-page__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
  }

  .cep-input-group {
    display: flex;
    gap: var(--space-sm);

    & > input[type="text"] {
      flex: 1;
      min-width: 0;
    }

    & > button {
      flex-shrink: 0;
      white-space: nowrap;
    }
  }

  .pickup-info {
    background: var(--color-primary-light);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    margin-top: var(--space-sm);

  }

  .pickup-info__label {
    font-size: var(--text-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    margin: 0 0 var(--space-xs);
  }

  .pickup-info__address {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-ink);
    margin: 0;
    line-height: var(--leading-tight);
  }


  .cart-page__back {
    font-size: var(--text-xlarge);
    font-weight: 300;
    color: oklch(100% 0 0 / 0.8);
    min-height: auto;
    line-height: 1;
    transition: color var(--duration-fast) ease;

    @media (any-hover: hover) {
      &:hover { color: white; }
    }
  }

  .cart-page__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.005em;
    line-height: 0.95;
    text-transform: uppercase;
    text-shadow: 0 2px 12px oklch(0% 0 0 / 0.3);
  }

  .cart-page__meta {
    font-size: var(--text-small);
    color: oklch(100% 0 0 / 0.75);
    font-weight: 400;

    & strong {
      font-weight: 700;
      color: white;
    }
  }

  .cart-page__clear {
    margin-left: auto;
    color: oklch(100% 0 0 / 0.7);
    font-size: var(--text-xs);
    font-weight: 600;
    min-height: auto;
    text-decoration: none;
    transition: color var(--duration-fast) ease;

    @media (any-hover: hover) {
      &:hover { color: white; }
    }
  }

  /* ── Items — receipt style ───────────────────────── */
  .cart-page__items {
    border: 2px solid var(--color-ink);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-xl);
  }

  .cart-page__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-canvas-alt);

    & form { display: contents; }

    & + & { border-top: 0.5px solid var(--color-ink-border); }
  }

  .cart-page__item--team {
    border-left: 3px solid var(--team-c1);
    background: color-mix(in oklch, var(--team-c1) 5%, var(--color-canvas-alt));
  }

  .cart-page__item-number {
    width: 2.5rem;
    height: 1.6rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-weight: 800;
    font-size: var(--text-caption);
    flex-shrink: 0;
    letter-spacing: -0.02em;
  }

  .cart-page__item-info {
    flex: 1;
    min-width: 0;

    & strong {
      font-size: var(--text-small);
      font-weight: 700;
      display: block;
    }

    & span {
      font-size: var(--text-xs);
      color: var(--color-ink-secondary);
    }
  }

  .cart-page__item-controls {
    display: flex;
    align-items: center;
    background: var(--color-canvas-alt);
    border-radius: var(--radius-md);
    padding: 0.1rem;
    flex-shrink: 0;
  }

  .cart-page__qty-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: var(--text-normal);
    color: var(--color-ink-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    min-width: auto;
    padding: 0;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) ease,
                color var(--duration-fast) ease;

    @media (any-hover: hover) {
      &:hover {
        background: var(--color-primary-light);
        color: var(--color-primary);
      }
    }
  }

  .cart-page__qty {
    font-family: var(--font-display);
    font-weight: 800;
    min-width: 2ch;
    text-align: center;
    font-size: var(--text-normal);
    font-variant-numeric: tabular-nums;
  }

  .cart-page__item-total {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-normal);
    white-space: nowrap;
    min-width: 4.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.005em;
  }

  /* ── Checkout form ───────────────────────────────── */
  .cart-page__checkout {
    margin-bottom: var(--space-lg);
    background: var(--color-canvas-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 8px 24px oklch(0% 0 0 / 0.12);
  }

  /* Text on cream panel — bump contrast for pale secondary text */
  .cart-page__checkout .payment-note {
    color: var(--color-ink);
    font-weight: 600;
  }

  .cart-page__checkout .checkout-details-toggle {
    color: var(--color-ink);
    font-weight: 700;
  }

  .cart-page__checkout #freight-result .txt-subtle,
  .cart-page__checkout #freight-result p {
    color: var(--color-ink);
  }

  .cart-page__checkout .form-group label {
    color: var(--color-ink);
    font-weight: 700;
  }

  .cart-page__item-info span {
    color: var(--color-ink);
    opacity: 0.7;
  }

  .cart-page__form-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);

    @media (min-width: 768px) {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
  }

  .cart-page__form-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    min-width: 0;
  }

  .freight-result {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: var(--space-sm);

    &:empty { margin-top: 0; }
  }

  .freight-result__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: 0.45rem 0.65rem;
    background: var(--color-canvas);
    border: 1px solid var(--color-ink-border);
    border-radius: var(--radius-sm);
    margin: 0;
    font-size: var(--text-small);
    color: var(--color-ink);
  }

  .freight-result__row--err {
    background: var(--color-canvas-alt);
    color: var(--color-ink-secondary);
    font-style: italic;
    font-size: var(--text-xs);
  }

  .freight-result__name {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;

    & strong {
      font-weight: 800;
      letter-spacing: 0.02em;
    }
  }

  .freight-result__company {
    color: var(--color-ink-secondary);
    font-size: var(--text-xs);
  }

  .freight-result__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.05rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: var(--color-primary);
    text-align: right;
    white-space: nowrap;
  }

  .freight-result__days {
    color: var(--color-ink-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
  }

  .freight-result__empty {
    margin: 0;
    padding: 0.5rem 0.65rem;
    background: var(--color-canvas-alt);
    border: 1px dashed var(--color-ink-border);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    color: var(--color-ink-secondary);
    font-style: italic;
  }

  /* ── Freight option — selectable card ───────────────── */
  .freight-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.55rem 0.7rem;
    border: 1.5px solid var(--color-ink-border);
    border-radius: var(--radius-md);
    background: var(--color-canvas);
    cursor: pointer;
    transition: border-color var(--duration-fast) ease,
                background var(--duration-fast) ease;

    & input[type="radio"] {
      accent-color: var(--color-primary);
      flex-shrink: 0;
      min-height: auto;
    }

    @media (any-hover: hover) {
      &:hover { border-color: var(--color-primary-light); }
    }
  }

  .freight-option--selected,
  .freight-option:has(input:checked) {
    border-color: var(--color-primary);
    background: color-mix(in oklch, var(--color-primary) 6%, var(--color-canvas));
  }

  .freight-option__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
  }

  .freight-option__name {
    font-size: var(--text-small);
    font-weight: 700;
  }

  .freight-option__company {
    font-size: var(--text-xs);
    color: var(--color-ink-secondary);
  }

  .freight-option__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.05rem;
    white-space: nowrap;
  }

  .freight-option__price {
    font-weight: 800;
    font-size: var(--text-small);
  }

  .freight-option__days {
    font-size: var(--text-xs);
    color: var(--color-ink-secondary);
    font-weight: 600;
  }

  .cart-page__fieldset {
    border: none;
    padding: 0;
    min-width: 0;

    & legend {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: var(--text-normal);
      margin-bottom: var(--space-sm);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--color-navy);
    }

    & input[type="text"],
    & input[type="tel"],
    & input[type="number"] {
      width: 100%;
      padding: 0.6em 0.85em;
      border: 1.5px solid var(--color-ink-border);
      border-radius: var(--radius-md);
      font-size: 1rem;
      background: var(--color-canvas);
      transition: border-color var(--duration-fast) ease,
                  box-shadow var(--duration-fast) ease;

      &:focus {
        outline: none;
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px var(--color-focus-ring);
      }

      &::placeholder { color: var(--color-ink-badge); }
    }
  }

  /* ── Summary — the register ──────────────────────── */
  .cart-page__summary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-ink) 0%, oklch(15% 0 0) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
    box-shadow: 0 12px 32px oklch(0% 0 0 / 0.25);

    /* Halftone diagonal stripes */
    &::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: repeating-linear-gradient(
        45deg,
        transparent 0 16px,
        oklch(100% 0 0 / 0.03) 16px 17px
      );
      pointer-events: none;
    }

    /* Geometric clip-path accent on the right */
    &::after {
      content: "";
      position: absolute;
      top: 0; right: 0; bottom: 0;
      width: 30%;
      background: linear-gradient(135deg, transparent 0%, color-mix(in oklch, var(--color-primary) 30%, transparent) 100%);
      clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%);
      pointer-events: none;
    }

    & > * { position: relative; z-index: 1; }
  }

  .cart-page__summary-lines {
    margin-bottom: var(--space-sm);
  }

  .cart-page__summary-line {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-small);
    padding: var(--space-xs) 0;
    color: oklch(100% 0 0 / 0.65);
    font-weight: 600;

    & strong { color: white; font-family: var(--font-display); font-size: var(--text-large); font-weight: 700; }
  }

  .cart-page__summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-md);
    padding: var(--space-md) 0 var(--space-lg);
    margin-top: var(--space-xs);
    border-top: 2px solid oklch(100% 0 0 / 0.18);

    & span {
      font-family: var(--font-display);
      font-size: var(--text-large);
      font-weight: 700;
      color: oklch(100% 0 0 / 0.75);
      text-transform: uppercase;
      letter-spacing: 0.1em;
    }

    & strong {
      font-family: var(--font-display);
      font-size: clamp(1.85rem, 5vw, 2.5rem);
      font-weight: 800;
      letter-spacing: -0.015em;
      line-height: 0.95;
      color: white;
      font-variant-numeric: tabular-nums;
      text-shadow: 0 2px 16px oklch(0% 0 0 / 0.4);
    }
  }

  .cart-page__submit {
    width: 100%;
    padding: 1em;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    min-height: 56px;
    box-shadow: 0 6px 20px oklch(45% 0.15 150 / 0.4);
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-normal) ease,
                filter var(--duration-fast) ease;

    @media (any-hover: hover) {
      &:hover {
        filter: brightness(1.1);
        transform: translateY(-2px);
        box-shadow: 0 10px 28px oklch(45% 0.15 150 / 0.5);
      }
    }

    &:active { transform: scale(0.98); }
  }

  /* ── Empty cart — bold collector state ────────────── */
  .empty-cart {
    text-align: center;
    padding: var(--space-xl) var(--space-md) var(--space-2xl);
    max-width: 32rem;
    margin-inline: auto;
    background: var(--color-canvas);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }

  .empty-cart__slots {
    position: relative;
    height: 10rem;
    margin-bottom: var(--space-lg);
  }

  .empty-cart__slot {
    position: absolute;
    width: 4rem;
    height: 5.2rem;
    border: 2.5px dashed var(--color-ink-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-canvas-alt);
    animation: slot-float 4s ease-in-out infinite;
  }

  .empty-cart__slot-number {
    font-weight: 800;
    font-size: var(--text-xlarge);
    color: var(--color-ink-badge);
    opacity: 0.6;
  }

  .empty-cart__slot--1 {
    left: 50%;
    top: 0;
    transform: translate(-50%, 0) rotate(-6deg);
    animation-delay: 0s;
    border-color: var(--color-primary);
    background: var(--color-primary-light);

    & .empty-cart__slot-number { color: var(--color-primary); opacity: 0.4; }
  }

  .empty-cart__slot--2 {
    left: calc(50% - 5.5rem);
    top: 1rem;
    transform: rotate(4deg);
    animation-delay: -0.8s;
    border-color: var(--color-accent-border);
    background: var(--color-accent-light);

    & .empty-cart__slot-number { color: var(--color-accent); opacity: 0.4; }
  }

  .empty-cart__slot--3 {
    left: calc(50% + 2rem);
    top: 0.8rem;
    transform: rotate(-3deg);
    animation-delay: -1.6s;
  }

  .empty-cart__slot--4 {
    left: calc(50% - 9rem);
    top: 2.5rem;
    transform: rotate(8deg);
    animation-delay: -2.4s;
    opacity: 0.5;
    width: 3.2rem;
    height: 4.2rem;
  }

  .empty-cart__slot--5 {
    left: calc(50% + 5.5rem);
    top: 2.8rem;
    transform: rotate(-10deg);
    animation-delay: -3.2s;
    opacity: 0.5;
    width: 3.2rem;
    height: 4.2rem;
  }

  @keyframes slot-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -6px; }
  }

  .empty-cart__title {
    font-size: var(--text-xxlarge);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: var(--leading-tight);
    color: var(--color-ink);
    margin-bottom: var(--space-sm);
  }

  .empty-cart__sub {
    color: var(--color-ink-secondary);
    font-size: var(--text-normal);
    margin-bottom: var(--space-lg);
    max-width: 24rem;
    margin-inline: auto;
    line-height: var(--leading-relaxed);
  }

  @media (min-width: 640px) {
    .empty-cart__slots { height: 12rem; }

    .empty-cart__slot {
      width: 4.8rem;
      height: 6.2rem;
    }

    .empty-cart__slot--4,
    .empty-cart__slot--5 {
      width: 4rem;
      height: 5.2rem;
    }

    .empty-cart__title {
      font-size: clamp(1.875rem, 4vw, 2.5rem);
    }
  }
}
