/* boutiK by spiKto® — styles boutique (Phase 1 : catalogue) */

.boutik-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
}

.boutik-header {
  text-align: center;
  margin: 2rem 0 2.5rem;
}

.boutik-header h2 {
  color: #C8267D;
}

.boutik-badge-row {
  position: fixed;
  top: 90px;
  right: 1.2rem;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.boutik-cart-badge {
  background: #FFE066;
  color: #0089D4;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  cursor: pointer;
  border: none;
}

.boutik-account-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFE066;
  color: #0089D4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  flex-shrink: 0;
}

.boutik-account-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Grille produits ---------- */
.boutik-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.boutik-card {
  background: #fff;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid #f0eeff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease;
}

.boutik-card:hover {
  transform: translateY(-3px);
}

.boutik-card-out {
  opacity: 0.5;
}

.boutik-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8f4ff;
  overflow: hidden;
}

.boutik-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.boutik-card-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.boutik-badge-promo,
.boutik-badge-rupture,
.boutik-badge-preorder,
.boutik-badge-digital {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.boutik-badge-promo {
  background: #FFE066;
  color: #C8267D;
}

.boutik-badge-rupture {
  background: #666;
  color: #fff;
}

.boutik-badge-preorder {
  background: #0089D4;
  color: #fff;
}

.boutik-badge-digital {
  background: #0089D4;
  color: #fff;
}

.boutik-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.boutik-card-add {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #C8267D;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.boutik-card-add:active {
  transform: scale(0.92);
}

.boutik-card-add.added {
  background: #2e7d32;
}

.boutik-card-add-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.boutik-card-add-count {
  font-size: 0.85rem;
  font-weight: 800;
  color: #C8267D;
  min-width: 1em;
  text-align: right;
}

/* ---------- Filtre par catégorie ---------- */
.boutik-filter-bar {
  position: relative;
  margin-bottom: 1.2rem;
}

.boutik-filter-toggle {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #555;
  cursor: pointer;
}

.boutik-filter-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.8rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 0.8rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.boutik-filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #555;
  cursor: pointer;
}

.boutik-product-tags {
  margin-bottom: 0.6rem;
}

.boutik-tag {
  display: inline-block;
  background: #f8f4ff;
  color: #0089D4;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-right: 0.3rem;
}

.boutik-document-gate {
  margin-bottom: 1rem;
}

.boutik-document-link {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  color: #C8267D;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}

.boutik-document-form {
  margin-top: 0.7rem;
  background: #f8f4ff;
  border-radius: 0.8rem;
  padding: 1rem;
}

.boutik-document-form input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  box-sizing: border-box;
  margin-bottom: 0.7rem;
}

.boutik-document-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.8rem;
  cursor: pointer;
}

.boutik-document-consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.boutik-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 0.4rem;
}

.boutik-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.boutik-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.boutik-price {
  font-weight: 800;
  color: #C8267D;
  font-size: 1.05rem;
}

.boutik-price-barred {
  color: #999;
  text-decoration: line-through;
  font-size: 0.88rem;
}

/* ---------- État vide / chargement ---------- */
.boutik-state {
  text-align: center;
  color: #888;
  padding: 3rem 1rem;
  font-size: 0.95rem;
}

/* ---------- Fil d'ariane / retour ---------- */
.boutik-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #0089D4;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}

/* ---------- Page produit ---------- */
.boutik-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .boutik-product {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.boutik-gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1.2rem;
  overflow: hidden;
  background: #f8f4ff;
  margin-bottom: 0.8rem;
}

.boutik-gallery-main img,
.boutik-gallery-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.boutik-gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.boutik-gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: 0.6rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: #f8f4ff;
}

.boutik-gallery-thumb.active {
  border-color: #C8267D;
}

.boutik-gallery-thumb img,
.boutik-gallery-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boutik-product-info h1 {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.boutik-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.boutik-product-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #C8267D;
}

.boutik-product-price-barred {
  font-size: 1.1rem;
  color: #999;
  text-decoration: line-through;
}

