/* Modern Premium Studio Theme */
:root {
  /* Colors */
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --bg-card-hover: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #d4af37; /* Gold */
  --accent-hover: #f0c64e;
  --danger: #e74c3c;
  
  /* Glassmorphism */
  --glass-bg: rgba(30, 30, 30, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --blur: blur(12px);
  
  /* Spacing & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Transitions */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--text-primary);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Ambient Background */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% -20%, #2a2a2a 0%, var(--bg-dark) 70%);
  z-index: -1;
  pointer-events: none;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-logo {
  height: 45px;
  filter: brightness(0) invert(1); /* Make logo white */
  opacity: 0.9;
}

.nav-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-left: 1px solid var(--glass-border);
  padding-left: 1.5rem;
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

.cart-button, .admin-button {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
}

.cart-button:hover, .admin-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.7rem;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Views */
.view {
  display: none;
  min-height: calc(100vh - 200px);
  padding-bottom: 4rem;
}

.view.active {
  display: block;
}

.hero-header {
  padding: 6rem 0 3rem; /* Top padding accounts for navbar */
  text-align: center;
  margin-bottom: 2rem;
}

.view h2 {
  font-size: 3rem; /* Larger title */
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
  font-family: 'Playfair Display', serif;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  margin-bottom: 2rem;
}

.breadcrumb-trail {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center; /* Vertical alignment */
}

.breadcrumb-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px; /* Mobile-friendly touch target */
}

.breadcrumb-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.breadcrumb-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--glass-border);
  cursor: default;
}

.breadcrumb-separator {
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  height: 36px; /* Match item height */
  padding-bottom: 2px; /* Optical adjustment */
}

/* Folder Grid */
.folder-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.folder-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.folder-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-color: var(--accent);
}

.folder-card .material-icons {
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.8;
}

.folder-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.folder-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2px; /* Tight gap for modern look */
  padding-bottom: 4rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.3s ease;
  opacity: 0.9;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.gallery-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1.5rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}

.gallery-item:hover .gallery-item-info {
  transform: translateY(0);
}

.gallery-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: rgba(255, 255, 255, 0.9);
}

.gallery-item-price {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Loader */
.loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  color: var(--text-secondary);
}

/* Lightbox styles moved to bottom of file */

.btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:disabled {
  background: #444;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.2s;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Cart & Forms */
.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s var(--ease);
}

.cart-item:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

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

.cart-item-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.cart-item-price {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.2rem;
}

