/* ChicNutri — Public CSS v1.0.0
   Mobile-first | Dark luxury | CHC brand */

:root {
  --bg:      #0a0a0a;
  --bg-card: #141414;
  --bg-el:   #1a1a1a;
  --border:  #2a2a2a;
  --gold:    #c9a96e;
  --steel:   #7a8b9a;
  --text:    #e8e6e3;
  --muted:   #777;
  --success: #4caf50;
  --danger:  #f44336;
  --warning: #ff9800;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:15px; -webkit-text-size-adjust:100%; }

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

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

/* ─── NAV ──────────────────────────────────── */
.pub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #111;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 12px;
}
.pub-nav__brand { display:flex; align-items:center; gap:8px; text-decoration:none; }
.brand-leaf { font-size:1.2rem; }
.brand-text { font-family:'Cormorant Garamond',Georgia,serif; font-size:1.1rem; font-weight:600; color:var(--gold); letter-spacing:1px; }
.brand-by   { font-size:.7rem; color:var(--muted); }
.pub-nav__actions { display:flex; align-items:center; gap:10px; }
.lang-toggle { padding:4px 10px; border:1px solid var(--border); border-radius:4px; color:var(--muted); font-size:.8rem; cursor:pointer; transition:all .15s; text-decoration:none; }
.lang-toggle:hover { border-color:var(--gold); color:var(--gold); text-decoration:none; }
.pub-nav__site { font-size:.75rem; color:var(--muted); }
.pub-nav__site:hover { color:var(--gold); text-decoration:none; }

/* ─── FLASH ────────────────────────────────── */
.pub-flash { padding:12px 20px; font-size:.875rem; border-bottom:1px solid; }
.pub-flash--error { background:#f4433618; border-color:var(--danger); color:#e57373; }

/* ─── MAIN ─────────────────────────────────── */
.pub-main { min-height: calc(100vh - 140px); }

/* ─── CATALOG PAGE ─────────────────────────── */
.catalog-page { max-width:960px; margin:0 auto; padding:20px 16px 40px; }
.catalog-header { margin-bottom:20px; }
.catalog-title { font-family:'Cormorant Garamond',serif; font-size:2rem; font-weight:600; color:var(--gold); }
.catalog-sub   { color:var(--muted); font-size:.85rem; margin-top:4px; }

.search-bar { display:flex; gap:8px; margin-bottom:16px; }
.search-input {
  flex:1; padding:11px 16px; background:var(--bg-el);
  border:1px solid var(--border); border-radius:8px;
  color:var(--text); font-size:.9rem; font-family:'Outfit',sans-serif;
}
.search-input:focus { outline:none; border-color:var(--gold); }
.search-btn {
  padding:11px 20px; background:var(--gold); color:#000;
  border:none; border-radius:8px; font-weight:700; cursor:pointer;
  font-family:'Outfit',sans-serif; white-space:nowrap;
}

.category-pills { display:flex; gap:6px; overflow-x:auto; padding-bottom:4px; margin-bottom:20px; scrollbar-width:none; }
.category-pills::-webkit-scrollbar { display:none; }
.category-pill {
  padding:5px 14px; border-radius:20px; border:1px solid var(--border);
  color:var(--muted); font-size:.78rem; white-space:nowrap; text-decoration:none; transition:all .15s;
}
.category-pill:hover,
.category-pill.active { border-color:var(--gold); color:var(--gold); background:#c9a96e12; text-decoration:none; }

.results-count { font-size:.8rem; color:var(--muted); margin-bottom:16px; }

.products-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px,1fr)); gap:14px; }

