/* Traian Beer — temă 2026 */
:root {
    --bg: #14110f;
    --surface: #1d1916;
    --surface-2: #27221e;
    --surface-3: #332c27;
    --line: rgba(255, 240, 220, .08);
    --text: #f6efe6;
    --muted: #a99e92;
    --accent: #ffb424;
    --accent-2: #ff9a1f;
    --accent-ink: #1c1205;
    --radius: 20px;
    --radius-sm: 14px;
    --wrap: 1240px;
    --hdr-h: 128px;
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ic { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s, background .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #ffc24d; }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-soft { background: var(--surface-3); color: var(--text); }
.btn-soft:hover { background: #3e362f; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; border-radius: 16px; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.eyebrow { display: inline-block; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Antet */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(20, 17, 15, .86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.hdr-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.hdr-logo img { width: 112px; height: auto; }
.hdr-nav { display: flex; gap: 6px; }
.hdr-nav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; transition: color .2s, background .2s; }
.hdr-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hdr-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 8px 12px; border-radius: 12px; }
.hdr-phone:hover { background: rgba(255, 255, 255, .05); }
.chips-bar { border-top: 1px solid var(--line); }
.chips { display: flex; gap: 8px; height: 56px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 16px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 14px; font-weight: 600; transition: all .2s; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--accent); color: var(--accent-ink); }

/* Hero */
.hero-wrap { padding-top: 24px; }
.hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; min-height: 480px; padding: 48px 56px; border-radius: 28px; overflow: hidden; background: linear-gradient(100deg, rgba(20, 17, 15, .96) 30%, rgba(20, 17, 15, .55)), url('../img/hero/hero-bg.jpg') center / cover; border: 1px solid var(--line); }
.hero h1 { margin: 14px 0 16px; font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -.03em; }
.hero h1 span { color: var(--accent); }
.hero-text > p { color: #d7cdc1; font-size: 18px; max-width: 520px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .ic { color: var(--accent); }
.hero-img { align-self: end; margin: -20px -20px -48px 0; }
.hero-img img { width: 100%; max-width: 460px; margin-left: auto; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }

/* Categorii */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.cat { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0, 0, 0, .75)); }
.cat span { position: absolute; z-index: 1; left: 18px; bottom: 14px; font-size: 20px; font-weight: 800; }
.cat:hover img { transform: scale(1.06); }