.cart-item-remove {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.cart-item-remove:hover {
  background: var(--danger);
  color: #fff;
}

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-top: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.summary-row.total {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  color: var(--accent);
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
}

/* Checkout Form */
.checkout-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Checkout Summary Card */
.checkout-summary {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 2px solid rgba(212, 175, 55, 0.3);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

.checkout-summary h3 {
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.checkout-summary p {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Checkout Items List */
.checkout-items-list {
  margin: 1.5rem 0;
  max-height: 400px;
  overflow-y: auto;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 1rem 0;
}

/* Custom Scrollbar for Items List */
.checkout-items-list::-webkit-scrollbar {
  width: 8px;
}

.checkout-items-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.checkout-items-list::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.5);
  border-radius: 4px;
}

.checkout-items-list::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.7);
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.checkout-item:hover {
  background: rgba(0, 0, 0, 0.3);
}

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

.checkout-item-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.checkout-item-info {
  flex: 1;
  min-width: 0;
}

.checkout-item-product {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item-photo {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.8;
}

.checkout-item-price {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Checkout Summary Footer */
.checkout-summary-footer {
  padding-top: 1rem;
}

.checkout-summary-footer .item-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.checkout-summary .savings-text {
  color: #48bb78;
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(72, 187, 120, 0.1);
  border-radius: var(--radius-sm);
  border-left: 3px solid #48bb78;
}

.checkout-summary .total-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  letter-spacing: 0.5px;
}

.checkout-form {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.checkout-form input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: all 0.3s;
  min-height: 48px; /* Mobile-friendly touch target */
  -webkit-appearance: none; /* Remove iOS default styling */
  appearance: none;
}

.checkout-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.info-box {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.info-box .material-icons {
  color: var(--accent);
}

.info-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Payment Options */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-option {
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.payment-option:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(212, 175, 55, 0.5);
}

.payment-option input[type="radio"] {
  margin-top: 0.3rem;
  width: auto;
  cursor: pointer;
  accent-color: var(--accent);
}

.payment-option input[type="radio"]:checked + .option-content {
  color: var(--accent);
}

.payment-option:has(input[type="radio"]:checked) {
  border-color: var(--accent);
  background: rgba(212, 175, 55, 0.1);
}

.payment-option .option-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.payment-option .material-icons {
  font-size: 2rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.payment-option:has(input[type="radio"]:checked) .material-icons {
  color: var(--accent);
}

.payment-option strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.payment-option p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Disabled Payment Option */
.payment-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
}

.payment-option.disabled:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: var(--glass-border);
}

.payment-option.disabled input[type="radio"] {
  cursor: not-allowed;
}

.payment-option.disabled strong {
  color: var(--text-secondary);
}

/* RIB Information */
.rib-info {
  background: rgba(212, 175, 55, 0.05);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 600px;
  text-align: left;
}

.rib-info h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.rib-info h3 .material-icons {
  font-size: 1.8rem;
}

.rib-details {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.rib-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.rib-row:last-child {
  border-bottom: none;
}

.rib-row-clickable {
  cursor: pointer;
  padding: 0.75rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: var(--radius-sm);
}

.rib-row-clickable:hover {
  background-color: rgba(212, 175, 55, 0.15);
}

.rib-row-clickable:active {
  background-color: rgba(212, 175, 55, 0.25);
}

.copy-icon {
  font-size: 1rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.rib-row-clickable:hover .copy-icon {
  opacity: 1;
  color: var(--accent);
}

.rib-label {
  color: var(--text-secondary);
  font-weight: 500;
  min-width: 140px;
}

.rib-value {
  color: var(--text-primary);
  font-weight: 600;
  font-family: 'Courier New', monospace;
  text-align: right;
  flex: 1;
  word-break: break-word;
}

.rib-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(212, 175, 55, 0.1);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.rib-note .material-icons {
  color: var(--accent);
  font-size: 1.3rem;
}

.rib-note p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Confirmation View */
.confirmation-content {
  max-width: 700px;
  margin: 4rem auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 4rem 3rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.success-icon {
  margin-bottom: 2rem;
}

.success-icon .material-icons {
  font-size: 5rem;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.confirmation-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #fff;
}

.order-details {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin: 0 auto 2rem auto;
  max-width: 600px;
  border: 1px solid var(--glass-border);
  text-align: center;
}

.order-number {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.order-number strong {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  margin-top: 0.5rem;
  font-family: 'Playfair Display', serif;
  letter-spacing: 2px;
}

.next-steps {
  text-align: left;
  margin: 2rem auto 3rem auto;
  padding: 2rem;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.next-steps h3 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.next-steps p {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.next-steps ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.next-steps li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.next-steps li::before {
  content: '✓';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
}

.reminder {
  background: rgba(231, 76, 60, 0.1);
  color: #ff8a80;
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.confirmation-content .btn-secondary {
  display: inline-block;
  margin-top: 1rem;
}

.cart-empty {
  color: var(--text-secondary);
  padding: 6rem 0;
}

.cart-empty .material-icons {
  font-size: 5rem;
  opacity: 0.3;
  margin-bottom: 1.5rem;
  display: block;
}

.cart-empty p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-family: 'Playfair Display', serif;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.05);
}

/* Click-to-Edit Inputs */
.form-control-plaintext {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s var(--ease);
  border-radius: 4px;
}

.form-control-plaintext:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.form-control-plaintext:focus {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Modern Checkbox Pills (Toggle Buttons) */
.collection-checkboxes {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  background: transparent !important;
  padding: 0 !important;
  max-height: none !important;
}

.collection-option {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  display: inline-flex; /* Changed from flex to inline-flex */
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0; /* Reset margin */
}

.collection-option:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

/* Hide native checkbox */
.collection-option input[type="checkbox"] {
  display: none !important; /* Force hide */
}

/* Checked State (Active Button) */
.collection-option:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Fallback for browsers not supporting :has */
.collection-option.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
}

.collection-option input:checked + span {
  color: var(--bg-dark);
}

/* Modal Open State - Lock Background */
body.modal-open {
  overflow: hidden !important;
  height: 100vh !important;
}

/* Admin Lightbox */
.admin-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999; /* Topmost */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.admin-lightbox-img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* App-Like Modal Layout */
#editPhotoModal {
    z-index: 5000 !important; /* Above navbar */
}

.modal-xl {
  width: 1000px !important;
  max-width: 95vw !important;
  height: 85vh; /* Fixed height for app feel */
  max-height: 85vh !important;
  display: flex;
  flex-direction: column;
  padding: 0 !important; 
  overflow: hidden !important; /* Prevent card scroll */
  background: #1e1e1e; 
  border-radius: 8px;
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e1e1e; /* Solid bg for header */
  z-index: 10;
  flex-shrink: 0;
}

.modal-body {
  flex: 1;
  overflow-y: auto; /* This is where scrolling happens */
  padding: 30px;
  display: grid;
  grid-template-columns: 250px 1fr; 
  gap: 40px;
  background: #1e1e1e;
}

.modal-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--glass-border);
  background: #1e1e1e; /* Solid bg for footer */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  flex-shrink: 0;
}

/* Adjust Tech Sidebar for new layout */
.tech-sidebar {
  height: fit-content; 
  position: sticky;
  top: 0;
}

.tech-sidebar img {
  width: 100%;
  height: 180px; /* Fixed manageable height */
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  margin-bottom: 20px;
  cursor: zoom-in;
  transition: border-color 0.2s;
}

.tech-sidebar img:hover {
  border-color: var(--accent);
}

/* Ensure form grid doesn't conflict */
.modal-body-grid {
  display: contents; /* Remove old grid logic, use modal-body */
}

/* Responsive */
@media (max-width: 768px) {
  .modal-xl {
    height: 100vh;
    max-width: 100vw;
    border-radius: 0;
  }
  .modal-body {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .tech-sidebar {
    position: static;
    margin-bottom: 20px;
  }
}

/* Product Detail Modal */
#productDetailModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.product-detail-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: auto;
  max-height: 90vh;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  flex-direction: row;
}

.detail-image {
  flex: 1.5;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.1);
  background: rgba(30, 30, 30, 0.5);
}

#detailTitle {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #fff;
}

.detail-price {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}

.detail-desc {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

.modal-close:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .product-detail-content {
    flex-direction: column;
    height: 90vh;
    overflow-y: auto;
  }
  .detail-image {
    height: 40%;
    flex: none;
  }
  .detail-info {
    padding: 20px;
  }
}

/* Utilities & Animations */
.hidden { display: none !important; }

.relative-z { position: relative; z-index: 1; }

.animate-up {
  animation: slideUp 0.8s var(--ease) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   MOBILE TOUCH FEEDBACK
   ========================================= */

/* Active states for touch devices */
@media (hover: none) and (pointer: coarse) {
  /* Gallery items */
  .gallery-item:active {
    transform: scale(0.98);
    opacity: 0.9;
    transition: transform 0.1s ease, opacity 0.1s ease;
  }

  /* Buttons */
  button:active,
  .btn-primary:active,
  .btn-secondary:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
  }

  /* Navigation buttons */
  .cart-button:active,
  .lightbox-close:active,
  .lightbox-prev:active,
  .lightbox-next:active {
    transform: scale(0.92);
    background: rgba(255, 255, 255, 0.15);
  }

  /* Product cards in lightbox */
  .product-item:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.12);
  }

  /* Folder cards */
  .folder-card:active {
    transform: scale(0.98) translateY(0);
  }

  /* Breadcrumb items */
  .breadcrumb-item:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.12);
  }

  /* Quantity buttons */
  .qty-btn:active {
    transform: scale(0.9);
  }

  /* Payment options */
  .payment-option:active {
    background: rgba(0, 0, 0, 0.4);
  }

  /* Cart remove button */
  .cart-item-remove:active {
    transform: scale(0.92) rotate(0deg);
  }
}

