/* EMELLE cart drawer */
.cart-overlay { position: fixed; inset: 0; z-index: 140; background: rgba(29, 19, 23, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(420px, 100%);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  box-shadow: -14px 0 40px rgba(0, 0, 0, .18);
}
.cart-drawer.open { transform: none; visibility: visible; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.3rem; border-bottom: 1px solid #f0e2e2; }
.cart-drawer__head h2 { margin: 0; font-family: "Playfair Display", serif; font-size: 1.4rem; color: #1d1317; }
.cart-drawer__close { width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; font-size: 2rem; line-height: 1; color: #702642; cursor: pointer; }
.cart-drawer__msg { margin: 0; padding: .8rem 1.3rem; background: #fbe9ec; color: #8a1f35; font-size: .88rem; }
.cart-drawer .widget_shopping_cart_content { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.cart-drawer .woocommerce-mini-cart { list-style: none; margin: 0; padding: .4rem 1.3rem; flex: 1; overflow-y: auto; }
.cart-drawer .woocommerce-mini-cart-item { position: relative; padding: 1rem 2.2rem 1rem 0; border-bottom: 1px solid #f4e9e9; font-size: .92rem; }
.cart-drawer .woocommerce-mini-cart-item::after { content: ""; display: block; clear: both; }
.cart-drawer .woocommerce-mini-cart-item img { float: left; width: 72px; height: 90px; object-fit: cover; border-radius: 10px; margin: 0 .9rem 0 0; }
.cart-drawer .woocommerce-mini-cart-item a:not(.remove) { display: block; font-weight: 600; color: #1d1317; text-decoration: none; }
.cart-drawer .woocommerce-mini-cart-item dl.variation { margin: .3rem 0 0; font-size: .8rem; color: #6b5a60; }
.cart-drawer .woocommerce-mini-cart-item dl.variation dt, .cart-drawer .woocommerce-mini-cart-item dl.variation dd { display: inline; margin: 0; }
.cart-drawer .woocommerce-mini-cart-item dl.variation p { display: inline; margin: 0; }
.cart-drawer .woocommerce-mini-cart-item .quantity { display: block; margin-top: .4rem; color: #702642; font-weight: 700; }
.cart-drawer a.remove { position: absolute; top: .9rem; right: 0; width: 28px; height: 28px; border-radius: 50%; background: #f7e7e7; color: #702642; text-align: center; line-height: 28px; font-weight: 700; text-decoration: none; }
.cart-drawer a.remove.busy { opacity: .4; pointer-events: none; }
.cart-drawer .woocommerce-mini-cart__empty-message { margin: 0; padding: 3rem 1.3rem; text-align: center; color: #7a6a6f; }
.cart-drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 0; padding: 1rem 1.3rem .2rem; font-weight: 700; font-size: 1.05rem; border-top: 1px solid #f0e2e2; }
.cart-drawer .woocommerce-mini-cart__total .amount { color: #702642; }
.cart-drawer__note { margin: 0; padding: 0 1.3rem; font-size: .76rem; color: #7a6a6f; }
.cart-drawer .woocommerce-mini-cart__buttons { display: grid; gap: .6rem; margin: 0; padding: .9rem 1.3rem 1.3rem; }
.cart-drawer .woocommerce-mini-cart__buttons a.button {
  display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; border: 2px solid #702642;
  background: transparent; color: #702642; font-weight: 600; text-decoration: none; margin: 0;
}
.cart-drawer .woocommerce-mini-cart__buttons a.button.checkout { background: #702642; color: #fff; order: -1; }
.cart-drawer .woocommerce-mini-cart__buttons a.button:hover { background: #4d1a2c; border-color: #4d1a2c; color: #fff; }

/* Sold out */
.size--sold { opacity: .6; cursor: not-allowed; }
.size--sold .save { color: #8a1f35; }
.is-soldout .sizes { opacity: .6; }
.pd__buy .emelle-soldout {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 1.1rem;
  border-radius: 999px; border: 2px solid #d9c4cb; background: #efe4e7; color: #8c7480;
  font: inherit; font-weight: 700; font-size: 1.02rem; cursor: not-allowed;
}

/* Phone: "Why choose us" shows 2 compact boxes per row instead of 4 big ones */
@media (max-width: 640px) {
  #why .grid--4 { grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1.6rem; }
  #why .card--plain { padding: 1.1rem .8rem; border-radius: 18px; }
  #why .icon { width: 40px; height: 40px; font-size: 1.15rem; margin-bottom: .6rem; }
  #why .card--plain h3 { font-size: .95rem; line-height: 1.25; }
  #why .card--plain p { font-size: .78rem; line-height: 1.5; margin-top: .35rem; }
}

/* Phone: "How to order" also shows 2 compact boxes per row */
@media (max-width: 640px) {
  #how .steps { grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1.6rem; }
  #how .steps li { padding: 1rem .8rem; border-radius: 18px; gap: .4rem; }
  #how .steps li::before { width: 30px; height: 30px; font-size: .85rem; }
  #how .steps h3 { font-size: .88rem; line-height: 1.25; }
  #how .steps p { font-size: .74rem; line-height: 1.5; }
  #how .chip { font-size: .68rem; padding: .4rem .7rem; }
}

/* Never show how many are left in stock ("10 in stock", "Only 2 left") */
.pd__buy p.stock:not(.out-of-stock) { display: none !important; }
