/* SHHEK — Cart Page (cart.css) */

.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 4rem; padding: 2rem 0 5rem; align-items: start; }

/* Items column */
.cart-items-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2rem; }
.cart-items-header h1 { font-family: var(--ff-head); font-size: clamp(1.8rem, 3vw, var(--fs-2xl)); font-weight: 400; color: var(--espresso); }
.cart-items-count { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clr-muted); }

/* Shipping progress */
.shipping-progress { padding: 1.5rem; background: var(--warm-beige); border-radius: var(--r-md); margin-bottom: 2.5rem; }
.shipping-progress__bar-wrap { height: 5px; background: rgba(75,71,68,0.12); border-radius: var(--r-full); overflow: hidden; margin-bottom: 0.65rem; }
.shipping-progress__bar { height: 100%; background: var(--clay); border-radius: var(--r-full); transition: width 0.6s var(--ease); }
.shipping-progress p { font-size: var(--fs-xs); font-weight: 500; color: var(--clr-muted); }
.shipping-progress p strong { color: var(--espresso); }

/* Cart items */
.cart-items { display: flex; flex-direction: column; border-top: 1px solid var(--clr-border); }
.cart-item {
  display: grid; grid-template-columns: 110px 1fr auto;
  gap: 1.75rem; padding: 2rem 0;
  border-bottom: 1px solid var(--clr-border);
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.4s ease, background var(--t-fast) var(--ease);
  overflow: hidden;
}
.cart-item:hover { background: rgba(232,222,211,0.15); }
.cart-item__img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3/4; background: var(--warm-beige); box-shadow: var(--sh-xs); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.cart-item__img:hover img { transform: scale(1.03); }

.cart-item__info { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 0.2rem; }
.cart-item__name { font-family: var(--ff-head); font-size: var(--fs-md); font-weight: 400; color: var(--espresso); text-decoration: none; transition: opacity var(--t-fast) var(--ease); line-height: 1.3; }
.cart-item__name:hover { opacity: 0.7; }
.cart-item__variant { font-size: var(--fs-xs); color: var(--clr-muted); letter-spacing: 0.04em; }
.cart-item__brand { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clr-accent); }
.cart-item__remove { background: none; border: none; cursor: pointer; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clr-muted); text-decoration: underline; text-underline-offset: 3px; font-family: var(--ff-body); transition: color var(--t-fast) var(--ease); padding: 0; margin-top: auto; align-self: flex-start; }
.cart-item__remove:hover { color: #c0392b; }

.cart-item__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: 0.2rem; }
.qty-wrap { display: flex; align-items: center; border: 1.5px solid var(--clr-border); border-radius: var(--r-full); overflow: hidden; }
.qty-minus, .qty-plus { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; font-size: 18px; color: var(--espresso); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); font-family: var(--ff-body); flex-shrink: 0; }
.qty-minus:hover, .qty-plus:hover { background: var(--espresso); color: var(--white); }
.qty-count { min-width: 40px; text-align: center; font-size: var(--fs-sm); font-weight: 700; color: var(--espresso); }
.cart-item__total { font-family: var(--ff-head); font-size: var(--fs-lg); font-weight: 700; color: var(--espresso); }

.continue-shopping { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1.5rem 0; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clr-muted); transition: color var(--t-fast) var(--ease); }
.continue-shopping svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.continue-shopping:hover { color: var(--espresso); }

/* Order summary */
.cart-summary { 
  background: var(--white); 
  border: 1px solid rgba(75, 71, 68, 0.08); 
  border-radius: var(--r-xl); 
  padding: 2.75rem 2.5rem; 
  position: sticky; 
  top: calc(var(--header-h) + 2rem); 
  display: flex; 
  flex-direction: column; 
  gap: 1.25rem; 
  box-shadow: 0 12px 40px rgba(0,0,0,0.04);
}
.cart-summary__title { font-family: var(--ff-head); font-size: 1.4rem; font-weight: 400; color: var(--espresso); margin-bottom: 1rem; }
.cart-summary__row { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-sm); color: var(--espresso); opacity: 0.85; }
.cart-summary__shipping { color: var(--clr-accent); font-weight: 500; opacity: 1; }
.cart-summary__divider { height: 1px; background: rgba(75, 71, 68, 0.1); margin: 0.5rem 0; }
.cart-summary__total { font-size: var(--fs-md); font-weight: 700; color: var(--espresso); opacity: 1; align-items: baseline; }
.cart-summary__total span:last-child { font-family: var(--ff-head); font-size: 1.6rem; letter-spacing: 0.02em; }

