/*
 * Obsessive / PANDA ST Mega Menu — Editorial v1.5
 * 2026-10-29
 *
 * Cele:
 * - zachować natywne otwieranie/zamykanie PANDA,
 * - wycentrować pierwszy poziom kategorii,
 * - naprawić "osamotnione" kolumny typu Bielizna męska,
 * - stworzyć gotowy system bloków graficznych/editorial,
 * - odświeżyć mobilny drawer/accordion bez zmiany jego mechaniki.
 */

:root {
  --obs-mega-accent: #DE237B;
  --obs-mega-text: #151515;
  --obs-mega-muted: #6f6f6f;
  --obs-mega-soft: #f7f7f7;
  --obs-mega-line: #ececec;
  --obs-mega-content-max: 1440px;
}

/* ==========================================================
   DESKTOP
   ========================================================== */
@media screen and (min-width: 992px) {

  /* --------------------------------------------------------
     Pasek kategorii
     -------------------------------------------------------- */
  #top_extra.obs-header-mega-v3 {
    --obs-mega-width: 100vw;
    --obs-mega-left: 0px;

    position: relative;
    z-index: 400;

    background: #fff;
    border-bottom: 1px solid #efefef;
  }

  #top_extra.obs-header-mega-v3 .wide_container,
  #top_extra.obs-header-mega-v3 .boxed_megamenu,
  #top_extra.obs-header-mega-v3 .st_mega_menu_container,
  #top_extra.obs-header-mega-v3 .st_mega_menu_container > .container,
  #top_extra.obs-header-mega-v3 #top_extra_container,
  #top_extra.obs-header-mega-v3 #st_mega_menu_wrap,
  #top_extra.obs-header-mega-v3 .st_mega_menu > .ml_level_0 {
    overflow: visible !important;
  }

  #top_extra.obs-header-mega-v3 #top_extra_container {
    justify-content: center !important;
  }

  #top_extra.obs-header-mega-v3 #st_mega_menu_wrap {
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: calc(100vw - 48px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #top_extra.obs-header-mega-v3 #st_mega_menu_wrap > .st_mega_menu {
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Pierwszy poziom: lekki, fashion, nadal w pełni Panda-native. */
  #top_extra.obs-header-mega-v3
  #st_mega_menu_wrap
  > ul.st_mega_menu.mu_level_0
  > li.ml_level_0
  > a.ma_level_0 {
    position: relative;

    padding-left: 17px !important;
    padding-right: 17px !important;

    color: var(--obs-mega-text) !important;
    background: transparent !important;

    font-family: "Open Sans", Tahoma, sans-serif, Arial !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;

    border: 0 !important;
    box-shadow: none !important;

    transition: color .18s ease !important;
  }

  #top_extra.obs-header-mega-v3
  #st_mega_menu_wrap
  > ul.st_mega_menu.mu_level_0
  > li.ml_level_0
  > a.ma_level_0::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;

    width: 22px;
    height: 1px;
    margin-left: -11px;

    background: var(--obs-mega-accent);

    opacity: 0;
    transform: scaleX(.45);
    transform-origin: center;

    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
  }

  #top_extra.obs-header-mega-v3
  #st_mega_menu_wrap
  > ul.st_mega_menu.mu_level_0
  > li.ml_level_0:hover
  > a.ma_level_0,
  #top_extra.obs-header-mega-v3
  #st_mega_menu_wrap
  > ul.st_mega_menu.mu_level_0
  > li.ml_level_0:focus-within
  > a.ma_level_0 {
    color: var(--obs-mega-accent) !important;
  }

  #top_extra.obs-header-mega-v3
  #st_mega_menu_wrap
  > ul.st_mega_menu.mu_level_0
  > li.ml_level_0:hover
  > a.ma_level_0::after,
  #top_extra.obs-header-mega-v3
  #st_mega_menu_wrap
  > ul.st_mega_menu.mu_level_0
  > li.ml_level_0:focus-within
  > a.ma_level_0::after {
    opacity: 1;
    transform: scaleX(1);
  }

  /* --------------------------------------------------------
     Panel dropdown — full viewport, content max 1440px
     -------------------------------------------------------- */
  #top_extra.obs-header-mega-v3
  .st_mega_menu
  > .ml_level_0
  > .stmenu_sub {
    position: absolute !important;

    left: var(--obs-mega-left) !important;
    right: auto !important;

    width: var(--obs-mega-width) !important;
    max-width: none !important;
    min-width: 0 !important;

    box-sizing: border-box !important;

    margin: 0 !important;
    padding:
      32px
      max(34px, calc((100vw - var(--obs-mega-content-max)) / 2))
      34px !important;

    background: #fff !important;
    color: var(--obs-mega-text) !important;

    border: 0 !important;
    border-top: 1px solid var(--obs-mega-line) !important;
    border-radius: 0 !important;

    box-shadow:
      0 22px 48px rgba(0,0,0,.075),
      0 3px 10px rgba(0,0,0,.025) !important;

    max-height: min(76vh, 790px);
    overflow-x: hidden;
    overflow-y: auto;

    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d9d9d9 transparent;

    text-align: left;
    z-index: 405;
  }

  /*
   * Klucz v1.5:
   * Panda potrafi podzielić kolumny na kilka .m_column_row.
   * JS v1.5 liczy wszystkie kolumny i dodaje .obs-mega-grid-ready.
   * Rows stają się display:contents, więc np. samotna "Bielizna męska"
   * wraca do wspólnej siatki zamiast wisieć w osobnym rzędzie.
   */
  #top_extra.obs-header-mega-v3
  .stmenu_sub.style_wide.obs-mega-grid-ready.obs-mega-viewport-active {
    display: grid !important;
    grid-template-columns:
      repeat(var(--obs-mega-grid-cols, 3), minmax(0, 1fr)) !important;

    column-gap: 42px !important;
    row-gap: 26px !important;
  }

  #top_extra.obs-header-mega-v3
  .stmenu_sub.style_wide.obs-mega-grid-ready
  > .m_column_row {
    display: contents !important;
  }

  #top_extra.obs-header-mega-v3
  .stmenu_sub.style_wide.obs-mega-grid-ready
  > .m_column_row
  > [id^="st_menu_column_"] {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;

    flex: none !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  /* Fallback przed inicjalizacją JS: respektuj oryginalną siatkę. */
  #top_extra.obs-header-mega-v3
  .stmenu_sub.style_wide:not(.obs-mega-grid-ready)
  > .m_column_row {
    margin-left: -14px !important;
    margin-right: -14px !important;
  }

  #top_extra.obs-header-mega-v3
  .stmenu_sub.style_wide:not(.obs-mega-grid-ready)
  > .m_column_row
  > [class*="col-"] {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* --------------------------------------------------------
     Hierarchia tekstu w dropdownie
     -------------------------------------------------------- */
  #top_extra.obs-header-mega-v3 .stmenu_sub .ma_level_1,
  #top_extra.obs-header-mega-v3 .stmenu_sub a.ma_level_1,
  #top_extra.obs-header-mega-v3 .stmenu_sub .megamenu-title {
    display: inline-flex;
    align-items: center;

    margin: 0 0 8px !important;
    padding: 0 !important;

    color: var(--obs-mega-text) !important;
    background: transparent !important;

    font-family: "Open Sans", Tahoma, sans-serif, Arial !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;

    border: 0 !important;
  }

  #top_extra.obs-header-mega-v3 .stmenu_sub .ma_level_2,
  #top_extra.obs-header-mega-v3 .stmenu_sub .ma_level_3,
  #top_extra.obs-header-mega-v3 .stmenu_sub .ma_item:not(.ma_level_1) {
    color: #414141 !important;

    font-family: "Open Sans", Tahoma, sans-serif, Arial !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    line-height: 1.58 !important;

    background: transparent !important;

    transition: color .16s ease;
  }

  #top_extra.obs-header-mega-v3 .stmenu_sub a:hover,
  #top_extra.obs-header-mega-v3 .stmenu_sub a:focus-visible {
    color: var(--obs-mega-accent) !important;
  }

  #top_extra.obs-header-mega-v3 .stmenu_sub a:focus-visible {
    outline: 1px solid var(--obs-mega-accent);
    outline-offset: 3px;
  }

  #top_extra.obs-header-mega-v3 .stmenu_sub .ml_level_1 {
    margin-bottom: 14px !important;
  }

  #top_extra.obs-header-mega-v3 .stmenu_sub .ml_level_2,
  #top_extra.obs-header-mega-v3 .stmenu_sub .ml_level_3 {
    margin: 0 !important;
    padding: 2px 0 !important;
  }

  #top_extra.obs-header-mega-v3 .stmenu_sub .mu_level_2 {
    margin-top: 1px !important;
    margin-bottom: 12px !important;
  }

  #top_extra.obs-header-mega-v3 .stmenu_sub .list_arrow {
    margin-right: 7px !important;

    color: #a3a3a3 !important;
    opacity: .62 !important;

    font-size: 10px !important;
  }

  #top_extra.obs-header-mega-v3 .stmenu_sub .cate_label {
    margin-left: 7px !important;
    padding: 2px 5px !important;

    font-size: 9px !important;
    font-weight: 600 !important;
    letter-spacing: .04em !important;
  }

  /* --------------------------------------------------------
     Obrazy kategorii z natywnej opcji show_cate_img
     -------------------------------------------------------- */
  #top_extra.obs-header-mega-v3 .menu_cate_img {
    display: block !important;
    position: relative;

    margin: 0 0 15px !important;

    overflow: hidden;
    background: #f6f6f6;
  }

  #top_extra.obs-header-mega-v3 .menu_cate_img img {
    display: block !important;

    width: 100% !important;
    height: 180px !important;

    object-fit: cover !important;
    object-position: center !important;

    transition: transform .35s ease, opacity .35s ease;
  }

  #top_extra.obs-header-mega-v3 .menu_cate_img:hover img {
    transform: scale(1.018);
    opacity: .96;
  }

  /* --------------------------------------------------------
     CUSTOM CONTENT — Editorial cards
     Gotowe klasy do użycia z ST Mega Menu -> Custom content.
     -------------------------------------------------------- */
  #top_extra.obs-header-mega-v3 .style_content {
    margin: 0 !important;
    padding: 0 !important;
  }

  #top_extra.obs-header-mega-v3 .obs-mega-editorial-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  #top_extra.obs-header-mega-v3 .obs-mega-editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    width: 100%;
  }

  #top_extra.obs-header-mega-v3 .obs-mega-editorial-card {
    position: relative;
    display: block;

    min-height: 220px;
    overflow: hidden;

    background: #f2f2f2;
    color: #fff !important;

    text-decoration: none !important;
  }

  #top_extra.obs-header-mega-v3 .obs-mega-editorial-card--large {
    min-height: 390px;
  }

  #top_extra.obs-header-mega-v3 .obs-mega-editorial-card--small {
    min-height: 185px;
  }

  #top_extra.obs-header-mega-v3 .obs-mega-editorial-card > img,
  #top_extra.obs-header-mega-v3 .obs-mega-editorial-card > picture,
  #top_extra.obs-header-mega-v3 .obs-mega-editorial-card > picture > img {
    position: absolute;
    inset: 0;

    display: block;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center !important;

    transition: transform .45s ease, filter .45s ease;
  }

  #top_extra.obs-header-mega-v3 .obs-mega-editorial-card::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
      to top,
      rgba(0,0,0,.46) 0%,
      rgba(0,0,0,.12) 45%,
      rgba(0,0,0,0) 72%
    );

    pointer-events: none;
  }

  #top_extra.obs-header-mega-v3 .obs-mega-editorial-card:hover > img,
  #top_extra.obs-header-mega-v3 .obs-mega-editorial-card:hover > picture > img {
    transform: scale(1.025);
  }

  #top_extra.obs-header-mega-v3 .obs-mega-editorial-copy {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;

    color: #fff;
  }

  #top_extra.obs-header-mega-v3 .obs-mega-editorial-eyebrow {
    display: block;
    margin-bottom: 5px;

    font-family: "Open Sans", Tahoma, sans-serif, Arial;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .16em;
    text-transform: uppercase;

    opacity: .9;
  }

  #top_extra.obs-header-mega-v3 .obs-mega-editorial-title {
    display: block;
    margin: 0;

    font-family: "Open Sans", Tahoma, sans-serif, Arial;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.12;
  }

  #top_extra.obs-header-mega-v3 .obs-mega-editorial-link {
    display: inline-block;
    margin-top: 11px;
    padding-bottom: 2px;

    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.7);

    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  /* Promo card jasny */
  #top_extra.obs-header-mega-v3 .obs-mega-editorial-card--light {
    color: #111 !important;
    background: #f5f1f3;
  }

  #top_extra.obs-header-mega-v3 .obs-mega-editorial-card--light::after {
    background: linear-gradient(
      to top,
      rgba(255,255,255,.94) 0%,
      rgba(255,255,255,.20) 52%,
      rgba(255,255,255,0) 74%
    );
  }

  #top_extra.obs-header-mega-v3
  .obs-mega-editorial-card--light
  .obs-mega-editorial-copy,
  #top_extra.obs-header-mega-v3
  .obs-mega-editorial-card--light
  .obs-mega-editorial-link {
    color: #111;
  }

  #top_extra.obs-header-mega-v3
  .obs-mega-editorial-card--light
  .obs-mega-editorial-link {
    border-bottom-color: rgba(0,0,0,.45);
  }

  /* --------------------------------------------------------
     Klasy pomocnicze dla kolumn rozpoznanych przez JS
     -------------------------------------------------------- */
  #top_extra.obs-header-mega-v3 .obs-mega-editorial-column {
    align-self: stretch;
  }

  #top_extra.obs-header-mega-v3
  .obs-mega-editorial-column
  > .style_content {
    height: 100%;
  }

  /* Klasyczny, mały dropdown (gdy menu nie jest is_mega). */
  #top_extra.obs-header-mega-v3 .stmenu_sub.stmenu_multi_level {
    min-width: 260px !important;
    padding: 10px 0 !important;

    background: #fff !important;
    border: 1px solid var(--obs-mega-line) !important;

    box-shadow:
      0 14px 34px rgba(0,0,0,.065),
      0 3px 8px rgba(0,0,0,.02) !important;
  }

  #top_extra.obs-header-mega-v3
  .stmenu_sub.stmenu_multi_level
  > li
  > a {
    padding: 9px 18px !important;

    color: #252525 !important;

    font-family: "Open Sans", Tahoma, sans-serif, Arial !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
  }

  #top_extra.obs-header-mega-v3
  .stmenu_sub.stmenu_multi_level
  > li
  > a:hover {
    color: var(--obs-mega-accent) !important;
    background: #fafafa !important;
  }
}

