:root{
  --ls-c:#3526a9;
  --ls-navy:#0b1f4b;
  --ls-soft:#f5f7fc;
  --ls-border:#e5e9f2;
}

/* Global width safety: prevent the page from shifting to one side */
html,body{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:hidden!important;
}
body{
  background:#f5f7fc!important;
  color:#17233f!important;
}
#eo-main,main,#app,#__next,
.content_container,.home_section_container,.product_container,
.ab-home,.home-page,.page-container{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
img,video,iframe{max-width:100%}

/* Header refinement */
#eo-header{
  width:100%!important;
  max-width:100%!important;
  background:#fff!important;
}
#eo-header .ab-header-row--main{
  width:100%!important;
  max-width:100%!important;
}
#eo-header .ab-header-search-form{
  border:1px solid #e3e7ef!important;
  border-radius:14px!important;
  box-shadow:0 3px 12px rgba(11,31,75,.04)!important;
}

/* Section spacing and consistent titles */
.home_section_container{
  padding-left:clamp(12px,2.5vw,28px)!important;
  padding-right:clamp(12px,2.5vw,28px)!important;
}
.ab-plist,.ab-pgrid{
  padding-top:22px!important;
  padding-bottom:22px!important;
}
.ab-plist-header,.ab-pgrid-header{
  margin-bottom:14px!important;
}
.ab-plist-header h2,.ab-pgrid-header h2,
.section-title{
  color:var(--ls-navy)!important;
  font-weight:800!important;
  letter-spacing:-.35px!important;
}

/* Category carousel: elegant, evenly spaced cards */
.carouselWrapper:has(.category_card),
.home_section_container:has(.category_card){
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
.swiper:has(.category_card){
  max-width:100%!important;
  padding:18px 0 8px!important;
}
.category_card{
  border-radius:16px!important;
}

/* Product grids: two cards on phones, three on tablets, four on desktop.
   This intentionally overrides the conflicting one-column mobile rule
   in section 8 and the two-column rules in section 9. */
.ab-plist-viewport{
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
}
.ab-plist-track,.ab-pgrid-wrap{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  padding:8px 12px 20px!important;
  margin:0!important;
  overflow:visible!important;
  scroll-snap-type:none!important;
}
.ab-plist-card,.ab-pgrid-card{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:100%!important;
  padding:10px!important;
  border:1px solid var(--ls-border)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 4px 16px rgba(11,31,75,.06)!important;
  overflow:hidden!important;
  text-align:center!important;
}
.ab-plist-media,.ab-pgrid-media{
  width:100%!important;
  aspect-ratio:1/1!important;
  margin:0 0 9px!important;
  padding:6px!important;
  border-radius:12px!important;
  background:#f7f8fc!important;
  overflow:hidden!important;
}
.ab-plist-media img,.ab-pgrid-media img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  mix-blend-mode:multiply!important;
}
.ab-plist-info,.ab-pgrid-info{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  min-width:0!important;
  text-align:center!important;
}
.ab-plist-name,.ab-pgrid-name{
  width:100%!important;
  min-height:3.1em!important;
  margin:0!important;
  color:#17233f!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.55!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
}
.ab-plist-price-row,.ab-pgrid-price-row{
  display:flex!important;
  flex-direction:column-reverse!important;
  align-items:center!important;
  gap:2px!important;
  margin-top:auto!important;
}
.ab-plist-price,.ab-pgrid-price{
  color:var(--ls-navy)!important;
  font-size:16px!important;
  font-weight:900!important;
  font-variant-numeric:tabular-nums!important;
}
.ab-price-old{
  color:#9299a8!important;
  font-size:11px!important;
}
.ab-plist-arrows{display:none!important}

/* View-all buttons */
.ab-pgrid-viewall-btn,.ab-plist-viewall-btn{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:calc(100% - 24px)!important;
  max-width:420px!important;
  min-height:44px!important;
  margin:12px auto 0!important;
  padding:10px 16px!important;
  border:1px solid var(--ls-navy)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--ls-navy)!important;
  font-size:13px!important;
  font-weight:800!important;
  text-decoration:none!important;
}

/* Mobile */
@media(max-width:767px){
  body{padding-bottom:calc(92px + env(safe-area-inset-bottom))!important}
  .content_container,.home_section_container{
    padding-left:12px!important;
    padding-right:12px!important;
  }
  #eo-header .ab-logo img{
    height:72px!important;
    max-width:54vw!important;
  }
  .ls-topbar{
    height:38px!important;
    gap:9px!important;
    padding:0 8px!important;
  }
  .ls-social{gap:12px!important}
  .ls-social svg{width:17px!important;height:17px!important}
  .ls-phone{font-size:14px!important;white-space:nowrap!important}
  .swiper-slide:has(.category_card){
    width:68vw!important;
    max-width:260px!important;
    min-width:0!important;
  }
  .ab-plist-track,.ab-pgrid-wrap{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    padding:8px 4px 18px!important;
  }
  .ab-plist-card,.ab-pgrid-card{
    padding:8px!important;
    border-radius:14px!important;
  }
  .ab-plist-name,.ab-pgrid-name{font-size:12.5px!important}
  .ab-plist-price,.ab-pgrid-price{font-size:15px!important}
  #bn-bar{
    left:10px!important;
    right:10px!important;
    bottom:calc(8px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    min-height:66px!important;
    border:1px solid rgba(11,31,75,.08)!important;
    border-radius:19px!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 8px 28px rgba(11,31,75,.14)!important;
    backdrop-filter:blur(14px)!important;
  }
  body.bn-home #bn-bar{display:flex!important}
}

/* Tablet */
@media(min-width:768px) and (max-width:1099px){
  .ab-plist-track,.ab-pgrid-wrap{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px!important;
  }
  .ab-plist-name,.ab-pgrid-name{font-size:14px!important}
  .ab-plist-price,.ab-pgrid-price{font-size:17px!important}
}

/* Desktop */
@media(min-width:1100px){
  .ab-plist-track,.ab-pgrid-wrap{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:18px!important;
    padding-left:18px!important;
    padding-right:18px!important;
  }
  .ab-plist-card,.ab-pgrid-card{
    padding:14px!important;
    border-radius:18px!important;
  }
  .ab-plist-name,.ab-pgrid-name{font-size:15px!important}
  .ab-plist-price,.ab-pgrid-price{font-size:18px!important}
}

/* Hover only on devices that actually have a mouse */
@media(hover:hover) and (pointer:fine){
  .ab-plist-card:hover,.ab-pgrid-card:hover{
    transform:translateY(-3px)!important;
    border-color:rgba(53,38,169,.24)!important;
    box-shadow:0 10px 26px rgba(11,31,75,.11)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .ab-plist-card,.ab-pgrid-card{transition:none!important}
}
