.cart-page {
  min-height: calc(100vh - 76px);
  padding: 50px 0 70px;
  background: var(--bg);
}

.cart-title {
  margin-bottom: 35px;
}

.cart-title h1 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 32px;
}

.cart-title p {
  color: var(--muted);
  font-size: 14px;
}

.cart-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 25px;
  align-items: start;
}

.cart-products {
  min-width: 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 15px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: 0.25s;
}

.cart-item:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--input);
}

.item-info {
  flex: 1;
}

.item-info h3 {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 16px;
}

.item-price {
  color: var(--cyan);
  font-size: 15px;
  font-weight: 700;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--input);
  color: var(--text);
  cursor: pointer;
  transition: 0.2s;
}

.quantity button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.quantity span {
  min-width: 20px;
  color: var(--text);
  text-align: center;
  font-weight: 700;
}

.remove {
  border: 0;
  background: transparent;
  color: #ff5b5b;
  cursor: pointer;
  font-size: 14px;
}

.remove:hover {
  color: #ff3030;
}

.summary {
  position: sticky;
  top: 100px;
  padding: 25px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.summary h2 {
  margin-bottom: 22px;
  color: var(--text);
  font-size: 20px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 14px;
}

.summary-row strong {
  color: var(--text);
}

.line {
  height: 1px;
  margin: 20px 0;
  background: var(--border);
}

.total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.total strong {
  color: var(--cyan);
  font-size: 22px;
}

.payment-title {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 15px;
}

.payment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: 0.2s;
}

.payment:hover {
  background: var(--input);
  border-color: var(--blue);
}

.payment input {
  accent-color: var(--blue);
}

.payment > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(7, 140, 255, 0.1);
  color: var(--cyan);
}

.payment div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.payment strong {
  color: var(--text);
  font-size: 12px;
}

.payment small {
  color: var(--muted);
  font-size: 10px;
}

.checkout-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 15px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #08bfff, #078cff);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(7, 140, 255, 0.3);
}

.checkout-btn i {
  margin-left: 8px;
  transition: 0.2s;
}

.checkout-btn:hover i {
  transform: translateX(4px);
}

.empty-cart {
  padding: 70px 20px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 14px;
  text-align: center;
}

.empty-cart i {
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 45px;
}

.empty-cart h2 {
  margin-bottom: 8px;
  color: var(--text);
}

.empty-cart p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.shop-btn {
  display: inline-flex;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.footer {
  position: relative;
  margin-top: 80px;
  background: var(--header);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: 50px;
  padding: 65px 0 50px;
}

.footer-brand {
  max-width: 330px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 25px;
  font-weight: 800;
  text-decoration: none;
}

.footer-logo i {
  color: var(--blue);
  font-size: 26px;
}

.footer-brand > p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--muted);
  text-decoration: none;
  transition: 0.3s;
}

.footer-social a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(7, 140, 255, 0.25);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-column h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 16px;
}

.footer-column a {
  width: fit-content;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: 0.25s;
}

.footer-column a:hover {
  color: var(--blue);
  transform: translateX(4px);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact p i {
  width: 18px;
  color: var(--blue);
  text-align: center;
}

.footer-bottom {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom strong {
  color: var(--text);
}

.footer-bottom-links {
  display: flex;
  gap: 25px;
}

.footer-bottom-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: 0.25s;
}

.footer-bottom-links a:hover {
  color: var(--blue);
}

@media (max-width: 850px) {
  .cart-content {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .cart-page {
    padding: 30px 0;
  }

  .cart-title h1 {
    font-size: 27px;
  }

  .cart-item {
    flex-wrap: wrap;
    gap: 15px;
  }

  .cart-item img {
    width: 80px;
    height: 80px;
  }

  .item-info {
    min-width: calc(100% - 100px);
  }

  .quantity {
    margin-left: 95px;
  }

  .footer {
    margin-top: 50px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 45px 0 35px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-bottom {
    padding: 20px 0;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}
.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.payment-modal.show {
  opacity: 1;
  visibility: visible;
}

.payment-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.payment-box {
  position: relative;
  z-index: 2;
  width: min(450px, calc(100% - 30px));
  padding: 35px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
  transform: translateY(25px) scale(0.95);
  transition: 0.3s;
}

.payment-modal.show .payment-box {
  transform: translateY(0) scale(1);
}

.success-icon {
  width: 75px;
  height: 75px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 200, 120, 0.12);
  border: 2px solid #00c878;
  color: #00c878;
  font-size: 32px;
}

.success-label {
  color: #00c878;
  font-size: 13px;
  font-weight: 700;
}

.payment-box h2 {
  margin: 8px 0;
  color: var(--text);
  font-size: 25px;
}

.payment-box > p {
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.order-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 25px;
}

.order-info div {
  padding: 12px;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 9px;
  text-align: left;
}

.order-info span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.order-info strong {
  color: var(--text);
  font-size: 13px;
}

.done-btn {
  width: 100%;
  min-height: 45px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #08bfff, #078cff);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}

.done-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7, 140, 255, 0.3);
}

.checkout-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 500px) {
  .payment-box {
    padding: 25px 20px;
  }

  .order-info {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   CART JS - NEW CART ITEM STRUCTURE
   ========================================= */

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.cart-item-info p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;

  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-info span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.cart-item-info strong {
  display: block;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 700;
}

/* =========================================
   CART ACTIONS
   ========================================= */

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-controls button {
  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 6px;

  background: var(--input);
  color: var(--text);

  cursor: pointer;
  transition: 0.2s;
}

.quantity-controls button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.quantity-controls span {
  min-width: 25px;
  text-align: center;
  color: var(--text);
  font-weight: 700;
}

.cart-item-actions > strong {
  min-width: 75px;
  color: var(--text);
  font-size: 15px;
  text-align: right;
}

.remove-cart-btn {
  border: 0;
  background: transparent;
  color: #ff5b5b;

  cursor: pointer;
  font-size: 13px;
  font-weight: 600;

  white-space: nowrap;
  transition: 0.2s;
}

.remove-cart-btn:hover {
  color: #ff3030;
  text-decoration: underline;
}

/* =========================================
   PRODUCT IMAGE CONTAINER
   ========================================= */

.cart-item-image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  border-radius: 10px;

  background: var(--input);
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {
  .cart-item {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
  }

  .cart-item-image {
    width: 80px;
    height: 80px;
  }

  .cart-item-info {
    flex: 1;
    min-width: calc(100% - 100px);
  }

  .cart-item-actions {
    width: 100%;
    justify-content: space-between;
    padding-left: 95px;
    gap: 10px;
  }

  .cart-item-actions > strong {
    min-width: auto;
  }
}

@media (max-width: 500px) {
  .cart-item {
    padding: 15px;
  }

  .cart-item-info h3 {
    font-size: 14px;
  }

  .cart-item-info p {
    font-size: 12px;
  }

  .cart-item-actions {
    padding-left: 0;
    flex-wrap: wrap;
  }

  .quantity-controls {
    order: 1;
  }

  .cart-item-actions > strong {
    order: 2;
  }

  .remove-cart-btn {
    order: 3;
  }
}
.remove-cart-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #e74c3c;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: 0.2s ease;
}

.remove-cart-btn:hover {
  background: #fff0f0;
  color: #c0392b;
  transform: scale(1.08);
}
