/**
 * ==========================================================================
 * LA COCCINA — Carrinho
 * ==========================================================================
 */

body.cart-page {
  padding-top: var(--header-h);
}

.cart-header {
  padding-inline: 4%;
}

.cart-page-intro {
  width: min(calc(var(--site-max) + 8%), 100%);
  margin: 1.25rem auto 1rem;
  padding: 0 4%;
}

.cart-page-kicker {
  color: #7d7d7d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.cart-page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cart-page .section-title.cart-page-title {
  margin: 0;
}

.cart-page-subtitle {
  color: var(--color-muted);
  font-size: 0.96rem;
  margin-top: 0.5rem;
}

.cart-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.12);
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.82rem;
}

.cart-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: var(--site-width);
  max-width: var(--site-max);
  margin: 0 auto 2rem;
  padding: 0 4%;
}

.cart-main {
  flex: 1 1 640px;
  min-width: 0;
}

.cart-items {
  min-width: 0;
}

.cart-item {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #151515;
  border-radius: 22px;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.cart-item img {
  width: clamp(92px, 15vw, 132px);
  height: clamp(92px, 15vw, 132px);
  object-fit: cover;
  border-radius: 18px;
  flex-shrink: 0;
}

.cart-item-thumb {
  width: clamp(92px, 15vw, 132px);
  height: clamp(92px, 15vw, 132px);
  border-radius: 18px;
  flex-shrink: 0;
}

.cart-item-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 204, 0, 0.16), rgba(255, 204, 0, 0.04)),
    #161616;
  border: 1px solid rgba(255, 204, 0, 0.12);
  color: var(--color-gold);
  text-align: center;
  padding: 0.75rem;
}

.cart-item-thumb--placeholder span {
  font-weight: 800;
  line-height: 1.15;
  font-size: 0.9rem;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-item-info strong {
  font-size: 1.08rem;
  line-height: 1.25;
}

.cart-item-info small {
  color: #8d8d8d;
  font-size: 0.82rem;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  flex-shrink: 0;
}

.cart-item-actions button.qty {
  background: #262626;
  color: #fff;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-item-actions .remove-btn {
  color: #ff8f8f;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.18);
  margin-left: 0;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.summary {
  flex: 1 1 280px;
  max-width: min(420px, 100%);
  background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
  border-radius: 24px;
  padding: 1.25rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.summary-topline {
  color: #8a8a8a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  margin-bottom: 0.45rem;
}

.summary h2 {
  color: var(--color-gold);
  margin-bottom: 0.9rem;
  font-size: 1.35rem;
}

.summary input,
.summary select,
.summary textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  background: #222;
  border: 2px solid #333;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
}

.summary input:focus,
.summary select:focus,
.summary textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.whatsapp-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  margin-top: 1rem;
  background: #555;
  color: white;
  cursor: not-allowed;
}

.whatsapp-btn.enabled {
  background: #25d366;
  cursor: pointer;
}

.whatsapp-btn.locked {
  background: #555 !important;
  cursor: not-allowed !important;
}

.cart-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.cart-total-big {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-top: 0.75rem;
}

.cart-item-price {
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  color: var(--color-gold);
  font-weight: bold;
}

.cart-item-actions .qty-val {
  margin: 0;
  font-size: 1.15rem;
  min-width: 1.5rem;
  text-align: center;
}

.cart-item-actions-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  width: auto;
}

.cart-item-actions > div:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.45rem;
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

/* Acompanhamentos no carrinho */
.acc-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.3rem 0 0.4rem;
}

.acc-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #1e2e1e;
  color: #4caf50;
  border: 1px solid #2a4a2a;
  padding: 2px 9px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.acc-tag em {
  font-style: normal;
  color: #ffcc00;
  font-size: 0.7rem;
}

.acc-text-row {
  font-size: 0.8rem;
  color: #888;
  margin: 0.25rem 0 0.35rem;
  line-height: 1.4;
}

.acc-edit-btn {
  background: none;
  border: none;
  color: #ffcc00;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  text-decoration: underline;
  font-weight: 600;
}

.mobile-cart-bar {
  display: none;
}
