/* ============================================================
   FACE2FACE Ltd — Global Stylesheet
   Single-file CSS for the entire site (public + customer + admin).
   Mobile-first. Breakpoints: 480 / 768 / 1024.
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --primary: #1a3a7e;
  --primary-dark: #12285c;
  --accent: #c9a84c;
  --accent-dark: #a8863a;
  --white: #ffffff;
  --text: #17221c;
  --text-muted: #5b6b63;
  --bg: #f5f7f5;
  --border: #e1e6e2;
  --success: #2e7d47;
  --danger: #c0392b;
  --warning: #d99a1f;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(23, 34, 28, 0.08);
  --shadow-md: 0 4px 16px rgba(23, 34, 28, 0.12);
  --shadow-lg: 0 12px 32px rgba(23, 34, 28, 0.16);

  --header-height: 72px;
  --announce-height: 36px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Reset ---- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4, h5 { margin: 0 0 0.5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-secondary { background: var(--primary); color: var(--white); }
.btn-secondary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---- Announcement bar ---- */
.announce-bar {
  height: var(--announce-height);
  background: var(--accent);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  overflow: hidden;
  position: relative;
}
.announce-bar a { text-decoration: underline; margin-left: 6px; }
.announce-bar[hidden] { display: none; }

/* ---- Header ---- */
.site-header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}
.brand-logo-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-logo-circle img { width: 32px; height: 32px; object-fit: contain; }

.main-nav {
  display: none;
}
.main-nav ul { display: flex; gap: 24px; align-items: center; }
.main-nav a { font-size: 0.92rem; font-weight: 500; opacity: 0.92; }
.main-nav a:hover { opacity: 1; color: var(--accent); }
.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--white); color: var(--text);
  min-width: 220px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 8px 0; margin-top: 12px;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { display: block; }
.nav-dropdown-panel a { display: block; padding: 8px 18px; font-size: 0.88rem; }
.nav-dropdown-panel a:hover { background: var(--bg); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: none;
}
.icon-btn:hover { background: rgba(255,255,255,0.2); }
.badge-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: var(--primary-dark);
  font-size: 0.65rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.search-box { position: relative; display: none; }
.search-box input {
  padding: 9px 14px 9px 36px;
  border-radius: 20px; border: none;
  background: rgba(255,255,255,0.15); color: var(--white);
  width: 220px;
}
.search-box input::placeholder { color: rgba(255,255,255,0.7); }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: 0.75; }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  width: 28px; background: none; border: none; padding: 6px;
}
.hamburger span { display: block; height: 2px; background: var(--white); border-radius: 2px; }

.mobile-nav {
  display: none;
  background: var(--primary-dark);
  padding: 8px 0 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav a { display: block; padding: 12px 16px; font-size: 0.95rem; border-top: 1px solid rgba(255,255,255,0.08); }

/* ---- Footer ---- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 20px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { font-size: 0.88rem; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-brand { font-size: 1.2rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 0.8rem; opacity: 0.75;
  align-items: center;
  text-align: center;
}
.staff-login-link { opacity: 0.5; font-size: 0.75rem; }
.staff-login-link:hover { opacity: 0.9; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 56px 0;
}
.hero-content { max-width: 640px; }
.hero h1 { font-size: 1.9rem; margin-bottom: 16px; }
.hero p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 24px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.trust-strip-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600;
  background: rgba(255,255,255,0.08);
  padding: 10px 12px; border-radius: var(--radius-md);
}

/* ---- Section scaffolding ---- */
.section { padding: 48px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 24px; gap: 12px; flex-wrap: wrap;
}
.section-head h2 { font-size: 1.5rem; color: var(--primary); }
.section-head .see-all { font-size: 0.85rem; font-weight: 700; color: var(--accent-dark); }

/* ---- Trust badges strip (from DB) ---- */
.badges-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px 0;
}
.badge-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

/* ---- Category cards ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.category-card:hover { transform: translateY(-4px); }
.category-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.category-card-label {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(23,34,28,0.85), transparent);
  color: var(--white);
  padding: 16px 14px 12px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---- Product grid & cards ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.hscroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.hscroll .product-card { min-width: 220px; scroll-snap-align: start; }

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: var(--primary-dark);
  font-size: 0.68rem; font-weight: 800;
  padding: 4px 9px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.product-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-brand { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.product-card-name {
  font-size: 0.92rem; font-weight: 600; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.product-card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price-current { font-weight: 800; color: var(--primary); font-size: 1.02rem; }
.price-old { text-decoration: line-through; color: var(--text-muted); font-size: 0.82rem; }
.product-card-actions { display: flex; gap: 8px; margin-top: 8px; }
.product-card-actions .btn { flex: 1; padding: 9px 10px; font-size: 0.78rem; }

.stars { display: inline-flex; gap: 2px; color: var(--accent); font-size: 0.85rem; }
.stars .star-empty { color: var(--border); }
.rating-line { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted); }

/* ---- Pagination ---- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination button {
  min-width: 36px; height: 36px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--white); font-weight: 600; font-size: 0.85rem;
}
.pagination button.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---- Filters sidebar (shop.html) ---- */
.shop-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.filters-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  align-self: start;
}
.filter-group { border-bottom: 1px solid var(--border); padding: 14px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { font-size: 0.85rem; margin-bottom: 10px; color: var(--primary); }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; margin-bottom: 8px; cursor: pointer; }
.price-range-inputs { display: flex; gap: 8px; align-items: center; }
.price-range-inputs input { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* ---- Forms ---- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,58,126,0.12); }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 4px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }

/* ---- Cards / panels (generic) ---- */
.card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 20px; }
.panel-title { font-size: 1.1rem; color: var(--primary); margin-bottom: 16px; font-weight: 700; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin: 0 6px; }

/* ---- Steps (checkout) ---- */
.step-indicator { display: flex; gap: 8px; margin-bottom: 28px; }
.step-indicator .step {
  flex: 1; text-align: center; padding: 10px 6px; border-radius: var(--radius-sm);
  background: var(--white); font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
  border: 2px solid var(--border);
}
.step-indicator .step.active { color: var(--primary); border-color: var(--primary); }
.step-indicator .step.done { color: var(--success); border-color: var(--success); }

/* ---- Cart page ---- */
.cart-line {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.qty-stepper button { width: 30px; height: 30px; background: none; border: none; font-weight: 700; }
.qty-stepper input { width: 40px; text-align: center; border: none; }
.cart-summary { background: var(--white); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 10px; }
.summary-row.total { font-size: 1.1rem; font-weight: 800; color: var(--primary); border-top: 1px solid var(--border); padding-top: 12px; }

/* ---- Tables ---- */
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table.data-table th, table.data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
table.data-table th { background: var(--bg); font-weight: 700; color: var(--primary); }
.table-responsive { overflow-x: auto; }

/* ---- Status pills ---- */
.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: capitalize; }
.pill-pending { background: #fdf1d6; color: var(--warning); }
.pill-confirmed, .pill-processing { background: #e2ecff; color: var(--primary); }
.pill-ready { background: #eae2fd; color: #6a3fd9; }
.pill-delivered, .pill-approved, .pill-won, .pill-paid, .pill-sent, .pill-accepted { background: #e1f4e6; color: var(--success); }
.pill-cancelled, .pill-rejected, .pill-lost, .pill-unpaid { background: #fbe4e1; color: var(--danger); }

/* ---- Toasts ---- */
.toast-stack {
  position: fixed; top: 16px; right: 16px; z-index: 1000;
  display: flex; flex-direction: column; gap: 10px;
  max-width: calc(100vw - 32px);
}
.toast {
  background: var(--text); color: var(--white);
  padding: 12px 18px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); font-size: 0.85rem;
  animation: toast-in 0.25s ease;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---- WhatsApp float button ---- */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); border: none;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* ---- Newsletter ---- */
.newsletter-box {
  background: var(--primary); color: var(--white);
  border-radius: var(--radius-lg); padding: 32px 24px; text-align: center;
}
.newsletter-form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 20px auto 0; }
.newsletter-form input { flex: 1; }

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--white); border-radius: var(--radius-md); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.testimonial-quote { font-style: italic; color: var(--text); margin-bottom: 14px; }
.testimonial-person { font-weight: 700; font-size: 0.88rem; }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

/* ---- RFQ line items table ---- */
.rfq-items-table input, .rfq-items-table select { padding: 8px; font-size: 0.85rem; }
.rfq-add-row { margin-top: 10px; }

/* ---- Filter chips (clients / projects / testimonials) ---- */
.chip-filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip-filter {
  padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--white); font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
}
.chip-filter:hover { border-color: var(--primary); color: var(--primary); }
.chip-filter.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ---- Neutral tag (sector / service type labels) ---- */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 700; background: #eef2fb; color: var(--primary);
}
.tag-gold { background: #fbf3df; color: var(--accent-dark); }

/* ---- Client cards ---- */
.client-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.client-card {
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: 20px 16px; text-align: center; transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}
.client-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.client-card .client-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; overflow: hidden;
}
.client-card .client-avatar img { width: 100%; height: 100%; object-fit: contain; }
.client-card h3 { font-size: 0.95rem; margin-bottom: 6px; color: var(--text); }
.client-card .featured-flag {
  position: absolute; top: 10px; right: 10px;
  background: var(--accent); color: var(--primary-dark);
  font-size: 0.62rem; font-weight: 800; padding: 3px 8px; border-radius: 20px;
  text-transform: uppercase;
}

