/* MyToui Theme 3.13.2 — desktop-only ownership layer.
 * Nothing in this file applies at phone widths. */
@media (min-width:769px){
  /* Restore QuickTheme's native desktop header. Mobile drawer markup remains in the DOM,
     but cannot alter desktop geometry. */
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .header-main{
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
    max-width:1540px!important;
    min-height:75px!important;
    margin:0 auto!important;
    padding:15px 20px!important;
    gap:clamp(14px,1.4vw,26px)!important;
    direction:rtl!important;
    overflow:visible!important;
  }
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .site-logo,
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .main-navigation,
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .header-actions{order:initial!important}
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .site-logo{display:block!important;flex:0 0 auto!important;min-width:0!important}
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .site-logo img{display:block!important;width:auto!important;max-width:180px!important;max-height:50px!important;height:auto!important;object-fit:contain!important}
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .mobile-menu-toggle{display:none!important;position:static!important;inset:auto!important}
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .main-navigation{
    position:static!important;inset:auto!important;display:flex!important;flex:1 1 auto!important;flex-direction:row!important;
    align-items:center!important;justify-content:center!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;
    margin:0!important;padding:0!important;overflow:visible!important;visibility:visible!important;opacity:1!important;transform:none!important;
    border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;contain:none!important;isolation:auto!important;
  }
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .mobile-menu-header{display:none!important}
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .mobile-menu-body{display:contents!important;padding:0!important;overflow:visible!important}
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .main-navigation .nav-menu,
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .main-navigation .mobile-menu-body>ul{
    display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;
    width:auto!important;min-width:0!important;margin:0!important;padding:0!important;gap:clamp(8px,1vw,16px)!important;list-style:none!important;visibility:visible!important;opacity:1!important;
  }
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .main-navigation li{display:block!important;width:auto!important;margin:0!important;padding:0!important;border:0!important}
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .main-navigation li>a{
    display:inline-flex!important;align-items:center!important;width:auto!important;min-height:34px!important;margin:0!important;padding:5px 0!important;
    font-size:clamp(11px,.78vw,14px)!important;line-height:1.25!important;white-space:nowrap!important;text-decoration:none!important;
  }
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .header-actions{
    position:static!important;inset:auto!important;display:flex!important;flex:0 0 auto!important;flex-direction:row!important;align-items:center!important;gap:16px!important;margin:0!important;
  }
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .mytoui-social-strip.is-header,
  body.mytoui-theme .main-navigation[data-mytoui-desktop-native-only="yes"] :is(.mytoui-social-strip,.mytoui-mobile-menu-brand,.mytoui-mobile-menu-search,.mytoui-mobile-menu-best,.mytoui-mobile-menu-categories,.mytoui-mobile-menu-feature,.mytoui-mobile-menu-trust,.mytoui-mobile-menu-scrollcue){display:none!important}

  /* Homepage desktop sections use one restrained content width. */
  body.mytoui-theme:is(.home,.front-page) :is(.mytoui-category-section--home,.mytoui-home-best,.latest-products-section){
    box-sizing:border-box!important;width:min(1440px,calc(100% - 48px))!important;max-width:1440px!important;margin-inline:auto!important;
  }
  body.mytoui-theme:is(.home,.front-page) :is(.mytoui-category-section--home,.mytoui-home-best) .mytoui-slider-shell{width:100%!important;max-width:100%!important}

  /* Category cards: five-up desktop proportions, compact copy. */
  body.mytoui-theme .mytoui-category-section--home .mytoui-category-card{height:auto!important;min-height:0!important;border-radius:14px!important;overflow:hidden!important}
  body.mytoui-theme .mytoui-category-section--home .mytoui-category-card__link{height:auto!important;min-height:0!important}
  body.mytoui-theme .mytoui-category-section--home .mytoui-category-card__image{width:100%!important;min-height:0!important;aspect-ratio:1/1!important;overflow:hidden!important}
  body.mytoui-theme .mytoui-category-section--home .mytoui-category-card__image>img{display:block!important;width:100%!important;height:100%!important;min-height:0!important;object-fit:cover!important}
  body.mytoui-theme .mytoui-category-section--home .mytoui-category-card__content{min-height:64px!important;padding:9px 10px 10px!important;gap:4px!important;justify-content:center!important}
  body.mytoui-theme .mytoui-category-section--home .mytoui-category-card__content h3{margin:0!important;font-size:14px!important;line-height:1.35!important;-webkit-line-clamp:2!important}
  body.mytoui-theme .mytoui-category-section--home .mytoui-category-card__count{font-size:11px!important;line-height:1.3!important}
  body.mytoui-theme .mytoui-category-section--home .mytoui-category-card__button{display:none!important}

  /* Best sellers: same visual density as normal desktop product cards. The image rule
     targets only the actual product image; WordPress emoji images inside titles remain 1em. */
  body.mytoui-theme .mytoui-home-best__card[data-card-layout="vertical"]{
    display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;max-height:none!important;border-radius:14px!important;overflow:hidden!important;
  }
  body.mytoui-theme .mytoui-home-best__card[data-card-layout="vertical"]>.mytoui-home-best__image{
    display:block!important;flex:0 0 auto!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:1/1!important;object-fit:cover!important;
    border-radius:14px 14px 0 0!important;
  }
  body.mytoui-theme .mytoui-home-best__card .emoji,
  body.mytoui-theme .mytoui-home-best__card img.emoji{display:inline!important;width:1em!important;height:1em!important;min-width:1em!important;min-height:1em!important;max-width:1em!important;max-height:1em!important;margin:0 .08em!important;vertical-align:-.1em!important;object-fit:contain!important;border-radius:0!important}
  body.mytoui-theme .mytoui-home-best__card[data-card-layout="vertical"]>.mytoui-home-best__copy{
    display:flex!important;flex:1 1 auto!important;flex-direction:column!important;justify-content:flex-start!important;gap:5px!important;min-height:104px!important;padding:10px 11px 12px!important;
  }
  body.mytoui-theme .mytoui-home-best__name{font-size:14px!important;line-height:1.38!important;text-align:center!important;-webkit-line-clamp:2!important}
  body.mytoui-theme .mytoui-home-best__stock{font-size:11px!important;text-align:center!important;margin:0!important}
  body.mytoui-theme .mytoui-home-best__price{font-size:17px!important;line-height:1.15!important;justify-content:center!important;margin-top:auto!important}
  body.mytoui-theme .mytoui-home-best__price del{font-size:12px!important}
  body.mytoui-theme .mytoui-home-best__identity{font-size:10px!important;padding:3px 5px!important;align-self:center!important}
  body.mytoui-theme .mytoui-home-best__badge{font-size:var(--mt-best-badge-size,13px)!important;padding:var(--mt-best-badge-py,5px) var(--mt-best-badge-px,10px)!important;line-height:1!important;min-height:0!important}
  body.mytoui-theme .mytoui-home-best__card[data-card-layout="vertical"]>.mytoui-home-best__badge{top:var(--mt-best-badge-y,10px)!important;left:var(--mt-best-badge-x,10px)!important;right:auto!important;bottom:auto!important}

  /* Desktop links stay links. Mouse dragging is disabled in JS, and clones cannot
     create an invisible interaction layer above real cards. */
  body.mytoui-theme .mytoui-slider-shell :is(.mytoui-home-best__card,.mytoui-category-card__link,.mytoui-product-card a){cursor:pointer!important}

  /* Social rows: center the actual icons, not fourteen empty grid cells. The max width
     still means at most 14 icons can occupy a row before wrapping. */
  body.mytoui-theme .mytoui-social-strip.is-footer,
  body.mytoui-theme .mytoui-home-guide .mytoui-social-strip,
  body.mytoui-theme .mytoui-thankyou__social{
    display:flex!important;flex-flow:row wrap!important;align-items:flex-start!important;justify-content:center!important;
    grid-template-columns:none!important;width:fit-content!important;max-width:calc((var(--mt-social-size,44px) * 14) + (var(--mt-social-gap,10px) * 13))!important;
    margin-inline:auto!important;gap:var(--mt-social-gap,10px)!important;
  }
  body.mytoui-theme .mytoui-thankyou__social{--mt-social-size:var(--mt-ty-social-size,48px);--mt-social-gap:var(--mt-ty-social-gap,10px)}
  body.mytoui-theme .mytoui-social-strip.is-footer .mytoui-social-item,
  body.mytoui-theme .mytoui-home-guide .mytoui-social-strip .mytoui-social-item,
  body.mytoui-theme .mytoui-thankyou__social .mytoui-social-item{flex:0 0 var(--mt-social-size,44px)!important;width:var(--mt-social-size,44px)!important;max-width:var(--mt-social-size,44px)!important}
  body.mytoui-theme .mytoui-thankyou__social-section{text-align:center!important;justify-items:center!important}

  /* Keep desktop autoplay visually smooth and avoid accidental text/image selection. */
  body.mytoui-theme .is-mytoui-context-slider{user-select:auto!important;cursor:default!important}


  /* Entire desktop card surface is clickable. Decorative children never intercept the anchor click. */
  body.mytoui-theme .mytoui-home-best__card > :not(.mytoui-home-best__badge),
  body.mytoui-theme .mytoui-category-section--home .mytoui-category-card__link > *{pointer-events:none!important}
  body.mytoui-theme .mytoui-home-best__card,
  body.mytoui-theme .mytoui-category-section--home .mytoui-category-card__link{position:relative!important;z-index:1!important;pointer-events:auto!important}

  /* A desktop sale badge belongs to the image corner, never to the text block. */
  body.mytoui-theme .mytoui-home-best__card[data-card-layout="vertical"]{position:relative!important}
  body.mytoui-theme .mytoui-home-best__card[data-card-layout="vertical"]>.mytoui-home-best__image{order:1!important}
  body.mytoui-theme .mytoui-home-best__card[data-card-layout="vertical"]>.mytoui-home-best__copy{order:2!important}
}

@media (min-width:769px) and (max-width:1099px){
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .main-navigation .nav-menu,
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .main-navigation .mobile-menu-body>ul{flex-wrap:wrap!important;gap:8px 12px!important}
  body.mytoui-theme .site-header[data-mytoui-desktop-native-header="yes"] .main-navigation li>a{font-size:11px!important}
}