/* Laptop: ciaśniej, ale bez zmiany mechaniki. */
@media screen and (min-width: 1200px) and (max-width: 1500px) {
  #top_extra.obs-header-mega-v3 {
    --obs-mega-content-max: 1320px;
  }

  #top_extra.obs-header-mega-v3
  #st_mega_menu_wrap
  > ul.st_mega_menu.mu_level_0
  > li.ml_level_0
  > a.ma_level_0 {
    padding-left: 13px !important;
    padding-right: 13px !important;
    font-size: 13.5px !important;
  }

  #top_extra.obs-header-mega-v3
  .stmenu_sub.style_wide.obs-mega-grid-ready {
    column-gap: 30px !important;
  }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  #top_extra.obs-header-mega-v3 {
    --obs-mega-content-max: 1120px;
  }

  #top_extra.obs-header-mega-v3
  #st_mega_menu_wrap
  > ul.st_mega_menu.mu_level_0
  > li.ml_level_0
  > a.ma_level_0 {
    padding-left: 9px !important;
    padding-right: 9px !important;
    font-size: 12.5px !important;
  }

  #top_extra.obs-header-mega-v3
  .stmenu_sub.style_wide.obs-mega-grid-ready {
    column-gap: 22px !important;
  }

  #top_extra.obs-header-mega-v3 .stmenu_sub .ma_level_1 {
    font-size: 14px !important;
  }

  #top_extra.obs-header-mega-v3 .stmenu_sub .ma_level_2,
  #top_extra.obs-header-mega-v3 .stmenu_sub .ma_level_3,
  #top_extra.obs-header-mega-v3 .stmenu_sub .ma_item:not(.ma_level_1) {
    font-size: 12.5px !important;
  }

  #top_extra.obs-header-mega-v3 .obs-mega-editorial-card--large {
    min-height: 320px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #top_extra.obs-header-mega-v3 *,
  #side_stmobilemenu * {
    transition: none !important;
    animation: none !important;
  }
}


