/* Pages de la boutique (29/10/2026) : Panier et Mes effets, FR + EN. Couleurs = variables de style.css (thèmes sombre et clair). */
.shop-page { padding: 120px 0 80px; min-height: 70vh; }
.shop-container { max-width: 1040px; }
.shop-title { font-size: 2rem; margin: 0 0 8px; }
.shop-lead { color: var(--text-secondary); margin: 0 0 32px; }
.shop-muted { color: var(--text-muted); }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.shop-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.shop-notice { background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.35); border-radius: 12px; padding: 14px 16px; margin: 0 0 24px; }
.shop-notice.ok { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.4); }
.shop-notice a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.shop-count { margin: 0 0 12px; }

.shop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.shop-item { display: flex; align-items: center; gap: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.shop-thumb { width: 96px; height: 60px; flex: none; border-radius: 8px; object-fit: cover; background: var(--bg-elevated); }
.shop-item-name { flex: 1; min-width: 0; font-weight: 600; color: var(--text-primary); text-decoration: none; overflow-wrap: anywhere; }
.shop-item-name:hover { text-decoration: underline; }
.shop-remove { background: none; border: 1px solid var(--border); color: var(--text-secondary); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 0.85rem; cursor: pointer; }
.shop-remove:hover { color: var(--text-primary); border-color: var(--text-muted); }

.shop-formulas { border: 0; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.shop-formulas legend { font-weight: 700; margin-bottom: 8px; }
.shop-formula { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.shop-formula input { margin-top: 3px; accent-color: var(--primary); }
.shop-formula.is-disabled { opacity: 0.45; cursor: not-allowed; }
.shop-formula:has(input:checked) { border-color: var(--primary); background: rgba(99, 102, 241, 0.08); }
.shop-formula-price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.shop-formula-sub { display: block; font-size: 0.82rem; color: var(--text-muted); }
.shop-hint { font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 14px; }
.shop-total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 700; border-top: 1px solid var(--border); padding-top: 14px; margin: 4px 0 14px; }
.shop-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 10px; cursor: pointer; }
.shop-consent input { margin-top: 3px; flex: none; accent-color: var(--primary); }
.shop-consent a { color: var(--primary-light); }
.shop-btn { display: inline-block; width: 100%; border: none; border-radius: 12px; padding: 14px 18px; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; background: var(--primary); color: #fff; text-align: center; text-decoration: none; }
.shop-btn:hover { background: var(--primary-dark); }
.shop-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.shop-btn.secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.shop-btn.green { background: #059669; }
.shop-btn:focus-visible, .shop-remove:focus-visible, .shop-formula:focus-within { outline: 2px solid var(--primary-light); outline-offset: 2px; }
.shop-error { color: #f87171; font-size: 0.9rem; margin: 10px 0 0; }
.shop-alt { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin: 14px 0 0; }
.shop-alt button { background: none; border: none; padding: 0; font: inherit; color: var(--primary-light); text-decoration: underline; cursor: pointer; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.shop-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.shop-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-elevated); display: block; }
.shop-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.shop-card-name { font-weight: 600; }
.shop-card .shop-btn { margin-top: auto; padding: 10px 14px; font-size: 0.92rem; }

@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-page { padding-top: 100px; }
}
@media (max-width: 480px) {
  .shop-title { font-size: 1.6rem; }
  .shop-thumb { width: 72px; height: 45px; }
}
