/** Shopify CDN: Minification failed

Line 9:0 Unexpected "{"
Line 9:1 Expected identifier but found "%"
Line 10:23 Expected identifier but found whitespace
Line 17:1 Expected identifier but found "%"

**/
{%- comment -%}
  CSS della bulk table. Da incollare in coda a assets/theme.css (in fondo,
  dopo le regole .product-item__cta-row esistenti) oppure, se si preferisce
  tenerlo separato, salvare come assets/bulk-table.css e linkarlo in
  layout/theme.liquid subito dopo il link a theme.css.

  Segue le convenzioni di context-bracket.md §4 (variabili RGB, rgb(var(...)))
  e usa border-radius 0 ovunque (spigolo vivo, coerente col tema).
{%- endcomment -%}

.bulk-table {
  --bt-gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--border-color), var(--border-opacity, 0.12));
}

.bulk-table__heading {
  color: rgb(var(--bt-heading-color));
  margin-bottom: 1.25rem;
}

.bulk-table__list {
  display: flex;
  flex-direction: column;
}

.bulk-table__row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
  gap: var(--bt-gap);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(var(--bt-text-color), 0.1);
}

.bulk-table__row--head {
  padding-bottom: 0.6rem;
  border-bottom-width: 1px;
  border-bottom-color: rgba(var(--bt-text-color), 0.18);
}

.bulk-table__row--head .bulk-table__col {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(var(--bt-text-color), 0.65);
}

.bulk-table__row--sold-out {
  opacity: 0.55;
}

.bulk-table__col {
  min-width: 0;
}

.bulk-table__col--media {
  display: flex;
  align-items: center;
}

.bulk-table__image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 0;
  background: rgb(var(--secondary-background, 26, 26, 26));
}

.bulk-table__variant-title {
  display: block;
  color: rgb(var(--bt-heading-color));
  font-weight: 700;
  font-size: 0.95rem;
}

.bulk-table__badge {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgb(var(--bt-accent-color));
}

.bulk-table__form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: var(--bt-row-height);
}

.bulk-table__quantity {
  height: var(--bt-row-height);
}

.bulk-table__cta-icon {
  width: 56px;
  height: var(--bt-row-height);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.bulk-table__unavailable {
  font-size: 0.85rem;
  color: rgba(var(--bt-text-color), 0.6);
}

.bulk-table__price-compare {
  display: block;
  color: rgba(var(--bt-text-color), 0.55);
  font-size: 0.8rem;
  text-decoration: line-through;
}

.bulk-table__price-current {
  display: block;
  color: rgb(var(--bt-accent-color));
  font-weight: 700;
}

.bulk-table__row-subtotal {
  display: block;
  color: rgb(var(--bt-heading-color));
  font-weight: 700;
}

.bulk-table__footer {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bulk-table__footer-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.bulk-table__view-cart {
  border-radius: 999px;
}

.bulk-table__clear {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: rgb(var(--bt-accent-color));
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
}

.bulk-table__clear svg {
  width: 16px;
  height: 16px;
}

.bulk-table__footer-summary {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.bulk-table__footer-total-items,
.bulk-table__footer-subtotal {
  text-align: right;
}

.bulk-table__footer-number {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: rgb(var(--bt-accent-color));
}

.bulk-table__footer-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(var(--bt-text-color), 0.7);
}

.bulk-table__footer-note {
  flex-basis: 100%;
  font-size: 0.8rem;
  color: rgba(var(--bt-text-color), 0.55);
  text-align: right;
}

/* --- Mobile --- */
@media screen and (max-width: 740px) {
  .bulk-table__row {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "media title"
      "media qty"
      "media price-subtotal";
    row-gap: 0.4rem;
  }

  .bulk-table__row--head {
    display: none;
  }

  .bulk-table__col--media { grid-area: media; }
  .bulk-table__col--title { grid-area: title; }
  .bulk-table__col--qty { grid-area: qty; }

  .bulk-table__col--price,
  .bulk-table__col--subtotal {
    grid-area: price-subtotal;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .bulk-table__image {
    width: 48px;
    height: 48px;
  }

  .bulk-table__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .bulk-table__footer-summary {
    margin-left: 0;
    justify-content: space-between;
  }

  .bulk-table__footer-total-items,
  .bulk-table__footer-subtotal {
    text-align: left;
  }

  .bulk-table__footer-note {
    text-align: left;
  }
}
