/* ============================================================
   Adsem Shopping — design system pe identitatea vizuala AdSem
   Paleta, tipografia si razele preluate 1:1 de pe adsem.ro
   (navy #0B1222 + accent portocaliu #FF6D00 -> #FFAB00,
    Inter Tight / Inter / JetBrains Mono)
   ============================================================ */

:root {
  --bg: #fff;
  --bg2: #F7F8FB;
  --bg3: #EEF1F6;
  --navy: #0B1222;
  --navy2: #1E293B;
  --accent: #FF6D00;
  --accent2: #FFAB00;
  --accent-deep: #C2410C;
  --grad: linear-gradient(135deg, #FF6D00, #FFAB00);
  --text: #0F172A;
  --text2: #475569;
  --text3: #64748B;
  --border: #E2E8F0;
  --glow: rgba(255, 109, 0, .1);
  --shadow: 0 2px 8px rgba(0, 0, 0, .04), 0 8px 32px rgba(0, 0, 0, .06);
  --shadow-lift: 0 4px 12px rgba(0, 0, 0, .06), 0 16px 40px rgba(11, 18, 34, .1);
  --ok: #22C55E;
  --r: 12px;
  --rl: 20px;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy);
}
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }

main { max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; }

/* ---------- Header ---------- */
header.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
header.topbar .logo { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); }
header.topbar .logo img { height: 30px; width: auto; display: block; }
header.topbar .logo .sub {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--text3);
  padding-left: 9px; border-left: 1px solid var(--border);
}
header.topbar nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
header.topbar nav a {
  color: var(--text2); font-size: .93rem; font-weight: 500;
  padding: 9px 14px; border-radius: var(--r); transition: background .18s, color .18s;
}
header.topbar nav a:hover { background: var(--bg2); color: var(--navy); }
header.topbar nav a.cta {
  background: var(--grad); color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px var(--glow);
}
header.topbar nav a.cta:hover { color: #fff; filter: brightness(1.05); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 58px;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: -40px -50vw 0;
  background: radial-gradient(760px 380px at 50% 0%, var(--glow), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  margin: 0 auto 16px; max-width: 18ch;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .sub { color: var(--text2); font-size: 1.1rem; margin: 0 0 32px; }
.hero .stats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero .stats span {
  font-size: .87rem; font-weight: 600; color: var(--text2);
  background: var(--bg2); border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 999px;
}
.hero .stats span:first-child { color: var(--accent-deep); border-color: rgba(255, 109, 0, .3); background: #FFF7ED; }

/* ---------- Search ---------- */
.searchbar {
  display: flex; max-width: 640px; margin: 0 auto;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 999px; padding: 6px;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.searchbar input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; padding: 11px 20px; color: var(--text);
}
.searchbar button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad); color: #fff; border: 0; cursor: pointer;
  font: 600 .95rem var(--font-body);
  padding: 12px 28px; border-radius: 999px;
  box-shadow: 0 4px 14px var(--glow);
  transition: filter .18s, transform .18s;
}
.searchbar button:hover, .button:hover { filter: brightness(1.06); transform: translateY(-1px); color: #fff; }
.search-box {
  width: 100%; max-width: 640px; font: inherit; color: var(--text);
  background: #fff; border: 1.5px solid var(--border); border-radius: 999px;
  padding: 15px 24px; outline: 0; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }

/* ---------- Sectiuni ---------- */
section { margin: 48px 0; }
section > h2 {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 1.5rem; margin: 0 0 22px;
}
section > h2 a { color: inherit; }
section > h2 a:hover { color: var(--accent); }
section > h2::after {
  content: ""; flex: 1; height: 1px; background: var(--border); transform: translateY(-5px);
}
.page-head { padding: 54px 0 8px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 10px; }
.page-head p { color: var(--text2); margin: 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 700;
  color: var(--accent-deep); margin: 0 0 10px;
}

/* ---------- Grid & Card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--rl); padding: 16px;
  color: inherit; box-shadow: var(--shadow);
  transition: transform .22s cubic-bezier(.2, .7, .3, 1), box-shadow .22s, border-color .22s;
}
.card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lift);
  border-color: rgba(255, 109, 0, .45); color: inherit;
}
.card img, .card .noimg {
  width: 100%; height: 168px; object-fit: contain;
  background: var(--bg2); border-radius: var(--r);
}
.card .noimg { display: grid; place-items: center; color: var(--text3); }
.card .noimg::after { content: "○"; font-size: 2rem; opacity: .35; }
.card h3 {
  font-family: var(--font-body); font-weight: 600; font-size: .93rem; line-height: 1.4;
  color: var(--text); margin: 13px 0 6px; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .price {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.12rem;
  color: var(--navy); margin: auto 0 3px; letter-spacing: -.02em;
}
.card .merchant { color: var(--text3); font-size: .8rem; margin: 0; }

/* ---------- Pagina produs ---------- */
.product-detail {
  display: grid; grid-template-columns: minmax(240px, 430px) 1fr; gap: 44px;
  align-items: start; padding-top: 48px;
}
.product-detail img {
  width: 100%; background: #fff; border: 1px solid var(--border);
  border-radius: var(--rl); padding: 26px; object-fit: contain; max-height: 430px;
  box-shadow: var(--shadow);
}
.product-detail h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 14px; }
.highlight {
  display: inline-flex; flex-direction: column; gap: 3px;
  background: var(--navy); color: #fff;
  border-radius: var(--rl); padding: 18px 26px; margin: 20px 0 12px;
}
.highlight span {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-weight: 700;
}
.highlight strong { font-family: var(--font-mono); font-size: 1.7rem; letter-spacing: -.02em; }
.highlight small { color: #94A3B8; }
.badge {
  display: inline-block; background: #F0FDF4; color: #15803D;
  border: 1px solid #BBF7D0; border-radius: 999px;
  padding: 4px 13px; font-size: .8rem; font-weight: 600;
}
.badge.out { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }

/* ---------- Tabel oferte ---------- */
.offer-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--rl);
  overflow: hidden; box-shadow: var(--shadow);
}
.offer-table th {
  text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text3); background: var(--bg2);
  padding: 13px 18px; border-bottom: 1px solid var(--border);
}
.offer-table td { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.offer-table td:nth-child(2) { font-family: var(--font-mono); font-weight: 600; }
.offer-table tr:last-child td { border-bottom: 0; }
.offer-table .button { padding: 9px 20px; font-size: .88rem; }

/* ---------- Continut ---------- */
.content { max-width: 730px; }
.content p { color: var(--text2); }

/* ---------- Footer ---------- */
footer.site-footer {
  margin-top: 72px;
  background: var(--navy); color: #CBD5E1;
  padding: 46px 28px 30px;
}
footer.site-footer .cols {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
}
footer.site-footer .brand { max-width: 330px; }
footer.site-footer .brand .logo { display: inline-flex; align-items: center; gap: 9px; }
footer.site-footer .brand .logo img { height: 28px; width: auto; }
footer.site-footer .brand .logo .sub {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #94A3B8;
  padding-left: 9px; border-left: 1px solid #334155;
}
footer.site-footer .brand p { color: #94A3B8; font-size: .9rem; }
footer.site-footer nav { display: flex; flex-direction: column; gap: 9px; }
footer.site-footer nav strong {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent2); margin-bottom: 4px;
}
footer.site-footer a { color: #CBD5E1; font-size: .92rem; }
footer.site-footer a:hover { color: var(--accent2); }
footer.site-footer .legal {
  max-width: 1200px; margin: 36px auto 0; padding-top: 20px;
  border-top: 1px solid #1E293B;
  font-size: .82rem; color: #64748B;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  header.topbar { flex-direction: column; gap: 10px; padding: 12px 16px; }
  header.topbar nav { justify-content: center; }
  .product-detail { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  main { padding: 0 16px 60px; }
  .offer-table th:nth-child(3), .offer-table td:nth-child(3) { display: none; }
}
