/* =========================================================================
   Animpire — phones & small tablets (loaded with media="(max-width: 1024px)", so desktop never waits for it).
   1. Tab bar: floating black bar, iOS style (markup in functions.php).
   2. Side menu: black sheet, a plain list (Blanks opens its categories in place), bottom block with
      create account / log in, contact, EN·EL. Rewritten 23 Nov (client: the big drill-down menu was awkward).
   3. Header: logo left, menu button right.
   ========================================================================= */

/* ---------- 1. Tab bar ---------- */
.anim-tabbar { position: fixed; z-index: 390; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 28px; background: rgba(10, 10, 10, .94); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.anim-tabbar ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 6px; list-style: none; }
.anim-tabbar li { margin: 0; }
.anim-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 5px; color: rgba(255, 255, 255, .62); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.anim-tab:hover, .anim-tab:focus, .anim-tab:active { color: #fff; }
.anim-tab__icon { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 16px; transition: background-color .3s ease; }
.anim-tab__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.anim-tab__label { font-size: 10.5px; font-weight: 600; letter-spacing: 0; line-height: 1.2; white-space: nowrap; }
.anim-tab.is-active { color: #fff; }
.anim-tab.is-active .anim-tab__icon { background: rgba(255, 255, 255, .16); }
.anim-tab.is-active .anim-tab__icon svg { stroke-width: 2.1; }
.anim-tab:active .anim-tab__icon { transform: scale(.92); }
.anim-tab__count { position: absolute; top: -3px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fff; color: #0a0a0a; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #0a0a0a; }
.anim-tab__count.is-empty { display: none; }
/* Room for the bar at the end of every page; lift things that sit at the bottom. */
body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.scrollToTop, .wd-sticky-btn { display: none !important; }
.wd-toolbar { display: none !important; }
/* The side menu and full-screen search cover the bar. */
.wd-side-hidden.wd-opened ~ .anim-tabbar, body.wd-search-opened .anim-tabbar { transform: translateY(140%); }

/* ---------- 2. Side menu ---------- */
.mobile-nav.wd-side-hidden { --wd-side-hidden-w: 100vw; width: min(100vw, 520px); max-width: 100vw; display: flex; flex-direction: column; background: #0a0a0a; color: #fff; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html:has(.mobile-nav.wd-opened), html:has(.mobile-nav.wd-opened) body { overflow: hidden !important; }
.wd-close-side { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mobile-nav .wd-nav-mob-tab, .mobile-nav .wd-search-form { display: none !important; }

/* Close: a big white X top right, where the menu button was. */
.mobile-nav .wd-heading { position: sticky; top: 0; z-index: 3; display: flex; justify-content: flex-end; min-height: 62px; padding: 0 8px 0 0; border: 0; background: #0a0a0a; }
.mobile-nav .close-side-widget a { display: grid; place-items: center; width: 52px; height: 52px; color: #fff; }
.mobile-nav .close-side-widget .wd-action-text { display: none; }
.mobile-nav .close-side-widget .wd-action-icon { --wd-action-icon-size: 26px; }
.mobile-nav .close-side-widget .wd-action-icon, .mobile-nav .close-side-widget .wd-action-icon::before, .mobile-nav .close-side-widget .wd-action-icon::after { color: #fff !important; background: none !important; }

/* The list: one size, thin lines, white in every state (WoodMart's hover colour is black = invisible here). */
.mobile-nav .wd-nav-mobile { padding: 0 24px; border: 0; background: transparent !important; }
.mobile-nav .wd-nav-mobile li { position: relative; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.mobile-nav .wd-nav-mobile > li { border-bottom: 1px solid rgba(255, 255, 255, .12) !important; }
.mobile-nav .wd-nav-mobile li > a { display: flex; align-items: center; min-height: 58px; padding: 0 !important; background: transparent !important; color: #fff !important; font-family: var(--wd-text-font); font-size: 18px; font-weight: 700; letter-spacing: 0; line-height: 1.2; text-transform: none; }
.mobile-nav .wd-nav-mobile li > a:hover, .mobile-nav .wd-nav-mobile li > a:focus, .mobile-nav .wd-nav-mobile li > a:active,
.mobile-nav .wd-nav-mobile li:hover > a, .mobile-nav .wd-nav-mobile li.wd-active > a, .mobile-nav .wd-nav-mobile li.current-menu-item > a,
.mobile-nav .wd-nav-mobile .woodmart-nav-link, .mobile-nav .wd-nav-mobile .nav-link-text { color: #fff !important; opacity: 1 !important; background: transparent !important; }
.mobile-nav .wd-nav-mobile li > a::before { content: none !important; }
.mobile-nav .wd-nav-mobile li.current-menu-item > a .nav-link-text { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.mobile-nav .wd-nav-mobile li > a { -webkit-tap-highlight-color: rgba(255, 255, 255, .08); }

/* Blanks: tapping the row opens its categories below it; a + turns into −. */
.mobile-nav .wd-nav-mobile > li.menu-item-has-children > a { padding-right: 44px !important; }
.mobile-nav .wd-nav-mobile .wd-nav-opener { position: absolute; top: 0; right: -12px; width: 56px; height: 58px; border: 0 !important; background: transparent !important; color: #fff !important; }
.mobile-nav .wd-nav-mobile .wd-nav-opener::after { content: "+" !important; font-family: var(--wd-text-font); font-size: 26px; font-weight: 300; line-height: 1; color: #fff !important; transform: none !important; transition: none; }
.mobile-nav .wd-nav-mobile .wd-nav-opener.wd-active::after { content: "−" !important; }
.mobile-nav .wd-nav-mobile .wd-sub-menu { padding: 0 0 12px; background: transparent !important; }
.mobile-nav .wd-nav-mobile .wd-sub-menu li > a { min-height: 44px; padding-left: 16px !important; color: rgba(255, 255, 255, .78) !important; font-size: 16px; font-weight: 600; }
.mobile-nav .wd-nav-mobile .wd-sub-menu li > a:hover, .mobile-nav .wd-nav-mobile .wd-sub-menu li > a:active { color: #fff !important; }
.mobile-nav .wd-nav-mobile .wd-sub-menu li.anim-mi-all > a { color: #fff !important; }
.mobile-nav .wd-nav-mobile li > a::after { content: none !important; }

/* Bottom block: create account / log in, contact, EN · EL. */
.mobile-nav .widgetarea-mobile { margin-top: auto; padding: 0; border: 0; }
.anim-mnav { display: grid; gap: 16px; padding: 24px 24px calc(28px + env(safe-area-inset-bottom, 0px)); }
.anim-mnav__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.anim-mnav__btns a { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 12px; border: 1.5px solid #fff; font-size: 14px; font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none; }
.anim-mnav__btns .anim-mnav__cta, .anim-mnav__btns .anim-mnav__cta:hover { background: #fff; color: #0a0a0a !important; }
.anim-mnav__btns .anim-mnav__login, .anim-mnav__btns .anim-mnav__login:hover { background: transparent; color: #fff !important; }
.anim-mnav__contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.anim-mnav__contact a, .anim-mnav__contact a:hover { color: rgba(255, 255, 255, .7) !important; font-size: 13.5px; }
.anim-mnav__langs { display: flex; gap: 8px; }
.anim-mnav__langs a, .anim-mnav__langs a:hover { display: grid; place-items: center; min-width: 46px; height: 34px; border: 1px solid rgba(255, 255, 255, .3); color: #fff !important; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.anim-mnav__langs a.is-current { background: #fff; color: #0a0a0a !important; border-color: #fff; }

/* ---------- 3. Header ---------- */
.whb-header .wd-header-mobile-nav .wd-tools-icon { --wd-tools-icon-size: 26px; }
.whb-header .wd-header-mobile-nav .wd-tools-text { display: none; }

@media (prefers-reduced-motion: reduce) {
	.anim-tabbar { transition: none; }
}

/* Full-screen openers: content sits above the tab bar, the photo runs behind it. */
.anim-pidx { min-height: calc(100svh - 62px); }
.anim-pidx__body { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important; }
.anim-ph--l { min-height: calc(100svh - 62px); }
.anim-ph__inner { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }

/* Smaller product labels on phones. */
.wd-product .product-labels .product-label { font-size: 9.5px; padding: 5px 7px; letter-spacing: .1em; }

/* Link-style second button lines up with the first. */
.anim-ph__buttons .clicko-btn--link { min-height: 0; padding-inline: 0; }
/* No stripes behind the category rows (WoodMart gives sub-menu items a background). */
.mobile-nav .wd-nav-mobile *:not(.anim-mnav__cta) { background-color: transparent !important; }

/* Phone header (23 Nov): EN | ΕΛ and the account icon before the menu button. */
.whb-header .anim-mlang { gap: 0; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--anim-ink, #0a0a0a); }
.whb-header .anim-mlang .clicko-hb-lang { gap: 6px; }
.whb-header .anim-mlang .clicko-hb-lang a, .whb-header .anim-mlang .clicko-hb-lang .is-current { display: inline-grid; place-items: center; min-width: 26px; min-height: 40px; }
.whb-col-mobile .wd-header-my-account .wd-tools-icon { --wd-tools-icon-size: 24px; }
.whb-col-mobile .wd-header-my-account .wd-tools-text { display: none; }
