
/* =========================================================
   MICEY THEME – zrobione przez Maurito
========================================================= */

/* =========================
   01) TOKENS
========================= */
.micey{
  --micey-accent: #ed006a;
  --micey-text: #111;
  --micey-muted: #666;
  --micey-divider: #f59b45;

  --micey-search-h: 44px;
  --micey-gap-nav1: 36px;
  --micey-gap-nav2: 48px;

  --micey-font-display:"Shantell Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; /* H1 */
  --micey-font-heading:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --micey-font-body:"Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --micey-font-hand:"Patrick Hand";

  --micey-w-regular: 400;
  --micey-w-medium: 500;
  --micey-w-semibold: 600;
}

/* =========================
   02) BASE (header only)
========================= */
.micey #header,
.micey #header *{
  font-family: var(--micey-font-display);
}

.micey .micey-header ul{ list-style:none; margin:0; padding:0; }
.micey .micey-header a{ text-decoration:none; color: var(--micey-text); }

/* =========================
   03) DESKTOP (A1)
========================= */
@media (min-width: 768px){

  .micey .micey-header{ background:#fff; }

  .micey .micey-header__container{
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .micey .micey-row{ width:100%; }

  /* ROW 1: logo | search | actions */
  .micey .micey-row--top{
    display:grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items:center;
    gap: 18px;
    padding: 6px 0 10px;
  }

  /* logo */
  .micey .micey-top__logo img{
    display:block;
    height: 58px;
    width:auto;
  }

  /* =========================
     SEARCH (ps_searchbar real markup)
     Your markup:
     .micey-top__search
       #_desktop_search.col-auto.ms-auto...
         #search_widget.search-widgets ...
            form > i.search + input.js-search-input + i.clear
  ========================= */

  .micey .micey-top__search{
    width: 100%;
    min-width: 0;
  }

  /* Force wrapper to full width (kills col-auto/ms-auto behavior) */
  .micey .micey-top__search #_desktop_search{
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    margin-left: 0 !important; /* override ms-auto */
  }

  .micey .micey-top__search #search_widget,
  .micey .micey-top__search .search-widgets{
    width: 100% !important;
    max-width: 100% !important;
  }

  .micey .micey-top__search #search_widget form{
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    display: block;
  }

  /* left search icon */
  .micey .micey-top__search #search_widget form .material-icons.search{
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    pointer-events: none;
    opacity: .85;
  }

  /* clear icon right */
  .micey .micey-top__search #search_widget form .material-icons.clear{
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    cursor: pointer;
    opacity: .55;
  }

  /* input full width bar */
  .micey .micey-top__search #search_widget form .js-search-input{
    width: 100% !important;
    max-width: 100% !important;
    height: var(--micey-search-h) !important;
    border: 1px solid #bfbfbf !important;
    border-radius: 2px !important;
    padding: 0 44px 0 44px !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 18px !important;
    line-height: 1 !important;
    background:#fff !important;
  }

  /* dropdown width (optional) */
  .micey .micey-top__search .search-widgets__dropdown{
    width: 100% !important;
  }

  /* =========================
     ACTIONS (login + cart from displayTop)
  ========================= */
  .micey .micey-top__actions{
    display:flex !important;
    align-items:center !important;
    gap: 18px !important;
    white-space: nowrap;
  }

  /* normalize wrappers */
  .micey .micey-top__actions .user-info,
  .micey .micey-top__actions .blockcart,
  .micey .micey-top__actions .header-block{
    display:flex !important;
    align-items:center !important;
    margin:0 !important;
  }

  /* hide label texts */
  .micey .micey-top__actions .header-block__title,
  .micey .micey-top__actions .hidden-sm-down{
    display:none !important;
  }

  /* clickable targets */
  .micey .micey-top__actions a,
  .micey .micey-top__actions button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:44px;
    min-height:44px;
    padding:0;
    border:0;
    background:transparent;
    cursor:pointer;
    position:relative;
    text-decoration:none;
    color: var(--micey-text);
  }

  /* Prevent text like "shop.. cart" from leaking */
  .micey .micey-top__actions a{
    font-size: 0 !important;
    line-height: 0 !important;
  }

  /* Keep badge readable even if anchor font-size=0 */
  .micey .micey-top__actions .cart-products-count,
  .micey .micey-top__actions .header-block__badge{
    font-size: 12px !important;
    line-height: 18px !important;
  }

  /* =========================
     SVG ICONS (folder: assets/icons/)
  ========================= */
  .micey .micey-top__actions .user-info a::before{
    content:"";
    display:inline-block;
    width: 30px;
    height: 30px;
    background: url("../icons/user.svg") center/contain no-repeat;
  }

  /* CART: cover variants of markup (a, .header-block__action-btn, .cart-preview) */
  .micey .micey-top__actions .blockcart a::before,
  .micey .micey-top__actions .blockcart .header-block__action-btn::before,
  .micey .micey-top__actions .blockcart .cart-preview::before{
    content:"";
    display:inline-block;
    width: 30px;
    height: 30px;
    background: url("../icons/cart.svg") center/contain no-repeat;
  }

  /* Hide built-in icons (material/svg/img) so only our pseudo stays */
  .micey .micey-top__actions .material-icons,
  .micey .micey-top__actions i.material-icons,
  .micey .micey-top__actions svg,
  .micey .micey-top__actions img{
    display:none !important;
  }

  /* cart badge */
  .micey .micey-top__actions .cart-products-count,
  .micey .micey-top__actions .header-block__badge{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-width: 18px;
    height: 18px;
    font-weight:700;
    border-radius: 999px;
    background: var(--micey-accent);
    color:#fff;
    position:absolute;
    right:-6px;
    top:6px;
    padding:0 5px;
  }

  /* =========================
     NAV1 (center)
  ========================= */
  .micey .micey-row--nav1{
    display:flex;
    justify-content:center;
    padding: 6px 0 6px;
  }

  .micey .micey-nav--primary ul{
    display:flex;
    justify-content:center;
    align-items:center;
    gap: var(--micey-gap-nav1);
    flex-wrap: nowrap;
  }

  .micey .micey-nav--primary a{
    font-size: 22px;
    letter-spacing: .6px;
    text-transform: uppercase;
    white-space: nowrap;
  }

  /* =========================
     DIVIDER + NAV2
  ========================= */
  .micey .micey-row--nav2{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding: 0 0 8px;
  }

  .micey .micey-divider{
    width:100%;
    border-top: 2px dashed var(--micey-divider);
    margin: 6px 0 10px;
    opacity: .95;
  }

  .micey .micey-nav--secondary ul{
    display:flex;
    justify-content:center;
    align-items:center;
    gap: var(--micey-gap-nav2);
    flex-wrap: nowrap;
  }

  .micey .micey-nav--secondary a{
    font-size: 20px;
    white-space: nowrap;
  }

  /* Safety: hide menu thumbnails/icons (broken image icons) */
  .micey .micey-header .micey-nav img,
  .micey .micey-header .micey-nav svg,
  .micey .micey-header .micey-nav .menu-icon{
    display:none !important;
  }

  /* Safety: hide duplicate label spans if menu prints twice */
  .micey .micey-header .micey-nav a span + span{
    display:none !important;
  }
}