/* Tap highlight removal (use custom feedback instead) */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* Allow text selection in form inputs */
input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Cart action buttons - MUST stack vertically on mobile */
@media (max-width: 768px) {
  /* ✅ Force cart action buttons to stack */
  #cartView button[onclick*="returnToGallery"],
  #cartView button[onclick*="proceedToCheckout"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
  }

  /* Target the parent container of cart buttons */
  #cartContent > div > div:last-child,
  .cart-actions-container {
    flex-direction: column-reverse !important;
    gap: 12px !important;
  }
}

/* Mobile - Tablet */
@media (max-width: 768px) {
  .hero-header {
    padding: 4rem 0 2rem;
  }

  .hero-header h2 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .nav-container {
    padding: 0 1rem;
    height: 70px;
  }

  .brand-logo {
    height: 38px;
  }

  .nav-subtitle {
    font-size: 0.75rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px; /* More breathing room for touch */
    padding: 0 12px 3rem 12px;
  }

  .gallery-item-info {
    padding: 1.5rem 1rem 1rem;
  }

  .gallery-item h3 {
    font-size: 0.85rem;
  }

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

  .cart-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
  }

  .cart-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* ✅ Cart bottom buttons: Stack vertically on mobile */
  .cart-summary + div[style*="display: flex"],
  #cartContent div[style*="display: flex"][style*="margin-top"] {
    flex-direction: column-reverse !important; /* Primary button on top */
    gap: 12px !important;
    margin-top: 24px !important;
    align-items: stretch !important;
  }

  .cart-summary + div[style*="display: flex"] button,
  #cartContent div[style*="display: flex"][style*="margin-top"] button {
    flex: 1 1 auto !important; /* Full width */
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Ensure buttons don't overflow */
  .btn-secondary,
  .btn-primary {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-secondary .material-icons {
    font-size: 18px;
    margin-right: 6px !important;
  }

  /* Checkout mobile */
  .checkout-form {
    padding: 2rem 1.5rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  /* Footer mobile */
  .site-footer {
    padding: 3rem 0 0;
    margin-top: 4rem;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 0;
  }

  .site-footer__legal {
    justify-content: center;
  }
}

/* Mobile - Small phones (iPhone SE, etc.) */
@media (max-width: 400px) {
  .hero-header h2 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .nav-container {
    height: 65px;
  }

  .brand-logo {
    height: 35px;
  }

  .nav-subtitle {
    display: none; /* Hide subtitle on very small screens */
  }

  .gallery-grid {
    gap: 6px;
    padding: 0 8px 2rem 8px;
  }

  .gallery-item h3 {
    font-size: 0.8rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    padding: 0.9rem 1.5rem;
    font-size: 0.85rem;
  }

  /* Checkout */
  .checkout-form {
    padding: 1.5rem 1rem;
  }

  .form-group label {
    font-size: 0.8rem;
  }

  .checkout-form input {
    padding: 1rem;
    font-size: 0.95rem;
  }
}
/* =========================================
   PREMIUM LIGHTBOX (Dark Mode)
   ========================================= */

/* Hide mobile nav bar on desktop */
.lightbox-nav-bar-mobile {
  display: none;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.98); /* Deep dark overlay */
  backdrop-filter: blur(15px);
}

