/* ============================================================
   EDYDGOS PUBLIC — stylesheet
   Paletă: bleumarin profund + chihlimbar cald, fundal hârtie rece
   ============================================================ */
:root {
  --ink:        #15202b;   /* bleumarin foarte închis — text + structură */
  --ink-soft:   #3d4d5c;
  --amber:      #e08a2b;   /* accent chihlimbar */
  --amber-dk:   #b96e15;
  --paper:      #f6f4ef;   /* fundal rece, ușor cald */
  --card:       #ffffff;
  --line:       #e2ddd3;
  --good:       #2f7d4f;
  --bad:        #b23b3b;
  --radius:     4px;
  --shadow:     0 1px 2px rgba(21,32,43,.06), 0 8px 24px rgba(21,32,43,.05);
  --maxw:       1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--amber-dk); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- HEADER ---------- */
.site-head {
  background: var(--ink);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
}
.site-head a { color: #fff; }
.head-inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.brand {
  font-weight: 800; font-size: 22px; letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 2px;
}
.brand .dot { color: var(--amber); }
.nav { display: flex; gap: 22px; margin-left: 8px; font-size: 15px; font-weight: 500; }
.nav a { opacity: .85; }
.nav a:hover { opacity: 1; color: #fff; }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.cart-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 15px;
}
.cart-badge {
  background: var(--amber); color: var(--ink);
  font-size: 12px; font-weight: 800;
  min-width: 19px; height: 19px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--ink) 0%, #1f3142 100%);
  color: #fff; padding: 64px 0 72px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,138,43,.25), transparent 70%);
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px); line-height: 1.05;
  letter-spacing: -.03em; margin: 0 0 14px; max-width: 14ch; font-weight: 800;
}
.hero p { font-size: 18px; opacity: .85; max-width: 46ch; margin: 0 0 26px; }
.hero .accent { color: var(--amber); }

/* ---------- BUTOANE ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 13px 24px; border-radius: var(--radius); border: 0;
  background: var(--amber); color: var(--ink);
  transition: transform .08s ease, background .15s ease;
  font-family: inherit;
}
.btn:hover { background: var(--amber-dk); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- GRID PRODUSE ---------- */
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  margin: 48px 0 22px;
}
.section-head h2 {
  font-size: 26px; letter-spacing: -.02em; margin: 0; font-weight: 800;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12px;
  font-weight: 700; color: var(--amber-dk); margin: 0 0 4px;
}
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 56px;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-img { aspect-ratio: 1/1; background: #eee; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-weight: 600; font-size: 15px; line-height: 1.35; margin: 0 0 6px; }
.card-rating { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; min-height: 18px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 17px; }
.price .was { font-weight: 500; font-size: 13px; color: var(--ink-soft); text-decoration: line-through; margin-right: 6px; }
.stars { color: var(--amber); letter-spacing: 1px; }

/* badge stoc / reducere */
.tag {
  display: inline-block; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 999px;
}
.tag-sale { background: #fbe8d3; color: var(--amber-dk); }
.tag-out  { background: #f0e3e3; color: var(--bad); }

/* ---------- PAGINĂ PRODUS ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; margin: 36px 0 56px; }
.gallery .main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; aspect-ratio: 1/1; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumbs img { width: 68px; height: 68px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.thumbs img:hover { border-color: var(--amber); }
.product h1 { font-size: 30px; letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.15; }
.product .price-row { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.product .price-row .price { font-size: 28px; }
.product .desc { color: var(--ink-soft); margin: 18px 0 24px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 38px; height: 42px; border: 0; background: #fff; font-size: 18px; cursor: pointer; }
.qty button:hover { background: var(--paper); }
.qty input { width: 48px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 16px; }
.stock-line { font-size: 14px; margin-bottom: 16px; }
.stock-line.in { color: var(--good); }
.stock-line.out { color: var(--bad); }

/* ---------- REVIEW-URI ---------- */
.reviews { margin: 40px 0; }
.rev-summary { display: flex; align-items: center; gap: 18px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; }
.rev-big { font-size: 42px; font-weight: 800; line-height: 1; }
.rev { border-bottom: 1px solid var(--line); padding: 18px 0; }
.rev:last-child { border-bottom: 0; }
.rev-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rev-name { font-weight: 700; font-size: 15px; }
.rev-verified { font-size: 11px; color: var(--good); font-weight: 700; }
.rev-title { font-weight: 600; margin: 4px 0; }
.rev-body { color: var(--ink-soft); font-size: 15px; }
.rev-date { font-size: 12px; color: #9aa3ab; margin-top: 4px; }

/* ---------- COȘ / CHECKOUT ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); }
.cart-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.cart-prod { display: flex; align-items: center; gap: 12px; }
.cart-prod img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); }
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; margin: 30px 0 60px; align-items: start; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 84px; }
.summary h3 { margin: 0 0 16px; font-size: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 800; font-size: 19px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 15px; font-family: inherit; background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--amber); border-color: var(--amber); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.link-remove { color: var(--bad); font-size: 13px; background: 0; border: 0; cursor: pointer; }
.link-remove:hover { text-decoration: underline; }

/* ---------- NOTICE ---------- */
.notice { padding: 14px 18px; border-radius: var(--radius); margin: 18px 0; font-size: 15px; }
.notice-ok { background: #e6f3ec; color: var(--good); border: 1px solid #bfe0cd; }
.notice-info { background: #fbf2e3; color: var(--amber-dk); border: 1px solid #f0ddbf; }

.empty { text-align: center; padding: 70px 20px; color: var(--ink-soft); }
.empty h2 { color: var(--ink); }

/* ---------- FOOTER ---------- */
.site-foot { background: var(--ink); color: #cdd4db; padding: 44px 0 28px; margin-top: 40px; }
.site-foot a { color: #cdd4db; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.foot-grid h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 2; }
.foot-bot { border-top: 1px solid #2a3a49; padding-top: 18px; font-size: 13px; opacity: .7; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- ADMIN ---------- */
.admin-head { background: var(--ink); color: #fff; padding: 14px 0; }
.admin-nav { display: flex; gap: 20px; font-size: 14px; }
.admin-nav a { color: #cdd4db; } .admin-nav a:hover { color: #fff; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { background: var(--paper); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 24px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .n { font-size: 28px; font-weight: 800; }
.stat .l { font-size: 13px; color: var(--ink-soft); }
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.badge.paid { background: #e6f3ec; color: var(--good); }
.badge.pending { background: #fbf2e3; color: var(--amber-dk); }
.login-box { max-width: 360px; margin: 80px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .cart-layout { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .nav { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .hero { padding: 44px 0 50px; }
  .head-inner { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
