/*
 * Shido Sellauth custom theme
 * Neon blue animated background + fully rounded UI.
 */

:root {
  --shido-blue: #183cff;
  --shido-blue-bright: #315cff;
  --shido-deep: #02052a;
  --shido-card: rgba(5, 10, 48, 0.76);
}

html,
body {
  min-height: 100%;
  background: var(--shido-deep) !important;
}

body {
  overflow-x: hidden;
}

/* Animated blue atmosphere inspired by the supplied reference. */
.shido-animated-bg {
  position: fixed;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 16%, rgba(35, 55, 255, 0.58) 0%, rgba(8, 13, 74, 0.28) 28%, transparent 52%),
    radial-gradient(ellipse at 88% 78%, rgba(0, 60, 255, 0.66) 0%, rgba(0, 31, 145, 0.28) 30%, transparent 56%),
    radial-gradient(ellipse at 56% 45%, rgba(20, 24, 125, 0.25) 0%, transparent 58%),
    linear-gradient(135deg, #01031a 0%, #05083a 42%, #02052a 100%);
  animation: shido-background-drift 24s ease-in-out infinite alternate;
}

.shido-animated-bg::before,
.shido-animated-bg::after {
  content: "";
  position: absolute;
  width: 58vw;
  height: 58vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.shido-animated-bg::before {
  left: -12vw;
  top: 4vh;
  background: radial-gradient(circle, rgba(32, 60, 255, 0.78) 0%, rgba(12, 31, 180, 0.28) 42%, transparent 72%);
  animation: shido-orb-one 15s ease-in-out infinite alternate;
}

.shido-animated-bg::after {
  right: -12vw;
  bottom: -4vh;
  background: radial-gradient(circle, rgba(0, 74, 255, 0.9) 0%, rgba(16, 37, 175, 0.3) 42%, transparent 72%);
  animation: shido-orb-two 20s ease-in-out infinite alternate;
}

#app {
  position: relative;
  z-index: 1;
}

/* Make essentially every visible component rounded instead of square. */
#app :where(div, section, article, aside, nav, footer, header, form, button, a, input, select, textarea, img, iframe, video, .component) {
  border-radius: 18px;
}

#app :where(input, select, textarea, button, a) {
  border-radius: 999px;
}

#app :where(.rounded-full) {
  border-radius: 999px !important;
}

/* Keep separators as clean lines rather than turning them into cards. */
#app :where(hr) {
  border-radius: 999px !important;
}

/* Glassy cards/nav/footer over the animated background. */
#app :where(.bg-card\/75, .bg-card\/90, .bg-card\/50) {
  background-color: var(--shido-card) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#app :where(.border-white\/5) {
  border-color: rgba(95, 125, 255, 0.18) !important;
}

@keyframes shido-background-drift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  50% { transform: scale(1.045) translate3d(1.5%, -1%, 0); }
  100% { transform: scale(1.08) translate3d(-1%, 1.5%, 0); }
}

@keyframes shido-orb-one {
  0% { transform: translate3d(0, 0, 0) scale(0.92); }
  100% { transform: translate3d(16vw, 8vh, 0) scale(1.08); }
}

@keyframes shido-orb-two {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-14vw, -10vh, 0) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .shido-animated-bg,
  .shido-animated-bg::before,
  .shido-animated-bg::after {
    animation: none;
  }
}


/* Smooth, lightweight reveal/transition system. */
html { scroll-behavior: smooth; }
body { opacity: 1; transition: opacity 180ms ease; }
body.shido-leaving { opacity: 0; }
.shido-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 520ms cubic-bezier(.22,1,.36,1), transform 520ms cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.shido-reveal.shido-visible { opacity: 1; transform: translate3d(0,0,0); }