/* =========================
   04) MOBILE (basic – later drilldown)
========================= */
@media (max-width: 767.98px){
  .micey .micey-header{ background:#fff; }
  .micey .micey-header__mobile{ padding: 8px 0; }

  .micey .micey-mobbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
  }

  .micey .micey-mobbar__logo img{
    height: 44px;
    width:auto;
    display:block;
  }

  .micey .micey-mobbar__actions{
    display:flex;
    align-items:center;
    gap: 10px;
  }

  .micey .micey-mobbar__icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    text-decoration:none;
    color:#111;
  }
}

/* =========================================================
   LEGACY (disabled): ps_mainmenu dropdown-menu styles
   Not used by miceymegamenus (.micey-mega). Kept for fallback.
========================================================= */
/*
@media (min-width: 768px){

  .micey .micey-row--nav1,
  .micey .micey-row--nav2{
    position: relative;
    z-index: 30;
  }

  .micey .micey-nav--primary li,
  .micey .micey-nav--secondary li{
    position: relative;
  }

  .micey .micey-nav--primary .dropdown-menu,
  .micey .micey-nav--secondary .dropdown-menu{
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 10px);
    width: min(1200px, calc(100vw - 48px));
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 12px 30px rgba(0,0,0,.10);
    padding: 18px 18px 22px;
    border-radius: 14px;
    z-index: 999;
  }

  .micey .micey-nav--primary li:hover > .dropdown-menu,
  .micey .micey-nav--secondary li:hover > .dropdown-menu{
    display: block;
  }

  .micey .micey-nav--primary li.is-open > .dropdown-menu,
  .micey .micey-nav--secondary li.is-open > .dropdown-menu{
    display:block;
  }

  .micey .micey-nav--primary .dropdown-menu ul,
  .micey .micey-nav--secondary .dropdown-menu ul{
    margin:0;
    padding:0;
    list-style:none;
  }

  .micey .micey-nav--primary .dropdown-menu > ul,
  .micey .micey-nav--secondary .dropdown-menu > ul{
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 18px;
  }

  .micey .micey-nav--primary ul.dropdown-menu,
  .micey .micey-nav--secondary ul.dropdown-menu{
    display:none;
    padding: 18px 18px 22px;
    border-radius: 14px;
  }

  .micey .micey-nav--primary li:hover > ul.dropdown-menu,
  .micey .micey-nav--secondary li:hover > ul.dropdown-menu,
  .micey .micey-nav--primary li.is-open > ul.dropdown-menu,
  .micey .micey-nav--secondary li.is-open > ul.dropdown-menu{
    display:block;
    width: min(1200px, calc(100vw - 48px));
    left: 50%;
    transform: translateX(-50%);
    position:absolute;
    top: calc(100% + 10px);
    background:#fff;
    border:1px solid #eee;
    box-shadow:0 12px 30px rgba(0,0,0,.10);
    z-index:999;
  }

  .micey .micey-nav--primary ul.dropdown-menu,
  .micey .micey-nav--secondary ul.dropdown-menu{
    display:none;
  }

  .micey .micey-nav--primary li:hover > ul.dropdown-menu,
  .micey .micey-nav--secondary li:hover > ul.dropdown-menu,
  .micey .micey-nav--primary li.is-open > ul.dropdown-menu,
  .micey .micey-nav--secondary li.is-open > ul.dropdown-menu{
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 18px;
  }

  .micey .micey-nav--primary .dropdown-menu a,
  .micey .micey-nav--secondary .dropdown-menu a,
  .micey .micey-nav--primary ul.dropdown-menu a,
  .micey .micey-nav--secondary ul.dropdown-menu a{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 12px;
    color: var(--micey-text);
    font-size: 18px;
    line-height: 1.1;
    text-decoration:none;
    background:#fff;
  }

  .micey .micey-nav--primary .dropdown-menu a:hover,
  .micey .micey-nav--secondary .dropdown-menu a:hover,
  .micey .micey-nav--primary ul.dropdown-menu a:hover,
  .micey .micey-nav--secondary ul.dropdown-menu a:hover{
    border-color: #ddd;
    box-shadow: 0 6px 14px rgba(0,0,0,.06);
  }

  .micey .micey-nav--primary .dropdown-menu li ul,
  .micey .micey-nav--secondary .dropdown-menu li ul,
  .micey .micey-nav--primary ul.dropdown-menu li ul,
  .micey .micey-nav--secondary ul.dropdown-menu li ul{
    margin-top: 8px;
    display:block;
  }

  .micey .micey-nav--primary .dropdown-menu li ul a,
  .micey .micey-nav--secondary .dropdown-menu li ul a,
  .micey .micey-nav--primary ul.dropdown-menu li ul a,
  .micey .micey-nav--secondary ul.dropdown-menu li ul a{
    border:0;
    padding: 6px 2px;
    border-radius: 0;
    box-shadow:none;
    background:transparent;
    font-size: 16px;
  }
}
*/