.lightbox-content {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  background: transparent;
  overflow: hidden;
  position: relative;
}

/* Image Area - The Star of the Show */
.lightbox-image-container {
  flex: 1;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 40px; /* Breathing room */
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 0 50px rgba(0,0,0,0.8); /* Ambient glow */
  transition: transform 0.3s ease;
}

/* Sidebar - Elegant Control Panel */
.lightbox-sidebar {
  position: relative !important; /* CRITICAL: Makes footer position relative to sidebar */
  width: 350px;
  min-width: 300px;
  max-width: 30vw; /* Prevent taking too much space */
  height: 100vh; /* FULL viewport height */
  padding: 40px 30px;
  padding-bottom: 0; /* Remove padding - footer will handle spacing */
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden; /* Prevent horizontal scroll */
  background: rgba(20, 20, 20, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  z-index: 20;
  box-sizing: border-box; /* Critical for padding */
}

/* Header Typography */
.lightbox-header {
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3); /* Gold separator */
  padding-bottom: 20px;
}

.lightbox-header h3 {
  margin: 0 0 10px 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #fff;
  font-weight: 400;
  letter-spacing: 1px;
}

.lightbox-subtitle {
  margin: 0;
  color: #a0a0a0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Compact Product List & Mobile Optimization */
.product-list {
  gap: 10px;
  padding-bottom: 100px; /* More footer space */
}

.product-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 12px 15px;
  display: grid;
  /* New 3-col layout: Icon | Info (with price) | Action */
  grid-template-columns: 40px 1fr 50px; 
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 70px;
}