@media (max-width: 767px) {
  .shido-animated-bg { inset: -3%; animation-duration: 32s; }
  .shido-animated-bg::before,
  .shido-animated-bg::after { width: 90vw; height: 90vw; filter: blur(48px); opacity: .38; animation-duration: 26s; }
  .shido-animated-bg::before { left: -28vw; top: 8vh; }
  .shido-animated-bg::after { right: -30vw; bottom: 0; }
  #app :where(div, section, article, aside, nav, footer, header, form, button, a, input, select, textarea, img, iframe, video, .component) { border-radius: 14px; }
  #app :where(input, select, textarea, button, a) { border-radius: 999px; }
  .shido-reveal { transform: translate3d(0, 10px, 0); transition-duration: 360ms; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
  .shido-reveal { opacity: 1; transform: none; transition: none; }
}


/* Mobile navbar: compact header + dropdown menus that push page content down. */
@media (max-width: 767px) {
  nav[data-component-id="navbar"] {
    position: relative !important;
    z-index: 100 !important;
  }

  nav[data-component-id="navbar"] > div {
    border-radius: 20px !important;
    overflow: visible !important;
  }

  nav[data-component-id="navbar"] > div > div:first-child {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    min-height: 68px;
    align-items: center !important;
  }

  /* Currency stays on the left, logo stays centered, actions stay on the right. */
  nav[data-component-id="navbar"] > div > div:first-child > div:first-child {
    grid-column: 1 !important;
    justify-self: start !important;
    min-width: 0 !important;
    padding: 10px 8px 10px 12px !important;
    width: auto !important;
  }

  nav[data-component-id="navbar"] > div > div:first-child > div:first-child > a {
    justify-content: center !important;
  }

  nav[data-component-id="navbar"] > div > div:first-child > div:first-child img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain;
  }

  nav[data-component-id="navbar"] > div > div:first-child > div:first-child h1 {
    display: none !important;
  }

  /* Put the currency selector visually in the first grid column. */
  nav[data-component-id="navbar"] .currency-selector.xs {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 102 !important;
    display: block !important;
    width: 78px !important;
    min-width: 78px !important;
  }

  nav[data-component-id="navbar"] .currency-selector.xs .choices,
  nav[data-component-id="navbar"] .currency-selector.xs .choices__inner {
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
  }

  nav[data-component-id="navbar"] .currency-selector.xs .choices__inner {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid rgba(95,125,255,.22) !important;
    border-radius: 14px !important;
    background: rgba(4,9,45,.78) !important;
    box-sizing: border-box !important;
  }

  nav[data-component-id="navbar"] .currency-selector.xs .choices__inner .choices__item {
    max-width: 54px !important;
    font-size: .95rem !important;
    line-height: 1 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  nav[data-component-id="navbar"] .currency-selector.xs .choices__list--dropdown {
    position: absolute !important;
    z-index: 10001 !important;
    width: 170px !important;
    min-width: 170px !important;
    left: 0 !important;
    right: auto !important;
    margin: 8px 0 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: rgba(5,9,42,.99) !important;
    border: 1px solid rgba(95,125,255,.22) !important;
  }

  nav[data-component-id="navbar"] .currency-selector.xs select {
    width: 78px !important;
    height: 44px !important;
  }

  nav[data-component-id="navbar"] > div > div:first-child > div:nth-child(2) {
    grid-column: 3 !important;
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-right: 8px !important;
    width: auto !important;
  }

  nav[data-component-id="navbar"] button,
  nav[data-component-id="navbar"] > div > div:first-child > div:nth-child(2) > a {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex: 0 0 40px !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }

  /* NOTE: the dropdown open/close behaviour for the hamburger menu (☰) lives
     further down, on the `.shido-navbar-menu` / `.shido-navbar-menu.is-open`
     rules — those target the actual current markup. This old selector
     (`nav > div > div:nth-child(2)`) matched an earlier version of the DOM
     and no longer matches anything now that everything sits inside
     `.shido-navbar-row`, so it was removed instead of left as dead weight. */

  /* Hero: way too much empty space above/below the title on mobile — tighten it up. */
  .relative.flex.justify-center.items-center.py-24 {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  /* The hero/content must stay below the expanded navbar. */
  #app > div > div:first-child > :not(nav) {
    position: relative;
    z-index: 1;
  }
}


/* Product cards: clean rounded-rectangle CTA, no circular button background. */
#app .shido-buy-now {
  width: 100%;
  min-height: 44px;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(28,60,255,.96), rgba(17,31,128,.92)) !important;
  border: 1px solid rgba(91,125,255,.72) !important;
  box-shadow: 0 8px 24px rgba(20,45,220,.20);
  color: #fff !important;
  position: relative;
  overflow: hidden;
}
#app .shido-buy-now::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transform: translateX(-120%);
  transition: transform .55s ease;
}
#app .shido-buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(24,60,255,.34);
}
#app .shido-buy-now:hover::before { transform: translateX(120%); }
#app .product-card-spacer { min-height: 20px; }

