/* =====================================================
   SIDEBAR – Blanc & Bordeaux
===================================================== */

.sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: #F5F1EE;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  transition: right .45s cubic-bezier(.4,0,.2,1);
  box-shadow: none;
}

.sidebar.active {
  right: 0;
}

/* =====================================================
   HEADER
===================================================== */

.sidebar-header {
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(68, 11, 25, 0.15);
}

.sidebar-header h3 {
  font-family: "Didot", "Playfair Display", serif;
  font-size: 18px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #440B19;
  margin: 0;
}

#closeSidebar,
#closeWishlist {
  font-size: 26px;
  font-weight: 300;
  color: #440B19;
  cursor: pointer;
  opacity: .6;
  transition: opacity .25s ease;
}

#closeSidebar:hover,
#closeWishlist:hover {
  opacity: 1;
}

/* =====================================================
   CONTENT
===================================================== */

.sidebar-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.sidebar-content p {
  font-size: 14px;
  color: #440B19;
  text-align: center;
  margin-top: 40px;
}

/* =====================================================
   CART / WISHLIST ITEM
===================================================== */

.cart-item,
.wishlist-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.cart-item-img,
.wishlist-item-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 0;
  border: 1px solid rgba(68, 11, 25, 0.10);
}

/* INFO */
.cart-item-info,
.wishlist-item-info {
  flex: 1;
}

.cart-item-info h4,
.wishlist-item-info h4 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #440B19;
  margin-bottom: 6px;
}

.cart-item-info p,
.wishlist-item-info p {
  font-size: 13px;
  font-weight: 600;
  color: #440B19;
  margin-bottom: 10px;
}

/* =====================================================
   QUANTITY CONTROLS
===================================================== */

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-controls button {
  width: 26px;
  height: 26px;
  background: none;
  border: 1px solid #440B19;
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
  color: #440B19;
  transition: all .25s ease;
}

.quantity-controls button:hover {
  background: #440B19;
  color: #ffffff;
}

.quantity-controls .quantity {
  font-size: 13px;
  min-width: 18px;
  text-align: center;
  color: #440B19;
}

/* REMOVE */
.remove-item,
.remove-wishlist {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #440B19;
  cursor: pointer;
  opacity: .6;
  transition: opacity .25s ease;
}

.remove-item:hover,
.remove-wishlist:hover {
  opacity: 1;
}

/* =====================================================
   FOOTER
===================================================== */

.sidebar-footer {
  padding: 24px;
  border-top: 1px solid rgba(68, 11, 25, 0.15);
}

/* =====================================================
   OVERLAY
===================================================== */

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(68, 11, 25, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 4800;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    right: -100%;
  }
}

/* =====================================================
   PRIX & TOTAL
===================================================== */

.cart-item-price {
  font-size: 13px;
  font-weight: 600;
  color: #440B19;
  margin-bottom: 10px;
  letter-spacing: .02em;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 0;
  border-top: 1px solid rgba(68, 11, 25, 0.15);
  margin-bottom: 12px;
  color: #440B19;
}

.cart-total span {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.cart-total strong {
  font-size: 16px;
}

/* =====================================================
   WISHLIST META
===================================================== */

.wishlist-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wishlist-meta p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #440B19;
}

/* =====================================================
   CHECKOUT BUTTON
===================================================== */

.checkout-btn,
.checkoutBtn {
  position: relative;
  width: 100%;
  padding: 17px 24px;
  background: #440B19;
  color: #F5F1EE;
  border: none;
  border-radius: 0;
  font-family: "Didot", "Playfair Display", serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.45s ease;
  isolation: isolate;
}

/* Slide blanc */
.checkout-btn::before,
.checkoutBtn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #F5F1EE;
  transform: translateX(-101%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: -1;
}

.checkout-btn:hover::before,
.checkoutBtn:hover::before {
  transform: translateX(0);
}

.checkout-btn:hover,
.checkoutBtn:hover {
  color: #440B19;
  outline: 1px solid #440B19;
}