/* =====================================================================
   Nylna site shell (loaded last): one panoramic background behind every page
   (it used to fill only the title band), side menu on desktop / drop-down on
   phones, account drop-down menu, product share buttons.
   ===================================================================== */
:root {
  --sidenav-w: 264px; --topbar-h: 66px;
  --muted-ink: #5f7189;
  --on-bg: #eef6fd; --on-bg-muted: rgba(226, 238, 250, .78); --on-bg-link: #8fd3fb; --on-bg-line: rgba(255, 255, 255, .14);
  --shell-glass: rgba(3, 22, 48, .62);
}
@media (prefers-color-scheme: dark) { :root { --muted-ink: #91a6be; } }

body.storefront { background: #031630; }

/* ---- the background ---- */
.site-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; isolation: isolate; pointer-events: none; }
.site-bg.has-img .pano-bg {
  background: linear-gradient(100deg, rgba(3,22,48,.94) 0%, rgba(11,59,140,.82) 45%, rgba(2,119,189,.55) 100%), var(--hero-img) center / cover no-repeat;
  animation: kenburns 32s ease-in-out infinite alternate; }
.site-bg .orb-1 { top: -140px; left: 6%; }
.site-bg .orb-2 { bottom: -160px; right: 34%; }

/* ---- text sitting on the background is light; cards and other surfaces keep their own ink ---- */
.site-shell { color: var(--on-bg); --muted: var(--on-bg-muted); }
:where(.site-shell) a { color: var(--on-bg-link); }
.site-shell :where(.card, .tile, .glass-card, .cat-chip, .trust-stat, .review-card, .reply, .auth-card, .special-cta, .tabs a, .round-btn,
  .promo-banner, .acct-menu, .recover-way, .phone-field, .badge.muted, input, select, textarea) { color: var(--text); --muted: var(--muted-ink); }
.site-shell a.stat, .site-shell .card.news { color: var(--text); } /* these two ask for "color: inherit" with a heavier selector */
:where(.card, .tile, .glass-card, .trust-stat, .review-card, .reply, .auth-card, .special-cta, .acct-menu) a { color: var(--primary); }
.site-shell .section .eyebrow { background: rgba(255,255,255,.12); color: #bfe9ff; border-color: rgba(255,255,255,.25); }
.site-shell .section.alt { background: rgba(255,255,255,.035); border-color: var(--on-bg-line); }
.site-shell .soft-head { border-bottom-color: var(--on-bg-line); }
.site-shell .minor-link a:hover { color: #fff; }
.site-shell .card-head h1, .site-shell > main > .container > h1 { color: #fff; }

/* no more title band / hero panel: the content sits straight on the background */
.pano-hero::after { display: none; }
.home-hero { min-height: 0; padding: 46px 0 40px; }
.features-strip { margin-top: 0; }
.category-strip { margin-top: 0; }
.cta-band { background: rgba(255,255,255,.05); border-block: 1px solid var(--on-bg-line); }
footer.site { background: linear-gradient(180deg, rgba(8,37,79,.7) 0%, rgba(3,22,48,.92) 100%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---- shell ---- */
.site-shell { margin-inline-start: var(--sidenav-w); min-height: 100vh; display: flex; flex-direction: column; }
.site-shell > main { flex: 1; }

.topbar { background: var(--shell-glass); border-bottom: 1px solid var(--on-bg-line); z-index: 50; }
.topbar.scrolled { background: rgba(3, 22, 48, .82); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.topbar .container { flex-wrap: nowrap; min-height: var(--topbar-h); padding-top: 0; padding-bottom: 0; gap: 12px; }
.topbar .brand { color: #fff; display: none; }
.topbar .brand small { color: #8fb3d6; }
.nav-end { margin-inline-start: auto; }
.menu-btn { display: none; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); transition: background .2s; }
.menu-btn:hover { background: rgba(255,255,255,.18); }
body.nav-open .menu-btn { background: linear-gradient(135deg, var(--primary), #0b93dc); border-color: transparent; }

.top-search { flex: 1; max-width: 440px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 99px; color: #cfe6f7;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); transition: background .2s, border-color .2s; }
.top-search:focus-within { background: rgba(255,255,255,.16); border-color: #7fd0fb; }
.top-search input { background: transparent; border: 0; color: #fff; padding: 10px 0; border-radius: 0; }
.top-search input:focus { box-shadow: none; outline: none; }
.top-search input::placeholder { color: rgba(255,255,255,.62); }

/* ---- sections menu (desktop: fixed side panel) ---- */
.sidenav { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 40; width: var(--sidenav-w); display: flex; flex-direction: column; gap: 16px;
  padding: 18px 14px; overflow-y: auto; scrollbar-width: thin;
  background: linear-gradient(180deg, rgba(3,22,48,.78), rgba(8,37,79,.6)); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-inline-end: 1px solid var(--on-bg-line); box-shadow: -10px 0 40px rgba(0,0,0,.18); }
.sidenav .brand { color: #fff; padding: 4px 6px 16px; border-bottom: 1px solid var(--on-bg-line); }
.sidenav .brand small { color: #8fb3d6; }
.side-links { display: grid; gap: 4px; }
.side-links a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: #c9dcf0; font-weight: 600;
  transition: background .2s, color .2s; }
.side-links a .ico { color: #7fd0fb; transition: transform .2s; }
.side-links a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.side-links a:hover .ico { transform: scale(1.1); }
.side-links a.active { color: #fff; background: linear-gradient(270deg, rgba(41,169,232,.34), rgba(41,169,232,.06)); box-shadow: inset 0 0 0 1px rgba(127,208,251,.22); }
.side-links a.active .ico { color: #fff; }
.side-links a.active::before { content: ''; position: absolute; inset-block: 9px; inset-inline-start: -14px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, #7fd0fb, var(--sky)); }

/* ---- account menu ---- */
.acct { position: relative; }
.acct > summary { list-style: none; cursor: pointer; gap: 6px; user-select: none; }
.acct > summary::-webkit-details-marker { display: none; }
.acct > summary .ico:last-child { transition: transform .2s; }
.acct[open] > summary .ico:last-child { transform: rotate(180deg); }
.acct-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; width: 260px; display: grid; gap: 2px; padding: 8px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(3,22,48,.38); animation: acct-in .18s ease-out; }
@keyframes acct-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.acct-who { padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.acct-who b { display: block; }
.acct-who small { color: var(--muted); }
.acct-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--text); font-weight: 600; }
.acct-menu a .ico { color: var(--primary); }
.acct-menu a:hover { background: var(--surface-2); text-decoration: none; }
.acct-menu a.active { background: var(--primary-soft); color: var(--primary); }
.acct-menu a.acct-out { margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 12px 12px; color: var(--bad); }
.acct-menu a.acct-out .ico { color: var(--bad); }

/* ---- product page: ask on WhatsApp + share ---- */
.ask-btn { margin-top: 10px; }
.share-row { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.share-label { display: block; margin-bottom: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.share-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sh { display: grid; place-items: center; height: 46px; padding: 0; border: 0; border-radius: 14px; color: #fff; cursor: pointer; font: inherit;
  transition: transform .15s, box-shadow .2s, filter .2s; }
.sh:hover { transform: translateY(-2px); text-decoration: none; filter: brightness(1.07); }
.sh-wa { background: linear-gradient(135deg, #1fae55, #25d366); box-shadow: 0 6px 16px rgba(37,211,102,.3); }
.sh-fb { background: #1877f2; box-shadow: 0 6px 16px rgba(24,119,242,.3); }
.sh-tg { background: linear-gradient(135deg, #229ed9, #2aabee); box-shadow: 0 6px 16px rgba(34,158,217,.3); }
.sh-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); box-shadow: 0 6px 16px rgba(214,36,159,.3); }
.share-row .share-msg { margin: 8px 0 0; font-size: .85rem; color: var(--ok); }
.share-row .share-msg:empty { display: none; }

/* ---- desktop: the floating WhatsApp button clears the side menu ---- */
@media (min-width: 961px) {
  .wa-float { inset-inline-start: calc(var(--sidenav-w) + 22px); }
  .pano-track { padding-inline: max(16px, calc((100vw - var(--sidenav-w) - 1180px) / 2 + 16px)); }
}

/* ---- tablets and phones: no side panel; the sections drop down under the top bar ---- */
@media (max-width: 960px) {
  :root { --topbar-h: 62px; }
  .site-shell { margin-inline-start: 0; }
  .menu-btn { display: grid; }
  .topbar .brand { display: flex; }
  .top-search { display: none; }
  .sidenav { top: var(--topbar-h); bottom: auto; inset-inline: 0; width: auto; max-height: calc(100vh - var(--topbar-h)); padding: 10px 14px 16px;
    border-inline-end: 0; border-bottom: 1px solid var(--on-bg-line); border-radius: 0 0 22px 22px; background: rgba(3,22,48,.95);
    box-shadow: 0 30px 60px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .22s, transform .22s, visibility 0s .22s; }
  body.nav-open .sidenav { opacity: 1; visibility: visible; transform: none; transition: opacity .22s, transform .22s; }
  .sidenav .brand { display: none; }
  .side-links a.active::before { display: none; }
}
@media (max-width: 520px) {
  .topbar .container { gap: 8px; }
  .topbar .brand span { display: none; }
  .nav-end .btn.sm { padding: 6px 10px; }
  .acct-menu { position: fixed; top: var(--topbar-h); inset-inline: 10px; width: auto; max-height: calc(100vh - var(--topbar-h) - 20px); overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .site-bg.has-img .pano-bg, .acct-menu { animation: none; }
  .sidenav { transition: none; }
}
@media print {
  .site-bg, .sidenav, .menu-btn, .top-search, .acct { display: none !important; }
  .site-shell { margin: 0; color: #000; }
  body.storefront { background: #fff; }
}
