/* Shared Sidebar Styles for Cart & Wishlist (extracted from gallery-styles.css) */

/* Sidebar backdrop for mobile */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: var(--rich-blue, #2b2b90);
  border-left: 1px solid var(--pyramid-gold, #FFD700);
  z-index: 2000;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px 0 rgba(5,32,119,0.18), 0 1.5px 8px 0 rgba(203,138,88,0.10);
  /* Ensure sidebar is hidden by default */
  visibility: hidden;
  opacity: 0;
  transform: translateX(100%);
}

.sidebar.active {
  right: 0;
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

/* Mobile specific sidebar behavior */
@media (max-width: 768px) {
  .sidebar {
    width: 85%;
    max-width: 350px;
    right: -100%;
    transform: translateX(100%);
  }
  
  .sidebar.active {
    right: 0;
    transform: translateX(0);
  }

  /* Prevent body scroll when sidebar is open on mobile */
  body.sidebar-open {
    overflow: hidden;
  }
}

/* Desktop behavior - sidebars don't block content */
@media (min-width: 769px) {
  .sidebar {
    width: 400px;
  }
  
  /* On desktop, sidebars don't need backdrop */
  .sidebar-backdrop {
    display: none;
  }
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--pyramid-gold, #FFD700);
  background: var(--royal-dark-blue, #052077);
}

.sidebar-header h3 {
  font-family: "Playfair Display", serif;
  color: var(--pyramid-gold, #FFD700);
  margin: 0;
  font-size: 1.25rem;
}

.sidebar-close {
  background: transparent;
  border: none;
  color: var(--pyramid-gold, #FFD700);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--royal-orange, #e06427);
  transform: scale(1.1);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-empty,
.wishlist-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light, #fff);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.cart-empty h4,
.wishlist-empty h4 {
  color: var(--text-light, #fff);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cart-empty p,
.wishlist-empty p {
  color: var(--text-muted);
  opacity: 0.8;
}

.cart-item,
.wishlist-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.cart-item:hover,
.wishlist-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  margin: 0 -1rem;
}

.cart-item:last-child,
.wishlist-item:last-child {
  border-bottom: none;
}

.cart-item-image,
.wishlist-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--pyramid-gold, #FFD700);
}

.cart-item-details,
.wishlist-item-details {
  flex: 1;
}

.cart-item-title,
.wishlist-item-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--text-light, #fff);
  line-height: 1.3;
}

.cart-item-price,
.wishlist-item-price {
  color: var(--pyramid-gold, #FFD700);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cart-item-remove,
.wishlist-item-remove {
  position: absolute;
  top: 1rem;
  right: 0;
  background: transparent;
  border: none;
  color: var(--pyramid-gold, #FFD700);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-remove:hover,
.wishlist-item-remove:hover {
  background: rgba(224, 100, 39, 0.2);
  color: var(--royal-orange, #e06427);
  transform: scale(1.1);
}

.wishlist-item-actions {
  margin-top: 0.5rem;
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--pyramid-gold, #FFD700);
  background: var(--royal-dark-blue, #052077);
  color: var(--text-light, #fff);
}

.cart-summary {
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: var(--text-light, #fff);
  font-size: 0.95rem;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pyramid-gold, #FFD700);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--pyramid-gold, #FFD700);
  color: var(--royal-dark-blue, #052077);
  border: none;
  border-radius: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px 0 rgba(203,138,88,0.10);
}

.checkout-btn:hover {
  background: var(--royal-orange, #e06427);
  color: var(--text-light, #fff);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px 0 rgba(224, 100, 39, 0.3);
}

.cart-badge,
.wishlist-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  min-height: 16px;
  padding: 0 4px;
  background: var(--gold-primary, #D4AF37);
  color: #222;
  font-weight: bold;
  border-radius: 50%;
  text-align: center;
  font-size: 0.85rem;
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
  box-shadow: 0 0 8px 2px rgba(212,175,55,0.3);
  border: 2px solid #fff;
  letter-spacing: 0;
}

.header-icon {
  position: relative;
  transition: all 0.3s ease;
}

.header-icon:hover {
  transform: scale(1.1);
}

/* Button styles for sidebar actions (match index page) */
.btn {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.85rem 0;
  width: 100%;
  border-radius: 32px;
  border: none;
  background: transparent;
  color: var(--text-light, #fff);
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  box-shadow: none;
  outline: none;
  text-align: center;
}

.btn-outline {
  border: 2px solid var(--pyramid-gold, #FFD700);
  background: transparent;
  color: var(--text-light, #fff);
}

.btn-outline:hover, .btn-outline:focus {
  background: var(--pyramid-gold, #FFD700);
  color: var(--royal-dark-blue, #052077);
  border-color: var(--pyramid-gold, #FFD700);
  box-shadow: 0 2px 8px 0 rgba(203,138,88,0.10);
  transform: translateY(-2px);
}

/* Make checkout button in sidebar orange */
.cart-actions .btn-primary {
  background: var(--royal-orange) !important;
  color: var(--text-light) !important;
  box-shadow: 0 4px 20px rgba(224, 100, 39, 0.4);
}

.cart-actions .btn-primary:hover {
  background: #d55a1f !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(224, 100, 39, 0.6);
} 