/* ============================================
   Product Album - Mobile-First Styles
   ============================================ */

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

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --danger: #ef4444;
  --success: #10b981;
  --whatsapp: #25D366;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

html { font-size: 14px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 56px; /* header height */
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   Header / Navigation
   ============================================ */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.nav-brand i { font-size: 1.3rem; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  font-size: 1.3rem;
  color: var(--text);
  cursor: pointer;
}

.nav-menu {
  display: none;
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  flex-direction: column;
  padding: 8px 0;
}

.nav-menu.show { display: flex; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: var(--text);
  font-weight: 500;
  transition: background 0.2s;
}

.nav-link:hover { background: var(--primary-light); }
.nav-link i { width: 20px; text-align: center; color: var(--primary); }

/* ============================================
   Main Content
   ============================================ */
.main-content {
  min-height: calc(100vh - 100px);
  padding-bottom: 20px; /* space for floating WhatsApp button */
}

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

/* ============================================
   Category Bar (Horizontal Scroll)
   ============================================ */
.category-bar {
  position: sticky;
  top: 56px;
  z-index: 100;
  background: var(--bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.category-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.category-btn:active { transform: scale(0.96); }

/* ============================================
   Product Grid (Masonry-like)
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px 12px 80px;
}

@media (min-width: 600px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 16px 16px 80px; }
}

@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  break-inside: avoid;
}

.product-card:active { transform: scale(0.98); }

.product-card a { color: inherit; display: block; }

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f3f4f6;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:active .card-image img { transform: scale(1.05); }

.image-count-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 10px 12px 12px;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   Loading / No More Indicators
   ============================================ */
.loading-container, .no-more-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================
   Album Detail Page
   ============================================ */
.album-detail-page { padding: 16px; }

.album-header {
  margin-bottom: 20px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.album-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.album-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.album-description img,
.album-description video {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 8px 0;
  display: block;
}

.album-description video {
  max-height: 400px;
  background: #000;
}

.album-description iframe {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

.album-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 600px) {
  .album-images-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

/* ============================================
   API Documentation Styles
   ============================================ */
.api-docs-section { max-width: 100%; }

.api-docs-content { font-size: 0.9rem; line-height: 1.7; }

.api-docs-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.api-docs-content h5 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 12px 0 6px;
  color: var(--primary);
}

.api-docs-content p { margin: 6px 0; }
.api-none { color: var(--text-secondary); font-style: italic; }

.api-endpoint-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.api-method {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  font-family: monospace;
}

.api-get { background: #059669; }
.api-post { background: #2563eb; }

.api-path {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.api-docs-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 8px 0;
}

.api-docs-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.api-docs-content code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--primary-dark);
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 0.85rem;
}

.api-table th, .api-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.api-table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.api-table td code { font-size: 0.8rem; }

.api-docs-section .admin-form-card { margin-bottom: 12px; }

.api-docs-section .admin-form-card h3 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-docs-section .admin-form-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 8px 0 12px;
  padding: 0;
  border: none;
}

/* API Security Note */
.api-security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #92400e;
  margin: 8px 0;
}

.api-security-note i {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.album-image-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #f3f4f6;
}

.album-image-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.2s;
}

.album-image-item:active img { transform: scale(1.03); }

/* ============================================
   Slideshow / Image Preview
   ============================================ */
.slideshow-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}

.slideshow-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.slideshow-counter {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.slideshow-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.slideshow-close:active { background: rgba(255,255,255,0.3); }

/* Track container */
.slideshow-track {
  display: flex;
  height: 100vh;
  width: 100vw;
  transition: transform 0.3s ease;
  will-change: transform;
  cursor: grab;
}

.slideshow-track:active { cursor: grabbing; }

.slideshow-slide {
  min-width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.slideshow-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Navigation arrows */
.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.slideshow-nav:active {
  background: rgba(255,255,255,0.25);
  transform: translateY(-50%) scale(0.92);
}

.slideshow-prev { left: 12px; }
.slideshow-next { right: 12px; }

/* Dots indicator */
.slideshow-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  padding: 8px 16px;
  background: rgba(0,0,0,0.3);
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.2s;
}

.slideshow-dot.active {
  background: white;
  transform: scale(1.3);
}

/* Desktop: hide nav by default, show on hover */
@media (hover: hover) {
  .slideshow-nav { opacity: 0; transition: opacity 0.3s, background 0.2s, transform 0.2s; }
  .slideshow-overlay:hover .slideshow-nav { opacity: 1; }
}

/* ============================================
   Contact Page
   ============================================ */
.contact-page {
  padding: 20px 16px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background 0.2s;
}

.contact-item:last-child { border-bottom: none; }
.contact-item:active { background: var(--primary-light); }

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-weight: 500;
  word-break: break-all;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 24px;
  background: var(--whatsapp);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-float i { font-size: 1.5rem; }

/* ============================================
   Floating WhatsApp Button
   ============================================ */
.whatsapp-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-btn:active {
  transform: scale(0.95);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7); }
}

