/* Extracted from cart.php. Loaded at the original cascade position. */

:root{
  --km-red:#ef233c;
  --km-red-dark:#d90429;
  --km-black:#111827;
  --km-black-deep:#080b11;
  --km-white:#ffffff;
  --km-bg:#f5f6f8;
  --km-border:#e5e7eb;
  --km-muted:#667085;
}

.cart-page{
  min-height:78vh;
  padding:20px 5%;
  background:
    radial-gradient(circle at top right,rgba(239,35,60,.06),transparent 25%),
    linear-gradient(180deg,#fafafa,#f4f5f7);
}

.cart-head{
  position:relative;
  max-width:1120px;
  margin:0 auto 12px;
  padding:15px 17px;
  overflow:hidden;
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  border-radius:18px;
  background:
    radial-gradient(circle at 88% 25%,rgba(239,35,60,.18),transparent 24%),
    linear-gradient(135deg,var(--km-black-deep),var(--km-black));
  box-shadow:0 16px 38px rgba(8,11,17,.20);
}

.cart-head::after{
  content:"";
  position:absolute;
  right:-42px;
  bottom:-70px;
  width:170px;
  height:170px;
  border:30px solid rgba(239,35,60,.07);
  border-radius:50%;
  pointer-events:none;
}

.cart-head>div,
.cart-head .shop-more{
  position:relative;
  z-index:1;
}

.cart-head span{
  display:inline-flex;
  gap:6px;
  align-items:center;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.09);
  color:#fff;
  font-size:10px;
  font-weight:900;
}

.cart-head span i{color:var(--km-red)}

.cart-head h1{
  margin:7px 0 2px;
  color:#fff;
  font-size:27px;
  line-height:1.1;
  font-weight:900;
}

.cart-head p{
  margin:0;
  color:#cbd5e1;
  font-size:11.5px;
  font-weight:600;
}

.shop-more,
.empty-cart a,
.checkout-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border-radius:999px;
  text-decoration:none;
  font-size:11px;
  font-weight:900;
  transition:.2s ease;
}

.shop-more:hover,
.empty-cart a:hover,
.checkout-btn:hover{transform:translateY(-2px)}

.shop-more{
  padding:8px 13px;
  background:#fff;
  color:var(--km-black);
}

.shop-more i{color:var(--km-red)}

.cart-notice,
.empty-cart,
.cart-item,
.address-box,
.summary-card{
  max-width:1120px;
  margin-left:auto;
  margin-right:auto;
  background:#fff;
  border:1px solid var(--km-border);
  box-shadow:0 9px 24px rgba(17,24,39,.05);
}

.cart-notice{
  margin-bottom:11px;
  padding:9px 12px;
  border-left:4px solid var(--km-red);
  border-radius:10px;
  color:var(--km-black);
  background:#fff;
  font-size:12px;
  font-weight:800;
}

.cart-notice i{
  margin-right:5px;
  color:var(--km-red);
}

.empty-cart{
  text-align:center;
  padding:36px 16px;
  border-top:4px solid var(--km-red);
  border-radius:18px;
}

.empty-cart>i{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  margin:0 auto 12px;
  border-radius:16px;
  background:var(--km-black);
  color:var(--km-red);
  font-size:25px;
  box-shadow:0 10px 22px rgba(17,24,39,.18);
}

.empty-cart h2{
  margin:0 0 5px;
  color:var(--km-black);
  font-size:21px;
}

.empty-cart p{
  margin:0 0 14px;
  color:var(--km-muted);
  font-size:12px;
}

.empty-cart a{
  padding:9px 14px;
  background:linear-gradient(135deg,var(--km-red),var(--km-red-dark));
  color:#fff;
  box-shadow:0 9px 20px rgba(217,4,41,.22);
}

.cart-layout{
  max-width:1120px;
  margin:auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:13px;
  align-items:start;
}

.cart-items{
  display:grid;
  gap:9px;
}

.cart-item{
  display:grid;
  grid-template-columns:78px 1fr auto;
  gap:11px;
  align-items:center;
  padding:9px 12px;
  border-radius:14px;
  margin:0;
  transition:.22s ease;
}

.cart-item:hover{
  transform:translateY(-2px);
  border-color:rgba(239,35,60,.25);
  box-shadow:0 12px 26px rgba(17,24,39,.08);
}

.cart-item img{
  width:78px;
  height:72px;
  object-fit:cover;
  border-radius:11px;
  border:1px solid #f0f1f3;
}

.item-info span{
  display:inline-block;
  padding:3px 7px;
  border-radius:999px;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  color:var(--km-black);
  font-size:9px;
  font-weight:900;
}

.item-info h3{
  margin:5px 0 2px;
  color:var(--km-black);
  font-size:14px;
  line-height:1.2;
  font-weight:900;
}

.item-info p{
  margin:0;
  color:var(--km-muted);
  font-size:10.5px;
}

.item-actions{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:6px;
}

.qty{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:3px;
  border-radius:999px;
  background:#f7f7f8;
  border:1px solid var(--km-border);
}

.qty a{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--km-black);
  color:#fff;
  text-decoration:none;
  font-size:13px;
  font-weight:900;
  transition:.2s ease;
}