/* =========================================================
   FINAL OVERRIDES (desktop)
   - Search icon always on right (form::after)
   - Bigger user/cart icons + badge tweak
   - Mega dropdown (data-micey-mega) + dashed orange stroke
   - Drawn underline (color randomized via --micey-underline set by JS)
========================================================= */
@media (min-width: 768px){

  /* --- SEARCH: always visible icon on the RIGHT (no dependency on .clear) --- */
  .micey .micey-top__search #search_widget form{
    position: relative !important;
  }

  /* hide left search icon from module */
  .micey .micey-top__search #search_widget form .material-icons.search{
    display: none !important;
  }

  /* always visible right icon */
  .micey .micey-top__search #search_widget form::after{
    content: "" !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 26px !important;
    height: 26px !important;
    background: url("../icons/search.svg") center/contain no-repeat !important;
    pointer-events: none !important;
    opacity: 1 !important;
  }

  /* ensure input padding matches right icon */
  .micey .micey-top__search #search_widget form .js-search-input{
    padding-left: 14px !important;
    padding-right: 54px !important;
  }

  /* --- BIGGER USER/CART ICONS --- */
  .micey .micey-top__actions .user-info a::before{
    width: 48px !important;
    height: 48px !important;
  }

  .micey .micey-top__actions .blockcart a::before,
  .micey .micey-top__actions .blockcart .header-block__action-btn::before,
  .micey .micey-top__actions .blockcart .cart-preview::before{
    width: 48px !important;
    height: 48px !important;
  }

  /* badge tweak for bigger icons */
  .micey .micey-top__actions .cart-products-count,
  .micey .micey-top__actions .header-block__badge{
    right: -8px !important;
    top: 4px !important;
    min-width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
  }

  /* =========================================================
     MICEY MEGA (desktop) — anchored under NAV1 or NAV2 by JS
  ========================================================= */
  .micey #micey-header{
    position: relative;
    z-index: 50;
  }