/* Promo */
.promo-form { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.5rem 0; }
.promo-input-wrap { display: flex; border: 1px solid rgba(75, 71, 68, 0.15); border-radius: var(--r-md); overflow: hidden; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.promo-input-wrap:hover { border-color: rgba(75, 71, 68, 0.6); }
.promo-input-wrap:focus-within { border-color: var(--espresso); box-shadow: 0 0 0 1px var(--espresso); }
.promo-input-wrap input { flex: 1; min-width: 0; padding: 0.8rem 1.2rem; background: transparent; border: none; outline: none; font-family: var(--ff-body); font-size: var(--fs-sm); color: var(--espresso); }
.promo-input-wrap input::placeholder { color: var(--clr-muted); opacity: 0.7; }
.promo-input-wrap button { padding: 0.8rem 1.4rem; background: var(--espresso); color: var(--white); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border: none; cursor: pointer; flex-shrink: 0; font-family: var(--ff-body); transition: background var(--t-fast) var(--ease); }
.promo-input-wrap button:hover { background: var(--charcoal); }
.promo-msg { font-size: var(--fs-xs); font-weight: 500; min-height: 1em; }

/* Checkout button */
.checkout-btn { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 1.25rem; background: var(--espresso); color: var(--white); border-radius: var(--r-full); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; transition: all var(--t-fast) var(--ease); margin-top: 0.5rem; }
.checkout-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; margin-bottom: 2px; }
.checkout-btn:hover { background: var(--charcoal); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(75, 71, 68, 0.2); }
.checkout-btn:active { transform: scale(0.98); box-shadow: none; }

.cart-security { display: flex; align-items: center; gap: 0.5rem; font-size: 13px; color: var(--clr-muted); justify-content: center; margin-top: 0.5rem; }
.cart-security svg { width: 15px; height: 15px; stroke: var(--clr-accent); fill: none; stroke-width: 1.5; }

.cart-payment-badges { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-top: 0.5rem; }
.pay-badge { padding: 0.35rem 0.8rem; border: 1px solid rgba(75, 71, 68, 0.15); border-radius: 4px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; color: var(--clr-muted); }

.cart-returns-note { display: flex; align-items: center; gap: 0.5rem; font-size: 13px; color: var(--clr-muted); justify-content: center; text-align: center; margin-top: 0.5rem; }
.cart-returns-note svg { width: 14px; height: 14px; stroke: var(--clr-accent); fill: none; stroke-width: 2; flex-shrink: 0; }

/* Empty state */
.cart-empty { text-align: center; padding: 8rem 0; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.cart-empty svg { width: 64px; height: 64px; stroke: var(--sand); fill: none; stroke-width: 1.2; }
.cart-empty h2 { font-family: var(--ff-head); font-size: var(--fs-2xl); font-weight: 400; color: var(--espresso); }
.cart-empty p { font-size: var(--fs-md); color: var(--clr-muted); max-width: 36ch; }
.cart-empty__btn { display: inline-flex; align-items: center; padding: 0.9rem 2.2rem; background: var(--espresso); color: var(--white); border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; transition: all var(--t-fast) var(--ease); }
.cart-empty__btn:hover { background: var(--charcoal); transform: translateY(-1px); }
.cart-empty__btn:active { transform: scale(0.97); }

/* Complete the look */
.complete-look { padding: 4rem 0; border-top: 1px solid var(--clr-border); }
.complete-look__title { font-family: var(--ff-head); font-size: var(--fs-xl); font-weight: 400; color: var(--espresso); margin-bottom: 2rem; }
.complete-look__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

@media (max-width: 1024px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; order: -1; }
  .complete-look__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cart-item { grid-template-columns: 100px 1fr; gap: 1rem; }
  .cart-item__right { grid-column: 1/-1; flex-direction: row; align-items: center; gap: 0.75rem; padding: 0 0 0.5rem; }
  .cart-summary { padding: 1.75rem; }
  .complete-look__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .cart-items-header h1 { font-size: 1.6rem; }
}
