:root{
  --white:#ffffff;
  --text:#111111;
  --text-soft:#666666;
  --danger:#b91c1c;
  --success:#166534;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family:'Montserrat', sans-serif;
  color:#fff;
  background:
    /*radial-gradient(circle at top, rgba(242,176,32,.16), transparent 28%),*/
    var(--bg-body-main);
  min-height:100vh;
}

img{
  max-width:100%;
  display:block;
}

a{
  text-decoration:none;
}

button,
input{
  font-family:inherit;
}

.cart-page{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:24px 16px 40px;
}

.cart-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}

.cart-header__left{
  display:flex;
  align-items:center;
  gap:14px;
}

.cart-back{
  width:44px;
  height:44px;
  border-radius:999px;
  display:grid;
  place-items:center;
  color:#fff;
  background: rgba(255,255,255,.10);
  border:1px solid var(--bg-back-border);
  transition: transform .18s ease, filter .18s ease;
}

.cart-back:hover{
  transform:translateY(-2px);
  filter:brightness(1.08);
}

.cart-back:active{ transform: scale(.98); }

.cart-kicker{
  font-size:12px;
  font-weight:800;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:var(--gold-3);
  margin-bottom:4px;
}

.cart-header h1{
  font-size:30px;
  font-weight:900;
}

.cart-alert{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border-radius:18px;
  margin-bottom:14px;
  font-size:14px;
  font-weight:700;
}

.cart-alert--success{
  background:rgba(22,101,52,.18);
  border:1px solid rgba(22,101,52,.32);
  color:#d1fae5;
}

.cart-alert--error{
  background:rgba(185,28,28,.18);
  border:1px solid rgba(185,28,28,.32);
  color:#fee2e2;
}

.cart-layout{
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:20px;
  align-items:start;
}

.cart-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.cart-item{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:16px;
  padding:16px;
  border-radius:24px;
  background:#fff;
  color:var(--text);
  box-shadow:0 18px 38px rgba(0,0,0,.26);
}

.cart-item__image-wrap{
  width:100%;
  aspect-ratio:1/1;
  border-radius:18px;
  overflow:hidden;
  background:#f2f2f2;
}

.cart-item__image{
  width:100%;
  height:100%;
  object-fit:cover;
}

.cart-item__body{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.cart-item__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.cart-item__top h3{
  font-size:20px;
  font-weight:900;
  margin-bottom:6px;
}

.cart-item__unit-price{
  font-size:13px;
  color:var(--text-soft);
}

.cart-remove-btn{
  width:42px;
  height:42px;
  border:none;
  border-radius:14px;
  cursor:pointer;
  display:grid;
  place-items:center;
  background:rgba(185,28,28,.1);
  color:var(--danger);
}

.cart-item__bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.cart-update-form{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.cart-qty-control{
  display:flex;
  align-items:center;
  gap:10px;
}

.cart-qty-btn{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.1);
  background:#f5f5f5;
  cursor:pointer;
  display:grid;
  place-items:center;
}

.cart-qty-input{
  width:84px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.14);
  text-align:center;
  font-size:15px;
  font-weight:800;
  outline:none;
}

.cart-secondary-btn,
.cart-primary-btn,
.cart-empty-btn{
  min-height:46px;
  border:none;
  border-radius:999px;
  padding:12px 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:900;
  cursor:pointer;
}

.cart-secondary-btn{
  background:#f3f3f3;
  color:#111;
}

.cart-primary-btn{
  width:100%;
  color:#111;
  background:var(--bg-action-primary);
}

.cart-empty-btn{
  width:100%;
  background:rgba(185,28,28,.1);
  color:var(--danger);
}

.cart-secondary-link{
  display:inline-block;
  text-align:center;
  color:#111;
  font-weight:800;
  margin-top:6px;
}

.cart-item__subtotal{
  font-size:24px;
  font-weight:900;
}

.cart-summary__card{
  position:sticky;
  top:16px;
  border-radius:24px;
  background:#fff;
  color:#111;
  padding:22px;
  box-shadow:0 18px 38px rgba(0,0,0,.26);
}

.cart-summary__card h2{
  font-size:24px;
  font-weight:900;
  margin-bottom:16px;
}

.cart-summary__rows{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.cart-summary__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.cart-summary__row--total{
  font-size:18px;
  font-weight:900;
}

.cart-summary__actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:18px;
}

.cart-empty{
  padding:42px 20px;
  border-radius:28px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
  text-align:center;
}

.cart-empty__icon{
  width:78px;
  height:78px;
  margin:0 auto 16px;
  display:grid;
  place-items:center;
  border-radius:22px;
  background:var(--bg-action-primary);
  color:#111;
  font-size:30px;
}

.cart-empty h2{
  font-size:28px;
  margin-bottom:10px;
}

.cart-empty p{
  font-size:14px;
  color:rgba(255,255,255,.78);
  margin-bottom:20px;
}

@media (max-width:980px){
  .cart-layout{
    grid-template-columns:1fr;
  }

  .cart-summary__card{
    position:static;
  }
}

@media (max-width:640px){
  .cart-page{
    padding:18px 12px 30px;
  }

  .cart-header h1{
    font-size:24px;
  }

  .cart-item{
    grid-template-columns:1fr;
  }

  .cart-item__bottom{
    flex-direction:column;
    align-items:stretch;
  }

  .cart-update-form{
    flex-direction:column;
    align-items:stretch;
  }

  .cart-qty-control{
    justify-content:space-between;
  }

  .cart-qty-input{
    flex:1;
  }

  .cart-item__subtotal{
    font-size:22px;
  }
}