/* ==========================================================
   v1.5.2 SAFE VIEWPORT HOTFIX
   ==========================================================
   Ważne:
   - NIE zmieniamy overflow na LI/UL/wrapperach Panda,
   - NIE ingerujemy w mechanizm ukrywania submenu,
   - tylko AKTYWNY panel wide dostaje pozycjonowanie viewportowe.
   ========================================================== */

@media screen and (min-width: 992px) {

  /*
   * Klasa jest dodawana wyłącznie panelowi, którego top-level LI
   * jest aktualnie hover/focus. Po opuszczeniu pozycji JS ją usuwa.
   */
  #top_extra.obs-header-mega-v3
  .st_mega_menu
  > .ml_level_0
  > .stmenu_sub.style_wide.obs-mega-viewport-active {
    position: fixed !important;

    left: 0 !important;
    right: auto !important;

    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;

    margin: 0 !important;

    box-sizing: border-box !important;

    transform: none !important;

    /*
     * top jest ustawiany inline przez JS na faktyczny dół paska menu.
     */
    z-index: 10020 !important;
  }

  /*
   * Gdy przeglądarka raportuje szerokość scrollbarową inaczej,
   * 100dvw jest lepszym ograniczeniem niż samo 100vw.
   */
  @supports (width: 100dvw) {
    #top_extra.obs-header-mega-v3
    .st_mega_menu
    > .ml_level_0
    > .stmenu_sub.style_wide.obs-mega-viewport-active {
      width: 100dvw !important;
      max-width: 100dvw !important;
    }
  }
}