.micey #micey-header .micey-mega{
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  padding: 0 0 18px;
  z-index: 1000;
}
  .micey #micey-header .micey-mega.is-open{ display:block; }

  .micey #micey-header .micey-mega__inner{
    margin-top: 14px;
    background:#fff;
    border:2px dashed #F0803C;
    box-shadow:0 12px 30px rgba(0,0,0,.10);
    border-radius:18px;
    padding:18px 18px 22px;
  }

  .micey #micey-header .micey-mega__panel{ display:none; }
  .micey #micey-header .micey-mega__head{
    display:flex; align-items:center; gap:12px; margin-bottom:14px;
  }
  .micey #micey-header .micey-mega__icon{
    width:40px; height:40px; object-fit:cover; border-radius:10px;
  }
  .micey #micey-header .micey-mega__title{
    font-size:22px; letter-spacing:.4px; text-transform:uppercase;
  }

  .micey #micey-header .micey-mega__grid{
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap:12px 18px;
  }

  .micey #micey-header .micey-mega__card{
    display:flex; align-items:center; gap:10px;
    padding:10px 12px;
    border:1px solid #eee;
    border-radius:12px;
    background:#fff;
    text-decoration:none;
    color: var(--micey-text);
  }
  .micey #micey-header .micey-mega__card:hover{
    border-color:#ddd;
    box-shadow:0 6px 14px rgba(0,0,0,.06);
  }
  .micey #micey-header .micey-mega__card-icon{
    width:30px; height:30px; object-fit:cover; border-radius:8px;
  }
  .micey #micey-header .micey-mega__card-title{
    font-size:18px; line-height:1.1;
  }

  /* =========================================================
     DRAWN UNDERLINE — randomized via --micey-underline set by JS
  ========================================================= */
  .micey #micey-header .micey-nav__item{
    --micey-underline: #ED006A; /* default */
  }

  .micey #micey-header .micey-nav__link{
    position:relative;
    display:inline-block;
    padding-bottom:8px;
  }

  .micey #micey-header .micey-nav__link::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:-4px;
    transform: translateX(-50%) scaleX(0);
    transform-origin:center;
    width:112%;
    max-width:140px;
    height:12px;
    opacity:.95;
    pointer-events:none;
    transition: transform .22s ease, opacity .22s ease;

    background: var(--micey-underline);

    -webkit-mask-repeat:no-repeat;
    -webkit-mask-size:100% 100%;
    -webkit-mask-position:center;
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='20' viewBox='0 0 160 20'%3E%3Cpath d='M6 14c12-5 28-7 45-6 18 1 32 6 50 5 18-1 29-6 53-7' fill='none' stroke='%23000' stroke-width='6.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 16c14-4 26-5 40-4 18 1 33 5 52 4 19-1 30-5 50-6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' opacity='0.8'/%3E%3C/svg%3E");
    mask-repeat:no-repeat;
    mask-size:100% 100%;
    mask-position:center;
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='20' viewBox='0 0 160 20'%3E%3Cpath d='M6 14c12-5 28-7 45-6 18 1 32 6 50 5 18-1 29-6 53-7' fill='none' stroke='%23000' stroke-width='6.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 16c14-4 26-5 40-4 18 1 33 5 52 4 19-1 30-5 50-6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' opacity='0.8'/%3E%3C/svg%3E");
  }

  .micey #micey-header .micey-nav__item:hover > .micey-nav__link::after,
  .micey #micey-header .micey-nav__item:focus-within > .micey-nav__link::after,
  .micey #micey-header .micey-nav__item.is-active > .micey-nav__link::after{
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
  }
}