/* ... hover/selected states ... */

.product-price-inline {
  display: block;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 2px;
}

.product-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.product-item.selected {
  border-color: var(--accent);
  background: rgba(212, 175, 55, 0.08);
}

.product-icon-wrapper {
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.product-icon-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.5);
}

.product-icon-wrapper::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 6px;
  border-radius: 4px;
}

.product-icon-wrapper:hover::after {
  opacity: 1;
}

.product-item.selected .product-icon-wrapper {
  border: 2px solid var(--accent);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Product thumbnail mini images */
.product-thumb-mini {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-label {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.2;
}

.product-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  white-space: nowrap;
}

/* Vertical Quantity Control */
.qty-control.compact {
  display: flex;
  flex-direction: column; /* (-) top, (+) bottom */
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.2);
  padding: 4px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.qty-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  min-height: 20px;
  display: flex;
  align-items: center;
}

.qty-btn {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--accent);
  color: #000;
}

.btn-add-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0 auto; /* Center in column */
}

.btn-add-icon:hover {
  background: var(--accent);
  color: #000;
  transform: scale(1.1);
}

/* Mobile Specifics */
@media (max-width: 600px) {
  .product-item {
    /* Mobile: Icon | Info (name+price) | Action */
    grid-template-columns: 40px 1fr 50px;
    gap: 12px;
    padding: 12px;
  }
  
  .product-price {
    display: block; /* Force new line under name */
    font-size: 0.9rem;
    margin-top: 4px;
  }
  
  .product-info {
    display: flex;
    flex-direction: column;
  }
  
  /* Move price inside info column visually */
  .product-item > .product-price {
    display: none; /* Hide dedicated column on mobile */
  }
  
  .product-info::after {
    /* Inject price into info block for mobile layout hack? 
       Better to just rely on JS or accept 3 columns.
       Actually, grid can reflow. */
    content: "€" attr(data-price); /* Would need data attr */
    display: none; 
  }
}

/* Lightbox Footer - REDESIGNED: Vertical stack with prominent savings */
.lightbox-footer {
  margin-top: auto !important; /* Push to bottom in flexbox */
  padding: 16px 20px;
  background: rgba(20, 20, 20, 0.98);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 30;
  flex-shrink: 0; /* Don't shrink */
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Savings Badge - Prominent display */
.footer-savings-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.15) 0%, rgba(46, 204, 113, 0.1) 100%);
  border: 1px solid rgba(39, 174, 96, 0.4);
  border-radius: 8px;
  animation: savingsPulse 2s ease-in-out infinite;
}

@keyframes savingsPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
  }
}

.savings-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.savings-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.savings-label {
  font-size: 0.75rem;
  color: #27ae60;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.savings-amount {
  font-size: 1.1rem;
  color: #27ae60;
  font-weight: 700;
}

/* Total Display */
.footer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.footer-total span {
  font-size: 0.9rem;
  color: #888;
  font-weight: 500;
}

.footer-total strong {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
}

/* Cart Button */
.footer-cart-btn {
  width: 100%;
  padding: 14px 20px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hide old stuff */
.product-thumb { display: none; }
.pack-info { display: none; } /* Hide packs for now per user feedback */

/* Navigation Buttons */
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 425px; /* Push left of sidebar */
  color: rgba(255, 255, 255, 0.5);
  font-size: 30px;
  cursor: pointer;
  z-index: 2020;
  background: transparent;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: rotate(90deg);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2010;
  transition: all 0.3s;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 440px; /* Avoid sidebar overlap */ }

