/* MAP
 * §1 tokeni de tema
 * §2 antet si meniu
 * §3 hero si sectiuni
 * §4 grila de produse
 * §5 pagina de produs
 * §6 subsol
 * §7 ecrane mici
 */

/* §1 tokeni de tema */
:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-2: #f5f3ec;
  --border: #d9d4c5;
  --border-strong: #b8b2a0;
  --text: #1f1e1d;
  --text-2: #57534e;
  --text-3: #8a857c;
  --accent: #c96442;
  --accent-hover: #b5502f;
  --accent-soft: rgba(201, 100, 66, .09);
  --on-accent: #ffffff;
  --band: #262624;
  --on-band: #faf9f5;
  --radius: 14px;
  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1917; --surface: #232220; --surface-2: #2b2926;
    --border: #3a3733; --border-strong: #4d4943;
    --text: #f2efe8; --text-2: #b8b2a6; --text-3: #8a857c;
    --accent: #e08a5f; --accent-hover: #eb9d75; --accent-soft: rgba(224,138,95,.14);
    --on-accent: #241a14; --band: #141312; --on-band: #f2efe8;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* §2 antet si meniu */
.site-head {
  background: var(--band);
  color: var(--on-band);
  border-bottom: 2px solid var(--border-strong);
  position: sticky; top: 0; z-index: 10;
}
.site-head .wrap { display: flex; align-items: center; gap: 22px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-size: 21px; font-weight: 800; letter-spacing: .4px; color: var(--on-band); }
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }
.site-head nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.site-head nav a { color: var(--on-band); font-weight: 500; opacity: .88; }
.site-head nav a:hover, .site-head nav a.on { opacity: 1; color: var(--accent); text-decoration: none; }

/* §3 hero si sectiuni */
.hero {
  background: var(--surface-2);
  border-bottom: 2px solid var(--border);
  padding: 54px 0;
}
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; max-width: 720px; }
.hero p { font-size: 18px; color: var(--text-2); max-width: 640px; margin: 0 0 20px; }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  border: 2px solid var(--accent); font-weight: 700;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--text-2); }

section { padding: 44px 0; }
section h2 { font-size: 27px; margin: 0 0 6px; }
section .lead { color: var(--text-2); margin: 0 0 24px; }

.crumbs { font-size: 14px; color: var(--text-2); padding: 18px 0 0; }
.crumbs a { color: var(--text-2); }

/* §4 grila de produse */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.card .ph { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.no-photo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 13px; letter-spacing: .5px;
  background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 12px, var(--bg) 12px, var(--bg) 24px);
}
.card .body { padding: 13px 15px 16px; }
.card h3 { font-size: 16px; margin: 0 0 5px; color: var(--text); line-height: 1.35; }
.card p { font-size: 14px; color: var(--text-2); margin: 0; }
.card .cat { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--accent); font-weight: 700; }

.cats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.cats a {
  padding: 7px 15px; border-radius: 999px;
  border: 1.5px solid var(--border-strong); color: var(--text-2); font-weight: 600; font-size: 14px;
}
.cats a:hover, .cats a.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); text-decoration: none; }

.pager { display: flex; gap: 7px; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span { padding: 7px 13px; border: 1.5px solid var(--border); border-radius: 9px; }
.pager span.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.empty { border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 34px; text-align: center; color: var(--text-2); }

/* §5 pagina de produs */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: start; }
.gallery .main { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery .thumbs { display: flex; gap: 9px; margin-top: 10px; flex-wrap: wrap; }
.gallery .thumbs img { width: 76px; height: 76px; object-fit: cover; border: 1.5px solid var(--border); border-radius: 9px; cursor: pointer; }
.gallery .thumbs img:hover { border-color: var(--accent); }
.product h1 { font-size: 31px; margin: 0 0 8px; }
.prose { color: var(--text-2); }
.prose p { margin: 0 0 13px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.tags span { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }

.callout {
  background: var(--accent-soft); border: 1.5px solid var(--accent);
  border-radius: var(--radius); padding: 18px 20px; margin-top: 22px;
}
.callout h3 { margin: 0 0 6px; font-size: 17px; }

/* §6 subsol */
.site-foot {
  background: var(--band); color: var(--on-band);
  border-top: 2px solid var(--border-strong);
  padding: 34px 0 26px; margin-top: 40px;
}
.site-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; }
.site-foot h4 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); }
.site-foot a { color: var(--on-band); opacity: .85; display: block; padding: 2px 0; }
.site-foot a:hover { opacity: 1; color: var(--accent); }
.site-foot .fine { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; opacity: .7; }

/* §7 ecrane mici */
@media (max-width: 800px) {
  .hero h1 { font-size: 30px; }
  .product { grid-template-columns: 1fr; gap: 22px; }
  .site-head .wrap { flex-wrap: wrap; gap: 12px; }
  .site-head nav { margin-left: 0; gap: 14px; }
}
