/* ===== FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Tiro+Bangla&display=swap');

/* ===== VARIABLES ===== */
:root {
  --bg: #f5f5f5;
  --white: #ffffff;
  --primary: #D12C62;
  --regular: #519E87;
}

/* ===== GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  background: var(--bg);
}

.container {
  width: 65%;
  margin: 60px auto;
  padding: 0 15px;
}

/* ===== CART LAYOUT ===== */
.cart-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* ===== CART ITEMS ===== */
.cart-items {
  background: #fff;
  padding: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  flex-wrap: nowrap;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ===== ITEM INFO ===== */
.item-info {
  flex: 1;
  min-width: 0;
}

.item-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-price {
  font-size: 13px;
  color: #555;
  white-space: nowrap;
}

/* ===== QUANTITY ===== */
.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.qty-box button {
  width: 26px;
  height: 26px;
  border: none;
  background: #f2f2f2;
  cursor: pointer;
  font-size: 14px;
}

.qty-box input {
  width: 32px;
  height: 26px;
  border: none;
  text-align: center;
  font-size: 13px;
}

/* ===== REMOVE ===== */
.remove {
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== SUMMARY ===== */
.summary {
  background: #fff;
  padding: 20px;
}

.summary h3 {
  font-size: 17px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 12px;
}

.summary-row input {
  width: 95px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.total {
  border-top: 1px dashed #ccc;
  padding-top: 12px;
  font-weight: 700;
  font-size: 15px;
}

.checkout-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.discount-amount{
  color:var(--regular);
  font-weight: 600;
}
/* PROMO STATUS */ 
.promo-status { 
  font-size: 13px; 
  margin-bottom: 12px; 
} 
.success { 
  color: var(--regular); 
  font-weight: 600; 
} .error { 
  color: red; 
  font-weight: 600; 
} 
/* LOADER */ 
.loader { 
  width: 14px; 
  height: 14px; 
  border: 2px solid #ddd; 
  border-top: 2px solid var(--primary); 
  border-radius: 50%; 
  display: inline-block; 
  animation: spin 0.8s linear infinite; 
  margin-right: 6px; 
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .container {
    width: 90%;
  }

  .cart-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    width: 100%;
    margin-top: 40px;
    padding: 6px;
  }

  .cart-items {
    padding: 14px;
  }

  .cart-item {
    gap: 10px;
    padding: 10px 0;
  }

  .cart-item img {
    width: 60px;
    height: 60px;
  }

  .item-info h4 {
    font-size: 13px;
    line-height: 1.2;
  }

  .item-price {
    font-size: 12px;
  }

  .qty-box button,
  .qty-box input {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .summary {
    margin-top: 12px;
    padding: 14px;
  }

  .checkout-btn {
    padding: 11px;
    font-size: 12px;
  }
}