/* Mobile Adjustments - FIXED: No nested scrolling! */
@media (max-width: 1024px) {
  /* Hide desktop nav arrows, show mobile nav bar instead */
  .lightbox > .lightbox-prev,
  .lightbox > .lightbox-next {
    display: none !important;
  }

  /* Show mobile navigation bar */
  .lightbox-nav-bar-mobile {
    display: flex !important;
  }

  /* Lightbox becomes full-screen scrollable container */
  .lightbox {
    overflow-y: auto; /* Entire lightbox scrolls */
    -webkit-overflow-scrolling: touch;
    align-items: flex-start; /* Start from top */
  }

  .lightbox-content {
    flex-direction: column;
    width: 100%; /* ✅ Full viewport width */
    max-width: 100vw; /* ✅ Override any desktop constraints */
    height: auto; /* Allow natural flow */
    min-height: 100vh; /* Ensure full screen */
    max-height: none; /* Remove height constraint */
    overflow: visible; /* No nested scrolling */
  }

  .lightbox-image-container {
    height: auto; /* Natural image height */
    width: 100%;
    max-width: 100vw; /* ✅ Ensure full width on mobile */
    max-height: 45vh; /* Limit image to 45% of viewport */
    padding: 16px;
    padding-bottom: 0; /* ✅ No bottom padding - nav bar will have space */
    flex-shrink: 0;
  }

  .lightbox-image-container img {
    max-height: 40vh; /* Keep image reasonable size */
    object-fit: contain;
  }

  /* ✅ NEW: Dedicated navigation bar between image and products */
  .lightbox-nav-bar-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40%;
    padding: 20px 16px;
    background: transparent;
    width: 100%;
    flex-shrink: 0;
  }

  .lightbox-sidebar {
    position: relative;
    width: 100%;
    min-width: 100%; /* ✅ Force full width on mobile */
    max-width: 100vw; /* ✅ CRITICAL: Override desktop 30vw constraint! */
    height: auto; /* ✅ CRITICAL: Remove fixed height! */
    min-height: auto;
    max-height: none; /* ✅ No height constraint */
    padding: 24px 16px;
    padding-bottom: 120px; /* Space for footer */
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    overflow-y: visible; /* ✅ NO nested scrolling! */
    overflow-x: hidden;
    flex-shrink: 0;
  }

  .lightbox-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .lightbox-header h3 {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .lightbox-subtitle {
    font-size: 0.75rem;
  }

  .product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px; /* Less padding since no footer overlap */
    width: 100%; /* ✅ Ensure full width */
  }

  .product-item {
    padding: 16px;
    min-height: 80px;
    width: 100%; /* Full width */
    max-width: 100%; /* ✅ No width constraints */
    box-sizing: border-box; /* ✅ Include padding in width */
  }

  /* Navigation buttons */
  .lightbox-close {
    position: fixed; /* Fixed to viewport */
    top: 12px;
    right: 12px;
    font-size: 28px;
    width: 52px;
    height: 52px;
    z-index: 2100;
    background: rgba(0, 0, 0, 0.6); /* More visible */
    backdrop-filter: blur(10px);
  }

  /* ✅ Navigation arrows inside nav bar (not absolute!) */
  .lightbox-nav-bar-mobile .lightbox-prev,
  .lightbox-nav-bar-mobile .lightbox-next {
    position: static; /* ✅ Normal flow, not absolute! */
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
  }

  .lightbox-nav-bar-mobile .lightbox-prev .material-icons,
  .lightbox-nav-bar-mobile .lightbox-next .material-icons {
    font-size: 32px;
  }

  /* Touch feedback for navigation arrows on mobile */
  .lightbox-nav-bar-mobile .lightbox-prev:active,
  .lightbox-nav-bar-mobile .lightbox-next:active {
    transform: scale(0.95);
    background: rgba(212, 175, 55, 0.9); /* Gold accent on tap */
    border-color: var(--accent);
  }

  /* Footer adjustments for mobile */
  .lightbox-footer {
    position: fixed; /* Fixed to bottom of viewport */
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 14px;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 2050;
    gap: 10px;
  }

  /* Savings badge mobile adjustments */
  .footer-savings-badge {
    padding: 10px 12px;
    gap: 10px;
  }

  .savings-icon {
    font-size: 1.3rem;
  }

  .savings-label {
    font-size: 0.7rem;
  }

  .savings-amount {
    font-size: 1rem;
  }

  /* Total display mobile */
  .footer-total span {
    font-size: 0.85rem;
  }

  .footer-total strong {
    font-size: 1.3rem;
  }

  /* Cart button mobile */
  .footer-cart-btn {
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
  }
}

