/* Path: dr_ayoade/assets/css/cart.css */

/* =====================================
   CART PAGE — premium, mature, minimal
   Matches cart.php class names exactly
===================================== */

.cartHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 16px;
  margin-bottom: 14px;
}

.cartHead__sub{ margin:0 0 6px; }

.cartGrid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items:start;
}

/* Empty state */
.cartEmpty{
  padding: 22px;
  border: 1px solid rgba(200,164,106,.18);
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(200,164,106,.10), transparent 60%),
    rgba(0,0,0,.16);
}

.cartEmpty__title{
  margin:0 0 6px;
  font-family: var(--serifTitle);
  letter-spacing: .6px;
  font-size: 18px;
  color: rgba(255,255,255,.95);
}

.cartEmpty__text{
  margin: 0 0 14px;
  color: rgba(239,229,214,.70);
}

/* Items card */
.cartItems{
  padding: 12px 16px 14px;
  border: 1px solid rgba(200,164,106,.18);
  background: rgba(0,0,0,.16);
}

.cartTop{
  display:grid;
  grid-template-columns: 1.2fr .55fr .55fr .55fr 44px;
  gap: 12px;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(239,229,214,.10);
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(239,229,214,.55);
  letter-spacing: .02em;
}

.cartRow{
  display:grid;
  grid-template-columns: 1.2fr .55fr .55fr .55fr 44px;
  gap: 12px;
  align-items:center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(239,229,214,.08);
}

.cartRow:last-child{ border-bottom: 0; }

.cartProd{
  display:flex;
  gap: 12px;
  align-items:center;
}

.cartThumb{
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  flex: 0 0 auto;
}

.cartMeta{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.cartName{
  font-family: var(--serifTitle);
  letter-spacing: .35px;
  font-size: 14px;
  color: rgba(255,255,255,.95);
  line-height: 1.2;
}

.cartChips{ display:flex; gap: 8px; flex-wrap: wrap; }

.cartChip{
  display:inline-flex;
  align-items:center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(239,229,214,.78);
}

.cartChip--ok{ border-color: rgba(46, 204, 113, .28); background: rgba(46, 204, 113, .08); }
.cartChip--warn{ border-color: rgba(231, 76, 60, .28); background: rgba(231, 76, 60, .08); }

.cartMoney{
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(239,229,214,.82);
}

.cartMoney--strong{
  color: rgba(255,255,255,.95);
  font-weight: 700;
}

.cartQty{
  display:flex;
  align-items:center;
  gap: 8px;
}

.qtyBtn{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.qtyBtn:hover{
  border-color: rgba(200,164,106,.35);
  background: rgba(200,164,106,.12);
}

.qtyInput{
  width: 64px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
  font-family: var(--sans);
  font-size: 13px;
  text-align:center;
}

.qtyInput:focus{
  outline: none;
  border-color: rgba(200,164,106,.55);
  box-shadow: 0 0 0 4px rgba(200,164,106,.12);
}

.cartAct{ display:flex; justify-content:flex-end; }

.cartRemove{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
  font-size: 20px;
  line-height: 1;
}

.cartRemove:hover{
  border-color: rgba(200,164,106,.35);
  background: rgba(200,164,106,.12);
  color: #fff;
}

.cartBottom{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
}

/* Summary card */
.cartSummary{
  padding: 16px;
  border: 1px solid rgba(200,164,106,.18);
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(200,164,106,.10), transparent 60%),
    rgba(0,0,0,.14);
}

.cartSummary__title{
  margin: 0 0 12px;
  font-family: var(--serifTitle);
  letter-spacing: .6px;
  font-size: 16px;
  color: rgba(255,255,255,.95);
}

.cartSumRow{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(239,229,214,.08);
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(239,229,214,.76);
}

.cartSumRow strong{ color: rgba(255,255,255,.95); }

.cartSumNote{
  margin: 12px 0 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(200,164,106,.18);
  background: rgba(200,164,106,.07);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(239,229,214,.72);
}

.cartMini{
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(239,229,214,.60);
}

/* Mobile/tablet */
@media (max-width: 980px){
  .cartGrid{ grid-template-columns: 1fr; }
}

@media (max-width: 700px){
  .cartTop{ display:none; }

  .cartRow{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cartMoney, .cartAct{ justify-content:flex-start; }
  .cartAct{ margin-top: 4px; }
}

/* =====================================================
   CART PAGE — FINAL SAFE FIX (NO GRID OVERRIDES)
===================================================== */

/* Product image: smaller but still clear */
.cartThumb{
  width: 72px !important;
  height: 72px !important;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Ensure product info has enough horizontal space */
.cartProd{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Prevent vertical letter stacking */
.cartMeta{
  min-width: 180px;
}

/* Product name MUST stay horizontal */
.cartName{
  display: block;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word;
  line-height: 1.35;
  font-size: 14px;
  font-weight: 600;
}

/* Keep USD + stock neat */
.cartChips{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Slight spacing fix so Qty + Total breathe */
.cartQty{
  margin-right: 8px;
}

/* =====================================================
   CART PAGE — REMOVE REDUNDANT CURRENCY CHIP
===================================================== */

/* Hide the first currency badge (USD / NGN) */
.cartChips .cartChip:first-child{
  display: none;
}

/* =====================================================
   CART PAGE — DESKTOP ONLY: MOVE PRICE BELOW NAME
===================================================== */

/* Desktop only */
@media (min-width: 901px){

  /* Force product meta to stack cleanly */
  .cartMeta{
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* Ensure name stays alone on first line */
  .cartName{
    margin-bottom: 2px;
  }

  /* Put In-stock + price on the SAME second line */
  .cartChips{
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  /* Make sure price behaves like a badge on desktop */
  .cartMoney{
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
  }

}