/* General style */
:root {
  --primary-color: #ff8b00;
  --text-color: #ffffff;
  --bg-color: #1a1a1a;
  --card-bg: #252525;
  --transition: all 0.3s ease;
  --second-font: "Pacifico", cursive;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color),"opacity:20%";
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

.span{
  color: var(--primary-color);
  font-family: var(--second-font);
  font-weight: 900;
  font-size: 25px;
  }
/* Background Elements */
.bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.9); /* Dark overlay */
  z-index: 1;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://images.unsplash.com/photo-1447933601403-0c6688de566e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1561&q=80"); /* Add your background image URL */
  background-size: cover;
  background-position: center;
  opacity: 0.2; /* Adjust opacity as needed */
  z-index: 0;
}


        /* Improved Cart Page Styles */
.cart-section {
  padding: 150px 0 100px;
  min-height: 80vh;
}

.cart-section h1 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-color);
}

.cart-section h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.cart-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cart Items */
.cart-items {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 20px;
  margin-bottom: 20px;
  background-color: rgba(26, 26, 26, 0.6);
  border-radius: 12px;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.cart-item:last-child {
  margin-bottom: 0;
}

.item-image {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cart-item:hover .item-image img {
  transform: scale(1.1);
}

.item-details {
  flex: 1;
  padding: 0 20px;
}

.item-details h3 {
  margin-bottom: 8px;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.item-details p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 8px;
  color: var(--text-color);
}

.item-details .price {
  font-weight: bold;
  color: var(--text-color);
  font-size: 1.1rem;
  display: block;
  margin-top: 5px;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.item-quantity {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 30px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.quantity-btn:hover {
  background-color: var(--primary-color);
}

.quantity-input {
  width: 40px;
  height: 30px;
  text-align: center;
  background-color: transparent;
  border: none;
  color: var(--text-color);
  font-weight: bold;
  font-size: 1rem;
}

.item-total {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary-color);
  min-width: 80px;
  text-align: right;
}

.remove-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.2);
  color: #ff6b6b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: absolute;
  top: 15px;
  right: 15px;
}

.remove-btn:hover {
  background-color: rgba(255, 0, 0, 0.3);
  transform: rotate(90deg);
}

/* Empty Cart Message */
.empty-cart-message {
  text-align: center;
  padding: 50px 0;
}

.empty-cart-message i {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}

.empty-cart-message h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.empty-cart-message p {
  margin-bottom: 30px;
  opacity: 0.8;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color);
}

.empty-cart-message .btn-primary {
  padding: 12px 30px;
  font-size: 1rem;
}

/* Cart Summary */
.cart-summary {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  position: sticky;
  top: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: fit-content;
}

.cart-summary h2 {
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
  color: var(--text-color);
}

.cart-summary h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--text-color);
}

.summary-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

.summary-item.total {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
}

.promo-code {
  margin: 25px 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.promo-code input {
  width: 100%;
  padding: 15px;
  padding-right: 100px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-color);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.promo-code input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 139, 0, 0.2);
}

.btn-apply {
  position: absolute;
  right: 8px;
  top: 7px;
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  background-color: var(--primary-color);
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.btn-apply:hover {
  background-color: #ff9f2a;
  transform: translateX(-3px);
}

.checkout-btn {
  width: 100%;
  margin: 10px 0 20px;
  padding: 15px;
  font-size: 1.1rem;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  white-space: normal;
  line-height: 1.3;
  transition: all 0.3s ease;
  background-color: var(--primary-color);
  color: var(--text-color);
  border: none;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 139, 0, 0.3);
}

.checkout-btn:hover {
  background-color: #ff9f2a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 139, 0, 0.4);
}

.checkout-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 139, 0, 0.3);
}

.checkout-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
  z-index: -1;
}

.checkout-btn:hover::after {
  transform: translateX(100%);
}

.continue-shopping {
  display: block;
  text-align: center;
  color: var(--text-color);
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 5px;
}

.continue-shopping:hover {
  color: var(--primary-color);
}

/* Discount Badge */
.discount-item {
  color: #4caf50 !important;
  font-weight: bold;
}

.promo-success,
.promo-error {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.9rem;
  text-align: center;
}

.promo-success {
  background-color: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

.promo-error {
  background-color: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Cart item removal animation */
.removing {
  transition: all 0.3s ease;
}

/* Navbar active state for cart page */
.nav-icons a.active i {
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--bg-color);
  padding: 80px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo p {
  margin-top: 20px;
  opacity: 0.8;
}

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

.footer-links h3,
.footer-social h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.footer-links a:hover{
  padding-left: .5rem;
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background-color: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
  .cart-container {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 30px;
    padding-top: 50px; /* Make room for the remove button */
  }

  .item-image {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
  }

  .item-details {
    padding: 0;
    margin-bottom: 20px;
    width: 100%;
  }

  .item-actions {
    width: 100%;
    justify-content: space-between;
  }

  .remove-btn {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .cart-section h1 {
    font-size: 2rem;
  }

  .cart-items,
  .cart-summary {
    padding: 20px;
  }

  .item-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .item-total {
    text-align: left;
  }

  .checkout-btn {
    font-size: 1rem;
    padding: 12px;
  }

  .promo-code input {
    padding-right: 90px;
    font-size: 0.85rem;
  }

  .btn-apply {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}



    