/* Boutique de tirages — calé sur l'identité (bleu nuit #1E2D3E, doré #E1D6B2). */

.shoppage { max-width: 1200px; margin: 0 auto; padding: 40px 20px 80px; }
.shop-head { text-align: center; margin-bottom: 36px; }
.shop-head h1 { margin: 0 0 10px; }
.shop-head p { max-width: 640px; margin: 0 auto; color: #4a5563; line-height: 1.6; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.shop-item {
  border: 1px solid rgba(30, 45, 62, .12);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.shop-photo { background: #0b1726; }
.shop-photo img { display: block; width: 100%; height: auto; }

/* Bloc d'achat */
.tirage-buy { padding: 18px 18px 20px; }
.tirage-buy > h3 { margin: 0 0 14px; font-size: 1.05rem; }

.tg-group { margin-bottom: 14px; }
.tg-head { display: flex; flex-direction: column; margin-bottom: 8px; }
.tg-name { font-weight: 600; color: #1E2D3E; }
.tg-desc { color: #7a828c; font-size: 12px; line-height: 1.4; }

.tg-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-opt {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px; padding: 8px 12px;
  border: 1px solid rgba(30, 45, 62, .22);
  border-radius: 8px; background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s, transform .05s;
}
.tg-opt:hover { border-color: #C9B779; background: #FBF7EA; }
.tg-opt:active { transform: scale(.98); }
.tg-dim { font-size: 13px; color: #1E2D3E; }
.tg-price { font-size: 13px; font-weight: 600; color: #8a7327; }
.tg-opt.added { border-color: #2e7d32; background: #eef7ef; }
.tg-opt.added .tg-dim::after { content: ' ✓'; color: #2e7d32; }

/* Confirmation « ajouté au panier » (toast) — au-dessus de la lightbox */
#cart-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translateX(-50%) translateY(20px);
  background: #1E2D3E; color: #F8EBC2; padding: 12px 20px; border-radius: 30px;
  box-shadow: 0 6px 24px rgba(0,0,0,.3); font-weight: 600;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s;
}
#cart-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
#cart-toast a { color: #F8EBC2; text-decoration: underline; }

/* Pages légales (mentions / CGV / confidentialité) */
.legal { max-width: 820px; margin: 0 auto; padding: 48px 22px 90px; line-height: 1.7; color: #2a3340; }
.legal h1 { margin: 0 0 6px; }
.legal .legal-upd { color: #7a828c; font-size: 13px; margin: 0 0 30px; }
.legal h2 { margin: 32px 0 8px; font-size: 1.15rem; color: #1E2D3E; }
.legal p, .legal li { font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal a { color: #8a7327; }
.legal address { font-style: normal; }
.legal .note { background: #FBF7EA; border: 1px solid #E1D6B2; border-radius: 8px; padding: 12px 16px; font-size: 14px; }

/* Page panier */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12px; color: #7a828c; border-bottom: 1px solid rgba(0,0,0,.1); padding: 8px; }
.cart-table td { padding: 10px 8px; border-bottom: 1px solid rgba(0,0,0,.06); vertical-align: middle; }
.cart-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; }
.cart-qty { width: 56px; padding: 4px; }
.cart-rm { border: 0; background: none; cursor: pointer; color: #b00; font-size: 16px; }
.cart-foot { margin-top: 24px; text-align: right; }
.cart-total-row { font-size: 1.2rem; font-weight: 600; }
.cart-note { color: #7a828c; font-size: 13px; margin: 6px 0 12px; }
.cart-cgv { display: flex; gap: 8px; align-items: flex-start; text-align: left; font-size: 13px; color: #555; max-width: 440px; margin: 0 0 14px auto; }
.cart-cgv input { margin-top: 3px; flex: 0 0 auto; }

@media (max-width: 520px) {
  .tg-sizes { gap: 6px; }
  .shop-grid { grid-template-columns: 1fr; }
}

/* Titres de section dans la boutique */
.shop-cat {
  max-width: 1200px; margin: 40px auto 18px; padding: 0 4px;
  font-size: 1.3rem; color: #1E2D3E;
  border-bottom: 1px solid rgba(30,45,62,.12); padding-bottom: 8px;
}

/* Panneau d'achat dans la lightbox (galeries) */
.lb-buy { display: none; }
#lb.has-buy .lb-stage { display: flex; gap: 22px; align-items: center; max-width: 94vw; }
#lb.has-buy .lb-stage img { max-width: 58vw; }
#lb.has-buy .lb-buy {
  display: block; width: 320px; max-height: 84vh; overflow: auto;
  background: #fff; border-radius: 10px; color: #1E2D3E;
}
#lb.has-buy .lb-buy .tirage-buy { padding: 18px; }
@media (max-width: 880px) {
  #lb.has-buy .lb-stage { flex-direction: column; gap: 12px; overflow: auto; max-height: 92vh; }
  #lb.has-buy .lb-stage img { max-width: 92vw; max-height: 52vh; }
  #lb.has-buy .lb-buy { width: 92vw; }
}
