/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
*/

/* Cloud Market navigation, featured ticker and responsive controls. */
.sm-body { --sm-bg: #0b0810; --sm-surface: #15101c; --sm-border: #3c2a4d; }
.sm-account-link { font-size: 0 !important; width: 42px; min-width: 42px; height: 42px; min-height: 42px; padding: 0 !important; gap: 0 !important; justify-content: center; }
.sm-account-link i { margin: 0 !important; font-size: 15px; }
.sm-navigation { padding: 7px 14px; border: 1px solid #34243f; border-radius: 999px; background: rgba(18, 12, 24, .78); box-shadow: inset 0 0 0 1px rgba(255,255,255,.015); }
.sm-navigation a { padding: 7px 10px; border-radius: 999px; }
.sm-navigation a:hover, .sm-navigation a:focus-visible { background: rgba(168, 85, 247, .12); }
.sm-language-switcher { display: inline-flex; align-items: center; min-width: 78px; }
.sm-language-switcher .language-selector, .sm-language-switcher .choices { margin: 0; }
.sm-language-switcher select { width: 78px !important; height: 40px !important; border: 1px solid #553a61 !important; border-radius: 999px !important; background: #17111f !important; color: #fff !important; font-size: 11px !important; font-weight: 800 !important; text-align: center; cursor: pointer; }
.sm-language-switcher .choices { min-width: 78px; }
.sm-language-switcher .choices__inner { min-height: 40px; padding: 10px 24px 6px 11px; border: 1px solid #553a61; border-radius: 999px; background: #17111f; color: #fff; font-size: 11px; font-weight: 800; }
.sm-language-switcher .choices__list--dropdown { z-index: 140; border-color: #553a61; background: #17111f; color: #fff; }

.sm-hero-product-marquee { display: block !important; width: min(100%, 980px); min-height: 66px; margin: 38px auto 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.sm-hero-product-track { display: flex; width: max-content; gap: 12px; animation: sm-product-marquee 36s linear infinite; }
.sm-hero-product-marquee:hover .sm-hero-product-track { animation-play-state: paused; }
.sm-hero-product-chip { display: inline-flex; align-items: center; gap: 14px; width: 380px; min-height: 98px; padding: 14px 17px; border: 1px solid #46334f; border-radius: 12px; background: rgba(21, 16, 28, .92); box-shadow: 0 10px 25px rgba(0, 0, 0, .2); text-align: left; transition: border-color .2s ease, transform .2s ease; }
.sm-hero-product-chip:hover { border-color: var(--sm-accent); color: #fff; transform: translateY(-2px); }
.sm-hero-product-chip img, .sm-hero-product-chip-icon { display: grid; width: 62px; height: 62px; flex: 0 0 62px; place-items: center; overflow: hidden; border-radius: 9px; background: #24162d; color: var(--sm-accent); object-fit: cover; }
.sm-hero-product-chip > span:last-child { display: grid; min-width: 0; gap: 3px; }
.sm-hero-product-chip strong { overflow: hidden; color: #fff; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.sm-hero-product-chip small { color: var(--sm-accent); font-size: 12px; font-weight: 800; }
@keyframes sm-product-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 991.98px) {
  .sm-language-switcher { min-width: 64px; }
  .sm-language-switcher select { width: 64px !important; }
  .sm-language-switcher .choices, .sm-language-switcher .choices__inner { min-width: 64px; }
  .sm-language-switcher .choices__inner { padding-left: 9px; }
  .sm-account-link { display: inline-flex !important; }
  .sm-account-link i { margin: 0; font-size: 15px; }
  .sm-nav-actions { gap: 7px; }
}
@media (max-width: 575.98px) {
  .sm-hero-product-marquee { margin-top: 28px; }
  .sm-hero-product-chip { width: 285px; min-height: 78px; padding: 10px 12px; }
  .sm-hero-product-chip img, .sm-hero-product-chip-icon { width: 52px; height: 52px; flex-basis: 52px; }
  .sm-hero-product-chip strong { font-size: 12px; }
  .sm-hero-product-chip small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .sm-hero-product-track { animation: none; } }

/* Full-height touch menu for Cloud Market. Desktop navigation remains unchanged. */
.sm-mobile-menu { display: none; }
@media (max-width: 991.98px) {
  /* Mobile navigation is a standalone screen, not a dropdown below the
     header.  The !important rules override the original theme's compact
     navigation styles, which otherwise remain visible behind the overlay. */
  .sm-navigation { display: none !important; visibility: hidden !important; pointer-events: none !important; }
  .sm-mobile-menu { position: fixed; inset: -2px; z-index: 1000; display: flex; width: auto; height: auto; min-height: 0; visibility: hidden; pointer-events: none; opacity: 0; overflow: hidden; isolation: isolate; background: #130d1e; transition: opacity .22s ease, visibility .22s ease; }
  .sm-mobile-menu.is-open { visibility: visible; pointer-events: auto; opacity: 1; }
  .sm-mobile-menu-backdrop { position: absolute; inset: -100px; width: auto; height: auto; border: 0; background: #130d1e; cursor: pointer; }
  /* The menu must cover the entire viewport; otherwise the original header
     and the hero remain visible beside it on narrow screens. */
  .sm-mobile-menu-panel { position: relative; z-index: 1; display: flex; width: 100% !important; max-width: none !important; height: 100%; min-height: 100%; flex: 1 1 auto; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: max(24px, env(safe-area-inset-top)) clamp(16px, 5vw, 28px) max(110px, calc(env(safe-area-inset-bottom) + 86px)); border: 0; background: #130d1e; background: linear-gradient(160deg, #191127 0%, #100c18 62%, #0b0810 100%); box-shadow: 25px 0 70px rgba(0, 0, 0, .42); transform: translateX(-102%); transition: transform .26s cubic-bezier(.22, .61, .36, 1); }
  .sm-mobile-menu.is-open .sm-mobile-menu-panel { transform: translateX(0); }
  body.sm-mobile-menu-open { overflow: hidden; }
  body.sm-mobile-menu-open .sm-header { visibility: hidden !important; pointer-events: none !important; }
  body.sm-mobile-menu-open > main,
  body.sm-mobile-menu-open > .sm-footer,
  body.sm-mobile-menu-open > .sm-announcement,
  body.sm-mobile-menu-open > .sm-cursor-glow { visibility: hidden !important; }
  .sm-mobile-menu-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 22px; border-bottom: 1px solid rgba(216, 180, 254, .16); }
  .sm-mobile-menu-brand { display: inline-flex; align-items: center; min-width: 0; gap: 13px; }
  .sm-mobile-menu-brand img { width: 54px; height: 54px; border: 1px solid rgba(216, 180, 254, .42); border-radius: 15px; background: #25163a; box-shadow: 0 0 26px rgba(168, 85, 247, .22); object-fit: cover; }
  .sm-mobile-menu-brand span { display: grid; min-width: 0; gap: 3px; }
  .sm-mobile-menu-brand small { color: var(--sm-highlight); font-size: 11px; font-weight: 900; letter-spacing: 2px; }
  .sm-mobile-menu-brand strong { overflow: hidden; color: #fff; font-size: clamp(20px, 5vw, 27px); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
  .sm-mobile-menu-close { display: grid; width: 58px; height: 58px; flex: 0 0 58px; place-items: center; border: 2px solid var(--sm-accent); border-radius: 18px; background: rgba(168, 85, 247, .1); color: #fff; font-size: 22px; cursor: pointer; box-shadow: inset 0 0 0 5px rgba(168, 85, 247, .08); transition: background .2s ease, transform .2s ease; }
  .sm-mobile-menu-close:hover, .sm-mobile-menu-close:focus-visible { background: rgba(168, 85, 247, .24); transform: rotate(4deg); }
  .sm-mobile-menu-links { display: grid; gap: 11px; margin-top: 25px; }
  .sm-mobile-menu-link { display: grid; grid-template-columns: 58px minmax(0, 1fr) 20px; align-items: center; gap: 14px; min-height: 88px; padding: 13px 15px; border: 1px solid rgba(216, 180, 254, .12); border-radius: 23px; background: rgba(22, 15, 31, .8); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .14); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
  .sm-mobile-menu-link:hover, .sm-mobile-menu-link:focus-visible { border-color: rgba(216, 180, 254, .55); background: rgba(85, 44, 113, .32); transform: translateX(3px); }
  .sm-mobile-menu-affiliate { border-color: rgba(168, 85, 247, .42); background: linear-gradient(100deg, rgba(75, 35, 104, .34), rgba(31, 17, 45, .84)); }
  .sm-mobile-menu-icon { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(168, 85, 247, .3); border-radius: 17px; background: rgba(168, 85, 247, .12); color: var(--sm-highlight); font-size: 22px; }
  .sm-mobile-menu-copy { display: grid; min-width: 0; gap: 4px; }
  .sm-mobile-menu-copy strong { color: #fff; font-size: 21px; font-weight: 900; line-height: 1.12; }
  .sm-mobile-menu-copy small { overflow: hidden; color: var(--sm-muted); font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
  .sm-mobile-menu-chevron { color: #8f829b; font-size: 16px; }
  .sm-mobile-menu-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: auto; padding-top: 26px; border-top: 1px solid rgba(216, 180, 254, .16); }
  .sm-mobile-menu-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 58px; padding: 10px 12px; border: 1px solid rgba(216, 180, 254, .2); border-radius: 18px; background: rgba(19, 13, 27, .78); color: #fff; font-size: 15px; font-weight: 900; cursor: pointer; }
  .sm-mobile-menu-action:hover, .sm-mobile-menu-action:focus-visible { border-color: var(--sm-accent); background: rgba(168, 85, 247, .17); }
  .sm-mobile-menu-action i { color: var(--sm-highlight); font-size: 18px; }
  .sm-mobile-menu-discord { border-color: rgba(88, 101, 242, .55); background: rgba(48, 57, 121, .24); }
  .sm-mobile-menu-discord i { color: #aeb6ff; }
  .sm-mobile-menu-secure { display: flex; align-items: center; gap: 9px; margin: 17px 3px 0; color: var(--sm-muted); font-size: 13px; }
  .sm-mobile-menu-secure i { color: var(--sm-accent); }
  .sm-mobile-menu-open { overflow: hidden; }
}
@media (max-width: 390px) {
  .sm-mobile-menu-panel { padding-right: 14px; padding-left: 14px; }
  .sm-mobile-menu-link { grid-template-columns: 50px minmax(0, 1fr) 16px; gap: 11px; min-height: 80px; padding: 11px; border-radius: 19px; }
  .sm-mobile-menu-icon { width: 47px; height: 47px; border-radius: 14px; font-size: 19px; }
  .sm-mobile-menu-copy strong { font-size: 18px; }
  .sm-mobile-menu-copy small { font-size: 12px; }
}

/* Keep the end of the catalogue visually continuous on desktop. The trust
   strip previously inherited the page's almost-black background while the
   reviews section used violet, which produced a wide, unintended dark band. */
@media (min-width: 992px) {
  .sm-trust-section,
  .sm-feedback-section {
    background: #1a1736 !important;
  }

  /* Product artwork stays genuinely square on desktop. Using contain avoids
     trimming the top or bottom of square shop artwork, and disabling the
     image-only hover zoom prevents that crop from returning on hover. */
  .sm-product-card-media,
  .sm-product-group-card .sm-product-card-media {
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
  }

  .sm-product-card-media img,
  .sm-product-group-card .sm-product-card-media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    object-position: center;
  }

  .sm-product-card:hover .sm-product-card-media img,
  .sm-product-group-card:hover .sm-product-card-media img {
    transform: none;
  }

  .sm-hero-product-chip img {
    object-fit: contain;
    object-position: center;
  }
}