@media (min-width: 768px){
  .micey #micey-header .micey-mega__col{
    padding: 6px 4px;
  }

  .micey #micey-header .micey-mega__sublist{
    padding:8px 6px 0;
    display:flex;
    flex-direction:column;
    gap:6px;
  }
  .micey #micey-header .micey-mega__sub{
    text-decoration:none;
    color: var(--micey-text);
    font-size:16px;
    padding:4px 6px;
    border-radius:8px;
  }
  .micey #micey-header .micey-mega__sub:hover{
    background:#f7f7f7;
  }
}

@media (min-width: 768px){
  .micey #micey-header .micey-mega__panel{ display:none; }
  .micey #micey-header .micey-mega__panel[aria-hidden="false"]{ display:block; }

  /* Dynamic columns + wrap (safe responsive) */
  .micey #micey-header .micey-mega__grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 18px;
    align-items:start;
  }

  .micey #micey-header .micey-mega__col{ min-width: 0; }

.micey #micey-header .micey-mega__col-title{
  display:block;
  padding:4px 6px;          
  border:0;                 
  border-radius:8px;        
  text-decoration:none;
  color: var(--micey-text);
  background:transparent;   
  font-size:18px;
  margin-bottom:6px;
}

.micey #micey-header .micey-mega__col-title:hover{
  background:#f7f7f7;      
}

  .micey #micey-header .micey-mega__sublist{
    padding:0 6px 12px;
    display:flex;
    flex-direction:column;
    gap:6px;
  }

  .micey #micey-header .micey-mega__sub{
    text-decoration:none;
    color: var(--micey-text);
    font-size:16px;
    padding:4px 6px;
    border-radius:8px;
  }
  .micey #micey-header .micey-mega__sub:hover{ background:#f7f7f7; }

  /* Solo link item (type=link) */
  .micey #micey-header .micey-mega__link{
    display:block;
    padding:10px 12px;
    border:1px solid #eee;
    border-radius:12px;
    background:#fff;
    text-decoration:none;
    color: var(--micey-text);
    font-size:18px;
    margin-bottom:8px;
  }
  .micey #micey-header .micey-mega__link:hover{
    border-color:#ddd;
    box-shadow:0 6px 14px rgba(0,0,0,.06);
  }
}


@media (min-width: 768px){
  .micey #micey-header .micey-nav__item:hover > .micey-nav__link,
  .micey #micey-header .micey-nav__item:focus-within > .micey-nav__link,
  .micey #micey-header .micey-nav__item.is-active > .micey-nav__link{
    color: var(--micey-hover-color, var(--micey-text));
  }
}


/* =========================================================
   05) MOBILE DRAWER + BURGER (module miceymegamenus)
   - depends on header.tpl: button[data-micey-burger]
   - depends on JS: toggles .is-open on [data-micey-drawer]
   - depends on JS: toggles html/body .micey-drawer-lock
========================================================= */

/* lock scroll when drawer open */
html.micey-drawer-lock,
body.micey-drawer-lock{
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none;
}

