/* Luxury Nightwear - Modern UI Overrides
   Chargé après style.css (dans public/index.html) pour améliorer le design
   sans casser la logique ni le template original. */

:root {
  --lnw-primary: #7e2b6a;
  --lnw-secondary: #bb1f34;
  --lnw-bg: #fff7f9;
  --lnw-surface: rgba(255, 255, 255, 0.9);
  --lnw-text: #111111;
  --lnw-muted: rgba(17, 17, 17, 0.64);
  --lnw-radius: 18px;
  --lnw-radius-sm: 12px;
  --lnw-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  --lnw-shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.07);
}

/* Fond léger pour donner une ambiance premium (sans trop impacter) */
body {
  background: linear-gradient(180deg, rgba(126, 43, 106, 0.08), rgba(187, 31, 52, 0.05)) fixed;
  color: var(--lnw-text);
}

/* Titres / section header */
.section-title,
.section-title h4,
.section-title h2,
.section-title h3 {
  font-family: "Dancing Script", cursive;
}



/* Boutons principaux (Home/List/Produit/Cart/Order) */
.main_btn,
.site-btn,
.primary-btn,
.cart-btn,
.site-btn,
a.main_btn,
button.site-btn {
  border-radius: 999px !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
}


.site-btn,
.primary-btn,
.cart-btn {
  background: linear-gradient(135deg, var(--lnw-primary), var(--lnw-secondary)) !important;
  border: 0 !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(187, 31, 52, 0.18);
}

.main_btn:hover,
.site-btn:hover,
.primary-btn:hover,
.cart-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 40px rgba(187, 31, 52, 0.22) !important;
}

/* Product cards (Home + ListProduct) */
.product__item {
  border-radius: var(--lnw-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.product__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--lnw-shadow-sm);
}

.product__item__pic {
  position: relative;
}

.product__item__pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.25),
    transparent 55%
  );
  pointer-events: none;
}

/* Badge (En stock / Repture stock / Nouveau / numéro) */
.label.new,
.label.sale {
  background: linear-gradient(135deg, var(--lnw-primary), var(--lnw-secondary)) !important;
}

.label.stockout {
  background: rgba(17, 17, 17, 0.75) !important;
}

.product-number-badge,
.product__item__pic .product-number-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: auto;
  width: auto;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--lnw-text) !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  font-weight: 900 !important;
  font-size: 12px !important;
}

.product__item__text h6 {
  font-weight: 900;
  font-size: 14px;
}

.product__price {
  color: var(--lnw-text);
  font-weight: 900;
}

/* Modernize card hover actions (Home / ListProduct) */
.product__hover {
  bottom: 18px !important;
  text-align: right;
  padding-right: 14px;
}

.product__hover li {
  top: 10px !important;
}

.product__hover li a {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.product__hover li a span {
  transition: transform 0.25s ease;
}

.product__item:hover .product__hover li a {
  background: rgba(255, 255, 255, 0.92) !important;
}

.product__hover li:hover a {
  background: linear-gradient(135deg, var(--lnw-primary), var(--lnw-secondary)) !important;
}

.product__hover li:hover a span {
  color: #ffffff !important;
}

/* Card text spacing */
.product__item__text {
  padding: 18px 14px 16px;
}

.product__item__text h6 {
  margin: 0 0 6px;
  line-height: 1.25;
  min-height: 34px;
}

.product__price {
  font-size: 16px;
}

/* Sidebar (ListProduct) */
.shop__sidebar,
.sidebar__categories,
.filter-range-wrap,
.sidebar__sizes {
  background: var(--lnw-surface);
  border-radius: var(--lnw-radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
}

.shop__sidebar {
  padding: 16px;
}

.sidebar__categories {
  padding: 14px 12px;
  margin-bottom: 12px;
}

.size__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Tableau panier (ShoppingList) */
.shop-cart .shop__cart__table {
  background: var(--lnw-surface);
  border-radius: var(--lnw-radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--lnw-shadow-sm);
  overflow: hidden;
}

.shop-cart .shop__cart__table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.shop-cart .shop__cart__table thead th {
  background: linear-gradient(135deg, var(--lnw-primary), var(--lnw-secondary));
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  padding: 16px 14px;
}

.shop-cart .shop__cart__table tbody td {
  padding: 14px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}

.cart__product__item__title h6 {
  font-weight: 900;
}

.cart__close {
  text-align: right;
}

.cart__close .icon_close {
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.cart__close .icon_close:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Checkout / Order / Contact (Contact.js et Order.js) */
.checkout_area,
.checkout,
.checkout__form,
.order_box,
.checkout__order {
  background: var(--lnw-surface);
  border-radius: var(--lnw-radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--lnw-shadow-sm);
}

.billing_details,
.checkout__order__product,
.checkout__order__total,
.checkout__form__input {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--lnw-radius-sm);
}

.checkout__form__input {
  padding: 14px;
}

.checkout__order__product ul li,
.checkout__order__total ul li {
  border-top: 0;
}

.coupon__link {
  margin-bottom: 18px;
}

/* Produit (Produit.js) - layout principal */
.product-details.spad,
.product-details,
.s_product_inner,
.product__details__pic,
.product__details__text {
  background: rgba(255, 255, 255, 0.66) !important;
  border-radius: var(--lnw-radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.product__details__text {
  padding: 18px;
}

.product__details__price {
  font-weight: 1000;
}

.product__details__button .cart-btn,
.product__details__button a.cart-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Général forms */
input,
textarea,
select {
  border-radius: 14px !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(126, 43, 106, 0.18) !important;
  border-color: rgba(126, 43, 106, 0.45) !important;
}

/* Mobile tweaks */
@media (max-width: 991px) {
  .product__item {
    margin-bottom: 14px;
  }

  .section-title h4 {
    font-size: 24px;
  }

  .shop__sidebar {
    padding: 12px;
  }

  .checkout__form__input {
    padding: 12px;
  }
}

/* Messages success / error (General.js) */
.lnw-messageWrap {
  padding: 12px 0 2px;
}

.lnw-alert {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  animation: lnwAlertIn 0.22s ease both;
}

.lnw-alert__center {
  flex: 1 1 auto;
  min-width: 0;
}

.lnw-alert--success {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.96) 0%,
    rgba(16, 185, 129, 0.9) 55%,
    rgba(5, 150, 105, 0.84) 100%
  );
}

.lnw-alert--error {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.96) 0%,
    rgba(220, 38, 38, 0.9) 55%,
    rgba(185, 28, 28, 0.84) 100%
  );
}

.lnw-alert__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lnw-alert__body {
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.lnw-alert__close {
  flex: 0 0 auto;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
  color: #ffffff;
}

.lnw-alert__close:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

.lnw-alert__closeIcon {
  font-size: 26px;
  line-height: 1;
  font-weight: 1000;
  transform: translateY(-1px);
}

.lnw-alert__progress {
  position: static;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.26);
  overflow: hidden;
  pointer-events: none;
  margin-top: 10px;
}

.lnw-alert__progressBar {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  transition: width 0.05s linear;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28) inset, 0 10px 26px rgba(255, 255, 255, 0.14);
}

/* Success / Error progress bar colors */
.lnw-alert--success .lnw-alert__progressBar {
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 1),
    rgba(16, 185, 129, 1)
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 12px 30px rgba(16, 185, 129, 0.3);
}

.lnw-alert--error .lnw-alert__progressBar {
  background: linear-gradient(
    90deg,
    rgba(239, 68, 68, 1),
    rgba(220, 38, 38, 1)
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 12px 30px rgba(220, 38, 38, 0.3);
}

@keyframes lnwAlertIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

