/* Indego Fresh Store 1.6.0 | HOME HERO ONLY — no global menus, footer or product cards */
/* Colors follow the site theme; more controls live in Appearance > Customize > Indego Homepage. */
.idn-el-home-hero-layout,
.idn-home-hero-layout {
  --idn-hm-navy:var(--idn-navy,#303f78);
  --idn-hm-red:var(--idn-red,#ff0c12);
  --idn-hm-gold:var(--idn-home-hero-gold,#e8b451);
  --idn-hm-text:var(--idn-home-hero-text,#14294b);
  --idn-hm-tint:var(--idn-home-hero-hover-bg,#303f78);
  --idn-hm-radius:var(--idn-home-hero-radius,10px);
}
/* Desktop category panel — preserve current size, links, categories and URL behavior. */
.idn-el-home-hero-layout .idn-el-hero-sidebar:has(.idn-categories-list),
.idn-el-home-hero-layout .idn-home-cat-menu-v160,
.idn-home-hero-layout .idn-home-categories {
  background:#fff !important;
  border:1px solid #e1e7f1 !important;
  border-radius:var(--idn-hm-radius) !important;
  box-shadow:0 5px 18px rgba(21,37,75,.055);
  transition:box-shadow .28s ease,border-color .28s ease;
  overflow:hidden;
}
@media (hover:hover) and (pointer:fine) {
  .idn-el-home-hero-layout .idn-home-cat-menu-v160:hover,
  .idn-home-hero-layout .idn-home-categories:hover {
    border-color:#cbd5e8 !important;
    box-shadow:0 8px 25px rgba(21,37,75,.09);
  }
}
/* Scope each link, not the generic .idn-categories-list used in header/dropdowns. */
.idn-el-home-hero-layout .idn-categories-list,
.idn-home-hero-layout .idn-categories-list {padding:8px 9px!important;margin:0!important;list-style:none!important;}
.idn-el-home-hero-layout .idn-categories-list > li,
.idn-home-hero-layout .idn-categories-list > li {list-style:none!important;margin:0!important;padding:0!important;}
.idn-el-home-hero-layout .idn-categories-list > li > a,
.idn-home-hero-layout .idn-categories-list > li > a {
  position:relative;
  display:flex;align-items:center;justify-content:space-between;
  min-height:41px;
  gap:8px;
  padding:10px 13px 10px 17px!important;
  font-size:13px;line-height:1.32;
  font-weight:600;color:var(--idn-hm-text)!important;
  border:0!important;border-bottom:1px solid #edf1f7!important;
  border-radius:6px;
  background:transparent;
  text-decoration:none!important;
  isolation:isolate;
  transition:background-color .24s ease,color .24s ease,transform .24s ease;
}
.idn-el-home-hero-layout .idn-categories-list > li:last-child > a,
.idn-home-hero-layout .idn-categories-list > li:last-child > a{border-bottom-color:transparent!important}
.idn-el-home-hero-layout .idn-categories-list > li > a::before,
.idn-home-hero-layout .idn-categories-list > li > a::before {
  content:"";position:absolute;left:0;top:19%;height:62%;width:3px;
  background:var(--idn-hm-red);border-radius:8px;opacity:0;transform:scaleY(.15);
  transition:opacity .24s ease,transform .24s ease;
}
.idn-el-home-hero-layout .idn-categories-list > li > a > span,
.idn-home-hero-layout .idn-categories-list > li > a > span{
  display:inline-flex;justify-content:center;align-items:center;
  width:23px;height:23px;flex:none;border-radius:50%;font-size:16px;
  color:var(--idn-hm-navy);background:#eef1f8;
  transition:transform .24s ease,background-color .24s ease,color .24s ease;
}
@media (hover:hover) and (pointer:fine) {
  .idn-el-home-hero-layout .idn-categories-list > li > a:hover,
  .idn-home-hero-layout .idn-categories-list > li > a:hover {
    background:var(--idn-hm-tint)!important;color:var(--idn-hm-navy)!important;
    transform:translateX(3px);
  }
  .idn-el-home-hero-layout .idn-categories-list > li > a:hover::before,
  .idn-home-hero-layout .idn-categories-list > li > a:hover::before{
    opacity:1;transform:scaleY(1);
  }
  .idn-el-home-hero-layout .idn-categories-list > li > a:hover > span,
  .idn-home-hero-layout .idn-categories-list > li > a:hover > span{
    color:#fff;background:var(--idn-hm-navy);transform:translateX(3px);
  }
}
.idn-el-home-hero-layout .idn-categories-list > li > a:focus-visible,
.idn-home-hero-layout .idn-categories-list > li > a:focus-visible{
  outline:2px solid var(--idn-hm-navy);outline-offset:-2px;background:var(--idn-hm-tint)!important;
}
/* Elementor gallery/banner slider: preserve original slide images, heights and links. */
.idn-el-home-hero-layout :is(.elementor-widget-image-carousel,.elementor-widget-slides,.elementor-widget-media-carousel),
.idn-el-home-hero-layout :is(.n2-ss-slider-container,.elementor-widget-image-carousel .swiper,.elementor-widget-slides .swiper) {
  min-width:0;max-width:100%;
}
.idn-el-home-hero-layout :is(.elementor-widget-image-carousel,.elementor-widget-slides,.elementor-widget-media-carousel) .elementor-widget-container,
.idn-el-home-hero-layout :is(.elementor-widget-image-carousel,.elementor-widget-slides,.elementor-widget-media-carousel) .swiper,
.idn-el-home-hero-layout .n2-ss-slider-container {
  border-radius:var(--idn-hm-radius);
  overflow:hidden;
}
.idn-el-home-hero-layout :is(.elementor-widget-image-carousel,.elementor-widget-slides,.elementor-widget-media-carousel) :is(img.swiper-slide-image,.swiper-slide-bg,.swiper-slide img) {
  transition:transform .65s cubic-bezier(.2,.7,.25,1),filter .45s ease !important;
  transform-origin:center center;
}
@media (hover:hover) and (pointer:fine) {
  .idn-el-home-hero-layout :is(.elementor-widget-image-carousel,.elementor-widget-slides,.elementor-widget-media-carousel):hover :is(.swiper-slide-active img.swiper-slide-image,.swiper-slide-active .swiper-slide-bg,.swiper-slide-active img) {
    transform:scale(1.035);filter:saturate(1.06);
  }
}
/* Slider arrows: keep click/tap targets accessible and overlay inside existing carousel. */
.idn-el-home-hero-layout :is(.elementor-swiper-button,.swiper-button-next,.swiper-button-prev) {
  width:39px;min-width:39px;height:39px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(10,29,63,.55);color:#fff!important;
  border:1px solid rgba(255,255,255,.48);
  box-shadow:0 2px 9px rgba(0,0,0,.10);
  transition:background-color .24s ease,transform .24s ease,border-color .24s ease;
}
.idn-el-home-hero-layout :is(.elementor-swiper-button,.swiper-button-next,.swiper-button-prev) :is(svg,i){color:inherit!important;fill:currentColor}
.idn-el-home-hero-layout :is(.elementor-swiper-button,.swiper-button-next,.swiper-button-prev)::after{font-size:16px}
@media (hover:hover) and (pointer:fine){
 .idn-el-home-hero-layout :is(.elementor-swiper-button,.swiper-button-next,.swiper-button-prev):hover{
   background:var(--idn-hm-navy);border-color:var(--idn-hm-gold);
   transform:translateY(-2px) scale(1.08);
 }
}
.idn-el-home-hero-layout :is(.elementor-swiper-button,.swiper-button-next,.swiper-button-prev):focus-visible{outline:2px solid var(--idn-hm-gold);outline-offset:2px}
.idn-el-home-hero-layout .swiper-pagination-bullet{width:7px;height:7px;background:rgba(255,255,255,.82);opacity:.75;transition:width .25s ease,background-color .25s ease,border-radius .25s ease}
.idn-el-home-hero-layout .swiper-pagination-bullet-active{width:21px;border-radius:10px;background:var(--idn-hm-gold);opacity:1}
/* Compatible with the theme's own non-Swiper hero banner. */
.idn-home-hero-layout .idn-hero-main {border-radius:var(--idn-hm-radius);transition:box-shadow .3s ease}
@media (hover:hover) and (pointer:fine){.idn-home-hero-layout .idn-hero-main:hover{box-shadow:0 9px 24px rgba(19,40,83,.12)}}
/* Tablet keeps category + banner side by side with a narrower sidebar. */
@media (min-width:768px) and (max-width:1024px){
 .elementor .e-con.idn-el-home-hero-layout{grid-template-columns:minmax(168px,23%) minmax(0,1fr)!important;gap:12px!important}
 .idn-home-hero-layout{grid-template-columns:minmax(168px,23%) minmax(0,1fr)!important;gap:12px!important}
 .idn-el-home-hero-layout .idn-categories-list > li > a,.idn-home-hero-layout .idn-categories-list > li > a{font-size:12px;padding:9px 10px 9px 13px!important}
}
/* Phone: category links are swipeable chips instead of a tall sidebar.
   The JS applies idn-home-cat-menu-v160 only to actual category menus,
   not to the Elementor product-loop container fixed in theme v1.5.3. */
@media (max-width:767px){
  .elementor .e-con.idn-el-home-hero-layout{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
  .elementor .e-con.idn-el-home-hero-layout > .e-con{min-width:0;max-width:100%}
  .elementor .e-con.idn-el-home-hero-layout .e-con.idn-el-hero-sidebar.idn-home-cat-menu-v160,
  .idn-el-home-hero-layout .idn-el-hero-sidebar.idn-home-cat-menu-v160 {
    display:flex!important;flex-direction:column!important;width:100%!important;
    max-width:100%!important;min-height:0!important;
    padding:8px 6px!important;margin:0!important;
  }
  .idn-home-hero-layout .idn-home-categories{display:block!important;width:100%;margin-bottom:10px}
  .idn-el-home-hero-layout .idn-home-cat-menu-v160 .elementor-widget-shortcode,
  .idn-el-home-hero-layout .idn-home-cat-menu-v160 .elementor-widget-container{width:100%;max-width:100%;min-width:0}
  .idn-el-home-hero-layout .idn-home-cat-menu-v160 .idn-categories-list,
  .idn-home-hero-layout .idn-home-categories .idn-categories-list {
     display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
     align-items:stretch;gap:7px;
     overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
     scrollbar-width:thin;scroll-snap-type:x proximity;
     padding:3px 5px 7px!important;
  }
  .idn-el-home-hero-layout .idn-home-cat-menu-v160 .idn-categories-list > li,
  .idn-home-hero-layout .idn-home-categories .idn-categories-list > li {flex:0 0 auto;scroll-snap-align:start}
  .idn-el-home-hero-layout .idn-home-cat-menu-v160 .idn-categories-list > li > a,
  .idn-home-hero-layout .idn-home-categories .idn-categories-list > li > a{
    min-height:36px;padding:8px 10px!important;border:1px solid #e1e7f0!important;
    border-radius:7px;white-space:nowrap;font-size:11.5px;gap:8px;background:#f9faff;
    transform:none!important;
  }
  .idn-el-home-hero-layout .idn-home-cat-menu-v160 .idn-categories-list > li > a > span,
  .idn-home-hero-layout .idn-home-categories .idn-categories-list > li > a > span{
    width:18px;height:18px;font-size:12px;background:#edf0f7;
  }
  .idn-el-home-hero-layout .idn-home-cat-menu-v160 .idn-categories-list > li > a:active,
  .idn-home-hero-layout .idn-home-categories .idn-categories-list > li > a:active{background:var(--idn-hm-tint)!important;color:var(--idn-hm-navy)!important}
  .idn-el-home-hero-layout :is(.elementor-swiper-button,.swiper-button-next,.swiper-button-prev){width:32px;min-width:32px;height:32px}
}
@media (max-width:380px){
 .idn-el-home-hero-layout .idn-home-cat-menu-v160 .idn-categories-list > li > a,
 .idn-home-hero-layout .idn-home-categories .idn-categories-list > li > a{font-size:11px;min-height:34px}
}
/* Motion accessibility and Customizer on/off control. */
@media (prefers-reduced-motion:reduce){
 .idn-el-home-hero-layout .idn-categories-list a,
 .idn-el-home-hero-layout .idn-categories-list a::before,
 .idn-el-home-hero-layout :is(.elementor-widget-image-carousel,.elementor-widget-slides,.elementor-widget-media-carousel) :is(img.swiper-slide-image,.swiper-slide-bg,.swiper-slide img),
 .idn-el-home-hero-layout :is(.elementor-swiper-button,.swiper-button-next,.swiper-button-prev){transition:none!important;transform:none!important}
}
body.idn-home-hover-off .idn-el-home-hero-layout .idn-categories-list a,
body.idn-home-hover-off .idn-el-home-hero-layout .idn-categories-list a::before,
body.idn-home-hover-off .idn-el-home-hero-layout :is(.elementor-widget-image-carousel,.elementor-widget-slides,.elementor-widget-media-carousel) :is(img.swiper-slide-image,.swiper-slide-bg,.swiper-slide img){transition:none!important;transform:none!important}


/* v1.6.2: restored original v1.6.0 boxed/centered category-and-slider layout.
   Keep the v1.6.1 navy/red hover design and slider animations below. */
/* Match existing navy + red theme. Keep color customizable through
   Homepage -> Category hover background (default navy). */
@media (hover:hover) and (pointer:fine) {
  body.home .idn-el-home-hero-layout .idn-categories-list > li > a:hover,
  body.home .idn-home-hero-layout .idn-categories-list > li > a:hover {
    background:var(--idn-hm-tint, var(--idn-navy,#303f78))!important;
    color:#fff!important;
  }
  body.home .idn-el-home-hero-layout .idn-categories-list > li > a:hover > span,
  body.home .idn-home-hero-layout .idn-categories-list > li > a:hover > span {
    background:var(--idn-hm-red,var(--idn-red,#ff0c12))!important;
    color:#fff!important;
    transform:translateX(2px);
  }
}
body.home .idn-el-home-hero-layout .idn-categories-list > li > a:focus-visible,
body.home .idn-home-hero-layout .idn-categories-list > li > a:focus-visible {
  background:var(--idn-hm-tint, var(--idn-navy,#303f78))!important;
  color:#fff!important;
  outline:2px solid var(--idn-hm-red,var(--idn-red,#ff0c12));
  outline-offset:-2px;
}
/* Hover colors for touch devices only when focus is keyboard-visible; normal
   taps follow links directly and never rely on hover. */


/* v1.6.3 — symmetric spacing inside the boxed home category menu.
   Preserve desktop hero position and hover colors. The v1.6.0 translateX(3px)
   had pushed the active menu item toward the right border. */
@media (min-width:768px) {
  body.home .idn-el-home-hero-layout .idn-categories-list,
  body.home .idn-home-hero-layout .idn-categories-list {
    box-sizing:border-box!important;
    width:100%!important;
    padding:8px 10px!important;
    margin:0!important;
  }
  body.home .idn-el-home-hero-layout .idn-categories-list > li,
  body.home .idn-home-hero-layout .idn-categories-list > li {
    box-sizing:border-box!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  body.home .idn-el-home-hero-layout .idn-categories-list > li > a,
  body.home .idn-home-hero-layout .idn-categories-list > li > a {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
  }
  body.home .idn-el-home-hero-layout .idn-categories-list > li > a:hover,
  body.home .idn-home-hero-layout .idn-categories-list > li > a:hover {
    transform:none!important;
  }
}


/* v1.6.8 — Mobile homepage: show only the banner/slider, not the
   optional category-chip panel next to it. The category panel is identified
   by its category list; do NOT target the generic idn-el-hero-sidebar alone,
   because the product Loop Grid uses that same class on some sites. */
@media screen and (max-width: 767px) {
  /* Elementor hero category container marked by our existing JS. */
  .elementor .e-con.idn-el-home-hero-layout .e-con.idn-el-hero-sidebar.idn-home-cat-menu-v160,
  .idn-el-home-hero-layout .idn-el-hero-sidebar.idn-home-cat-menu-v160,
  /* Theme-native homepage hero, for sites not using Elementor. */
  .idn-home-hero-layout > .idn-home-categories {
    display: none !important;
  }
}
/* No flicker before JS runs: modern browsers can detect the actual list
   immediately. Elementor product Loop Grids do not contain this list. */
@supports selector(:has(.idn-categories-list)) {
  @media screen and (max-width: 767px) {
    .elementor .e-con.idn-el-home-hero-layout .e-con.idn-el-hero-sidebar:has(.idn-categories-list),
    .idn-el-home-hero-layout .idn-el-hero-sidebar:has(.idn-categories-list) {
      display: none !important;
    }
  }
}