/* --- burger button in mobile header --- */
@media (max-width: 767.98px){

  .micey .micey-mobbar{
    position: relative;
  }

  .micey .micey-mobbar__burger{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    padding:0;
    border:0;
    background:transparent;
    cursor:pointer;
    color:#111;
    flex: 0 0 auto;
  }

  /* neon yellow hamburger icon (pure CSS) */
  .micey .micey-mobbar__burger-icn{
    position: relative;
    width: 26px;
    height: 18px;
    display:block;
  }
  .micey .micey-mobbar__burger-icn::before,
  .micey .micey-mobbar__burger-icn::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    height:3px;
    border-radius: 999px;
  }
  .micey .micey-mobbar__burger-icn::before{ top:0; }
  .micey .micey-mobbar__burger-icn::after{ bottom:0; }


}

/* --- drawer base --- */
.micey .micey-mobdrawer{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.micey .micey-mobdrawer.is-open{
  display:block;
}

/* overlay */
.micey .micey-mobdrawer__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}

/* panel (right slide) */
.micey .micey-mobdrawer__panel{
  position:absolute;
  top:0;
  right:0;
  height:100%;
  width: min(92vw, 420px);
  background:#fff;
  transform: translateX(102%);
  transition: transform .24s ease;
  display:flex;
  flex-direction:column;
  box-shadow: -18px 0 40px rgba(0,0,0,.18);
}

.micey .micey-mobdrawer.is-open .micey-mobdrawer__panel{
  transform: translateX(0);
}

/* top row inside drawer */
.micey .micey-mobdrawer__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px 10px;
}

.micey .micey-mobdrawer__close{
  width:44px;
  height:44px;
  border:0;
  border-radius: 12px;
  background: transparent;
  cursor:pointer;
  font-size: 22px;
  line-height: 1;
}

.micey .micey-mobdrawer__cart{
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  text-decoration:none;
  color:#111;
}

/* cart icon (reuse your svg if you want) */
.micey .micey-mobdrawer__cart-icn{
  width: 30px;
  height: 30px;
  display:block;
  background: url("../icons/cart.svg") center/contain no-repeat;
}

/* search area inside drawer */
.micey .micey-mobdrawer__search{
  padding: 0 14px 10px;
}

.micey .micey-mobdrawer__searchform{
  position: relative;
}

.micey .micey-mobdrawer__searchinput{
  width:100%;
  height: 44px;
  border:1px solid #bfbfbf;
  border-radius: 14px;
  padding: 0 44px 0 14px;
  font-size: 16px;
  outline:none;
}

.micey .micey-mobdrawer__searchbtn{
  position:absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border:0;
  background: url("../icons/search.svg") center/contain no-repeat;
  cursor:pointer;
}

/* divider */
.micey .micey-mobdrawer__divider{
  height: 1px;
  background: rgba(0,0,0,.10);
  margin: 10px 14px;
}
.micey .micey-mobdrawer__divider--soft{
  background: rgba(0,0,0,.06);
}

/* stack screens scroll */
.micey .micey-mobdrawer__stack{
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}

.micey .micey-mobscreen{
  position:absolute;
  inset:0;
  overflow:auto;
  padding: 0 14px 16px;
  display:none;
}

.micey .micey-mobscreen.is-active{
  display:block;
}

/* lists */
.micey .micey-moblist{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.micey .micey-mobitem{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border:1px solid #eee;
  border-radius: 14px;
  background:#fff;
  cursor:pointer;
}

.micey .micey-mobitem__icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,.06);
}

.micey .micey-mobitem__icon img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.micey .micey-mobitem__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--micey-accent);
}

