/*
 * Header + meniul lateral + footer (design AUVIA, Claude Design 2026). Pe tot site-ul, în afară de checkout.
 * Markup: components/core/navigation.php, footer.php.
 */

/* bara de anunț */
.cds-hd-announce { padding: 9px 16px; background: var(--cds-brand-24); color: var(--cds-brand-92); font-family: Poppins, sans-serif; font-size: 13.5px; line-height: 1.5; letter-spacing: .01em; text-align: center; }
.cds-hd-announce__msg { margin: 0; }
.cds-hd-announce a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cds-hd-announce b, .cds-hd-announce strong { color: var(--cds-white); font-weight: 600; }
/* mai multe mesaje: se schimbă singure (functions/announce.php) */
.cds-hd-announce.is-rotating .cds-hd-announce__track { position: relative; height: 1.5em; overflow: hidden; }
.cds-hd-announce.is-rotating .cds-hd-announce__msg { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: transform .5s ease, opacity .5s ease; }
.cds-hd-announce.is-slide .cds-hd-announce__msg { transform: translateY(100%); }
.cds-hd-announce.is-slide .cds-hd-announce__msg.is-out { transform: translateY(-100%); opacity: 0; }
.cds-hd-announce.is-rotating .cds-hd-announce__msg.is-on { transform: translateY(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cds-hd-announce.is-rotating .cds-hd-announce__msg { transition: opacity .3s; transform: none !important; } }

/* header sticky */
.cds-hd { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--cds-gray-93); font-family: Poppins, sans-serif; color: var(--cds-brand-12); transition: box-shadow .2s; }
.cds-hd.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0, 40, 25, .18); }
.cds-hd a { color: inherit; text-decoration: none; }
.cds-hd__bar { display: flex; align-items: center; gap: 28px; max-width: 1360px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 48px); transition: padding .2s; }
.cds-hd.is-scrolled .cds-hd__bar { padding-top: 10px; padding-bottom: 10px; }
.cds-hd__logo { flex: none; display: flex; align-items: center; }
.cds-hd__logo img { display: block; width: auto; height: 42px; }
.cds-hd__search, .cds-hd__msearch { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 18px; border: 1px solid var(--cds-gray-90); border-radius: 999px; background: var(--cds-gray-98); color: var(--cds-brand-54); }
.cds-hd__search input, .cds-hd__msearch input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; outline: none; box-shadow: none !important; padding: 0 !important; font: inherit; font-size: 15px; color: var(--cds-brand-12); }
.cds-hd__search button, .cds-hd__msearch button { flex: none; height: 34px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--cds-brand-24); color: var(--cds-white); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.cds-hd__actions { flex: none; display: flex; align-items: center; gap: 4px; margin-left: auto; }
.cds-hd__act { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.cds-hd__act svg, .cds-hd__icon svg { color: var(--cds-brand-24); }
.cds-hd__act:hover { background: var(--cds-gray-96); }
.cds-hd__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--cds-brand-24); color: var(--cds-white); font-size: 11px; font-weight: 600; }
.cds-hd__count[hidden] { display: none; }
.cds-hd__icon { position: relative; display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.cds-hd__burger { background: var(--cds-gray-96); color: var(--cds-brand-24); }
.cds-hd__msearch { margin: 0 12px 12px; }
.cds-hd__msearch[hidden] { display: none; }

/* meniul de desktop, cu submeniuri */
.cds-hd__nav { border-top: 1px solid var(--cds-gray-96); }
.cds-hd__nav > ul { display: flex; justify-content: center; gap: 8px; max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); list-style: none; }
.cds-hd__nav li { position: relative; margin: 0; list-style: none; }
.cds-hd__nav > ul > li > a { display: flex; align-items: center; gap: 6px; padding: 12px 16px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.cds-hd__nav > ul > li > a:hover, .cds-hd__nav > ul > li:focus-within > a { color: var(--cds-brand-24); }
.cds-hd__nav .has-sub > a svg { transition: transform .2s; }
.cds-hd__nav .has-sub:hover > a svg, .cds-hd__nav .has-sub:focus-within > a svg { transform: rotate(180deg); }
.cds-hd__sub { position: absolute; top: 100%; left: 50%; z-index: 5; display: none; min-width: 260px; margin: 0; padding: 8px; list-style: none; background: var(--cds-white); border: 1px solid var(--cds-gray-93); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(0, 40, 25, .25); transform: translateX(-50%); }
.cds-hd__nav .has-sub:hover .cds-hd__sub, .cds-hd__nav .has-sub:focus-within .cds-hd__sub { display: block; }
.cds-hd__sub a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.cds-hd__sub a:hover { background: var(--cds-gray-96); color: var(--cds-brand-24); }
.cds-hd__mi { flex: none; width: 20px; height: 20px; object-fit: contain; }
.cds-hd__new { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--cds-brand-98); color: var(--cds-brand-43); font-size: 13px; font-weight: 500; }