/* ==========================================================
   v1.5.3 — VISIBILITY SAFETY FIX
   ==========================================================
   Grid nie może wymuszać widoczności ukrytego submenu.
   Panda/ST Mega Menu zachowuje pełną kontrolę nad display:none.
   ========================================================== */

@media screen and (min-width: 992px) {

  #top_extra.obs-header-mega-v3
  .stmenu_sub.style_wide.obs-mega-grid-ready.obs-mega-viewport-active {
    display: grid !important;
    grid-template-columns:
      repeat(var(--obs-mega-grid-cols, 3), minmax(0, 1fr)) !important;
  }

}

/* ==========================================================
   Obsessive MegaMenu v1.6.1 — stable hover + mobile accordion
   ========================================================== */

@media screen and (min-width: 992px) {
  /* Remove even a one-pixel dead zone between the nav and fixed panel. */
  #top_extra.obs-header-mega-v3 .stmenu_sub.style_wide.obs-mega-viewport-active {
    margin-top: -1px !important;
  }

  /* Keep active link visually active during the short hover grace period. */
  #top_extra.obs-header-mega-v3
  #st_mega_menu_wrap
  > ul.st_mega_menu.mu_level_0
  > li.ml_level_0.obs-mega-item-active
  > a.ma_level_0 {
    color: var(--obs-mega-accent) !important;
  }

  #top_extra.obs-header-mega-v3
  #st_mega_menu_wrap
  > ul.st_mega_menu.mu_level_0
  > li.ml_level_0.obs-mega-item-active
  > a.ma_level_0::after {
    opacity: 1 !important;
    transform: scaleX(1) !important;
  }
}