.product-card { background:var(--bg-card); border:1px solid var(--border); border-radius:10px; overflow:hidden; transition:border-color .2s, transform .2s; }
.product-card:hover { border-color:var(--gold); transform:translateY(-2px); }
.product-card a { text-decoration:none; color:var(--text); display:block; }
.product-card img { width:100%; height:140px; object-fit:cover; }
.product-card__no-image { height:100px; display:flex; align-items:center; justify-content:center; font-size:2.2rem; background:var(--bg-el); }
.product-card__body { padding:12px; }
.product-card__category { font-size:.7rem; color:var(--steel); text-transform:uppercase; letter-spacing:.5px; display:block; margin-bottom:4px; }
.product-card__body h3 { font-size:.9rem; font-weight:600; line-height:1.3; margin-bottom:4px; }
.product-card__kcal  { font-size:.73rem; color:var(--muted); margin-bottom:5px; }
.product-card__price { font-size:.98rem; font-weight:700; color:var(--gold); }

.no-results { text-align:center; padding:40px 20px; color:var(--muted); }
.no-results a { color:var(--gold); }

/* ─── PRODUCT PAGE ─────────────────────────── */
.product-page { max-width:680px; margin:0 auto; padding:20px 16px 40px; }

.product-hero { display:flex; gap:16px; margin-bottom:28px; align-items:flex-start; }
.product-hero__image-wrap { width:120px; flex-shrink:0; }
.product-hero__image { width:120px; height:120px; object-fit:cover; border-radius:10px; border:1px solid var(--border); }
.product-hero__no-image {
  width:120px; height:120px; flex-shrink:0;
  background:var(--bg-el); border:1px solid var(--border);
  border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:2.5rem;
}
.product-hero__info { flex:1; }

