/* Stilurile comune ale temei tamo tamo, preluate din prototip (design/homepage/f-linia.html, design/categorii, design/nav.css):
   culorile, literele, antetul cu meniul, meniul de pe mobil, butoanele și subsolul. */
:root {
  --greige: #EDE9E1;
  --ink: #1A1815;
  --camel: #9A7B4F;
  --olive: #4A4E48;
  --ink-60: rgba(26, 24, 21, .6);
  --line: rgba(26, 24, 21, .18);
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.7, 0, .2, 1);
  --hh: 76px; /* înălțimea antetului lipit sus */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--greige); color: var(--ink); font: 400 16px/1.6 Inter, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
.label { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.4; }
.muted { color: var(--ink-60); }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cele trei nituri */
.icon { display: inline-flex; gap: calc(var(--d) / 2); --d: 13px; }
.icon i { width: var(--d); height: var(--d); border-radius: 50%; display: block; }
.icon i:nth-child(1) { background: var(--ink); }
.icon i:nth-child(2) { background: var(--camel); }
.icon i:nth-child(3) { background: var(--olive); }

/* Antetul: logo, meniul pe linia logoului (distribuit egal până la Cont/Coș), Cont + Coș.
   În pagini e lipit sus, pe greige translucid; pe homepage stă peste banner (acasa.css). */
.tt-head { position: sticky; top: 0; z-index: 20; height: var(--hh); display: grid; grid-template-columns: auto 1fr auto; gap: clamp(40px, 7vw, 120px); align-items: center; padding: 0 var(--gutter); background: color-mix(in srgb, var(--greige) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.admin-bar .tt-head { top: 32px; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 18px; }
nav.cats { display: flex; justify-content: space-between; align-items: center; }
nav.cats a { position: relative; line-height: 1; padding: 6px 0; }
nav.cats a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
nav.cats a:hover::after, nav.cats a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
/* Listele de sub Categorii și Pe comandă (la hover) */
nav.cats .dd { position: relative; }
nav.cats .dd > a { display: inline-flex; align-items: center; gap: 8px; }
nav.cats .dd > a:not([href]) { cursor: default; } /* „Pe comandă” doar deschide lista */
nav.cats .car { width: 6px; height: 6px; border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .35s var(--ease); }
nav.cats .dd:hover .car, nav.cats .dd:focus-within .car { transform: translateY(1px) rotate(225deg); }
nav.cats .dd-panel { position: absolute; top: calc(100% + 14px); left: -20px; z-index: 30; min-width: 210px; display: grid; padding: 12px 20px; background: var(--greige); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 18px 40px -22px rgba(26, 24, 21, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .3s, transform .45s var(--ease), visibility 0s .45s; }
nav.cats .dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -15px; height: 15px; } /* puntea dintre link și panou */
nav.cats .dd:hover .dd-panel, nav.cats .dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .45s var(--ease), visibility 0s; }
nav.cats .dd-panel a { padding: 10px 0; white-space: nowrap; justify-self: start; }

.hact { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.acct-link { position: relative; line-height: 1; padding: 6px 0; }
.acct-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.acct-link:hover::after, .acct-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.pill { line-height: 1; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ink); transition: background .3s, color .3s; }
.pill:hover { background: var(--ink); color: var(--greige); }

/* Burgerul (doar pe mobil) și meniul pe tot ecranul */
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.menu { position: fixed; inset: 0; z-index: 99990; background: var(--greige); display: flex; flex-direction: column; padding: 0 var(--gutter) 32px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s; }
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.menu .top { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 28px; }
.menu .close { width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.menu .close span { position: absolute; left: 11px; right: 11px; top: 21.5px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.menu .close span + span { transform: rotate(-45deg); }
.menu .seam { position: relative; height: 1px; background: var(--ink); margin: 0 calc(var(--gutter) * -1) 28px; }
.menu .seam .icon { position: absolute; left: var(--gutter); top: -6.5px; }
.menu nav { display: grid; gap: 4px; }
.menu nav > a { display: grid; grid-template-columns: 36px 1fr; align-items: baseline; font-weight: 500; font-size: clamp(40px, 11vw, 64px); line-height: 1.1; letter-spacing: -.04em; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--ease); }
.menu.open nav > a { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i) * .06s); }
.menu nav > a .label { letter-spacing: .22em; font-weight: 400; }
.menu nav .sub { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 2px 0 16px 36px; }
.menu nav .sub a { font-size: 16px; line-height: 1.4; color: var(--ink-60); }
.menu nav .sub a:hover { color: var(--ink); }
.menu .small { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }
body.menu-open { overflow: hidden; }

/* Butonul plin */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--greige); font-weight: 500; white-space: nowrap; border: 0; cursor: pointer; transition: background .3s; }
.btn:hover { background: var(--camel); }

/* Subsolul, deschis de „linie”: cusătura cu cele trei nituri */
.foot { margin-top: clamp(100px, 14vh, 160px); padding: 0 var(--gutter) 32px; font-size: 14px; }
.foot .seam { position: relative; height: 1px; background: var(--ink); margin: 0 calc(var(--gutter) * -1); }
.foot .seam .icon { position: absolute; left: var(--gutter); top: -6.5px; }
.foot .cols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding: 48px 0 64px; }
.foot .brandcol p { margin-top: 14px; max-width: 30ch; }
.foot h5 { font-weight: 400; margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot ul a:hover { color: var(--camel); }
.foot .bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; padding-top: 20px; border-top: 1px solid rgba(26, 24, 21, .2); }

@media (max-width: 860px) {
  :root { --hh: 64px; }
  .hact { gap: 12px; }
  .acct-link { font-size: 13px; }
  nav.cats { display: none; }
  .tt-head { display: flex; align-items: center; gap: 12px; }
  .tt-head .brand { margin-right: auto; }
  .pill { padding: 6px 12px; font-size: 13px; }
  .burger { display: block; }
  .foot .cols { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .foot .brandcol { grid-column: 1 / -1; }
}
@media (max-width: 782px) { .admin-bar .tt-head { top: 46px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}