/* Snow: real white snowflake glyphs, subtle enough for phones. */
#snow {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
#snow .snowflake {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 22px;
  height: 22px;
  font-style: normal;
  font-family: Arial, "Segoe UI Symbol", sans-serif;
  color: rgba(255,255,255,.72);
  text-shadow: 0 0 5px rgba(255,255,255,.18);
  will-change: transform;
}
#snow .snowflake::before {
  content: "❄";
  display: block;
  font-size: 16px;
  line-height: 22px;
}
@media (max-width: 767px) {
  #snow .snowflake { width: 18px; height: 18px; }
  #snow .snowflake::before { font-size: 12px; line-height: 18px; }
  #app .shido-buy-now { min-height: 42px; border-radius: 13px !important; }
}


/* Product artwork: show the restored product images inside each product card. */
#app .shido-product-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px !important;
  background: rgba(2, 6, 30, .55);
  border: 1px solid rgba(95, 125, 255, .14);
}
#app .shido-product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px !important;
}
@media (max-width: 767px) {
  #app .shido-product-image-wrap, #app .shido-product-image { border-radius: 13px !important; }
}


/* FINAL PRODUCT CARD CLEANUP */
#app a.shido-product-card {
  border-radius: 18px !important;
  overflow: hidden !important;
  background: rgba(5, 10, 48, .78) !important;
  border: 1px solid rgba(95, 125, 255, .18) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .16);
}
#app a.shido-product-card > div { border-radius: 0 !important; }
#app a.shido-product-card .shido-product-image-wrap {
  border-radius: 16px !important;
  border: 0 !important;
  aspect-ratio: 16 / 8.5;
  background: rgba(2, 6, 30, .55);
  overflow: hidden !important;
}
#app a.shido-product-card .shido-product-image {
  border-radius: 16px !important;
  object-fit: cover;
}
#app a.shido-product-card .shido-buy-now {
  border-radius: 12px !important;
  width: 100% !important;
  min-height: 44px !important;
}
#app a.shido-product-card h3 { border-radius: 0 !important; }
@media (max-width: 767px) {
  #app a.shido-product-card { border-radius: 16px !important; }
  #app a.shido-product-card .shido-buy-now { border-radius: 11px !important; }
  #app a.shido-product-card .shido-product-image-wrap { border-radius: 13px !important; }
  #app a.shido-product-card .shido-product-image { border-radius: 13px !important; }
}

/* ===== Clean product card polish =====
   Hover lift/zoom is gated behind (hover: hover) and (pointer: fine) so touch phones
   never run the transform/shadow transition — zero extra paint cost on mobile. */
#app a.shido-product-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
#app a.shido-product-card .shido-product-image {
  transition: transform 320ms ease;
}
#app a.shido-product-card .shido-product-image-wrap {
  position: relative;
}
#app a.shido-product-card .shido-product-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,30,0) 55%, rgba(2,6,30,.45) 100%);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  #app a.shido-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(120, 150, 255, .4) !important;
    box-shadow: 0 18px 40px rgba(10, 20, 90, .35);
  }
  #app a.shido-product-card:hover .shido-product-image {
    transform: scale(1.045);
  }
}

/* Product image reliability + clean card proportions */
#app a.shido-product-card .shido-product-image-wrap {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  background: #050a30 !important;
  border-radius: 16px !important;
}
#app a.shido-product-card .shido-product-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 16px !important;
}


