/* ============================================================
   ARIEL SIDDUR — Header mini-cart
   ============================================================ */

.header-cart-wrap { position: relative; }

.header-cart { position: relative; }

/* ── Count badge ── */
.ariel-cart-count {
  position: absolute;
  top: -4px;
  inset-inline-start: -4px;     /* left in RTL */
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--gold, #c79a3b);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 999px;
  font-family: 'Assistant', sans-serif;
}
.ariel-cart-count[hidden] { display: none; }
.ariel-cart-count.bump { animation: ariel-bump .35s ease; }
@keyframes ariel-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ── Dropdown panel ── */
.mini-cart-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  /* Cart sits at the far-left of the RTL header: anchor the LEFT edge to the
     icon and open rightward into the page so it never overflows the viewport. */
  inset-inline-start: auto;
  inset-inline-end: 0;
  margin-inline-end: -80px;     /* nudge left into the header whitespace */
  width: 350px;
  max-width: 92vw;
  background: #fff;
  border: 1px solid #ece5d8;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(20, 39, 61, .18);
  padding: 18px;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  font-family: 'Assistant', sans-serif;
  text-align: right;
}
.mini-cart-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* little arrow */
.mini-cart-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  inset-inline-end: 96px;       /* stays under the cart icon after the left nudge */
  width: 14px;
  height: 14px;
  background: #fff;
  border-inline-start: 1px solid #ece5d8;
  border-top: 1px solid #ece5d8;
  transform: rotate(45deg);
}

/* ── WooCommerce mini-cart contents ── */
.mini-cart-dropdown .woocommerce-mini-cart {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}
.mini-cart-dropdown .woocommerce-mini-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid #f0ece3;
  position: relative;
  border-radius: 10px;
  transition: background .15s ease;
}
.mini-cart-dropdown .woocommerce-mini-cart-item:hover { background: #faf6ee; }

/* Product link = image + name, on the right */
.mini-cart-dropdown .woocommerce-mini-cart-item a:not(.remove) {
  order: 1;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-dark, #16263c);
  text-decoration: none;
  line-height: 1.35;
}
.mini-cart-dropdown .woocommerce-mini-cart-item a:not(.remove):hover { color: var(--gold, #c79a3b); }
.mini-cart-dropdown .woocommerce-mini-cart-item img {
  width: 54px !important;
  height: 54px !important;
  object-fit: contain;
  border-radius: 10px;
  background: #f6f1e7;
  padding: 4px;
  margin: 0 !important;
  float: none !important;
  flex-shrink: 0;
}

/* Quantity × price — compact pill in the middle */
.mini-cart-dropdown .woocommerce-mini-cart-item .quantity {
  order: 2;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #8a8a8a;
  white-space: nowrap;
  text-align: center;
  line-height: 1.3;
}
.mini-cart-dropdown .woocommerce-mini-cart-item .quantity .woocommerce-Price-amount {
  display: block;
  font-size: 15px !important;
  font-weight: 800;
  color: var(--navy-dark, #16263c);
  margin-top: 2px;
}

/* Remove × on the far left */
.mini-cart-dropdown a.remove {
  order: 3;
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  background: #f3eee4;
  color: #b23b3b !important;
  font-size: 15px;
  text-decoration: none;
  flex-shrink: 0;
  transition: all .15s ease;
}
.mini-cart-dropdown a.remove:hover { background: #b23b3b; color: #fff !important; transform: scale(1.08); }

.mini-cart-dropdown .woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark, #16263c);
  padding: 14px 4px;
  margin: 6px 0 0;
  border-top: 2px solid #f0ece3;
  border-bottom: none;
}
.mini-cart-dropdown .woocommerce-mini-cart__total .woocommerce-Price-amount {
  font-size: 18px !important;
  font-weight: 800;
  color: var(--gold-dark, #b8921e);
}

.mini-cart-dropdown .woocommerce-mini-cart__buttons {
  display: flex;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
}
.mini-cart-dropdown .woocommerce-mini-cart__buttons .button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Assistant', sans-serif;
  transition: all .2s ease;
}
/* View cart = outline, Checkout = solid navy */
.mini-cart-dropdown .woocommerce-mini-cart__buttons .button:not(.checkout) {
  background: #fff;
  color: var(--navy-dark, #16263c);
  border: 1.5px solid var(--navy-dark, #16263c);
}
.mini-cart-dropdown .woocommerce-mini-cart__buttons .button:not(.checkout):hover {
  background: var(--navy-dark, #16263c);
  color: #fff;
}
.mini-cart-dropdown .woocommerce-mini-cart__buttons .button.checkout {
  background: var(--navy-dark, #16263c);
  color: #fff;
  border: 1.5px solid var(--navy-dark, #16263c);
}
.mini-cart-dropdown .woocommerce-mini-cart__buttons .button.checkout:hover {
  background: #0a1535;
}

/* Empty state */
.mini-cart-dropdown .woocommerce-mini-cart__empty-message {
  margin: 8px 0;
  text-align: center;
  color: #777;
  font-size: 14px;
}

@media (max-width: 480px) {
  .mini-cart-dropdown { width: 300px; margin-inline-end: -10px; }
  .mini-cart-dropdown::before { inset-inline-end: 26px; }
}
