/* Botiga nilmatamala.com — estils de la cistella (complementen style.css) */

.placeholder-img {
  width: 100%; height: 100%; min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #161616 0%, #1f1a10 100%);
}
.placeholder-img__icon { font-size: 3rem; opacity: 0.35; color: var(--gold); }

/* Targetes clicables sense aspecte de botó */
.product-card__open, .product-card__name {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  color: inherit; text-align: left; cursor: pointer; font: inherit;
}
.product-card__name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 500; margin-bottom: 10px; }
.product-card__name:hover { color: var(--gold-light); }
.product-card__price--soon { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); }

.product-card--soon {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-style: dashed; min-height: 320px; padding: 32px; cursor: default;
}
.product-card--soon:hover { transform: none; border-color: var(--border); }
.product-card--soon > div { opacity: 0.45; }
.product-card--soon__plus { font-size: 2rem; margin-bottom: 12px; }
.product-card--soon p { font-size: 0.85rem; margin-top: 8px; }

.product-modal__img { width: 100%; height: 100%; object-fit: cover; }

/* Botó flotant de la cistella */
.cart-toggle {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border: 1px solid var(--gold); border-radius: var(--radius);
  background: var(--bg-card); color: var(--white); cursor: pointer;
  font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: background var(--transition), color var(--transition);
}
.cart-toggle:hover { background: var(--gold); color: #080808; }
.cart-toggle[hidden] { display: none; }
.cart-toggle__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--gold); color: #080808; font-weight: 600; letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-toggle:hover .cart-toggle__count { background: #080808; color: var(--gold); }

/* Panell lateral */
.cart { position: fixed; inset: 0; z-index: 1000; visibility: hidden; }
.cart.open { visibility: visible; }
.cart__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; transition: opacity var(--transition); }
.cart.open .cart__backdrop { opacity: 1; }
.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--bg-card); border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.35s ease;
}
.cart.open .cart__panel { transform: translateX(0); }
.cart__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cart__title { font-family: var(--font-head); font-size: 1.6rem; font-weight: 500; }
.cart__close { background: none; border: 0; color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.cart__close:hover { color: var(--white); }
.cart__lines { flex: 1; overflow-y: auto; padding: 8px 28px; }
.cart__empty { color: var(--muted); padding: 32px 0; text-align: center; }
.cart__line {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cart__thumb {
  width: 64px; height: 64px; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-light); display: flex; align-items: center; justify-content: center; color: var(--gold);
}
.cart__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart__name { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.3; }
.cart__unit { font-size: 0.8rem; color: var(--muted); margin: 2px 0 10px; }
.cart__qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); }
.cart__qty button {
  width: 32px; height: 32px; background: none; border: 0; color: var(--white); cursor: pointer; font-size: 1rem;
}
.cart__qty button:hover { color: var(--gold); }
.cart__qty span { min-width: 28px; text-align: center; font-size: 0.9rem; }
.cart__total { font-size: 0.95rem; white-space: nowrap; }
.cart__foot { padding: 24px 28px 28px; border-top: 1px solid rgba(255,255,255,0.07); }
.cart__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.cart__row strong { font-family: var(--font-head); font-size: 1.6rem; font-weight: 500; color: var(--gold); }
.cart__note { font-size: 0.8rem; color: var(--muted); margin-bottom: 20px; }
.cart__checkout { width: 100%; justify-content: center; }
.cart__checkout:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.cart__checkout.is-loading { opacity: 0.7; cursor: progress; }
.cart__secure { font-size: 0.72rem; color: var(--muted); text-align: center; margin-top: 12px; letter-spacing: 0.04em; }
.cart__error { font-size: 0.82rem; color: #e8a0a0; margin-top: 12px; }

@media (max-width: 768px) {
  .cart-toggle { right: 16px; bottom: 16px; padding: 12px 18px; }
  .cart__head, .cart__foot { padding-left: 20px; padding-right: 20px; }
  .cart__lines { padding: 8px 20px; }
}

/* Ajustos de la targeta i la fitxa */
.product-card__name { line-height: 1.3; }
.product-card__footer { gap: 16px; }
.product-card__price { line-height: 1.2; white-space: nowrap; }
.product-card__price span { display: block; margin-top: 4px; }
.product-modal__name { line-height: 1.25; }
.product-modal__includes ul li { padding-left: 22px; }

/* Format apaïsat com la tapa del kit */
.product-card__img-wrap { aspect-ratio: 10 / 7; }

/* Fitxa de producte: imatge a dalt a tota l'amplada, text a sota */
.product-modal { grid-template-columns: 1fr; max-width: 760px; }
.product-modal__media { background: #0d0d0d; }
.product-modal__media .product-modal__img {
  display: block; width: 100%; height: auto; min-height: 0; max-height: none;
  aspect-ratio: auto; object-fit: contain;
}
.product-modal__thumbs { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.product-modal__thumbs button {
  width: 72px; height: 50px; padding: 0; border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; opacity: 0.6;
}
.product-modal__thumbs button.active, .product-modal__thumbs button:hover { opacity: 1; border-color: var(--gold); }
.product-modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-modal__body { padding: 36px 40px 40px; }
.product-modal__close {
  z-index: 3; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(8,8,8,0.7); color: var(--white); line-height: 1;
}
.product-modal__close:hover { color: var(--gold-light); }
@media (max-width: 768px) {
  .product-modal__body { padding: 24px; }
}
