:root {
  /* Brand & HeroUI Colors */
  --color-bg: #faf9f6;             /* Soft satin cream background */
  --color-text: #09090b;           /* Zinc-950 crisp dark text */
  --color-text-muted: #71717a;     /* Zinc-500 muted text */
  --color-accent: #c69b6d;         /* Bronze/gold accent */
  --color-accent-dark: #b08558;    /* Darker gold for hovers */
  --color-border: #e4e4e7;         /* Zinc-200 clean borders */
  --color-error: #d94f43;          /* Warm terracotta red */
  --color-success: #2f9e5f;        /* Warm forest green */
  --color-primary: #0072f5;        /* HeroUI Primary Blue */
  --color-danger-bg: #fee2e2;      /* Light danger background */
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --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);
  --radius-sm: 8px;                /* HeroUI rounded-lg */
  --radius-md: 12px;               /* HeroUI rounded-xl */
  --radius-lg: 16px;               /* HeroUI rounded-2xl */
  
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', -apple-system, sans-serif;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 0;
}

.site-header {
  padding: 1.25rem 2rem;
  background: rgba(250, 249, 246, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-smooth);
}
.site-header .brand:hover {
  transform: scale(1.01);
}

.brand-mark {
  width: 28px;
  height: auto;
}

.content {
  max-width: 960px; /* Wider workspace for modular panels */
  margin: 0 auto;
  padding: 2rem 1.5rem;
  animation: fadeInUp 0.4s ease forwards;
}

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

.flashes {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.flash {
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.flash-error { 
  background: #faf0ef; 
  color: var(--color-error); 
  border-color: #f3dad8;
}
.flash-success { 
  background: #ebf5f0; 
  color: var(--color-success); 
  border-color: #d1ebd9;
}
.flash-info { 
  background: #f0f4f8; 
  color: #1c3d5a; 
  border-color: #d7e3f0;
}

form.inline-form { display: inline; }

label { 
  display: block; 
  font-weight: 700; 
  margin-bottom: 0.4rem; 
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

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

input[type="text"], input[type="tel"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  transition: var(--transition-smooth);
}

input[type="text"]:focus, input[type="tel"]:focus, input[type="password"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-bg), 0 0 0 4px rgba(198, 155, 109, 0.2);
}

button, .btn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

button:hover, .btn:hover {
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

.error-page { text-align: center; padding: 4rem 0; }

table { 
  width: 100%; 
  border-collapse: separate; 
  border-spacing: 0;
  margin-bottom: 2rem; 
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
th, td { 
  text-align: left; 
  padding: 0.85rem 1rem; 
  border-bottom: 1px solid var(--color-border); 
}
th {
  background: #faf8f5;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #7e736c;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #faf9f6; }

.hexagon {
  width: 90px;
  height: 100px;
  background: var(--color-accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  padding: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hexagon:hover {
  transform: scale(1.05);
}

.hexagon.locked {
  background: #d1cac0;
  color: #7a7268;
  opacity: 0.7;
}

/* --- Error pages & admin login card (Phase B clarity) -------------------- */
.error-page {
  max-width: 420px;
  margin: 8vh auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border, #e6ddd1);
  border-radius: 14px;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 4px 18px rgba(43, 33, 24, 0.08);
}
.error-page .error-icon { font-size: 2.4rem; display: block; margin-bottom: 0.4rem; }
.error-page h1 { margin: 0 0 0.4rem; }
.error-page p { color: var(--color-text-muted, #6b5d4f); margin: 0 0 1.2rem; }

.login-card {
  max-width: 380px;
  margin: 6vh auto;
  background: #fff;
  border: 1px solid var(--color-border, #e6ddd1);
  border-radius: 14px;
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 18px rgba(43, 33, 24, 0.08);
  text-align: center;
}
.login-card .login-logo { width: 52px; height: 52px; margin-bottom: 0.4rem; }
.login-card h1 { margin: 0; }
.login-card .login-sub { color: var(--color-text-muted, #6b5d4f); margin: 0.2rem 0 1.4rem; }
.login-card form { text-align: left; }
.login-card label { display: block; margin: 0.7rem 0 0.2rem; font-weight: 600; font-size: 0.9rem; }
.login-card input[type="text"], .login-card input[type="password"] { width: 100%; }
.login-card input[type="submit"], .login-card button { width: 100%; margin-top: 1.1rem; }

/* ---- Public homepage / shop window (landing.html) ---- */
body.landing-theme { background: #0b0d10; color: #f4f2ee; }
body.landing-theme .site-header { background: #0b0d10; border-bottom: 1px solid #1f2329; }
body.landing-theme .site-header .brand { color: #f4f2ee; }
body.landing-theme .content { max-width: 1040px; }

.landing-hero { text-align: center; padding: 2.5rem 1rem 1.25rem; }
.landing-title { font-family: 'Sora', sans-serif; font-size: 2.6rem; font-weight: 800; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.landing-tagline { max-width: 600px; margin: 0 auto 1.6rem; font-size: 1.1rem; line-height: 1.6; color: #c7c9ce; }
.landing-cta { display: flex; flex-direction: column; gap: 0.85rem; align-items: center; }
.landing-login { color: #c69b6d; font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.landing-login:hover { text-decoration: underline; }

.wa-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: #25d366; color: #06301a; font-weight: 800; text-decoration: none; border-radius: 999px; padding: 0.7rem 1.5rem; transition: transform 0.15s ease, background 0.15s ease; }
.wa-btn:hover { background: #1eb457; color: #ffffff; transform: translateY(-1px); text-decoration: none; }
.wa-btn-lg { font-size: 1.05rem; padding: 0.85rem 1.9rem; }

.landing-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin: 2.5rem 0; }
.landing-card { background: #14171c; border: 1px solid #23272e; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, border-color 0.2s ease; }
.landing-card:hover { transform: translateY(-4px); border-color: #c69b6d; }
.landing-card-media { aspect-ratio: 4 / 3; background: #0b0d10; }
.landing-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.landing-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1e24, #0b0d10); }
.landing-card-placeholder span { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.3rem; color: #c69b6d; letter-spacing: 0.02em; text-align: center; padding: 0 1rem; }
.landing-card-body { padding: 1.3rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.landing-card-body h2 { font-family: 'Sora', sans-serif; font-size: 1.3rem; margin: 0; color: #f4f2ee; }
.landing-card-body p { color: #c7c9ce; font-size: 0.95rem; line-height: 1.55; margin: 0; flex: 1; }
.landing-card-body .wa-btn { align-self: flex-start; }

.landing-foot { text-align: center; padding: 2rem 1rem 3rem; border-top: 1px solid #1f2329; margin-top: 1rem; }
.landing-foot p { color: #c7c9ce; margin: 0 0 1.1rem; }

@media (max-width: 520px) { .landing-title { font-size: 2.1rem; } }
