body { font: 13px/1.4 -apple-system, system-ui, sans-serif; margin: 0; color: #222; }
nav { background: #1a1a1a; padding: 8px 16px; }
nav a { color: #eee; text-decoration: none; margin-right: 18px; }
nav a.active { color: #ffd866; font-weight: bold; }
main { padding: 16px; max-width: 1400px; }
h1 { font-size: 18px; margin: 0 0 12px; }
h2 { font-size: 15px; margin: 18px 0 8px; color: #555; }
table { border-collapse: collapse; width: 100%; margin-bottom: 16px; }
th, td { padding: 6px 10px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
th { background: #f6f6f6; font-weight: 600; font-size: 12px; text-transform: uppercase; color: #666; }
tr:hover td { background: #fafafa; }
.stat { display: inline-block; padding: 10px 16px; margin: 4px 8px 4px 0; background: #f0f4f8; border-left: 3px solid #4a7; }
.stat b { font-size: 18px; display: block; }
.badge { display: inline-block; padding: 1px 6px; border-radius: 3px; background: #eee; font-size: 11px; }
.badge.gtin { background: #d4edda; }
.badge.bundle { background: #fff3cd; }
.badge.oos { background: #f8d7da; }
.muted { color: #999; font-size: 11px; }
form.filters { margin-bottom: 12px; padding: 8px; background: #f9f9f9; }
form.filters input, form.filters select { padding: 3px 6px; margin-right: 8px; }
a.url { color: #36c; text-decoration: none; }
a.url:hover { text-decoration: underline; }
.group { background: #fcfcfc; border: 1px solid #e5e5e5; padding: 8px 12px; margin-bottom: 8px; }
.group h3 { margin: 0 0 6px; font-size: 13px; }
.group ul { margin: 0; padding-left: 18px; }
code { background: #f4f4f4; padding: 1px 4px; font-size: 12px; }
/* search */
.searchbox { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.searchbox input[type=text] { flex: 1; max-width: 500px; padding: 8px 12px; font-size: 15px; border: 1px solid #bbb; border-radius: 4px; }
.searchbox button { padding: 8px 18px; font-size: 14px; background: #2a72d4; color: white; border: 0; border-radius: 4px; cursor: pointer; }
.searchbox button:hover { background: #1e5cb3; }
.result-meta { color: #666; font-size: 12px; margin-bottom: 16px; }
.product { border: 1px solid #e5e5e5; border-radius: 6px; margin-bottom: 14px; background: white; overflow: hidden; }
.product-head { padding: 10px 14px; background: #fafafa; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.product-title { font-size: 15px; font-weight: 600; color: #222; margin: 0 0 4px; }
.product-meta { font-size: 11.5px; color: #777; }
.product-meta .tag { display: inline-block; padding: 1px 7px; background: #eef; border-radius: 10px; margin-right: 4px; color: #335; }
.product-meta .tag.brand { background: #ffe9d4; color: #6a3a14; }
.product-meta .tag.type { background: #d4e9ff; color: #14406a; }
.product-meta .tag.country { background: #e6f5e1; color: #2d5b21; }
.product-meta .tag.region { background: #f5e1f5; color: #5b215b; }
.price-summary { text-align: right; white-space: nowrap; font-size: 12px; color: #555; }
.price-summary .min { color: #2a8a2a; font-weight: 600; font-size: 14px; }
.price-summary .max { color: #999; }
.variants { padding: 6px 14px 10px; }
.variant { margin-top: 8px; }
.variant-head { font-size: 12px; color: #555; padding: 2px 0; border-bottom: 1px dotted #ddd; margin-bottom: 4px; }
.offers-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.offers-table td { padding: 3px 8px; border: 0; }
.offers-table tr:nth-child(odd) td { background: #fcfcfc; }
.offer-merchant { width: 130px; color: #444; }
.offer-title { color: #36c; }
.offer-price { width: 100px; text-align: right; font-weight: 600; color: #2a8a2a; }
.offer-price.unavail { color: #999; font-weight: normal; text-decoration: line-through; }
.empty { padding: 40px; text-align: center; color: #999; font-size: 14px; }
/* images */
.product-thumb { width: 64px; height: 64px; flex-shrink: 0; background: #f4f4f4; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-thumb.empty-thumb { font-size: 24px; color: #ddd; }
.product-body { flex: 1; min-width: 0; }
.offer-thumb { width: 36px; height: 36px; vertical-align: middle; }
.offer-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.offers-table td.offer-thumb-cell { width: 44px; padding: 2px 4px; }
/* piata */
.seg-bar { display: flex; height: 18px; border-radius: 3px; overflow: hidden; font-size: 10px; line-height: 18px; }
.seg-bar span { text-align: center; overflow: hidden; white-space: nowrap; color: #fff; font-weight: 600; }
.tier-exclusiv { background: #f8d7da; color: #721c24; }
.tier-restrâns  { background: #fff3cd; color: #856404; }
.tier-standard  { background: #d4edda; color: #155724; }
.tier-ubiquu    { background: #cce5ff; color: #004085; }
.pct-bar { display: inline-block; height: 8px; background: #4a7; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.section-toggle { cursor:pointer; user-select:none; }
.section-toggle::before { content: '▼ '; font-size: 10px; color: #999; }
.section-toggle.collapsed::before { content: '▶ '; }

/* ── nav: separare public / admin ───────────────────────────────────────── */
nav .nav-sep { color: #555; margin-right: 18px; }
nav a.admin { color: #999; font-size: 11px; }
nav a.admin:hover { color: #ddd; }

/* ── breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb { font-size: 12px; color: #999; margin: 0 0 10px; }
.breadcrumb a { color: #36c; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #ccc; margin: 0 2px; }
.h1-sub { font-size: 13px; font-weight: normal; }

/* ── home: hero + grilă categorii ───────────────────────────────────────── */
.hero { padding: 28px 0 8px; }
.hero h1 { font-size: 26px; margin-bottom: 6px; }
.hero p { font-size: 14px; margin: 0 0 16px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cat-card { border: 1px solid #e5e5e5; border-radius: 6px; padding: 12px 14px; background: #fff; }
.cat-title { display: block; font-size: 15px; font-weight: 600; color: #222; text-decoration: none; margin-bottom: 6px; }
.cat-title:hover { color: #2a72d4; }
.cat-subs a { display: inline-block; font-size: 12px; color: #36c; text-decoration: none; margin: 2px 8px 2px 0; }
.cat-subs a:hover { text-decoration: underline; }

/* ── chips subcategorii / categorii brand ───────────────────────────────── */
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.subcats a { font-size: 12px; padding: 4px 10px; background: #eef; border-radius: 14px; color: #335; text-decoration: none; }
.subcats a:hover { background: #dde0ff; }
.subcats .muted { color: #88a; }

/* ── grilă produse (listare categorie/brand) ────────────────────────────── */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pcard { display: flex; flex-direction: column; border: 1px solid #e5e5e5; border-radius: 6px; background: #fff; padding: 12px; text-decoration: none; color: inherit; transition: box-shadow .12s, border-color .12s; }
.pcard:hover { border-color: #2a72d4; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.pcard-thumb { height: 120px; display: flex; align-items: center; justify-content: center; background: #f8f8f8; border-radius: 4px; margin-bottom: 8px; overflow: hidden; }
.pcard-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pcard-thumb.empty-thumb { font-size: 40px; color: #ddd; }
.pcard-name { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; flex: 1; }
.pcard-meta { margin-bottom: 8px; }
.pcard-meta .tag { display: inline-block; font-size: 10.5px; padding: 1px 7px; border-radius: 10px; margin: 0 4px 2px 0; background: #eef; color: #335; }
.pcard-meta .tag.brand { background: #ffe9d4; color: #6a3a14; }
.pcard-meta .tag.country { background: #e6f5e1; color: #2d5b21; }
.pcard-price b { color: #2a8a2a; font-size: 15px; }
.pcard-price .muted { margin-left: 6px; }

/* ── director branduri ──────────────────────────────────────────────────── */
.brandgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; margin-bottom: 16px; }
.brandgrid a { font-size: 13px; padding: 6px 10px; border: 1px solid #eee; border-radius: 4px; color: #36c; text-decoration: none; }
.brandgrid a:hover { background: #f6f9ff; border-color: #cdddff; }

/* ── paginare ───────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 20px 0; font-size: 13px; }
.pagination a { color: #2a72d4; text-decoration: none; padding: 6px 14px; border: 1px solid #cdddff; border-radius: 4px; }
.pagination a:hover { background: #f6f9ff; }