/* ===============================================================
   Obsessive Mobile Drawer v1.7.2
   ONE source of mobile truth — no legacy +/- glyph or percentage width.

   Panda's "push sidebar" motion assumes a 320px menu. Changing the
   drawer width to 92vw / 392px makes the canvas offset disagree with
   the menu width. Keep the compatible 320px width until the Panda
   sidebar transition is explicitly changed to "Slide in on top".

   Use dedicated buttons injected by obs megamenu JS. Never depend on
   the visibility of Panda's native .opener or its icon font.
   =============================================================== */
@media screen and (max-width: 991px) {
  body #side_stmobilemenu {
    width: 320px !important;
    max-width: min(320px, calc(100vw - 16px)) !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #fff !important;
    border-right: 1px solid #eee !important;
    box-shadow: 8px 0 35px rgba(0,0,0,.07) !important;
    font-family: "Open Sans", Tahoma, Arial, sans-serif !important;
    -webkit-overflow-scrolling: touch;
  }

  body #side_stmobilemenu,
  body #side_stmobilemenu * {
    box-sizing: border-box !important;
  }

  body #side_stmobilemenu .st-menu-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 68px !important;
    padding: 0 16px 0 22px !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #eee !important;
    box-shadow: none !important;
  }

  body #side_stmobilemenu .st-menu-header .st-menu-title {
    position: static !important;
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #161616 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: .012em !important;
    line-height: 1.3 !important;
    text-align: left !important;
    text-transform: none !important;
  }

  /* Preserve Panda's own close handler, but draw a predictable X icon. */
  body #side_stmobilemenu .st-menu-header .close_right_side {
    position: relative !important;
    display: flex !important;
    flex: 0 0 40px !important;
    align-items: center !important;
    justify-content: center !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    order: 2 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 0 0 6px !important;
    overflow: visible !important;
    background: #f8f8f8 !important;
    color: #333 !important;
    border: 1px solid #efefef !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transform: none !important;
    cursor: pointer !important;
  }
  body #side_stmobilemenu .st-menu-header .close_right_side i,
  body #side_stmobilemenu .st-menu-header .close_right_side svg {
    display: none !important;
  }
  body #side_stmobilemenu .st-menu-header .close_right_side::before,
  body #side_stmobilemenu .st-menu-header .close_right_side::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    display: block !important;
    width: 15px !important;
    height: 1.5px !important;
    margin: 0 !important;
    border: 0 !important;
    background: #333 !important;
    opacity: 1 !important;
    transform: translate(-50%,-50%) rotate(45deg) !important;
    pointer-events: none !important;
  }
  body #side_stmobilemenu .st-menu-header .close_right_side::after {
    transform: translate(-50%,-50%) rotate(-45deg) !important;
  }

  body #side_stmobilemenu #st_mobile_menu,
  body #side_stmobilemenu #st_mobile_menu_ul {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    background: #fff !important;
  }

  body #side_stmobilemenu #st_mobile_menu {
    padding: 0 !important;
    margin: 0 !important;
  }

  body #side_stmobilemenu #st_mobile_menu_ul {
    display: block !important;
    padding: 8px 18px 35px !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  body #side_stmobilemenu #st_mobile_menu_ul li,
  body #side_stmobilemenu #st_mobile_menu_ul ul {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Stable flex row: text and toggle each occupy their own space. */
  body #side_stmobilemenu #st_mobile_menu_ul li > .menu_a_wrap {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
  }

  body #side_stmobilemenu #st_mobile_menu_ul li > .menu_a_wrap > a {
    position: relative !important;
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    float: none !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    padding: 13px 5px 13px 3px !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #1c1c1c !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  body #side_stmobilemenu #st_mobile_menu_ul > li {
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #ededed !important;
    background: #fff !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul > li > .menu_a_wrap {
    min-height: 56px !important;
  }

  /* We draw the button ourselves; Panda's .opener is still in the DOM
     for the module's integrity but cannot protrude outside the drawer. */
  body #side_stmobilemenu #st_mobile_menu_ul li > .menu_a_wrap > .opener {
    display: none !important;
    flex: 0 0 0 !important;
  }

  body #side_stmobilemenu #st_mobile_menu_ul li > .menu_a_wrap > button.obs-mobile-accordion-toggle {
    appearance: none !important;
    position: relative !important;
    display: block !important;
    flex: 0 0 44px !important;
    align-self: center !important;
    float: none !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 -1px 0 0 !important;
    line-height: 1 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #333 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  body #side_stmobilemenu #st_mobile_menu_ul button.obs-mobile-accordion-toggle::before,
  body #side_stmobilemenu #st_mobile_menu_ul button.obs-mobile-accordion-toggle::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    display: block !important;
    width: 13px !important;
    height: 1.5px !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: currentColor !important;
    transform: translate(-50%, -50%) !important;
    opacity: 1 !important;
    pointer-events: none !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul button.obs-mobile-accordion-toggle::after {
    width: 1.5px !important;
    height: 13px !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul li.obs-mobile-open > .menu_a_wrap > button.obs-mobile-accordion-toggle {
    background: #fff0f6 !important;
    color: #de237b !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul li.obs-mobile-open > .menu_a_wrap > button.obs-mobile-accordion-toggle::after {
    opacity: 0 !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul button.obs-mobile-accordion-toggle:focus-visible {
    outline: 2px solid #de237b !important;
    outline-offset: -3px !important;
  }

  /* Nested categories with a subtle left indent instead of nested columns. */
  body #side_stmobilemenu #st_mobile_menu_ul li > .mo_sub_ul,
  body #side_stmobilemenu #st_mobile_menu_ul li > .stmobilemenu_column {
    display: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul li.obs-mobile-open > .mo_sub_ul,
  body #side_stmobilemenu #st_mobile_menu_ul li.obs-mobile-open > .stmobilemenu_column {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul .mo_sub_ul {
    padding: 0 0 7px 13px !important;
    border: 0 !important;
    background: #fff !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul .mo_sub_ul li {
    border: 0 !important;
    border-bottom: 1px solid #f4f4f4 !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul .mo_sub_ul li > .menu_a_wrap {
    min-height: 46px !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul .mo_sub_ul li > .menu_a_wrap > a {
    padding: 11px 5px 11px 3px !important;
    color: #3c3c3c !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul li.obs-mobile-open > .menu_a_wrap > a {
    color: #de237b !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul li.obs-mobile-open > .menu_a_wrap {
    border-bottom-color: #f5e2eb !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul .obs-mega-editorial-card {
    display: none !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul .stmobilemenu_column {
    padding: 9px 0 14px 13px !important;
  }

  @media (prefers-reduced-motion: reduce) {
    body #side_stmobilemenu * { transition: none !important; }
  }
}


/* ==========================================================
   OBSESSIVE v1.7.2 — refined mobile drawer / visual hierarchy
   Keep Panda's exact 320px push-drawer width and JS accordion.
   No markup, click handler, or category link is replaced here.
   ========================================================== */
@media screen and (max-width: 991px) {
  body #side_stmobilemenu {
    scrollbar-width: thin;
    scrollbar-color: #e6e3e5 transparent;
    overscroll-behavior-y: contain;
  }
  body #side_stmobilemenu .st-menu-header {
    min-height: 83px !important;
    padding: 11px 18px 10px 23px !important;
    border-bottom: 1px solid #f1eff0 !important;
  }
  body #side_stmobilemenu .st-menu-header .st-menu-title {
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: -.025em !important;
    line-height: 1.28 !important;
  }
  body #side_stmobilemenu .st-menu-header .st-menu-title::before {
    content: "OBSESSIVE" !important;
    display: block !important;
    margin-bottom: 4px !important;
    font: 600 9px/1.15 'Open Sans',Tahoma,Arial,sans-serif !important;
    letter-spacing: .21em !important;
    color: #a78392 !important;
  }
  body #side_stmobilemenu .st-menu-header .close_right_side {
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    background: #fff !important;
    border-color: #eae7e9 !important;
    border-radius: 50% !important;
    transition: border-color .2s ease, background .2s ease !important;
  }
  body #side_stmobilemenu .st-menu-header .close_right_side:hover {
    border-color: #e9c1d2 !important;
    background: #fff5f9 !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul {
    padding: 12px 18px 45px !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul > li {
    border-bottom-color: #f1eff0 !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul > li > .menu_a_wrap {
    min-height: 55px !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul > li > .menu_a_wrap > a {
    padding: 14px 7px 14px 7px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: -.005em !important;
    color: #1a1719 !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul li > .menu_a_wrap > button.obs-mobile-accordion-toggle {
    flex-basis: 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    color: #555052 !important;
    transition: background-color .18s ease, color .18s ease !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul li > .menu_a_wrap > button.obs-mobile-accordion-toggle::before,
  body #side_stmobilemenu #st_mobile_menu_ul li > .menu_a_wrap > button.obs-mobile-accordion-toggle::after {
    background: currentColor !important;
    border-radius: 2px !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul li.obs-mobile-open > .menu_a_wrap > button.obs-mobile-accordion-toggle {
    background: #fff0f6 !important;
    color: #d92370 !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul li.obs-mobile-open > .menu_a_wrap > a {
    color: #d92370 !important;
    font-weight: 600 !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul > li.obs-mobile-open > .menu_a_wrap::before {
    content: '' !important;
    position: absolute !important;
    left: -18px !important;
    top: 12px !important;
    bottom: 12px !important;
    width: 2px !important;
    background: #de237b !important;
    border-radius: 2px !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul .mo_sub_ul {
    padding: 6px 8px 9px 12px !important;
    margin: 0 0 12px 6px !important;
    background: #faf9fa !important;
    border-left: 1px solid #f4e1e9 !important;
    border-radius: 0 8px 8px 0 !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul .mo_sub_ul li {
    background: transparent !important;
    border-bottom-color: #f0ecee !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul .mo_sub_ul li:last-child {
    border-bottom-color: transparent !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul .mo_sub_ul li > .menu_a_wrap > a {
    padding: 12px 5px 12px 6px !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    color: #4a4246 !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul .mo_sub_ul li.obs-mobile-open > .menu_a_wrap > a {
    color: #d92370 !important;
    font-weight: 600 !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul .mo_sub_ul .mo_sub_ul {
    background: #fff !important;
    border-color: #f6e3eb !important;
    margin-left: 6px !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul button.obs-mobile-accordion-toggle:hover {
    background: #f6f3f4 !important;
  }
  body #side_stmobilemenu #st_mobile_menu_ul button.obs-mobile-accordion-toggle:focus-visible,
  body #side_stmobilemenu .st-menu-header .close_right_side:focus-visible {
    outline: 2px solid #de237b !important;
    outline-offset: 2px !important;
  }
}
