/* Panier autonome, identique sur toutes les pages */
.cart-drawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  display: none;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  font-family: Inter, Arial, sans-serif;
  color: #11110f;
}
.cart-drawer[aria-hidden="false"] { display: flex !important; }
.cart-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,17,15,.58);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity .28s ease;
}
.cart-drawer[aria-hidden="false"] .cart-drawer-overlay { opacity: 1; }
.cart-drawer-panel {
  position: relative !important;
  z-index: 1;
  width: min(460px, 100vw) !important;
  max-width: none !important;
  height: 100dvh !important;
  margin-left: auto;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  background: #fffaf3 !important;
  box-shadow: -18px 0 60px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.16,1,.3,1);
}
.cart-drawer[aria-hidden="false"] .cart-drawer-panel { transform: translateX(0); }
.cart-drawer-header {
  flex: 0 0 auto;
  min-height: 92px;
  padding: 20px 24px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(180,123,32,.22) !important;
  background: #fffaf3 !important;
}
.cart-drawer-kicker {
  display: block;
  margin-bottom: 3px;
  color: #b47b20;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.cart-drawer-header h2 {
  margin: 0;
  color: #11110f;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px !important;
  font-weight: 500 !important;
  line-height: 1.1;
}
.cart-drawer-close {
  width: 42px !important;
  height: 42px !important;
  padding: 0;
  display: grid !important;
  place-items: center;
  border: 1px solid rgba(180,123,32,.25) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #11110f;
  font-size: 27px !important;
  line-height: 1;
  cursor: pointer;
}
.cart-drawer-close:hover { background: #f4eadb !important; }
.cart-drawer-body {
  flex: 1 1 auto !important;
  min-height: 0;
  padding: 8px 24px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background: #fffaf3;
}
.cart-item {
  display: flex !important;
  align-items: center;
  gap: 14px !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid rgba(180,123,32,.18) !important;
}
.cart-item-image {
  flex: 0 0 72px;
  width: 72px !important;
  height: 88px !important;
  object-fit: cover;
  border: 1px solid rgba(180,123,32,.2) !important;
  border-radius: 10px !important;
  background: #f5eee3;
}
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-title {
  margin: 0;
  overflow: hidden;
  color: #11110f;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-item-meta {
  margin: 3px 0 0;
  overflow: hidden;
  color: #746d63;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-item-price {
  margin: 5px 0 0;
  color: #a86f18;
  font-size: 13px;
  font-weight: 800;
}
.cart-item-actions {
  margin-top: 10px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.cart-item-quantity-control {
  height: 32px;
  display: inline-flex !important;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(180,123,32,.25) !important;
  border-radius: 8px !important;
  background: white !important;
}
.cart-quantity-button {
  width: 30px !important;
  height: 30px !important;
  padding: 0;
  border: 0;
  background: transparent;
  color: #11110f;
  font-weight: 800;
  cursor: pointer;
}
.cart-quantity-button:hover { background: #f4eadb; }
.cart-quantity-value {
  width: 30px;
  color: #11110f;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.cart-item-remove {
  padding: 6px !important;
  border: 0 !important;
  background: transparent !important;
  color: #8a8176 !important;
  cursor: pointer;
}
.cart-item-remove:hover { color: #b42318 !important; }
.cart-remove-icon { font-size: 18px !important; }
.cart-empty-state {
  min-height: 100%;
  padding: 48px 16px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cart-empty-icon {
  margin-bottom: 12px;
  color: #b47b20;
  font-size: 42px;
}
.cart-empty-text { margin: 0 0 20px; color: #746d63; font-size: 14px; font-weight: 600; }
.cart-empty-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 20px;
  border-radius: 9px;
  background: #11110f;
  color: white !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.cart-drawer-footer {
  flex: 0 0 auto;
  max-height: 55dvh;
  padding: 18px 24px 22px !important;
  overflow-y: auto;
  border-top: 1px solid rgba(180,123,32,.22) !important;
  background: #f8f1e6 !important;
}
.cart-order-note {
  margin-bottom: 14px;
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(180,123,32,.18);
  border-radius: 10px;
  background: rgba(255,250,243,.9);
  color: #746d63;
}
.cart-order-note > span { color: #b47b20; }
.cart-order-note p { margin: 0; font-size: 11.5px; line-height: 1.5; }
.cart-promo { margin-bottom: 15px; }
.cart-promo label {
  display: block;
  margin-bottom: 6px;
  color: #746d63;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cart-promo-row { display: flex; gap: 8px; }
.cart-promo-row input {
  min-width: 0;
  min-height: 42px;
  flex: 1;
  padding: 0 12px;
  border: 1px solid rgba(180,123,32,.26);
  border-radius: 8px;
  background: white;
  color: #11110f;
  font: 700 12px Inter, sans-serif;
  text-transform: uppercase;
}
.cart-promo-row button {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  background: #11110f;
  color: white;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.cart-promo-message { margin: 6px 0 0; font-size: 11px; font-weight: 700; }
.cart-promo-message.is-success { color: #167443; }
.cart-promo-message.is-error { color: #b42318; }
.cart-total-row {
  margin: 0 0 15px !important;
  padding-top: 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-top: 1px solid rgba(180,123,32,.2);
}
.cart-total-row span {
  color: #746d63;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cart-total-row strong {
  color: #11110f;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
}
.cart-drawer-actions { display: grid !important; gap: 9px !important; }
.cart-checkout-button,
.cart-clear-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}
.cart-checkout-button { border: 0; background: #1fbd62; color: white !important; }
.cart-checkout-button:hover { background: #169e4f; }
.cart-clear-button {
  border: 1px solid rgba(17,17,15,.18) !important;
  background: transparent !important;
  color: #746d63 !important;
  cursor: pointer;
}
.cart-clear-button:hover { border-color: #b42318 !important; color: #b42318 !important; }
@media (max-width: 520px) {
  .cart-drawer-panel { width: 100vw !important; }
  .cart-drawer-header { min-height: 78px; padding: 15px 18px !important; }
  .cart-drawer-body { padding: 4px 18px !important; }
  .cart-drawer-footer { padding: 14px 18px 18px !important; max-height: 58dvh; }
  .cart-order-note { display: none; }
  .cart-promo { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cart-drawer-overlay, .cart-drawer-panel { transition: none; }
}