/* Cart Sidebar Styles */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Updated overlay to darker black */
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  /* Changed cart sidebar to dark background */
  background: #1a1a1a;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  padding: 20px;
  /* Updated border color */
  border-bottom: 1px solid #333333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin: 0;
  /* Updated to white text */
  color: #ffffff;
}

.cart-close {
  background: none;
  border: none;
  font-size: 2rem;
  /* Updated close button color to light gray */
  color: #cccccc;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.cart-close:hover {
  /* Changed hover to white */
  color: #ffffff;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

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

.cart-empty p {
  /* Updated text color */
  color: #cccccc;
  margin-bottom: 1.5rem;
}

.cart-content {
  display: none;
}

.cart-content.active {
  display: block;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  /* Updated item background to darker */
  background: #0a0a0a;
  border-radius: 8px;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-weight: 600;
  /* Updated to white text */
  color: #ffffff;
  margin-bottom: 5px;
}

.cart-item-price {
  /* Changed price color to white */
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 10px;
}

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

.quantity-btn {
  /* Updated button background */
  background: #1a1a1a;
  border: 1px solid #333333;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #ffffff;
}

.quantity-btn:hover {
  /* Updated hover to white background */
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.cart-item-remove {
  background: none;
  border: none;
  /* Updated remove button color */
  color: #666666;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  transition: color 0.2s ease;
}

.cart-item-remove:hover {
  /* Changed hover to white */
  color: #ffffff;
}

.cart-footer {
  padding: 20px;
  /* Updated border color */
  border-top: 1px solid #333333;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.25rem;
  font-weight: 600;
}

.cart-total-label {
  /* Updated to white text */
  color: #ffffff;
}

.cart-total-amount {
  /* Changed to white */
  color: #ffffff;
}

.cart-checkout-btn {
  width: 100%;
  padding: 15px;
  /* Updated button to white background */
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.cart-checkout-btn:hover {
  /* Updated hover effect */
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

.cart-continue {
  width: 100%;
  padding: 12px;
  background: transparent;
  /* Updated text color */
  color: #cccccc;
  /* Updated border color */
  border: 1px solid #333333;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-continue:hover {
  /* Updated hover background */
  background: #0a0a0a;
  border-color: #666666;
}

/* Cart Icon in Navigation */
.cart-icon-container {
  position: relative;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.cart-icon-container:hover {
  opacity: 0.7;
  transform: scale(1.08);
}

.cart-icon {
  width: 24px;
  height: 24px;
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 2;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ffffff !important;
  color: #000000 !important;
  border-radius: 50% !important;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  border: 2px solid #000000 !important;
  outline: none !important;
  box-shadow: none !important;
  line-height: 1;
  min-width: 20px;
  min-height: 20px;
}

/* Wishlist Sidebar Styles */
.wishlist-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wishlist-overlay.active {
  opacity: 1;
  visibility: visible;
}

.wishlist-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: #1a1a1a;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.wishlist-sidebar.active {
  right: 0;
}

.wishlist-header {
  padding: 20px;
  border-bottom: 1px solid #333333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wishlist-header h2 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.wishlist-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.wishlist-close:hover {
  color: #cccccc;
}

.wishlist-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.wishlist-empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #cccccc;
}

.wishlist-empty p {
  color: #cccccc;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.wishlist-empty-text {
  color: #999999;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.wishlist-content {
  display: none;
}

.wishlist-content.active {
  display: block;
}

.wishlist-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wishlist-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #0a0a0a;
  border-radius: 8px;
  border: 1px solid #333333;
}

.wishlist-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.wishlist-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wishlist-item-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.wishlist-item-price {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
}

.wishlist-item-actions {
  display: flex;
  gap: 10px;
}

.wishlist-add-to-cart {
  flex: 1;
  padding: 8px 12px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.wishlist-add-to-cart:hover {
  background: #e0e0e0;
}

.wishlist-item-remove {
  width: 36px;
  height: 36px;
  background: #333333;
  border: none;
  color: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.wishlist-item-remove:hover {
  background: #ff4444;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
  
  .wishlist-sidebar {
    width: 100%;
    right: -100%;
  }
  
  .wishlist-item {
    flex-direction: row;
  }
  
  .wishlist-item-image {
    width: 60px;
    height: 60px;
  }
}

/* Hide cart footer by default - only show inside cart sidebar */
.cart-footer {
    display: none !important;
}

.cart-sidebar .cart-footer {
    display: block !important;
    padding: 20px;
    border-top: 1px solid #333333;
}
