/* --- PREMIUM BUSINESS DESIGN SYSTEM --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;500;700;900&display=swap');

:root {
  /* Primary Colors - Business Trust & Stability */
  --primary: #0D9488;
  --primary-dark: #0F766E;
  --primary-soft: rgba(13, 148, 136, 0.1);

  /* Secondary/Accent - Energy & Creativity */
  --secondary: #F59E0B;
  --secondary-dark: #D97706;

  /* Neutral Palette */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;

  /* Visual Effects */
  --glass: rgba(255, 255, 255, var(--nav-op, 0.7));
  --nav-op: 0.8;
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 25px 50px -12px rgba(13, 148, 136, 0.15);

  /* Spacing & Sizing */
  --radius: 12px;
  --nav-h: 80px;
  --container-w: 1200px;
  --footer-bg: #1F2937;

  /* Aliases for legacy pages */
  --text-color: #1E293B;
  --bg-color: #FFFFFF;
  --border-color: #E2E8F0;
}

/* Dark Theme Tokens */
.dark-theme {
  color-scheme: dark;
  accent-color: var(--primary);
  --bg: #0F172A;
  --surface: #1E293B;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --border: #334155;
  --glass: rgba(15, 23, 42, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  --footer-bg: #020617;

  /* Aliases for legacy pages */
  --text-color: #F1F5F9;
  --bg-color: #1E293B;
  --border-color: #334155;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Disable animations when admin toggle is off */
.no-animations *,
.no-animations *::before,
.no-animations *::after {
  animation-duration: 0s !important;
  transition-duration: 0s !important;
}

/* Disable glass/blur effect when admin toggle is off */
.no-glass header,
.no-glass .glass-card,
.no-glass .hdr-lang-row {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.no-glass header {
  background: var(--surface) !important;
}

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

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Layout */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  padding-top: 2rem;

  /* ========== Performance Utilities ========== */
  /* content-visibility: auto on below-fold sections = major render perf boost */
  .section-offscreen {
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
  }

  /* Lazy images: prevents layout shift */
  img[loading="lazy"] {
    display: block;
  }

  /* ========== ANPC Badges — replaces inline JS onmouseover ========== */
  .anpc-badge {
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none;
  }

  .anpc-badge:hover {
    opacity: 1;
    transform: scale(1.04);
  }

  .anpc-badge img {
    height: 38px;
    width: auto;
    display: block;
    border-radius: 6px;
  }

  min-height: calc(100vh - var(--nav-h));
}

/* Header & Nav */
header {
  height: var(--nav-h);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: height, background;
}

header.scrolled {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Search button inside nav */
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  margin-left: 0.15rem;
  background: none;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  line-height: 1.2;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-search-btn i {
  font-size: 0.82rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-search-btn:hover {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--primary);
  border-style: solid;
}

.nav-search-btn:hover i {
  opacity: 1;
}

.brand {
  font-size: 1.8rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand span {
  color: var(--text-main);
}

nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
  position: relative;
}

nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: normal;
  line-height: 1.2;
}

nav a:hover,
nav a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

/* Cart link in nav */
.nav-cart-link {
  position: relative;
  font-size: 1.1rem;
  padding: 0.5rem 0.75rem;
}

.nav-cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: inherit;
  transition: all 0.2s;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.nav-dropdown-btn:hover,
.nav-dropdown.active .nav-dropdown-btn {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-dd-arrow {
  font-size: 0.6rem;
  transition: transform 0.3s;
  margin-left: 2px;
}

.nav-dropdown:hover .nav-dd-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  z-index: 1100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  color: var(--text-main) !important;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a i {
  color: var(--primary);
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--primary-soft);
  color: var(--primary) !important;
}

.btn-cta {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  font-weight: 700;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

/* Buttons */
.btn {
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* Glass Cards */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
}

.menu-toggle {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

label i {
  color: var(--primary);
  margin-right: 0.5rem;
  width: 20px;
}

input,
select,
textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg);
  color: var(--text-main);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 2px solid var(--border);
  cursor: pointer;
  position: relative;
  background: var(--surface);
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

input[type="checkbox"] {
  border-radius: 6px;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
}

input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  padding-right: 3rem;
  cursor: pointer;
  color-scheme: light dark;
}

.dark-theme select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

select option {
  background-color: var(--surface);
  color: var(--text-main);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  color: var(--text-main);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

/* ─── Header Icon Bar: Search, Cart, Account, Theme ─── */
.header-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Individual icon button ── */
.hdr-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0;
  flex-shrink: 0;
}

.hdr-icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.18);
}

.hdr-icon-btn:active {
  transform: scale(0.92);
}

/* Cart badge */
/* Cart overwindow/dropdown wrapper */
.hdr-cart-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hdr-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
    z-index: 5;
}

.hdr-cart-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1200;
}

.hdr-cart-wrap:hover .hdr-cart-dropdown,
.hdr-cart-wrap.open .hdr-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Invisible bridge */
.hdr-cart-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.hdr-cart-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.hdr-cart-items {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.hdr-cart-items::-webkit-scrollbar { width: 5px; }
.hdr-cart-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }

.hdr-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-soft);
}

.hdr-cart-item:last-child { border-bottom: none; }

.hdr-cart-item-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-hover);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--primary);
    opacity: 0.6;
}

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

.hdr-cart-item-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.hdr-cart-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.hdr-cart-item-price { color: var(--primary); font-weight: 800; }
.hdr-cart-item-qty { color: var(--text-muted); }

.hdr-cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.82rem;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hdr-cart-item-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.hdr-cart-footer {
    border-top: 2px solid var(--border-soft);
    padding-top: 1rem;
}

.hdr-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.hdr-cart-total-val { font-size: 1.15rem; color: var(--primary); }

.hdr-cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hdr-cart-btn-view, .hdr-cart-btn-checkout {
    padding: 0.7rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.hdr-cart-btn-view {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.hdr-cart-btn-checkout {
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.25);
}

.hdr-cart-btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
}

.hdr-cart-empty {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
}

.hdr-cart-empty i { font-size: 2.5rem; opacity: 0.2; margin-bottom: 12px; display: block; }

/* ── Theme icon button (reuses hdr-icon-btn) ── */
.hdr-theme-btn {
  overflow: hidden;
}

/* ─── Account Dropdown (Login on hover) ─── */
.hdr-account-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hdr-login-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1200;
}

.hdr-account-wrap:hover .hdr-login-dropdown,
.hdr-account-wrap:focus-within .hdr-login-dropdown,
.hdr-account-wrap.open .hdr-login-dropdown,
.hdr-login-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Invisible bridge so mouse can move from icon to dropdown */
.hdr-login-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.hdr-login-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.hdr-login-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.hdr-login-field i {
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.hdr-login-field input {
  border: none;
  background: transparent;
  padding: 0.65rem 0;
  font-size: 0.88rem;
  width: 100%;
  outline: none;
  color: var(--text-main);
}

.hdr-login-field input:focus {
  box-shadow: none;
}

.hdr-login-submit {
  width: 100%;
  padding: 0.65rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}

.hdr-login-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.hdr-login-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.hdr-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.78rem;
  line-height: 1;
}

.hdr-login-remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
  user-select: none;
}