/* Secțiuni */
.section { padding: 72px 0 24px; }
.section-alt { background: linear-gradient(var(--bg), #191512 120px, #191512 calc(100% - 120px), var(--bg)); }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.sec-head p { margin-top: 8px; color: var(--muted); max-width: 640px; }
.group { margin-bottom: 40px; }
.group-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 22px; font-weight: 700; }
.group-title small { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 2px 10px; border-radius: 999px; }

/* Carduri produse */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(255, 180, 36, .25); }
.card-media { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); aspect-ratio: 1; overflow: hidden; }
.card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media > img { transform: scale(1.04); }
.card-media.contain { background: radial-gradient(circle at 50% 40%, #3a322b, var(--surface-2) 70%); }
.card-media.contain > img { object-fit: contain; padding: 14%; }
.compose { position: relative; display: block; width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, #3a322b, var(--surface-2) 70%); }
.compose > img:first-child { position: absolute; left: 50%; top: 50%; height: 84%; width: auto; transform: translate(-50%, -50%); }
.compose-logo { position: absolute; left: 50%; top: 55%; width: 34%; aspect-ratio: 1; object-fit: contain; transform: translate(-50%, -50%); background: #fff; border-radius: 50%; padding: 4%; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.card-body h4 { font-size: 16px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body .meta { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.card-body .meta + .btn { margin-top: 12px; }

/* Magazine */
.grid-stores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.store { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.store-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; cursor: zoom-in; }
.sl-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(20, 17, 15, .7); color: #fff; opacity: 0; transition: opacity .2s; }
.sl-prev { left: 10px; } .sl-next { right: 10px; }
.store-media:hover .sl-btn { opacity: 1; }
.dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: all .2s; }
.dots i.on { width: 18px; border-radius: 3px; background: #fff; }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 17, 15, .75); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; color: var(--accent); }
.store-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.store-body h4 { font-size: 17px; font-weight: 700; }
.store-body .meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.store-body .btn { margin-top: 10px; align-self: flex-start; }

/* CTA livrare */
.cta { position: relative; display: flex; align-items: center; gap: 24px; padding: 48px 56px; border-radius: 28px; overflow: hidden; background: radial-gradient(circle at 85% 50%, rgba(255, 180, 36, .28), transparent 55%), linear-gradient(120deg, #2a1d10, #1d1916); border: 1px solid rgba(255, 180, 36, .18); }
.cta h2 { margin: 10px 0 12px; font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.cta p { color: #d7cdc1; max-width: 520px; }
.cta-img { width: 300px; height: auto; margin-left: auto; }

/* Subsol */
.ftr { margin-top: 64px; padding: 48px 0 24px; background: #100d0b; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.ftr-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr; gap: 40px; }
.ftr-grid p { margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.ftr-grid img { width: 130px; height: auto; }
.ftr h5 { color: var(--text); font-size: 16px; font-weight: 700; }
.ftr a:hover { color: var(--accent); }
.ftr-stores ul { list-style: none; padding: 0; margin: 10px 0 0; columns: 2; column-gap: 24px; }
.ftr-stores li { margin-bottom: 8px; break-inside: avoid; }
.ftr-stores small { display: block; font-size: 12px; opacity: .6; }
.ftr-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* Bara de jos (mobil) */
.tabbar { display: none; }

/* Fereastră detalii */
dialog { padding: 0; border: 0; color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px); }
.sheet { width: min(940px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border-radius: 24px; background: var(--surface); overflow: hidden; }
.sheet[open] { animation: pop .25s ease; }
.sheet-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; max-height: calc(100dvh - 48px); }
.sheet-media { background: var(--surface-2); aspect-ratio: 1; }
.sheet-media > img { width: 100%; height: 100%; object-fit: cover; }
.sheet-media.contain > img { object-fit: contain; padding: 12%; }
.sheet-media .compose-logo { width: 34%; }
.sheet-body { padding: 32px; display: flex; flex-direction: column; min-height: 0; max-height: min(470px, calc(100dvh - 48px)); }
.sheet-body h3 { margin: 6px 0 14px; font-size: 28px; font-weight: 800; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.fact { padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.fact b { display: block; color: var(--text); font-size: 15px; }
.sheet-desc { margin: 16px 0 20px; color: #d7cdc1; white-space: pre-line; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.sheet-body h3:focus { outline: none; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(20, 17, 15, .75); color: #fff; }
.lightbox { background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 16px; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* Apariție la derulare */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Tabletă */
@media (max-width: 1100px) {
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-stores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { padding: 40px; }
}
@media (max-width: 900px) {
    .hdr-nav, .hdr-phone span { display: none; }
    .hero { grid-template-columns: 1fr; padding: 32px 28px 0; min-height: 0; background: linear-gradient(180deg, rgba(20, 17, 15, .92), rgba(20, 17, 15, .6)), url('../img/hero/hero-bg.jpg') center / cover; }
    .hero-img { margin: 0 auto; max-width: 320px; }
    .cats { grid-template-columns: repeat(4, 64%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
    .cats::-webkit-scrollbar { display: none; }
    .cat { scroll-snap-align: start; }
    .cta { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
    .cta-img { width: 200px; margin: 0 auto; }
    .ftr-grid { grid-template-columns: 1fr 1fr; }
    .ftr-stores { grid-column: 1 / -1; }
    .sheet-inner { grid-template-columns: 1fr; overflow-y: auto; }
    .sheet-media { aspect-ratio: 4 / 3; }
    .sheet-body { max-height: none; }
    .sheet-desc { overflow: visible; }
}

/* Telefon */
@media (max-width: 640px) {
    :root { --hdr-h: 116px; --radius: 16px; }
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); font-size: 15px; }
    .wrap { padding: 0 14px; }
    .hdr-row { height: 62px; gap: 12px; }
    .hdr-logo img { width: 92px; }
    .hdr-actions .btn span { display: none; }
    .hdr-actions .btn { width: 44px; padding: 0; }
    .hdr-phone { width: 44px; height: 44px; justify-content: center; background: rgba(255, 255, 255, .06); }
    .chips { height: 52px; }
    .chip { padding: 7px 14px; font-size: 13px; }
    .hero-wrap { padding-top: 14px; }
    .hero { padding: 26px 20px 0; border-radius: 22px; }
    .hero-text > p { font-size: 16px; }
    .hero-btns .btn { flex: 1 1 100%; }
    .hero-img { max-width: 200px; }
    .hero h1 { margin: 10px 0 12px; }
    .hero-btns { margin-top: 20px; }
    .hero-facts { margin-top: 18px; gap: 8px 16px; }
    .cats { grid-template-columns: repeat(4, 46%); gap: 10px; margin-right: -14px; padding-right: 14px; }
    .cat span { font-size: 16px; left: 12px; bottom: 10px; }
    .section { padding: 48px 0 8px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .grid-stores { grid-template-columns: 1fr; gap: 16px; }
    .card-body { padding: 10px 12px 12px; }
    .card-body h4 { font-size: 14px; }
    .card-body .meta { font-size: 12.5px; }
    .card-body .btn { width: 100%; }
    .group-title { font-size: 19px; }
    .sl-btn { display: none; }
    .cta { padding: 28px 20px; border-radius: 22px; }
    .cta .btn { flex: 1 1 100%; }
    .ftr { margin-top: 40px; }
    .ftr-grid { grid-template-columns: 1fr; gap: 28px; }
    .ftr-stores ul { columns: 1; }
    .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(20, 17, 15, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
    .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: 11px; font-weight: 600; border-radius: 12px; }
    .tabbar a.on { color: var(--text); }
    .tabbar .tab-accent { color: var(--accent); }
    .sheet { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92dvh; border-radius: 24px 24px 0 0; }
    .sheet[open] { animation: up .3s ease; }
    .sheet-inner { max-height: 92dvh; }
    .sheet-body { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
    .sheet-body h3 { font-size: 24px; }
    .sheet-actions .btn { flex: 1 1 100%; }
    @keyframes up { from { transform: translateY(100%); } }
}

/* Comutator limbă */
.chips { position: relative; }
.lang { display: flex; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.lang a { padding: 6px 10px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1; }
.lang a.on { background: var(--surface-3); color: var(--text); }
.lang a:hover { color: var(--text); }
@media (max-width: 640px) {
    .hdr-actions { gap: 8px; }
    .lang a { padding: 6px 8px; font-size: 12px; }
}