.micey .micey-mobitem__label{
  font-size: 18px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

/* sub screen header */
.micey .micey-mobscreen__head{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 0 12px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.micey .micey-mobscreen__back{
  width:44px;
  height:44px;
  border:0;
  border-radius: 12px;
  background: #f7f7f7;
  cursor:pointer;
  font-size: 20px;
}

.micey .micey-mobscreen__title{
  font-size: 18px;
  text-decoration:none;
  color:#111;
  font-weight: 700;
}

/* sub items */
.micey .micey-mobsub,
.micey .micey-mobgrand{
  list-style:none;
  margin:0;
  padding:0;
}

.micey .micey-mobsub__item{
  margin-bottom: 6px;
}

.micey .micey-mobsub__link{
  display:block;
  padding: 10px 12px;
  border:1px solid #eee;
  border-radius: 14px;
  text-decoration:none;
  color:#111;
  background:#fff;
  font-size: 16px;
}

.micey .micey-mobsub__grandwrap{
  margin: 2px 0 10px;
  padding-left: 10px;
}

.micey .micey-mobgrand__link{
  display:block;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration:none;
  color:#111;
  font-size: 14px;
}
.micey .micey-mobgrand__link:hover{
  background:#f7f7f7;
}


/* =========================
   MOBILE: hard safety (drawer hidden by default)
   - do NOT depend on .micey
========================= */
.micey-mobdrawer{ display:none; }
.micey-mobdrawer.is-open{ display:block; }

/* =========================
   MOBILE HEADER LAYOUT
   burger left, logo left, actions right
========================= */
@media (max-width: 767.98px){
  .micey .micey-mobbar{
    justify-content:flex-start; /* not space-between */
    gap: 10px;
  }

  .micey .micey-mobbar__logo{
    flex: 1 1 auto;
    display:flex;
    align-items:center;
  }

  .micey .micey-mobbar__actions{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap: 10px;
    flex: 0 0 auto;
  }

  /* search button icon */
  .micey .micey-mobbar__icon{
    border:0;
    background:transparent;
    padding:0;
    width:44px;
    height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
  }
  .micey .micey-mobbar__search-icn{
    width: 28px;
    height: 28px;
    display:block;
    background: url("../icons/search.svg") center/contain no-repeat;
  }

  /* =========================
     MOBILE: make displayTop icons look like desktop (no text)
  ========================= */
  .micey .micey-mobbar__actions .header-block__title,
  .micey .micey-mobbar__actions .hidden-sm-down{
    display:none !important;
  }

  .micey .micey-mobbar__actions a,
  .micey .micey-mobbar__actions button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:44px;
    min-height:44px;
    padding:0;
    border:0;
    background:transparent;
    cursor:pointer;
    position:relative;
    text-decoration:none;
    color: #111;
  }

  .micey .micey-mobbar__actions a{
    font-size:0 !important;
    line-height:0 !important;
  }

  /* reuse your existing svg icons for user/cart */
  .micey .micey-mobbar__actions .user-info a::before{
    content:"";
    display:inline-block;
    width: 32px;
    height: 32px;
    background: url("../icons/user.svg") center/contain no-repeat;
  }

  .micey .micey-mobbar__actions .blockcart a::before,
  .micey .micey-mobbar__actions .blockcart .header-block__action-btn::before,
  .micey .micey-mobbar__actions .blockcart .cart-preview::before{
    content:"";
    display:inline-block;
    width: 32px;
    height: 32px;
    background: url("../icons/cart.svg") center/contain no-repeat;
  }

  /* hide built-in icons inside displayTop */
  .micey .micey-mobbar__actions .material-icons,
  .micey .micey-mobbar__actions svg,
  .micey .micey-mobbar__actions img{
    display:none !important;
  }

  /* badge on mobile cart */
  .micey .micey-mobbar__actions .cart-products-count,
  .micey .micey-mobbar__actions .header-block__badge{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-width: 18px;
    height: 18px;
    font-weight:700;
    border-radius: 999px;
    background: var(--micey-accent);
    color:#fff;
    position:absolute;
    right:-6px;
    top:2px;
    padding:0 5px;
    font-size: 12px !important;
    line-height: 18px !important;
  }
}


@media (max-width: 767.98px){
  .micey .micey-mobbar__burger{
    width:44px;
    height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    background:transparent;
    padding:0;
    cursor:pointer;
  }

  .micey .micey-mobbar__burger-icn{
    width: 32px;
    height: 32px;
    display:block;
    background: url("../icons/burger.svg") center/contain no-repeat;
  }
}



@media (max-width: 767.98px){

  /* 3-kolumnowy układ: left / center / right */
  .micey .micey-mobbar{
    display:grid;
    grid-template-columns: 44px 1fr 44px; /* burger | logo | cart */
    align-items:center;
    gap: 10px;
  }

  /* burger */
  .micey .micey-mobbar__burger{
    width:44px;
    height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    background:transparent;
    padding:0;
    cursor:pointer;
    justify-self:start;
  }

  /* logo CENTER */
  .micey .micey-mobbar__logo{
    justify-self:center;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .micey .micey-mobbar__logo img{
    height:44px;
    width:auto;
    display:block;
  }

  /* right actions: show ONLY cart, hide user/login */
  .micey .micey-mobbar__actions{
    justify-self:end;
    display:flex;
    align-items:center;
  }

  /* Ukryj konto na mobile w headerze */
  .micey .micey-mobbar__actions .user-info{
    display:none !important;
  }

  /* Zostaw koszyk + wymuś ikonę jak na desktop */
  .micey .micey-mobbar__actions .blockcart a::before,
  .micey .micey-mobbar__actions .blockcart .header-block__action-btn::before,
  .micey .micey-mobbar__actions .blockcart .cart-preview::before{
    content:"";
    display:inline-block;
    width: 32px;
    height: 32px;
    background: url("../icons/cart.svg") center/contain no-repeat;
  }

  /* Ukryj wbudowane ikonki w koszyku na mobile */
  .micey .micey-mobbar__actions .blockcart .material-icons,
  .micey .micey-mobbar__actions .blockcart svg,
  .micey .micey-mobbar__actions .blockcart img{
    display:none !important;
  }

  /* badge koszyka (mobile) */
  .micey .micey-mobbar__actions .cart-products-count,
  .micey .micey-mobbar__actions .header-block__badge{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-width: 18px;
    height: 18px;
    font-weight:700;
    border-radius: 999px;
    background: var(--micey-accent);
    color:#fff;
    position:absolute;
    right:-6px;
    top:6px;
    padding:0 5px;
    font-size:12px;
    line-height:18px;
  }

  /* Drawer account icon */
  .micey .micey-mobdrawer__account{
    display:inline-flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:#111;
    padding: 6px 10px;
    border-radius: 12px;
  }
  .micey .micey-mobdrawer__account-icn{
    width: 28px;
    height: 28px;
    display:block;
    background: url("../icons/user.svg") center/contain no-repeat;
  }
  .micey .micey-mobdrawer__account-txt{
    font-size:16px;
  }
}

/* =========================================
   HOME SLIDER – desktop + mobile compromise
   1 wspólny format grafik: 2:1
========================================= */

/* --- DESKTOP / TABLET --- */
@media (min-width: 768px){

  #home-slider{
    width: min(100%, 1320px);
    margin-left: auto;
    margin-right: auto;
  }

  #home-slider.ratio{
    --bs-aspect-ratio: 50% !important;
    height: auto !important;
    overflow: hidden;
  }

  #home-slider .carousel,
  #home-slider .carousel-inner,
  #home-slider .carousel-item,
  #home-slider .carousel-item.active,
  #home-slider .carousel-link,
  #home-slider .carousel-content{
    height: 100%;
  }

  #home-slider .carousel-item img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto;
  }
}


/* --- MOBILE --- */
@media (max-width: 767.98px){

  /* zdejmujemy bootstrapowe ratio, żeby nie robiło pustej przestrzeni */
  #home-slider.ratio{
    position: relative !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
  }

  #home-slider.ratio::before{
    content: none !important;
    display: none !important;
    padding-top: 0 !important;
  }

  #home-slider.ratio > .carousel{
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  #home-slider,
  #home-slider .carousel,
  #home-slider .carousel-inner,
  #home-slider .carousel-item,
  #home-slider .carousel-item.active,
  #home-slider .carousel-link,
  #home-slider .carousel-content{
    height: auto !important;
    min-height: 0 !important;
  }

  #home-slider .carousel-inner{
    overflow: hidden;
    background: transparent !important;
  }

  #home-slider .carousel-item{
    background: transparent !important;
  }

  #home-slider .carousel-link,
  #home-slider .carousel-content{
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  #home-slider .carousel-item img{
    display: block;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto;
  }

  #home-slider .carousel-control-prev,
  #home-slider .carousel-control-next{
    width: 14%;
  }

  #home-slider .carousel-indicators{
    margin-bottom: .4rem;
  }
}