.hdr-login-remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.hdr-login-forgot {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.hdr-login-forgot:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.hdr-login-register {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 0.55rem;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.hdr-login-register:hover {
  background: var(--primary);
  color: #fff;
}

.hdr-login-register i {
  margin-right: 4px;
}

.hdr-login-msg {
  margin-top: 10px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.hdr-login-msg-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Logged-in state */
.hdr-login-logged {
  text-align: center;
}

.hdr-login-avatar {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.hdr-login-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Account menu links */
.hdr-account-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
  text-align: left;
}

.hdr-account-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.hdr-account-menu a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.hdr-account-menu a i {
  width: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.18s;
}

.hdr-account-menu a:hover i {
  color: var(--primary);
}

.hdr-login-logout {
  width: 100%;
  margin-top: 8px;
  padding: 0.55rem;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.hdr-login-logout:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
}

/* ── Dropdown divider & theme toggle ── */
.hdr-login-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

.hdr-login-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.hdr-login-theme-row span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hdr-login-theme-row span i {
  color: var(--text-muted);
  width: 18px;
  text-align: center;
}

.hdr-theme-toggle {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  background: var(--border);
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.25s;
  padding: 0;
}

.hdr-theme-toggle.active {
  background: var(--primary);
}

.hdr-theme-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.hdr-theme-toggle.active .hdr-theme-toggle-knob {
  transform: translateX(18px);
}

/* ── Theme Icon Animations ── */
.hdr-theme-btn {
  position: relative;
}

.theme-icon-btn:hover,
.hdr-theme-btn:hover {
  transform: scale(1.12) rotate(15deg);
}

.theme-icon-btn:active,
.hdr-theme-btn:active {
  transform: scale(0.9) rotate(-10deg);
}

.theme-icon-inner {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
}

/* Sun and moon overlap — only one visible at a time */
.theme-icon-sun,
.theme-icon-moon {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 13px;
  line-height: 1;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

/* Light mode default: sun visible, moon hidden */
.theme-icon-sun {
  color: #F59E0B;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.theme-icon-moon {
  color: #94A3B8;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.4);
}

/* Dark mode active (via .theme-is-dark class) */
.theme-is-dark .theme-icon-sun {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.4);
}

.theme-is-dark .theme-icon-moon {
  opacity: 1;
  color: #FBBF24;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* Sync with dark-theme HTML class (on page load before JS runs) */
.dark-theme .theme-icon-btn:not(.theme-is-dark) .theme-icon-sun,
.dark-theme .hdr-theme-btn:not(.theme-is-dark) .theme-icon-sun {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.4);
}

.dark-theme .theme-icon-btn:not(.theme-is-dark) .theme-icon-moon,
.dark-theme .hdr-theme-btn:not(.theme-is-dark) .theme-icon-moon {
  opacity: 1;
  color: #FBBF24;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* ─── Search Overlay ─── */
.header-search-overlay {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: var(--nav-h);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
  border-radius: 0;
}

.header-search-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  gap: 10px;
  transform: translateY(-6px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-search-overlay.active .header-search-box {
  transform: translateY(0);
}

.header-search-icon {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.header-search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.05rem;
  flex: 1;
  padding: 0.4rem 0;
  color: var(--text-main);
}

.header-search-box input:focus {
  box-shadow: none;
}

.header-search-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.header-search-close:hover {
  color: var(--primary);
  background: var(--primary-soft);
}


/* Sections */
section {
  padding: 4rem 0;
}

.fade-in {
  opacity: 0; /* Previne clipirile inainte de preluarea JS */
}
/* Safety: ensure dynamically injected fade-in elements become visible even if JS observer misses them */
.fade-in:not(.revealed) {
  animation: fadeInFallback 0.6s 0.8s forwards;
}
@keyframes fadeInFallback {
  to { opacity: 1; }
}
.fade-in.revealed {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: #9CA3AF;
}

.footer-links ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #6B7280;
}

/* Footer: social icons */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.footer-social a svg {
  display: block;
  width: 18px;
  height: 18px;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}


/* Status Badges */
.status-badge {
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-received {
  background: rgba(59, 130, 246, 0.1);
  color: #2563EB;
}

.status-progress {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

.status-complete {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}


/* Responsive DESIGN */
@media (max-width: 1100px) {
  .menu-toggle {
    display: block !important;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
  }

  #mainNav {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    padding: 90px 1.5rem 2rem;
    gap: 0.25rem;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.1);
    transform: translateX(105%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s, visibility 0.4s;
    display: flex;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
  }

  #mainNav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  #mainNav a {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border-bottom: none;
    margin-bottom: 0;
  }

  /* Mobile dropdown: show inline, no floating */
  .nav-dropdown {
    width: 100%;
    flex-direction: column;
  }

  .nav-dropdown-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 1rem;
    min-width: 0;
    width: 100%;
  }

  .nav-dropdown-menu a {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .header-icons {
    gap: 4px;
    margin-right: 0.5rem;
  }

  /* Search overlay: on mobile, cover the full header bar */
  .header-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: var(--nav-h);
    transform: none;
    z-index: 2000;
  }

  .header-search-overlay.active {
    transform: none;
  }

  /* Search button in mobile nav sidebar */
  .nav-search-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
  }

  .hdr-login-dropdown {
    right: -40px;
    width: 260px;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .glass-card {
    padding: 1.5rem;
  }
}

/* ========== Accessories Checkbox Chips ========== */
.accessories-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.acc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.acc-chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.acc-chip input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0;
}

.acc-chip input[type="checkbox"]:checked+span {
  color: var(--primary);
  font-weight: 600;
}

.acc-chip:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.acc-loading-text,
.acc-empty-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ========== Toast Notification System ========== */
#toast-container {
  position: fixed;
  top: calc(var(--nav-h) + 1rem);
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 380px;
  width: calc(100vw - 3rem);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  pointer-events: all;
  animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dark-theme .toast {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toast.toast-exit {
  animation: toastSlideOut 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius) 0 0 var(--radius);
}

.toast-success::before {
  background: #10B981;
}

.toast-error::before {
  background: #EF4444;
}

.toast-warning::before {
  background: #F59E0B;
}

.toast-info::before {
  background: var(--primary);
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.toast-success .toast-icon {
  color: #10B981;
}

.toast-error .toast-icon {
  color: #EF4444;
}

.toast-warning .toast-icon {
  color: #F59E0B;
}

.toast-info .toast-icon {
  color: var(--primary);
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.toast-msg {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  word-break: break-word;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.05rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.toast-close:hover {
  opacity: 1;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 0 var(--radius);
  animation: toastProgress linear forwards;
}

.toast-success .toast-progress {
  background: #10B981;
}

.toast-error .toast-progress {
  background: #EF4444;
}

.toast-warning .toast-progress {
  background: #F59E0B;
}

.toast-info .toast-progress {
  background: var(--primary);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
    max-height: 200px;
  }

  to {
    opacity: 0;
    transform: translateX(110%) scale(0.95);
    max-height: 0;
    padding: 0;
    margin-bottom: -0.75rem;
  }
}

@keyframes toastProgress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

@media (max-width: 600px) {
  #toast-container {
    right: 1rem;
    left: 1rem;
    width: auto;
    max-width: 100%;
  }
}

/* ── Accessibility: Respect user motion preferences ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Print Styles ── */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
  }
  .nav-bar,
  .footer,
  .back-to-top,
  .scroll-progress,
  .whatsapp-float,
  .cookie-banner,
  #toast-container,
  .no-print {
    display: none !important;
  }
  a {
    color: #0D9488;
    text-decoration: underline;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  h1, h2, h3 {
    page-break-after: avoid;
    color: #000 !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
}