/* MOBILE NAVBAR POLISH — compact, clean, circular brand logo */
@media (max-width: 767px) {
  nav[data-component-id="navbar"] {
    margin: 0 8px !important;
  }

  nav[data-component-id="navbar"] > div {
    border-radius: 18px !important;
    background: rgba(4, 8, 42, .82) !important;
    border: 1px solid rgba(95,125,255,.20) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.16);
  }

  nav[data-component-id="navbar"] > div > div:first-child {
    min-height: 60px !important;
  }

  nav[data-component-id="navbar"] > div > div:first-child > div:first-child {
    padding: 8px 6px 8px 10px !important;
  }

  nav[data-component-id="navbar"] > div > div:first-child > div:first-child > a {
    gap: 0 !important;
  }

  nav[data-component-id="navbar"] .shido-brand-logo {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    min-width: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    overflow: hidden !important;
    border: 1px solid rgba(125,150,255,.35) !important;
    box-shadow: 0 4px 16px rgba(35,55,255,.22);
  }

  nav[data-component-id="navbar"] > div > div:first-child > div:first-child h1 {
    display: none !important;
  }

  nav[data-component-id="navbar"] > div > div:first-child > div:nth-child(2) {
    gap: 7px !important;
    margin-right: 8px !important;
  }

  nav[data-component-id="navbar"] .currency-selector.xs,
  nav[data-component-id="navbar"] .currency-selector.xs .choices,
  nav[data-component-id="navbar"] .currency-selector.xs .choices__inner {
    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;
  }

  nav[data-component-id="navbar"] .currency-selector.xs .choices__inner {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 7px !important;
    border-radius: 11px !important;
    background: rgba(8,13,55,.68) !important;
  }

  nav[data-component-id="navbar"] .currency-selector.xs .choices__inner .choices__item {
    max-width: 48px !important;
    font-size: .84rem !important;
  }

  nav[data-component-id="navbar"] button,
  nav[data-component-id="navbar"] > div > div:first-child > div:nth-child(2) > a {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 11px !important;
    background: rgba(8,13,55,.68) !important;
    border-color: rgba(95,125,255,.20) !important;
  }

  nav[data-component-id="navbar"] button svg {
    width: 16px !important;
    height: 16px !important;
  }

  nav[data-component-id="navbar"] .fa-cart-shopping {
    font-size: 14px !important;
  }
}