/* Extra small mobile devices (iPhone SE, etc.) */
@media (max-width: 400px) {
  .lightbox-image-container {
    max-height: 40vh;
    padding: 12px;
  }

  .lightbox-image-container img {
    max-height: 35vh;
  }

  .lightbox-sidebar {
    padding: 20px 12px 120px;
  }

  .lightbox-header h3 {
    font-size: 1.1rem;
  }

  .product-item {
    padding: 14px;
    min-height: 76px;
  }

  .product-label {
    font-size: 0.85rem;
  }

  .product-price-inline {
    font-size: 0.85rem;
  }

  /* Slightly smaller navigation bar on tiny screens */
  .lightbox-nav-bar-mobile {
    padding: 16px;
    gap: 35%;
  }

  .lightbox-nav-bar-mobile .lightbox-prev,
  .lightbox-nav-bar-mobile .lightbox-next {
    width: 52px;
    height: 52px;
  }

  .lightbox-nav-bar-mobile .lightbox-prev .material-icons,
  .lightbox-nav-bar-mobile .lightbox-next .material-icons {
    font-size: 28px;
  }
}

/* Cart styles updates */
.cart-product-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 4px;
}

.discount-row {
    display: flex;
    justify-content: space-between;
    color: #28a745;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.savings-text {
    color: #28a745;
    font-size: 0.9rem;
    margin-top: 5px;
}


/* =========================================
   Cart UI Improvements
   ========================================= */

.cart-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto; /* Push to right */
}

/* Horizontal Quantity Control (Cart Page) */
.qty-control {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 4px;
}

.qty-control .qty-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

.qty-control .qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  border-color: rgba(255, 255, 255, 0.2);
}

.qty-control .qty-val {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  margin: 0 8px;
  justify-content: center; /* Fix flex alignment */
}

/* Delete Button Redesign */
.cart-item-remove {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: var(--danger);
  transition: all 0.3s ease;
}

.cart-item-remove:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
  transform: rotate(90deg);
}

.cart-item-remove .material-icons {
  font-size: 20px;
}

/* Responsive Cart */
@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .cart-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
}

/* ===================================
   Footer Credit - mExpress Standard
   =================================== */

.footer-credit {
    padding: 0.5rem 0;
    text-align: center;
    background-color: inherit;
}

.footer-credit p {
    margin: 0;
    font-size: 0.625rem; /* 10px */
    font-weight: 300;
}

.footer-credit a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-credit a:hover {
    color: var(--accent);
}

/* ===================================
   Site Footer - Professional Layout
   =================================== */

.site-footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #121212 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 4rem 0 0;
    margin-top: 6rem;
}

.site-footer__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-footer__main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Column Styling */
.site-footer__col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.site-footer__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.site-footer__tagline {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

.site-footer__description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0.5rem 0 0;
}

.site-footer__subtitle {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0.75rem;
}

/* Navigation Links */
.site-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__nav a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__nav a:hover {
    color: var(--accent);
}

/* Contact */
.site-footer__contact {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer__contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.site-footer__contact .material-icons {
    font-size: 18px;
    color: var(--accent);
    margin-top: 2px;
}

.site-footer__contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__contact a:hover {
    color: var(--accent);
}

/* Social Links */
.site-footer__social {
    display: flex;
    gap: 1rem;
}

.site-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.site-footer__social a:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.site-footer__social svg {
    width: 20px;
    height: 20px;
}

/* Bottom Bar */
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.site-footer__legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.site-footer__legal a {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__legal a:hover {
    color: var(--accent);
}

.site-footer__separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

/* Footer Credit (already exists, just ensure it's positioned correctly) */
.footer-credit {
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .site-footer__main {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0 0;
        margin-top: 4rem;
    }

    .site-footer__main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 0;
    }

    .site-footer__legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .site-footer__container {
        padding: 0 1.5rem;
    }

    .site-footer__title {
        font-size: 1.25rem;
    }

    .site-footer__social {
        justify-content: flex-start;
    }
}
