/* ==========================================================================
   PoolShop Main Design System - Tokens, Base & Utilities
   Modern High-Performance E-commerce Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --color-primary: #ff6000;         /* Official PoolShop Electric Orange */
  --color-primary-hover: #e05500;
  --color-primary-light: #fff2ea;
  --color-primary-glow: rgba(255, 96, 0, 0.25);

  --color-header-bg: #0b1329;       /* Deep Slate / Midnight Navy */
  --color-header-dark: #070d1f;
  --color-header-nav: #16203d;
  --color-topbar-bg: #070d1f;       /* Top Announcement Bar */
  
  --color-secondary: #0284c7;       /* Tech Cyan */
  --color-secondary-hover: #0369a1;

  --color-success: #00c48c;         /* Vibrant In-Stock Green */
  --color-success-dark: #00996d;
  --color-success-light: #e6f9f3;

  --color-danger: #ef4444;          /* Deal / Alert Red */
  --color-danger-light: #fee2e2;

  --color-warning: #f59e0b;         /* Rating Star Gold */
  --color-warning-light: #fef3c7;

  /* Neutrals & Surfaces */
  --bg-body: #f3f4f8;               /* Clean Light Neutral Canvas */
  --bg-surface: #ffffff;
  --bg-surface-secondary: #f8fafc;
  --bg-surface-tertiary: #edf2f7;

  --text-main: #0f172a;             /* Dark Slate Text */
  --text-muted: #64748b;            /* Secondary Slate */
  --text-subtle: #94a3b8;           /* Subtle Gray */
  --text-light: #f8fafc;            /* White / Light Text */

  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-dark: #cbd5e1;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 14px 28px rgba(15, 23, 42, 0.09), 0 10px 10px rgba(15, 23, 42, 0.04);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-normal: 0.25s ease;
  --trans-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1380px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* Base Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (max-width: 768px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Utility Flex & Grid Classes */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.w-full { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.6875rem 1.25rem;
  border-radius: var(--radius-md);
  transition: all var(--trans-normal);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px var(--color-primary-glow);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(255, 96, 0, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-surface-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
  color: var(--text-main);
}

.btn-success {
  background-color: var(--color-success);
  color: #ffffff;
}

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

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-dark {
  background-color: var(--color-header-bg);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: #1e293b;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
}

.badge-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.badge-success {
  background-color: var(--color-success-light);
  color: var(--color-success-dark);
  border: 1px solid rgba(0, 196, 140, 0.3);
}

.badge-deal {
  background-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.badge-dark {
  background-color: var(--color-header-bg);
  color: #ffffff;
}

.badge-info {
  background-color: #e0f2fe;
  color: #0369a1;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.125rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.95rem;
  font-size: 0.9375rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

/* Stars Rating */
.stars-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-warning);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

.animate-fade-in { animation: fadeIn 0.3s ease forwards; }
.animate-slide-up { animation: slideUp 0.4s var(--trans-smooth) forwards; }

/* =========================================================================
   MAINTENANCE MODE STYLES
   ========================================================================= */
.admin-maintenance-banner {
  background: linear-gradient(90deg, #b45309 0%, #d97706 100%);
  color: #ffffff;
  border-bottom: 2px solid #f59e0b;
  position: sticky;
  top: 0;
  z-index: 1100;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.maintenance-screen {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
}

.maintenance-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.maintenance-card {
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.maintenance-logo-wrap {
  margin-bottom: 1.5rem;
  max-width: 220px;
}

.maintenance-logo {
  max-height: 55px;
  object-fit: contain;
}

.maintenance-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 96, 0, 0.2) 0%, rgba(255, 140, 66, 0.1) 100%);
  border: 2px solid rgba(255, 96, 0, 0.4);
  color: #ff8c42;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 25px rgba(255, 96, 0, 0.25);
}

.maintenance-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.maintenance-message {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.maintenance-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

.maintenance-contact-box {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.maintenance-contact-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.maintenance-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  width: 100%;
}

.maint-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
  text-align: left;
}

.maint-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.maint-btn-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.maint-btn-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
  font-weight: 700;
}

.maint-btn-text strong {
  font-size: 0.8125rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  margin-top: 1px;
}

.maint-btn-whatsapp {
  background: #15803d;
  color: #ffffff;
  border: 1px solid #22c55e;
}
.maint-btn-whatsapp .maint-btn-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.maint-btn-whatsapp:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.maint-btn-email {
  background: rgba(30, 41, 59, 0.85);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.maint-btn-email .maint-btn-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
}
.maint-btn-email:hover {
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.maint-btn-phone {
  background: rgba(12, 74, 110, 0.55);
  color: #e0f2fe;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.maint-btn-phone .maint-btn-icon {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}
.maint-btn-phone:hover {
  background: rgba(12, 74, 110, 0.85);
  border-color: rgba(56, 189, 248, 0.65);
  transform: translateY(-2px);
}

.maintenance-footer-link {
  margin-top: 0.5rem;
}

.maint-admin-shortcut {
  font-size: 0.8125rem;
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.maint-admin-shortcut:hover {
  color: #94a3b8;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .maintenance-card {
    padding: 2rem 1.25rem;
  }
  .maintenance-title {
    font-size: 1.35rem;
  }
  .maintenance-buttons-grid {
    grid-template-columns: 1fr;
  }
}