/* ============================================
   Footer
   ============================================ */
.app-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ============================================
   Admin Pages
   ============================================ */
.admin-page, .admin-dashboard, .admin-login-page {
  padding: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.admin-header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-header-actions { display: flex; gap: 8px; }

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

/* Dashboard */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.2rem;
}

.stat-info { display: flex; flex-direction: column; }
.stat-number { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); }

.admin-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.admin-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s;
}

.admin-menu-item:active { transform: scale(0.97); }
.admin-menu-item i { font-size: 2rem; color: var(--primary); }

/* Admin Forms */
.admin-form-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.admin-form-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea.form-control { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .form-row { grid-template-columns: 2fr 2fr 1fr auto; align-items: end; }
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:active { transform: scale(0.97); }

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

.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-warning { background: var(--accent); color: white; }

.btn-outline-secondary {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-outline-danger {
  background: transparent;
  border: 1.5px solid var(--danger);
  color: var(--danger);
}

.btn-sm { padding: 6px 10px; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* Admin Table */
.admin-table-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th, .admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.btn-group { display: flex; gap: 4px; }

/* Badge */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.bg-success { background: #d1fae5; color: #065f46; }
.bg-secondary { background: #f3f4f6; color: #6b7280; }

/* Image Manager */
.image-manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.image-manager-header h3 {
  margin: 0;
  font-size: 1.1rem;
  cursor: pointer;
}

.image-manager-header h3:hover { color: var(--primary); }

.image-manager-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selected-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.image-manager-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (min-width: 600px) {
  .image-manager-grid { grid-template-columns: repeat(4, 1fr); }
}

.image-manager-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f3f4f6;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.image-manager-item.has-checked {
  border-color: var(--primary);
}

.image-manager-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.image-manager-item form.image-delete-form {
  position: absolute;
  top: 4px;
  right: 4px;
}

.image-delete-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  border-radius: 50%;
  opacity: 0.8;
}

.image-delete-btn:hover { opacity: 1; }

/* Checkbox overlay */
.image-checkbox-label {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  cursor: pointer;
}

.image-checkbox-label input { display: none; }

.image-checkbox-visual {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255,255,255,0.85);
  border: 2px solid rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: transparent;
  transition: all 0.2s;
}

.image-checkbox-label input:checked + .image-checkbox-visual {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.image-checkbox-label:hover .image-checkbox-visual {
  border-color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
}

/* API Key */
.new-key-display { margin-top: 16px; }
.new-key-display label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.key-value {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1f2937;
  color: #10b981;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  word-break: break-all;
}

.key-value code { flex: 1; }

/* Login Page */
.admin-login-page, .admin-login-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 150px);
}

.login-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 12px; }

.login-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.login-card .form-group { text-align: left; }

.login-footer {
  margin-top: 20px;
  font-size: 0.9rem;
}

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger { background: #fee2e2; color: #991b1b; }

/* ============================================
   Utility Classes
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ============================================
   Desktop Overrides
   ============================================ */
@media (min-width: 768px) {
  html { font-size: 15px; }

  .nav-toggle { display: none; }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    border: none;
    box-shadow: none;
    background: none;
    gap: 4px;
  }

  .nav-link { padding: 8px 16px; border-radius: var(--radius-sm); }

  .product-grid { padding: 24px 24px 80px; }

  .category-bar { padding: 16px 0; }
  .category-scroll { padding: 0 24px; }
}

/* ============================================
   Placeholder
   ============================================ */
.btn:disabled, .btn.disabled { opacity: 0.6; cursor: not-allowed; }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}