/* css/cart.css - Cart Page Styles */

.cart-page {
  padding: 140px 2rem 80px;
  min-height: 100vh;
}

.cart-container {
  max-width: 1400px;
  margin: 0 auto;
}

.cart-header-page {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.cart-header-page h1 {
  font-size: 2.5rem;
  color: #2c5f2d;
  font-weight: 300;
  letter-spacing: 2px;
}

.continue-shopping {
  color: #2c5f2d;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s;
  padding: 0.5rem 1rem;
  border: 2px solid #2c5f2d;
  border-radius: 25px;
}

.continue-shopping:hover {
  background: #2c5f2d;
  color: white;
}

.cart-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
}

/* Cart Items Section */
.cart-items-section {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid #e8e5e0;
  align-items: center;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f3f0;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c5f2d;
  margin-bottom: 0.5rem;
}

.cart-item-variant {
  font-size: 0.95rem;
  color: #8a8a8a;
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c5f2d;
  margin-bottom: 1rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #f5f3f0;
  padding: 0.5rem 1rem;
  border-radius: 25px;
}

.qty-btn {
  background: #2c5f2d;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.qty-btn:hover {
  background: #1a3a1b;
  transform: scale(1.1);
}

.qty-display {
  font-weight: 600;
  min-width: 30px;
  text-align: center;
  font-size: 1.1rem;
}

.remove-btn {
  background: transparent;
  border: none;
  color: #ff6b6b;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem;
  transition: all 0.3s;
}

.remove-btn:hover {
  color: #d63031;
  transform: scale(1.2);
}

/* Cart Summary */
.cart-summary-section {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.cart-summary-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.cart-summary-card h2 {
  font-size: 1.8rem;
  color: #2c5f2d;
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 1.5px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1.1rem;
  color: #5a5a5a;
}

.summary-row.total {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c5f2d;
}

.shipping-note {
  font-size: 0.9rem;
  color: #8a8a8a;
  font-style: italic;
}

.summary-divider {
  height: 2px;
  background: #e8e5e0;
  margin: 1rem 0;
}

.checkout-btn {
  width: 100%;
  background: #25D366;
  color: white;
  border: none;
  padding: 1.2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: all 0.3s;
  margin-top: 1.5rem;
}

.checkout-btn:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.clear-cart-btn {
  width: 100%;
  background: transparent;
  color: #ff6b6b;
  border: 2px solid #ff6b6b;
  padding: 0.8rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s;
}

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

.security-badges {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e5e0;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: #6a6a6a;
  font-size: 0.95rem;
}

.badge-item span {
  color: #2c5f2d;
  font-weight: bold;
}

/* Empty Cart State */
.cart-empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.cart-empty-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.cart-empty-state h2 {
  font-size: 2rem;
  color: #2c5f2d;
  margin-bottom: 1rem;
}

.cart-empty-state p {
  font-size: 1.1rem;
  color: #8a8a8a;
  margin-bottom: 2rem;
}

.shop-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #2c5f2d;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.shop-now-btn:hover {
  background: #1a3a1b;
  transform: translateY(-2px);
}

/* Cart Link in Nav */
.cart-link-nav {
  background: #2c5f2d;
  color: white !important;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s;
}

.cart-link-nav:hover {
  background: #1a3a1b;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
  .cart-content-wrapper {
    grid-template-columns: 1fr;
  }

  .cart-summary-section {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-page {
    padding: 100px 1rem 60px;
  }

  .cart-header-page h1 {
    font-size: 2rem;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }

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

  .cart-item-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    margin-top: 1rem;
  }

  .cart-summary-card {
    padding: 1.5rem;
  }
}

.add-to-cart-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: #2c5f2d;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(44, 95, 45, 0.2);
}

.add-to-cart-btn:hover {
  background: #1a3a1b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 95, 45, 0.3);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

/* Product Price with Variants Container */
.product-price {
  font-size: 1.4rem;
  color: #2c5f2d;
  font-weight: 400;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e5e0;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

/* Container for variant selector and button */
.product-variant-container {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Responsive styles */
@media (max-width: 768px) {
  .variant-select {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    padding-right: 2.5rem;
  }

  .add-to-cart-btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .variant-select {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .add-to-cart-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }
}
