@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}
/* Cart Heading */
#cartHeading {
  text-align: center;
  font-size: 2.5rem;
  margin: 2rem 0;
  color: #2c3e50;
}


/* Cart Container */
.cart-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.item-price img{
  height: 30px;
  position: relative;
  top: 7px;
 
}
#balanceNumber img{
  height: 30px;
  position: relative;
  top: 7px;
  animation: none !important;
  transition: none !important;
  transform: none !important;
}
/* Cart Items */
.cart-items {
  flex: 2;
  margin-right: 1.5rem;
}

.cart-item {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f7f7f7);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.cart-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.item-image {
  width: auto;
  height: 120px;
  object-fit: contain;
  margin-right: 1rem;
  border-radius: 5px;
  background-color: #e9ecef;
}

.item-details {
  flex: 1;
}

.item-name {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.item-size,
.item-logo,
.quantity {
  font-size: 1rem;
  font-weight: 300;
  color: #555;
}

.item-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0f0f0f;
  margin: 0.8rem 0;
}

.item-quantity {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.quantity-btn {
  padding: 0.5rem 0.8rem;
  background-color: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 0.5rem;
  transition: background-color 0.3s ease;
}

.quantity-btn:hover {
  background-color: #1a242f;
}

.remove-btn {
  padding: 0.6rem 1rem;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

/* Cart Summary */
.cart-summary {
  flex: 1;
  background: linear-gradient(135deg, #ffffff, #f7f7f7);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.cart-summary h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.summary-details {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.summary-details p {
  margin: 0.5rem 0;
}
.couponsNote{
  display: flex;
  justify-content: center;
  align-items: center;
}
.checkout-btn,
.clear-cart-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.checkout-btn {
  background-color: #27ae60;
  color: white;
}

.checkout-btn:hover {
  background-color: #219150;
  transform: translateY(-3px);
}

.clear-cart-btn {
  background-color: #e74c3c;
  color: white;
}

.clear-cart-btn:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
}


.hidden {
  display: none;
}


.closePopup {
  padding: 8px 16px;
  background-color: #343a40;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.closePopup:hover {
  background-color: #6c757d;
  transform: scale(1.03);
}

.coupon-section {
  margin-top: 10px;
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background-color: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}

.coupon-input {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.coupon-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

.apply-coupon-btn,
.toggle-coupon-btn {
  margin-top: 4px;
  padding: 8px 14px;
  font-size: 14px;
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.apply-coupon-btn:hover,
.toggle-coupon-btn:hover {
  background-color: #218838;
  transform: scale(1.03);
}

.item-coupon {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: absolute;
  top: 10px;
  right: 10px;
  gap: 8px;
  padding: 10px;
  background-color: #ffffffcc;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.itemCouponInput {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  width: 150px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.itemCouponInput:focus {
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.4);
}

.applySingleProductCouponButton {
  padding: 6px 12px;
  font-size: 14px;
  color: white;
  background-color: #28a745;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.applySingleProductCouponButton:hover {
  background-color: #218838;
  transform: scale(1.03);
}

.applySingleProductCouponButton:active {
  background-color: #1e7e34;
  transform: scale(0.98);
}

/* Base popup styling with glass effect */
.popupForCart {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  min-width: 280px;
  max-width: 90%;
  padding: 20px 30px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 16px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s ease;
  text-align: center;
}
.popupForCart p {
  color: white;
  text-shadow: 0 0 10px black;
}

/* Success: green glass tone */
.popupForCart.success {
  background: rgba(40, 167, 69, 0.2);
  border-color: rgba(40, 167, 69, 0.5);
  color: #d4edda;
}

/* Error: red glass tone */
.popupForCart.error {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.5);
  color: #f8d7da;
}

/* Warning: yellow glass tone */
.popupForCart.warning {
  background: rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 193, 7, 0.5);
  color: #fff3cd;
}

/* Hide popup */
.popupForCart.hidden {
  display: none;
}

/* Optional: style for close button */
.popupForCart .closePopup {
  margin-top: 15px;
  padding: 6px 12px;
  background: rgb(66, 66, 66);
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  box-shadow: 0 0 10px black;
}

.popupForCart .closePopup:hover {
  background: rgba(255, 255, 255, 0.35);
  color: black;
}

.couponsAppliedContainer {
  background-color: #ffffff;
  border: 1px solid #cecece;
  padding: 16px;
  border-radius: 10px;
  margin-top: 20px;
  max-width: 400px;
}

.couponsAppliedContainer h3 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.appliedCouponsList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.appliedCouponItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #dfdfdf;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.couponCode {
  font-weight: 600;
  color: #2c3e50;
}

.removeCouponBtn {
  background: transparent;
  border: none;
  color: #ff4d4d;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
}

.removeCouponBtn:hover {
  color: #d80000;
}
.logo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f9f9f9;
  font-size: 14px;
  overflow: hidden;
}

.logo-list li {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-list li:last-child {
  border-bottom: none;
}

.logo-list strong {
  font-weight: 600;
  color: #333;
  margin-right: 8px;
}


.logoAdminThumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* MUCH HIGHER CONTRAST BACKGROUND */
  background: #1e1e1e; /* dark tile */
  border: 1px solid rgba(255,255,255,0.2);

  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.logoAdminThumb:hover {
  border-color: #3ea6ff;
  box-shadow: 0 0 8px rgba(62,166,255,0.6);
  transform: scale(1.07);
}

.logoAdminThumb img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.9)); /* <-- makes white logos glow against dark bg */
}



/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -55%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* 🔹 Mobile Optimization */
@media (max-width: 768px) {
  .cart-container {
    flex-direction: column-reverse;
    padding: 1rem;
  }

  #cartHeading {
    font-size: 2rem;
  }

  .cart-items {
    margin-right: 0;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .item-image {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }

  .item-name {
    font-size: 1rem;
  }

  .item-price {
    font-size: 1.1rem;
  }

  .cart-summary {
    margin-top: 2rem;
    padding: 1.5rem;
  }

  .checkout-btn,
  .clear-cart-btn {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}

/* 🔹 Small Screens (Phones) */
@media (max-width: 480px) {
  #cartHeading {
    font-size: 1.8rem;
  }

  .cart-container {
    padding: 1rem;
  }

  .cart-item {
    padding: 0.8rem;
  }

  .cart-summary {
    padding: 1rem;
  }
  #storeManagerButton{
    display: none;
  }
  .checkout-btn,
  .clear-cart-btn {
    padding: 0.7rem;
    font-size: 0.85rem;
  }
}