.product-category-tag {
  display:inline-block; background:var(--bg-el); color:var(--steel);
  border:1px solid var(--border); font-size:.7rem; font-weight:600;
  letter-spacing:.5px; text-transform:uppercase; padding:2px 8px; border-radius:4px; margin-bottom:6px;
}
.product-title    { font-family:'Cormorant Garamond',serif; font-size:1.6rem; font-weight:600; line-height:1.2; margin:4px 0; }
.product-title-en { font-size:.8rem; color:var(--muted); font-style:italic; }
.product-description { font-size:.85rem; color:#aaa; margin-top:6px; }
.product-price { font-size:1.3rem; font-weight:700; color:var(--gold); margin-top:10px; }

.product-qr { display:flex; align-items:center; gap:8px; margin-top:10px; }
.product-qr img { border-radius:4px; border:1px solid var(--border); }
.qr-hint { font-size:.7rem; color:var(--muted); }

/* ─── SECTIONS ─────────────────────────────── */
.nutrition-section,
.allergens-section,
.ingredients-section,
.related-section { margin-bottom:28px; }

.section-title {
  font-size:1rem; font-weight:700; color:var(--gold);
  margin-bottom:14px; padding-bottom:8px; border-bottom:1px solid var(--border);
}

/* ─── TABEL NUTRIȚIONAL ────────────────────── */
.nutrition-notice { font-size:.78rem; color:var(--muted); margin-bottom:10px; }
.nutrition-table-wrap { border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.nutrition-table { width:100%; border-collapse:collapse; font-size:.82rem; }
.nutrition-table thead th {
  background:#111; padding:10px 14px; font-size:.7rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.4px; color:var(--muted);
  border-bottom:1px solid var(--border);
}
.nutrition-table th { text-align:left; font-weight:400; }
.nutrition-table td { text-align:right; }
.nutrition-table th, .nutrition-table td { padding:9px 14px; border-bottom:1px solid #1a1a1a; vertical-align:middle; }
.nutrition-table tr:last-child th,
.nutrition-table tr:last-child td { border-bottom:none; }
.nutrition-table .row-energy th,
.nutrition-table .row-energy td { font-weight:700; background:#0f0f0f; }
.nutrition-table .row-sub th { padding-left:24px; color:var(--muted); font-size:.78rem; }
.nutrition-table .row-sub td { color:var(--muted); font-size:.78rem; }
.nutrition-footnote { font-size:.7rem; color:var(--muted); margin-top:10px; line-height:1.5; }

/* ─── ALERGENI CHIPS ───────────────────────── */
.allergen-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.allergen-chip {
  display:flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:8px; border:1px solid; min-width:140px;
}
.allergen-chip--contains { background:#f4433610; border-color:#f4433633; }
.allergen-chip--trace    { background:#ff980010; border-color:#ff980033; }
.chip-emoji { font-size:1.1rem; }
.chip-info  { display:flex; flex-direction:column; }
.chip-info strong { font-size:.78rem; }
.chip-status { font-size:.68rem; color:var(--muted); }
.allergen-chip--contains .chip-status { color:#e57373; }
.allergen-chip--trace    .chip-status { color:#ffb74d; }
.allergen-note { font-size:.72rem; color:var(--muted); }

/* ─── INGREDIENTE ──────────────────────────── */
.ingredients-text { font-size:.82rem; line-height:1.7; color:#ccc; }
.allergen-bold { font-weight:900; color:var(--text); }
.additives-text { font-size:.78rem; color:var(--muted); margin-top:8px; }
.ingredients-note { font-size:.7rem; color:var(--muted); margin-top:10px; line-height:1.5; }

/* ─── PRODUSE SIMILARE ─────────────────────── */
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.related-card { background:var(--bg-el); border:1px solid var(--border); border-radius:8px; overflow:hidden; text-decoration:none; color:var(--text); transition:border-color .15s; }
.related-card:hover { border-color:var(--gold); }
.related-card img, .related-card__no-img { height:72px; width:100%; object-fit:cover; }
.related-card__no-img { display:flex; align-items:center; justify-content:center; font-size:1.4rem; background:var(--bg-el); }
.related-card__body { padding:8px; }
.related-name  { font-size:.76rem; font-weight:600; line-height:1.2; }
.related-kcal  { font-size:.68rem; color:var(--muted); margin-top:2px; }
.related-price { font-size:.8rem; color:var(--gold); margin-top:2px; }

/* ─── BREADCRUMB ───────────────────────────── */
.breadcrumb { font-size:.78rem; color:var(--muted); margin-top:28px; }
.breadcrumb a { color:var(--muted); }
.breadcrumb a:hover { color:var(--gold); }
.breadcrumb .separator { margin:0 6px; }

/* ─── PAGINARE ─────────────────────────────── */
.pub-pagination { display:flex; justify-content:center; gap:8px; margin-top:32px; flex-wrap:wrap; }
.pub-page-btn {
  padding:8px 16px; background:var(--bg-el); border:1px solid var(--border);
  border-radius:6px; color:var(--text); text-decoration:none; font-size:.82rem;
}
.pub-page-btn:hover { border-color:var(--gold); color:var(--gold); text-decoration:none; }
.pub-page-btn.active { border-color:var(--gold); color:var(--gold); background:#c9a96e12; }

/* ─── FOOTER ───────────────────────────────── */
.pub-footer { background:#0d0d0d; border-top:1px solid var(--border); padding:28px 20px; margin-top:auto; }
.pub-footer__inner { max-width:680px; margin:0 auto; text-align:center; }
.pub-footer__brand { font-size:1rem; color:var(--gold); font-weight:700; margin-bottom:10px; }
.pub-footer__legal { font-size:.72rem; color:var(--muted); line-height:1.6; }
.pub-footer__copyright { font-size:.72rem; color:var(--muted); margin-top:10px; }
.pub-footer__copyright a { color:var(--muted); }

/* ─── 404 ──────────────────────────────────── */
.page-404 { max-width:480px; margin:80px auto; padding:0 20px; text-align:center; }
.page-404 h1 { font-size:4rem; color:var(--gold); font-weight:900; }
.page-404 p  { color:var(--muted); margin:12px 0 24px; }

/* ─── RESPONSIVE ───────────────────────────── */
@media (min-width:540px) {
  .product-hero__image-wrap { width:160px; }
  .product-hero__image { width:160px; height:160px; }
  .product-hero__no-image { width:160px; height:160px; }
}

@media (max-width:400px) {
  .product-hero { flex-direction:column; }
  .product-hero__image-wrap, .product-hero__no-image { width:100%; height:180px; }
  .product-hero__image { width:100%; height:180px; }
  .related-grid { grid-template-columns:1fr 1fr; }
  .allergen-chip { min-width:0; flex:1; }
}