/* meniul lateral (mobil) */
.cds-hd-drawer { position: fixed; inset: 0; z-index: 2000; display: flex; font-family: Poppins, sans-serif; color: var(--cds-brand-12); }
.cds-hd-drawer[hidden] { display: none; }
.cds-hd-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 30, 20, .4); }
.cds-hd-drawer__panel { position: relative; display: flex; flex-direction: column; width: min(86vw, 360px); height: 100%; background: var(--cds-white); box-shadow: 12px 0 40px rgba(0, 30, 20, .18); animation: cdsDrawerIn .25s ease; }
@keyframes cdsDrawerIn { from { transform: translateX(-100%); } }
.cds-hd-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--cds-gray-96); }
.cds-hd-drawer__head img { display: block; width: auto; height: 34px; }
.cds-hd-drawer__head .cds-hd__icon { display: flex; }
.cds-hd-drawer__nav { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cds-hd-drawer__item { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--cds-gray-96); background: none; font: inherit; font-size: 16px; font-weight: 500; color: var(--cds-brand-12) !important; text-align: left; text-decoration: none; cursor: pointer; }
.cds-hd-drawer__item svg { color: var(--cds-brand-54); transition: transform .2s; }
.cds-hd-drawer__item[aria-expanded="true"] svg { transform: rotate(180deg); }
.cds-hd-drawer__sub { padding: 4px 0 8px 8px; border-bottom: 1px solid var(--cds-gray-96); }
.cds-hd-drawer__sub[hidden] { display: none; }
.cds-hd-drawer__sub a { display: flex; align-items: center; gap: 10px; padding: 10px 4px; font-size: 16px; color: var(--cds-brand-12); text-decoration: none; }
.cds-hd-drawer__foot { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--cds-gray-96); text-align: center; font-size: 14px; color: var(--cds-brand-36); }
.cds-hd-drawer__btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border: 1px solid var(--cds-gray-90); border-radius: 12px; background: var(--cds-white); color: var(--cds-brand-12) !important; font-size: 15px; font-weight: 500; text-decoration: none; }
.cds-hd-drawer__btn svg { color: var(--cds-brand-24); }
.cds-hd-drawer__btn--main { border: 0; background: linear-gradient(135deg, var(--cds-brand-37) 0%, var(--cds-brand-24) 60%, var(--cds-brand-19) 100%); color: var(--cds-white) !important; }
html.cds-noscroll, html.cds-noscroll body { overflow: hidden; }

/* mobil / tabletă: ☰ · logo centrat · căutare, cont, coș */
@media (max-width: 959px) {
	.cds-hd__bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; padding: 8px 12px; }
	.cds-hd.is-scrolled .cds-hd__bar { padding: 8px 12px; }
	.cds-hd__icon { display: flex; }
	.cds-hd__logo { justify-self: center; }
	.cds-hd__logo img { height: 36px; }
	.cds-hd__search, .cds-hd__nav, .cds-hd__act--phone, .cds-hd__act span:not(.cds-hd__count) { display: none; }
	.cds-hd__actions { justify-self: end; gap: 0; }
	.cds-hd__act { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
	.cds-hd__act svg { width: 22px; height: 22px; }
	.cds-hd__count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid var(--cds-white); font-size: 10.5px; }
}
@media (min-width: 960px) { .cds-hd__burger, .cds-hd__stoggle, .cds-hd__msearch { display: none !important; } }

/* footer */
.cds-ft { margin-top: auto; padding: clamp(32px, 4vw, 56px) 0 32px; background: var(--cds-brand-15); color: var(--cds-brand-89); font-family: Poppins, sans-serif; font-size: 15px; }
.cds-ft a { color: var(--cds-brand-89); text-decoration: none; }
.cds-ft a:hover { color: var(--cds-white); }
.cds-ft__in { display: flex; flex-direction: column; gap: 40px; max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.cds-ft__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.cds-ft__brand { display: flex; flex-direction: column; gap: 14px; }
.cds-ft__brand a { color: var(--cds-white); }
.cds-ft__name { margin: 0; font-size: 16px; font-weight: 600; color: var(--cds-white); }
.cds-ft__lbl { display: block; font-size: 13px; color: var(--cds-brand-70); }
.cds-ft__col { display: flex; flex-direction: column; gap: 10px; }
.cds-ft__h { margin: 0 0 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--cds-brand-70); }
.cds-ft__legal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.cds-ft__legal p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--cds-brand-70); }
.cds-ft__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--cds-brand-70); }
.cds-ft__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 100%; padding: 8px 12px; border-radius: 10px; background: var(--cds-white); }
.cds-ft__logos img { display: block; width: auto; max-width: 100%; height: 36px; }

/* bara de cumpărare fixă nu acoperă finalul footer-ului */
.single-product .cds-ft { padding-bottom: 110px; }
@media (max-width: 639px) { .cds-hd-announce { padding: 8px 12px; font-size: 12.5px; } }

/* eticheta căutării: doar pentru cititoarele de ecran (pe paginile fără CSS-ul WooCommerce nu era ascunsă) */
.cds-hd .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* laptop mic: căutarea se poate strânge, telefonul rămâne doar iconiță */
.cds-hd__search { min-width: 0; }
@media (min-width: 960px) and (max-width: 1279px) {
	.cds-hd__bar { gap: 16px; }
	.cds-hd__act--phone span { display: none; }
}
