/**
 * Side Cart WooCommerce — Alazard & Roux (FR, typo site, sans panier flottant)
 */

/* Panier flottant : désactivé (ouverture via icône header uniquement) */
.xoo-wsc-basket {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.xoo-wsc-cart-active .xoo-wsc-basket {
  display: none !important;
}

/* Panneau latéral */
.xoo-wsc-container {
  font-family: "Lato", "Inter", system-ui, sans-serif !important;
  color: #1a1a1a;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}

.xoo-wsc-header,
.xoo-wsc-header .xoo-wsch-top {
  background: #1a1a1a !important;
  color: #fff !important;
  border: 0 !important;
}

.xoo-wsc-header .xoo-wsch-text {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #fff !important;
}

.xoo-wsc-header .xoo-wsch-close {
  color: #fff !important;
  opacity: 0.9;
  cursor: pointer;
}

.xoo-wsc-header .xoo-wsch-close:hover {
  opacity: 1;
  color: #f4c648 !important;
}

.xoo-wsc-header .xoo-wsch-basket {
  display: none !important;
}

/* Corps */
.xoo-wsc-body {
  background: #faf8f6;
}

.xoo-wsc-product {
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.45;
}

.xoo-wsc-product .xoo-wsc-pname,
.xoo-wsc-product .xoo-wsc-pname a {
  font-family: "Lato", "Inter", sans-serif;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}

.xoo-wsc-product .xoo-wsc-pname a:hover {
  color: #c41e3a;
}

.xoo-wsc-product .xoo-wsc-pprice,
.xoo-wsc-product .xoo-wsc-ptotal {
  color: #6f6461;
  font-size: 13px;
}

.xoo-wsc-product .xoo-wsc-pqty input {
  min-height: 40px;
  font-size: 15px;
  border-radius: 4px;
  border-color: #ddd2c8;
}

.xoo-wsc-product .xoo-wsc-smr-del {
  color: #8c8578;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.xoo-wsc-product .xoo-wsc-smr-del:hover {
  color: #c41e3a;
}

/* Panier vide */
.xoo-wsc-empty-cart {
  text-align: center;
  padding: 32px 20px;
  font-size: 15px;
  color: #6f6461;
}

.xoo-wsc-empty-cart .xoo-wsc-emp-img {
  max-width: 120px;
  margin-bottom: 16px;
  opacity: 0.85;
}

.xoo-wsc-empty-cart a.button,
.xoo-wsc-empty-cart a {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #c41e3a, #a01830) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 4px;
  font-family: "Lato", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Pied de panier */
.xoo-wsc-footer {
  background: #fff;
  border-top: 1px solid #f0e8e0;
  padding: 16px 16px 20px;
}

.xoo-wsc-footer .xoo-wsc-ft-amt-label,
.xoo-wsc-footer .xoo-wsc-ft-totals-label {
  font-size: 13px;
  color: #6f6461;
  text-transform: none;
  letter-spacing: 0;
}

.xoo-wsc-footer .xoo-wsc-ft-amt-value,
.xoo-wsc-footer .xoo-wsc-ft-totals-value {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

.xoo-wsc-footer-txt {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #8c8578;
  text-align: center;
  margin-bottom: 12px;
}

.xoo-wsc-ft-buttons-cont {
  gap: 10px !important;
}

.xoo-wsc-ft-buttons-cont a,
.xoo-wsc-container .xoo-wsc-btn.button,
.xoo-wsc-ft-btn-cart,
.xoo-wsc-ft-btn-checkout {
  font-family: "Lato", sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.xoo-wsc-ft-btn-cart,
.xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-cart {
  background: #fff !important;
  color: #1a1a1a !important;
  border: 1px solid #ddd2c8 !important;
}

.xoo-wsc-ft-btn-cart:hover {
  border-color: #c41e3a !important;
  color: #c41e3a !important;
}

.xoo-wsc-ft-btn-checkout,
.xoo-wsc-container .xoo-wsc-btn.button.checkout,
.xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-checkout {
  background: linear-gradient(135deg, #c41e3a, #a01830) !important;
  color: #fff !important;
}

.xoo-wsc-ft-btn-checkout:hover,
.xoo-wsc-container .xoo-wsc-btn.button.checkout:hover {
  background: linear-gradient(135deg, #a01830, #8c1528) !important;
  color: #fff !important;
}

/* Notifications */
.xoo-wsc-notices,
.xoo-wsc-markup-notice {
  font-size: 13px;
}

.xoo-wsc-notice-success {
  background: #f4faf4;
  color: #2d5a2d;
  border-color: #c8e6c8;
}

/* Icône header (shortcode dans .ar-pdf-cart) */
.ar-pdf-cart .xoo-wsc-sc-count {
  background: #c41e3a !important;
  font-family: "Lato", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 767px) {
  body:not(.xoo-wsc-cart-active) .xoo-wsc-container,
  html:not(.xoo-wsc-cart-active) .xoo-wsc-container {
    right: -100% !important;
    transform: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.xoo-wsc-cart-active .xoo-wsc-container,
  html.xoo-wsc-cart-active .xoo-wsc-container {
    right: 0 !important;
    max-width: 100vw !important;
    width: min(100%, 420px) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 480px) {
  .xoo-wsc-ft-buttons-cont {
    grid-template-columns: 1fr !important;
  }
}