.boutik-discount-badge {
  background: #FFE066;
  color: #C8267D;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.boutik-stock {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.boutik-stock.ok { color: #2e7d32; }
.boutik-stock.low { color: #e07b00; }
.boutik-stock.out { color: #c62828; }

.boutik-description {
  color: #555;
  line-height: 1.6;
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.boutik-add-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.boutik-qty {
  display: inline-flex;
  align-items: stretch;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.boutik-qty button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f4ff;
  border: none;
  width: 40px;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 800;
  color: #C8267D;
  cursor: pointer;
  transition: background 0.15s ease;
}

.boutik-qty button:hover {
  background: #f0e4ff;
}

.boutik-qty button:active {
  background: #e4d0ff;
}

.boutik-qty input {
  width: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  padding: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: #333;
}

.boutik-qty input:focus {
  outline: none;
}

.boutik-add-btn {
  background: #C8267D;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  cursor: pointer;
}

.boutik-add-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.boutik-add-confirm {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2e7d32;
  margin-top: 0.8rem;
  display: none;
}

.boutik-add-confirm.visible {
  display: block;
}

.boutik-restock-notify {
  margin-top: 1rem;
  background: #f8f4ff;
  border-radius: 0.8rem;
  padding: 1rem;
}

.boutik-restock-notify p {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 0.7rem;
}

.boutik-restock-notify input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  box-sizing: border-box;
  margin-bottom: 0.7rem;
}

/* ---------- Panier ---------- */
.boutik-panier-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.boutik-panier-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid #f0eeff;
  border-radius: 1rem;
  padding: 0.9rem 1.1rem;
}

.boutik-panier-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.6rem;
  flex-shrink: 0;
}

.boutik-panier-item-info {
  flex: 1;
  min-width: 0;
}

.boutik-panier-item-name {
  font-weight: 800;
  color: #333;
  margin-bottom: 0.2rem;
}

.boutik-panier-item-price {
  color: #C8267D;
  font-weight: 700;
  font-size: 0.92rem;
}

.boutik-panier-remove {
  background: none;
  border: none;
  color: #c62828;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.boutik-promo-row {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-bottom: 0.6rem;
}

.boutik-promo-row input {
  padding: 0.6rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  max-width: 180px;
}

.boutik-promo-btn {
  background: #f8f4ff;
  color: #C8267D;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  cursor: pointer;
  white-space: nowrap;
}

.boutik-promo-message {
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.boutik-promo-message.error { color: #c62828; }
.boutik-promo-message.success { color: #2e7d32; }

.boutik-panier-total {
  text-align: right;
  font-size: 1.2rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 1.5rem;
}

.boutik-checkout-form {
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.5rem;
  border: 1px solid #f0eeff;
  max-width: 420px;
  margin: 0 auto;
}

.boutik-checkout-form label,
.boutik-relay-picker label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 0.4rem;
}

.boutik-checkout-form input[type="email"],
.boutik-relay-picker input[type="email"],
.boutik-relay-picker input[type="text"],
.boutik-relay-picker input[type="tel"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 0.6rem;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  box-sizing: border-box;
}

.boutik-checkout-note {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 1rem;
}

.boutik-checkout-btn {
  width: 100%;
  background: #C8267D;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  border: none;
  padding: 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.boutik-checkout-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.boutik-checkout-error {
  color: #c62828;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.8rem;
  display: none;
}

.boutik-checkout-error.visible {
  display: block;
}

/* ---------- Choix paiement standard / demande spéciale ---------- */
/* Mondial Relay temporairement désactivé : voir boutik-panier.js. */
.boutik-checkout-choice {
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.5rem;
  border: 1px solid #f0eeff;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.boutik-checkout-btn-secondary {
  width: 100%;
  background: #f0eeff;
  color: #555;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  padding: 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}

.boutik-checkout-back {
  display: block;
  background: none;
  border: none;
  color: #888;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
}

/* ---------- Choix du mode de livraison (Mondial Relay, désactivé) ---------- */
.boutik-delivery-mode {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  color: #555;
}

.boutik-delivery-mode label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.boutik-custom-name-row {
  display: flex;
  gap: 0.8rem;
}

.boutik-custom-name-row > div {
  flex: 1;
  min-width: 0;
}

.boutik-custom-name-row input {
  width: 100%;
  box-sizing: border-box;
}

.boutik-custom-message {
  width: 100%;
  min-height: 100px;
  padding: 0.7rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
  box-sizing: border-box;
  resize: vertical;
}

/* ---------- Point relais Mondial Relay ---------- */
.boutik-relay-picker {
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.5rem;
  border: 1px solid #f0eeff;
  margin-bottom: 1.5rem;
}

.boutik-relay-picker h3 {
  margin-top: 0;
  color: #333;
  font-size: 1.05rem;
}

.boutik-relay-selected {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #2e7d32;
  line-height: 1.5;
}

/* ---------- Confirmation ---------- */
.boutik-confirmation {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.boutik-confirmation h2 {
  color: #333;
  margin-bottom: 0.5rem;
  text-align: center;
  white-space: normal;
}

.boutik-confirmation-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.boutik-confirmation-icon.error {
  background: #c62828;
}

.boutik-order-number {
  display: inline-block;
  background: #f8f4ff;
  color: #C8267D;
  font-weight: 800;
  font-size: 1.3rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  margin: 1rem 0;
}

.boutik-confirmation-card {
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.5rem;
  border: 1px solid #f0eeff;
  margin: 1.2rem 0;
  text-align: left;
}

.boutik-confirmation-card h3 {
  margin-top: 0;
  color: #333;
  font-size: 1.05rem;
}

.boutik-confirmation-items {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
}

.boutik-confirmation-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.92rem;
  color: #555;
}

.boutik-confirmation-totals {
  padding-top: 0.6rem;
}

.boutik-confirmation-totals > div {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #777;
  padding: 0.2rem 0;
}

.boutik-confirmation-total-row {
  font-weight: 800;
  font-size: 1.05rem;
  color: #333;
  border-top: 1px solid #f0eeff;
  margin-top: 0.4rem;
  padding-top: 0.6rem !important;
}

.boutik-confirmation-note {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.boutik-confirmation-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0 1rem;
}

.boutik-confirmation-actions .admin-btn {
  text-decoration: none;
  display: inline-block;
}

.boutik-confirmation-contact {
  color: #888;
  font-size: 0.85rem;
  margin-top: 1.5rem;
  border-top: 1px solid #f0eeff;
  padding-top: 1.2rem;
}

.boutik-confirmation-contact a {
  color: #C8267D;
  font-weight: 700;
  text-decoration: none;
}
