/* ── CART DRAWER CONTENTS ──────────────────────────────────────────────────
   Styles the mini-cart markup from woocommerce/cart/mini-cart.php: line items,
   the quantity stepper, subtotal and checkout button.

   The drawer shell itself (panel, overlay, slide animation, header) stays in
   template-parts/ilaro-head.php — this file only covers what's inside it.

   Loaded on every page, since the drawer is part of the global chrome.
   ────────────────────────────────────────────────────────────────────────── */

/* Free-shipping banner. Shipping is free on every order, so this is a flat
   statement, not the progress bar it replaced. Given a soft tinted pill so it
   reads as a benefit the moment the cart opens rather than as fine print. */
.ilaro-ship-bar {
  padding: 11px 14px;
  margin: 0 0 14px;
  background: rgba(0, 107, 189, 0.07);
  border-radius: 10px;
}
.ilaro-ship-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'IM Fell English', serif;
  font-size: 15.5px;
  color: var(--navy, #284177);
  text-align: center;
  margin: 0;
}
.ilaro-ship-text svg { color: var(--blue, #006BBD); flex: 0 0 auto; }
.ilaro-ship-text strong { color: var(--blue, #006BBD); font-weight: 700; }

/* ── LINE ITEMS ─────────────────────────────────────────────────────────── */
.ilaro-cart-list { list-style: none; padding: 0; margin: 0; }

.ilaro-cart-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  box-shadow: 0 1px 0 rgba(40, 65, 119, 0.1);
  position: relative;
}

.ilaro-cart-thumb { flex-shrink: 0; width: 84px; }
.ilaro-cart-thumb img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--cream, #EDE8E4);
  display: block;
}

.ilaro-cart-detail { flex: 1; min-width: 0; }

.ilaro-cart-name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--navy, #284177);
  text-decoration: none;
  display: block;
  line-height: 1.4;
  margin-bottom: 4px;
}
.ilaro-cart-name:hover { color: var(--blue, #006BBD); }

.ilaro-cart-variation {
  font-family: 'IM Fell English', serif;
  font-size: 13.5px;
  color: #8a93a3;
  margin-bottom: 6px;
  line-height: 1.4;
}
.ilaro-cart-variation p { margin: 0; }
.ilaro-cart-variation dl,
.ilaro-cart-variation dt,
.ilaro-cart-variation dd { display: inline; margin: 0; font-size: 13.5px; }

.ilaro-cart-price {
  font-family: 'IM Fell English', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy, #284177);
  margin-bottom: 10px;
}
.ilaro-cart-price .amount { color: var(--navy, #284177); }

/* ── QUANTITY STEPPER + REMOVE ──────────────────────────────────────────── */
.ilaro-cart-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.ilaro-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8dbe0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.ilaro-qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: var(--navy, #284177);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease;
  padding: 0;
  /* Stops iOS double-tap zoom on the steppers */
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.ilaro-qty-btn:hover { background: var(--cream, #EDE8E4); }
.ilaro-qty-btn:disabled { opacity: .35; cursor: default; }

.ilaro-qty-value {
  min-width: 30px;
  text-align: center;
  font-family: 'IM Fell English', serif;
  font-size: 15px;
  color: var(--navy, #284177);
  border-left: 1px solid #d8dbe0;
  border-right: 1px solid #d8dbe0;
  line-height: 30px;
}

.ilaro-cart-remove {
  background: none;
  border: none;
  padding: 0;
  font-family: 'IM Fell English', serif;
  font-size: 13px;
  color: #8a93a3;
  text-decoration: underline;
  cursor: pointer;
  transition: color .18s ease;
}
.ilaro-cart-remove:hover { color: #c0392b; }

/* Dim the drawer while a quantity change is in flight */
.cart-drawer.is-updating .ilaro-cart-list,
.cart-drawer.is-updating .ilaro-cart-foot { opacity: .5; pointer-events: none; transition: opacity .15s ease; }

/* ── FOOTER: TOTALS + CHECKOUT ──────────────────────────────────────────── */
.ilaro-cart-foot { padding-top: 18px; box-shadow: 0 -1px 0 rgba(40, 65, 119, 0.1); margin-top: 4px; }

.ilaro-cart-totals { margin-bottom: 16px; }
.ilaro-cart-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ilaro-cart-row:last-child { margin-bottom: 0; }
.ilaro-cart-subtotal {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy, #284177);
}
.ilaro-cart-subtotal-value { font-size: 21px; letter-spacing: 0; }
.ilaro-cart-subtotal-value .amount { color: var(--navy, #284177); }
.ilaro-cart-shiprow {
  font-family: 'IM Fell English', serif;
  font-size: 14.5px;
  color: var(--navy, #284177);
}
.ilaro-cart-muted { color: #8a93a3; }

.ilaro-cart-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px;
  background: var(--navy, #284177);
  color: #fff;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease;
}
.ilaro-cart-checkout:hover { background: var(--blue, #006BBD); color: #fff; }
.ilaro-cart-checkout svg { flex-shrink: 0; }

.ilaro-cart-viewcart {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-family: 'IM Fell English', serif;
  font-size: 14.5px;
  color: var(--navy, #284177);
  text-decoration: underline;
}
.ilaro-cart-viewcart:hover { color: var(--blue, #006BBD); }

/* ── SHIPPING & RETURNS ACCORDION ──────────────────────────────────────── */
.ilaro-cart-accordion {
  border: 1px solid var(--border, #e6e8ec);
  border-radius: 10px;
  margin-bottom: 18px;
  overflow: hidden;
}
.ilaro-cart-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy, #284177);
}
.ilaro-cart-accordion summary::-webkit-details-marker { display: none; }
.ilaro-acc-chevron { color: var(--navy, #284177); transition: transform .25s ease; flex-shrink: 0; }
.ilaro-cart-accordion[open] .ilaro-acc-chevron { transform: rotate(180deg); }
.ilaro-cart-accordion-body {
  padding: 2px 16px 14px;
  font-family: 'IM Fell English', serif;
  font-size: 13px;
  line-height: 1.55;
  color: #5b6472;
}
.ilaro-cart-accordion-body p { margin: 0 0 10px; }
.ilaro-cart-accordion-body strong { color: var(--navy, #284177); }
.ilaro-cart-policy-link { color: var(--blue, #006BBD); text-decoration: underline; font-size: 13px; }

/* ── PAYMENT ICONS ─────────────────────────────────────────────────────── */
.ilaro-cart-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-top: 16px;
}
.ilaro-pay { width: 40px; height: 26px; display: block; }

/* ── HEADER COUNT ──────────────────────────────────────────────────────── */
.cart-drawer-head .ilaro-cart-count { color: #9aa0a8; font-weight: 400; letter-spacing: 1.5px; }

/* Astra's parent-theme empty-cart block — hidden as a fallback in case the PHP
   removal in inc/cart-drawer.php is ever bypassed. We render our own. */
.ast-mini-cart-empty { display: none !important; }

/* ── EMPTY STATE ────────────────────────────────────────────────────────── */
.cart-drawer-empty { text-align: center; padding: 48px 20px; }
.cart-empty-icon { color: #c3c9d4; margin-bottom: 12px; }
.cart-drawer-empty p,
.woocommerce-mini-cart__empty-message {
  font-family: 'IM Fell English', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--taupe, #8a93a3);
  margin: 0 0 24px;
  line-height: 1.6;
}
.cart-drawer-empty a {
  display: inline-block;
  padding: 13px 28px;
  background: var(--blue, #006BBD);
  color: #fff;
  border-radius: 8px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
}

@media (max-width: 480px) {
  .ilaro-cart-thumb, .ilaro-cart-thumb img { width: 68px; }
  .ilaro-cart-thumb img { height: 68px; }
  .ilaro-cart-name { font-size: 14px; }
}