/* ---- Project cards ---- */
.project-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.project-card {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.project-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; }
.project-card-body { padding: 18px; }
.project-card-body h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 8px; }
.project-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.project-meta-row span.plain { font-size: 0.78rem; color: var(--text-muted); }

/* ---- Project detail gallery ---- */
.project-gallery-main { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); margin-bottom: 10px; }
.project-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.project-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.project-gallery-thumbs img {
  width: 76px; height: 56px; object-fit: cover; border-radius: var(--radius-sm);
  cursor: pointer; opacity: 0.65; flex-shrink: 0; border: 2px solid transparent;
}
.project-gallery-thumbs img.active { opacity: 1; border-color: var(--accent); }

/* ---- File upload chips (RFQ attachments) ---- */
.file-chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.file-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 10px 6px 14px; font-size: 0.78rem; color: var(--text);
}
.file-chip button { background: none; border: none; color: var(--danger); font-weight: 800; line-height: 1; padding: 0 2px; }

/* ---- Star input (reviews) ---- */
.star-input { display: inline-flex; gap: 4px; font-size: 1.6rem; cursor: pointer; color: var(--border); }
.star-input .active { color: var(--accent); }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-body { background: var(--bg); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--primary);
  color: var(--white);
  flex-shrink: 0;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  z-index: 300;
}
.admin-sidebar.open { transform: translateX(0); }
.admin-sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px; font-weight: 800; font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; font-size: 0.88rem; opacity: 0.85;
  border-left: 3px solid transparent;
}
.admin-sidebar nav a:hover { background: rgba(255,255,255,0.06); opacity: 1; }
.admin-sidebar nav a.active { border-left-color: var(--accent); background: rgba(255,255,255,0.08); opacity: 1; font-weight: 600; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar {
  background: var(--white);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 50;
}
.admin-topbar-left { display: flex; align-items: center; gap: 12px; }
.admin-content { padding: 24px 18px 60px; }
.admin-page-title { font-size: 1.3rem; color: var(--primary); margin-bottom: 20px; }

.kpi-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
.kpi-card { background: var(--white); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); }
.kpi-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.kpi-value { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-top: 6px; }

.chart-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
.chart-card { background: var(--white); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); }
.chart-card h3 { font-size: 0.95rem; color: var(--primary); margin-bottom: 12px; }
.chart-card canvas { max-height: 260px; }

.admin-bell { position: relative; }
.notif-panel {
  display: none;
  position: absolute; top: 100%; right: 0; margin-top: 10px;
  width: 320px; max-height: 400px; overflow-y: auto;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); z-index: 400;
}
.notif-panel.open { display: block; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.82rem; }
.notif-item.unread { background: #eef2fb; }
.notif-item strong { display: block; color: var(--primary); font-size: 0.85rem; }

.drop-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-md);
  padding: 30px; text-align: center; color: var(--text-muted);
  font-size: 0.85rem; cursor: pointer;
}
.drop-zone.dragover { border-color: var(--primary); background: #eef2fb; }
.image-preview-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.image-preview-grid img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }

.repeater-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.repeater-row input, .repeater-row select { flex: 1; }

.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(23,34,28,0.5);
  z-index: 500; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-md);
  max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 24px;
}

.tree-item { padding: 8px 0 8px 16px; border-left: 2px solid var(--border); margin-left: 8px; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn { padding: 10px 18px; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; background: none; }
.tab-btn.active { color: var(--primary); border-color: var(--primary); }

/* ---- Print (proforma / reports) ---- */
@media print {
  .no-print { display: none !important; }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (min-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .badges-strip { grid-template-columns: repeat(4, 1fr); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .main-nav { display: block; }
  .search-box { display: block; }
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }

  .hero h1 { font-size: 2.6rem; }
  .hero-content { max-width: 720px; }
  .trust-strip { grid-template-columns: repeat(4, 1fr); }

  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }

  .admin-sidebar { transform: translateX(0); position: fixed; }
  .admin-main { margin-left: 240px; }
  .form-row.two-col { grid-template-columns: 1fr 1fr; }
  .client-grid { grid-template-columns: repeat(4, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .category-grid { grid-template-columns: repeat(6, 1fr); }
  .shop-layout { grid-template-columns: 260px 1fr; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .chart-grid { grid-template-columns: repeat(2, 1fr); }
  .badges-strip { grid-template-columns: repeat(6, 1fr); }
  .form-row.three-col { grid-template-columns: 1fr 1fr 1fr; }
  .client-grid { grid-template-columns: repeat(5, 1fr); }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}