.qty a:hover{background:var(--km-red)}

.qty b{
  min-width:16px;
  text-align:center;
  color:var(--km-black);
  font-size:11px;
}

.remove{
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff1f2;
  color:var(--km-red-dark);
  text-decoration:none;
  font-size:11px;
  transition:.2s ease;
}

.remove:hover{
  background:var(--km-red);
  color:#fff;
}

.item-price{
  color:var(--km-red-dark);
  font-size:16px;
  font-weight:900;
  white-space:nowrap;
}

.address-box{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:11px 13px;
  border-radius:14px;
  align-items:center;
  border-left:4px solid var(--km-red);
}

.address-box span{
  display:block;
  color:var(--km-black);
  font-size:12px;
  font-weight:900;
}

.address-box span i{
  margin-right:5px;
  color:var(--km-red);
}

.address-box p{
  margin:2px 0 0;
  color:var(--km-muted);
  font-size:10.5px;
}

.address-box a{
  padding:7px 10px;
  border-radius:999px;
  background:var(--km-black);
  color:#fff;
  text-decoration:none;
  font-size:10px;
  font-weight:900;
}

.summary-card{
  position:sticky;
  top:16px;
  padding:14px;
  border-radius:16px;
  border-top:4px solid var(--km-red);
}

.summary-card h2{
  margin:0 0 10px;
  color:var(--km-black);
  font-size:18px;
  font-weight:900;
}


.bill-row,
.grand-total{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:7px 0;
  border-bottom:1px dashed #e5e7eb;
  color:var(--km-muted);
  font-size:11.5px;
}

.bill-row b{
  color:var(--km-black);
  white-space:nowrap;
}

.bill-row.discount,
.bill-row.discount b{color:var(--km-red-dark)}

.grand-total{
  border-bottom:0;
  margin-top:3px;
  padding-top:10px;
  color:var(--km-black);
  font-size:14px;
  font-weight:900;
}

.grand-total b{
  color:var(--km-red-dark);
  font-size:17px;
}

.checkout-btn{
  width:100%;
  margin-top:10px;
  padding:10px 12px;
  background:linear-gradient(135deg,var(--km-red),var(--km-red-dark));
  color:#fff;
  box-shadow:0 10px 22px rgba(217,4,41,.22);
}

.clear-btn{
  display:block;
  margin-top:8px;
  text-align:center;
  color:var(--km-red-dark);
  text-decoration:none;
  font-size:10.5px;
  font-weight:900;
}

.delivery-card h2{margin-bottom:12px}
.delivery-time-box{display:flex;align-items:center;gap:11px;padding:12px;border-radius:14px;background:#fff7f7;border:1px solid #fee2e2;margin-bottom:10px}.delivery-time-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:var(--km-red);color:#fff;font-size:18px}.delivery-time-box span,.delivery-detail-row span{display:block;color:var(--km-muted);font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.35px}.delivery-time-box strong{display:block;margin-top:2px;color:var(--km-black);font-size:18px;font-weight:900}.delivery-detail-row{display:flex;gap:10px;align-items:flex-start;padding:10px 2px;border-bottom:1px dashed #e5e7eb}.delivery-detail-row>i{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:9px;background:#f3f4f6;color:var(--km-red-dark);font-size:12px}.delivery-detail-row strong{display:block;margin-top:2px;color:var(--km-black);font-size:11.5px;line-height:1.45;word-break:break-word}.address-detail-row strong{font-weight:800}.local-thanks{display:flex;gap:10px;padding:11px;margin-top:11px;border-radius:13px;background:#ecfdf5;border:1px solid #bbf7d0;color:#166534}.local-thanks>i{margin-top:2px;font-size:15px}.local-thanks strong{display:block;font-size:11.5px}.local-thanks p{margin:3px 0 0;font-size:10.5px;line-height:1.45;font-weight:700}

@media(max-width:900px){
  .cart-page{padding:15px 11px}
  .cart-head{align-items:flex-start}
  .cart-layout{grid-template-columns:1fr}
  .summary-card{position:static}
}

@media(max-width:560px){
  .cart-page{padding:10px 8px}
  .cart-head{
    padding:13px;
    align-items:flex-start;
    flex-direction:column;
    border-radius:15px;
  }
  .cart-head h1{font-size:23px}
  .cart-item{
    grid-template-columns:68px 1fr;
    padding:8px;
  }
  .cart-item img{
    width:68px;
    height:66px;
  }
  .item-price{
    grid-column:2;
    font-size:15px;
  }
  .address-box{
    align-items:flex-start;
    flex-direction:column;
  }
  .summary-card{padding:12px}
}

@media(max-width:360px){
  .cart-item{grid-template-columns:1fr}
  .cart-item img{
    width:100%;
    height:145px;
  }
  .item-price{grid-column:1}
}
.handling-row small{display:block;margin-top:2px;color:#16a34a;font-size:9px;font-weight:800}.cart-saving-tip{margin:9px 0 2px;padding:10px 11px;border-radius:11px;background:#ecfdf5;color:#166534;font-size:10.5px;font-weight:800;line-height:1.45}.cart-saving-tip i{margin-right:5px}