/* Final mobile navbar layout: currency left, logo centered, cart + menu right. */
@media (max-width: 767px) {
  nav[data-component-id="navbar"] > div > div:first-child {
    position: relative !important;
    min-height: 72px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
  }

  /* Center the logo independently of the left/right controls. */
  nav[data-component-id="navbar"] > div > div:first-child > div:first-child {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  nav[data-component-id="navbar"] > div > div:first-child > div:first-child > a {
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  nav[data-component-id="navbar"] > div > div:first-child > div:first-child img {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    border: 1px solid rgba(95,125,255,.45) !important;
    box-shadow: 0 0 18px rgba(35,65,255,.22) !important;
  }

  nav[data-component-id="navbar"] > div > div:first-child > div:first-child h1 {
    display: none !important;
  }

  /* Use the full row for controls so there is no dead space. */
  nav[data-component-id="navbar"] > div > div:first-child > div:nth-child(2) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    flex: 1 1 100% !important;
  }

  /* Currency stays at the far left. */
  nav[data-component-id="navbar"] .currency-selector.xs {
    margin-right: auto !important;
    width: 82px !important;
    min-width: 82px !important;
    flex: 0 0 82px !important;
  }

  nav[data-component-id="navbar"] .currency-selector.xs .choices,
  nav[data-component-id="navbar"] .currency-selector.xs .choices__inner,
  nav[data-component-id="navbar"] .currency-selector.xs select {
    width: 82px !important;
    min-width: 82px !important;
  }

  nav[data-component-id="navbar"] .currency-selector.xs .choices__inner {
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 13px !important;
  }

  /* Cart and menu sit together at the far right. */
  nav[data-component-id="navbar"] > div > div:first-child > div:nth-child(2) > a,
  nav[data-component-id="navbar"] > div > div:first-child > div:nth-child(2) > button {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    flex: 0 0 44px !important;
    border-radius: 13px !important;
    padding: 0 !important;
  }

  nav[data-component-id="navbar"] > div > div:first-child > div:nth-child(2) > button svg {
    width: 21px !important;
    height: 21px !important;
  }
}

/* ===== FINAL MOBILE FIXES v4 ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
}

body {
  transition: none !important;
}

#app {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 767px) {
  /* Prevent the fixed animated layers / particles from creating a black horizontal overscroll area. */
  .shido-animated-bg {
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    animation: none !important;
  }
  .shido-animated-bg::before,
  .shido-animated-bg::after {
    animation: none !important;
  }
  #particles-js {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  /* Make the announcement identical in height/shape everywhere on mobile. */
  .announcement {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .announcement > div {
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
  }
  .announcement > div > div {
    width: 100% !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .announcement p {
    width: 100% !important;
    line-height: 30px !important;
    margin: 0 !important;
  }

  /* One stable navbar layout on the homepage and every product page. */
  nav[data-component-id="navbar"] {
    width: 100% !important;
    margin: 0 !important;
  }
  nav[data-component-id="navbar"] > div {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  nav[data-component-id="navbar"] > div > div:first-child {
    position: relative !important;
    width: 100% !important;
    height: 74px !important;
    min-height: 74px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  /* Center logo, independent from the controls. */
  nav[data-component-id="navbar"] > div > div:first-child > div:first-child {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 5 !important;
  }
  nav[data-component-id="navbar"] > div > div:first-child > div:first-child > a,
  nav[data-component-id="navbar"] .shido-brand-logo {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }
  nav[data-component-id="navbar"] .shido-brand-logo {
    border-radius: 50% !important;
    object-fit: cover !important;
  }

  /* Controls are positioned explicitly: EUR left, cart + menu right. */
  nav[data-component-id="navbar"] > div > div:first-child > div:nth-child(2) {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 74px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    pointer-events: none !important;
    z-index: 4 !important;
  }
  nav[data-component-id="navbar"] > div > div:first-child > div:nth-child(2) > * {
    pointer-events: auto !important;
  }

  nav[data-component-id="navbar"] .currency-selector.xs {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    margin: 0 !important;
  }
  nav[data-component-id="navbar"] .currency-selector.xs .choices,
  nav[data-component-id="navbar"] .currency-selector.xs .choices__inner,
  nav[data-component-id="navbar"] .currency-selector.xs select {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
  }
  nav[data-component-id="navbar"] .currency-selector.xs .choices__inner {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 8px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  nav[data-component-id="navbar"] .currency-selector.xs .choices__inner .choices__item {
    font-size: .88rem !important;
    font-weight: 600 !important;
    max-width: 48px !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
  nav[data-component-id="navbar"] .currency-selector.xs .choices__inner .choices__button {
    display: none !important;
  }
  nav[data-component-id="navbar"] .currency-selector.xs .choices__list--dropdown {
    left: auto !important;
    right: 0 !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    margin-top: 6px !important;
    transform: translateX(0) !important;
  }

  nav[data-component-id="navbar"] > div > div:first-child > div:nth-child(2) > a,
  nav[data-component-id="navbar"] > div > div:first-child > div:nth-child(2) > button {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 12px !important;
  }
  nav[data-component-id="navbar"] > div > div:first-child > div:nth-child(2) > a {
    right: 64px !important;
  }
  nav[data-component-id="navbar"] > div > div:first-child > div:nth-child(2) > button {
    right: 12px !important;
  }

  /* Product image: always centered, no Splide offset on mobile. */
  .splide.main,
  .splide.main .splide__track,
  .splide.main .splide__list,
  .splide.main .splide__slide {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .splide.main .splide__slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }
  .splide.main .splide__slide img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    margin: 0 !important;
  }

  /* Product cards: image stays clean and centered on small screens. */
  #app a.shido-product-card .shido-product-image-wrap {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    overflow: hidden !important;
    border-radius: 13px !important;
  }
  #app a.shido-product-card .shido-product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
    border-radius: 13px !important;
  }
}


/* ===== MOBILE V5: seamless long-page background + product description placement ===== */
.shido-mobile-product-description { display: none !important; }

@media (max-width: 767px) {
  /* Base gradient stays static (no position:fixed) so long-page scrolling/capture never stitches or seams. */
  html, body {
    min-height: 100%;
    background:
      radial-gradient(ellipse at 18% 16%, rgba(35,55,255,.48) 0%, rgba(8,13,74,.20) 28%, transparent 52%),
      radial-gradient(ellipse at 88% 78%, rgba(0,60,255,.52) 0%, rgba(0,31,145,.20) 30%, transparent 56%),
      linear-gradient(135deg, #01031a 0%, #05083a 42%, #02052a 100%) !important;
    background-attachment: scroll !important;
  }

  /* Lightweight moving glow: absolute (not fixed) so it scrolls away with the page instead of
     being redrawn on every frame/stitched screenshot, transform-only animation (no layout/paint
     cost per frame), reduced blur radius and no canvas particles — safe for low-end phones. */
  .shido-animated-bg {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    height: 100vh !important;
    max-height: 760px !important;
    width: 100% !important;
    overflow: hidden !important;
    z-index: 0 !important;
  }
  .shido-animated-bg::before,
  .shido-animated-bg::after {
    width: 68vw !important;
    height: 68vw !important;
    filter: blur(30px) !important;
    opacity: .3 !important;
    animation-duration: 30s !important;
  }
  .shido-animated-bg::before { left: -18vw !important; top: 2vh !important; }
  .shido-animated-bg::after { right: -20vw !important; bottom: -6vh !important; }

  #particles-js {
    display: none !important;
  }

  /* Product page: image is a clean centered frame instead of a cropped/offset slide. */
  .aspect-product-page-image {
    aspect-ratio: 16 / 10 !important;
    min-height: 0 !important;
    height: auto !important;
    background: rgba(3,7,36,.72) !important;
    overflow: hidden !important;
  }
  .splide.main,
  .splide.main .splide__track,
  .splide.main .splide__list,
  .splide.main .splide__slide {
    height: 100% !important;
    min-height: 0 !important;
  }
  .splide.main .splide__slide img,
  .aspect-product-page-image > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background: rgba(3,7,36,.72) !important;
  }

  /* On phones the product description belongs directly below Buy/Add to Cart. */
  .shido-product-description-panel {
    display: none !important;
  }
  .shido-mobile-product-description {
    display: block !important;
    margin-top: 10px !important;
    border: 1px solid rgba(95,125,255,.18) !important;
    border-radius: 16px !important;
    background: rgba(5,10,48,.78) !important;
    box-sizing: border-box !important;
  }
  .shido-mobile-product-description .editor {
    line-height: 1.65 !important;
    overflow-wrap: anywhere !important;
  }
  .shido-mobile-product-description .editor img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Keep the form and its CTA visually attached to the product. */
  .lg\:w-2\/5 {
    width: 100% !important;
  }
}

/* ===== MOBILE HOME FIX: single background texture + stable currency menu ===== */
@media (max-width: 767px) {
  /* The mobile page already owns the background on html/body.
     Remove the second painted layer and its two extra glow textures. */
  .shido-animated-bg {
    background: transparent !important;
    background-image: none !important;
  }

  .shido-animated-bg::before,
  .shido-animated-bg::after {
    display: none !important;
    content: none !important;
  }

  /* Keep the currency dropdown inside the viewport on iPhone. */
  nav[data-component-id="navbar"] .currency-selector.xs {
    position: relative !important;
  }

  nav[data-component-id="navbar"] .currency-selector.xs .choices__list--dropdown,
  nav[data-component-id="navbar"] .currency-selector.xs .choices__list[aria-expanded="true"] {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: auto !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 10001 !important;
    box-sizing: border-box !important;
  }

  /* The menu itself must stay within the mobile viewport. */
  nav[data-component-id="navbar"] > div > div:nth-child(2) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}


/* ===== MOBILE NAVBAR V6 — final alignment + contained dropdown/menu ===== */
@media (max-width: 767px) {
  /* Header is one predictable row: EUR | centered logo | cart + menu. */
  nav[data-component-id="navbar"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 50 !important;
  }

  nav[data-component-id="navbar"] > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-row {
    position: relative !important;
    width: 100% !important;
    height: 74px !important;
    min-height: 74px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  /* Do not let the brand wrapper take part in flex sizing. */
  nav[data-component-id="navbar"] .shido-navbar-brand {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 3 !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-brand > a {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-brand .shido-brand-logo {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    margin: 0 !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-brand h1 {
    display: none !important;
  }

  /* Action container spans the row, but the controls themselves stay anchored. */
  nav[data-component-id="navbar"] .shido-navbar-actions {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 74px !important;
    min-height: 74px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    display: block !important;
    z-index: 4 !important;
    pointer-events: none !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-actions > * {
    pointer-events: auto !important;
  }

  /* EUR — fixed left position and same vertical center as the logo. */
  nav[data-component-id="navbar"] .shido-navbar-actions .currency-selector.xs {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 6 !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-actions .currency-selector.xs .choices,
  nav[data-component-id="navbar"] .shido-navbar-actions .currency-selector.xs .choices__inner,
  nav[data-component-id="navbar"] .shido-navbar-actions .currency-selector.xs select {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    box-sizing: border-box !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-actions .currency-selector.xs .choices {
    position: relative !important;
    margin: 0 !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-actions .currency-selector.xs .choices__inner {
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-actions .currency-selector.xs .choices__list--single {
    padding: 0 !important;
    margin: 0 !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-actions .currency-selector.xs .choices__item--selectable {
    max-width: 50px !important;
    font-size: .88rem !important;
    line-height: 1 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  /* Currency dropdown is anchored to the EUR control, never the page. */
  nav[data-component-id="navbar"] .shido-navbar-actions .currency-selector.xs .choices__list--dropdown,
  nav[data-component-id="navbar"] .shido-navbar-actions .currency-selector.xs .choices__list[aria-expanded="true"] {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: auto !important;
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    max-height: min(60vh, 360px) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    z-index: 10010 !important;
    border-radius: 14px !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-actions .currency-selector.xs .choices__list--dropdown .choices__item,
  nav[data-component-id="navbar"] .shido-navbar-actions .currency-selector.xs .choices__list[aria-expanded="true"] .choices__item {
    width: 100% !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    padding: 11px 14px !important;
    font-size: .95rem !important;
    white-space: nowrap !important;
  }

  /* Cart + hamburger are aligned to the exact same center line. */
  nav[data-component-id="navbar"] .shido-navbar-actions > a,
  nav[data-component-id="navbar"] .shido-navbar-actions > button {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-actions > a {
    right: 64px !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-actions > button {
    right: 12px !important;
  }

  /* Mobile menu is normal flow: when opened it pushes the homepage down instead of
     floating over the hero/search area or escaping to the left. */
  nav[data-component-id="navbar"] .shido-navbar-menu {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    /* Closed by default: 0-height grid row, no border/bg, so the closed bar stays exactly as compact as before. */
    display: grid !important;
    grid-template-rows: 0fr !important;
    opacity: 0 !important;
    border-top: 0 !important;
    transition: grid-template-rows 220ms ease, opacity 220ms ease, border-top-width 220ms ease !important;
  }

  /* Solid panel only while open: it should read as part of the navbar card, not float over the hero. */
  nav[data-component-id="navbar"] .shido-navbar-menu.is-open {
    background-color: rgba(var(--cl-card), 1) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
    z-index: 20 !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-menu.is-open {
    grid-template-rows: 1fr !important;
    opacity: 1 !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-menu-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px 12px 14px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    overflow: hidden !important;
  }

  nav[data-component-id="navbar"] .shido-navbar-menu-inner > a,
  nav[data-component-id="navbar"] .shido-navbar-menu-inner > button {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 11px 14px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }
}
