/* AsinMart SAFE Marketplace UI v2
   IMPORTANT: visual-only CSS. No DB queries, routes, controllers, helpers or checkout logic. */
:root{--am-green:#063d39;--am-yellow:#f5b82e;--am-border:#e3e8e5;--am-muted:#707b76}
html,body{max-width:100%;overflow-x:hidden}
body.asinmart-brand-v2 img{max-width:100%}
body.asinmart-brand-v2 .container{width:100%;max-width:1440px;padding-inline:18px}

/* Shared product cards */
body.asinmart-brand-v2 .am-product-card{width:100%!important;min-width:0!important;height:100%!important;box-sizing:border-box!important;border:1px solid var(--am-border)!important;border-radius:10px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 1px 3px rgba(15,23,42,.06)!important}
body.asinmart-brand-v2 .am-product-card__media{width:100%!important;aspect-ratio:1/1!important;background:#fff!important;padding:8px!important}
body.asinmart-brand-v2 .am-product-card__media>img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
body.asinmart-brand-v2 .am-product-card__body{padding:12px!important;display:flex!important;flex-direction:column!important;min-width:0!important}
body.asinmart-brand-v2 .am-product-card__title{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;min-height:38px!important;max-height:38px!important;font-size:14px!important;line-height:19px!important;margin:0 0 7px!important}
body.asinmart-brand-v2 .am-product-card__footer{margin-top:auto!important}
body.asinmart-brand-v2 .am-product-card__price{display:flex!important;align-items:baseline!important;gap:6px!important;flex-wrap:wrap!important}
body.asinmart-brand-v2 .am-product-card__price strong{font-size:17px!important;font-weight:800!important;color:#111827!important}
body.asinmart-brand-v2 .am-product-card__price del{font-size:12px!important;color:#8a918e!important}

/* Browsing cards: hide direct Buy/Add controls. PDP buttons are untouched. */
body.asinmart-brand-v2 .home-premium .am-product-card__cart,
body.asinmart-brand-v2 #ajax-products-view .am-product-card__cart,
body.asinmart-brand-v2 .home-premium .am-reco-market__actions,
body.asinmart-brand-v2 .home-premium .am-trend-card__buttons{display:none!important}

/* Category/search/all-products listing: 4 / 3 / 2 / 1 */
body.asinmart-brand-v2 #ajax-products-view .am-products-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;align-items:stretch!important;width:100%!important}
body.asinmart-brand-v2 #ajax-products-view .am-products-grid.product-list-view{grid-template-columns:1fr!important}
body.asinmart-brand-v2 #ajax-products-view .am-products-grid>*{width:100%!important;min-width:0!important}

/* Shared swiper product rails */
body.asinmart-brand-v2 .main-content .swiper-wrapper:has(.am-product-card){align-items:stretch!important}
body.asinmart-brand-v2 .main-content .swiper-slide:has(.am-product-card){height:auto!important;width:calc((100% - 48px)/4)!important;max-width:calc((100% - 48px)/4)!important;min-width:0!important}
body.asinmart-brand-v2 .main-content .swiper-slide:has(.am-product-card)>.am-product-card{height:100%!important}

/* Recommended + Most Viewed use their existing working markup; only layout changes here. */
body.asinmart-brand-v2 .home-premium .am-reco-market__grid{display:flex!important;gap:16px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important;align-items:stretch!important}
body.asinmart-brand-v2 .home-premium .am-reco-market__grid::-webkit-scrollbar{display:none!important}
body.asinmart-brand-v2 .home-premium .am-reco-market__card{flex:0 0 calc((100% - 48px)/4)!important;width:auto!important;min-width:0!important;height:auto!important;scroll-snap-align:start!important}
body.asinmart-brand-v2 .home-premium .am-reco-market__media{aspect-ratio:1/1!important;display:block!important;background:#fff!important}
body.asinmart-brand-v2 .home-premium .am-reco-market__media img{width:100%!important;height:100%!important;object-fit:contain!important}
body.asinmart-brand-v2 .home-premium .am-reco-market__pricing{display:flex!important;gap:6px!important;align-items:baseline!important;flex-wrap:wrap!important}

/* Trending uses existing working data/query code, styled into the same marketplace rail. */
body.asinmart-brand-v2 .home-premium .am-trend-strip__track{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:calc((100% - 48px)/4)!important;gap:16px!important;overflow-x:auto!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important;align-items:stretch!important}
body.asinmart-brand-v2 .home-premium .am-trend-strip__track::-webkit-scrollbar{display:none!important}
body.asinmart-brand-v2 .home-premium .am-trend-card{width:100%!important;min-width:0!important;height:100%!important;scroll-snap-align:start!important;border:1px solid var(--am-border)!important;border-radius:10px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 1px 3px rgba(15,23,42,.06)!important}
body.asinmart-brand-v2 .home-premium .am-trend-card__media{aspect-ratio:1/1!important;background:#fff!important}
body.asinmart-brand-v2 .home-premium .am-trend-card__media img{width:100%!important;height:100%!important;object-fit:contain!important}

/* Brands / recently viewed rails stay aligned */
body.asinmart-brand-v2 .home-premium .am-brand-spotlight__rail,
body.asinmart-brand-v2 .home-premium #amRecentlyViewed .am-recently-viewed__track{grid-auto-columns:calc((100% - 48px)/4)!important;gap:16px!important;align-items:stretch!important}

/* Never print fake empty offer values. */
body.asinmart-brand-v2 .am-product-card__discount:empty,
body.asinmart-brand-v2 .am-reco-market__deal:empty,
body.asinmart-brand-v2 .am-reco-market__discount-text:empty,
body.asinmart-brand-v2 .am-trend-card__discount:empty{display:none!important}

@media (hover:hover) and (pointer:fine){
 body.asinmart-brand-v2 .am-product-card,body.asinmart-brand-v2 .am-reco-market__card,body.asinmart-brand-v2 .am-trend-card{transition:transform .2s ease,box-shadow .2s ease}
 body.asinmart-brand-v2 .am-product-card:hover,body.asinmart-brand-v2 .am-reco-market__card:hover,body.asinmart-brand-v2 .am-trend-card:hover{transform:translateY(-3px)!important;box-shadow:0 10px 26px rgba(15,23,42,.10)!important}
}

@media (min-width:992px) and (max-width:1199.98px){
 body.asinmart-brand-v2 #ajax-products-view .am-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.asinmart-brand-v2 .main-content .swiper-slide:has(.am-product-card){width:calc((100% - 32px)/3)!important;max-width:calc((100% - 32px)/3)!important}
 body.asinmart-brand-v2 .home-premium .am-reco-market__card{flex-basis:calc((100% - 32px)/3)!important}
 body.asinmart-brand-v2 .home-premium .am-trend-strip__track{grid-auto-columns:calc((100% - 32px)/3)!important}
 body.asinmart-brand-v2 .home-premium .am-brand-spotlight__rail,body.asinmart-brand-v2 .home-premium #amRecentlyViewed .am-recently-viewed__track{grid-auto-columns:calc((100% - 32px)/3)!important}
}
@media (min-width:768px) and (max-width:991.98px){
 body.asinmart-brand-v2 .container{padding-inline:14px}
 body.asinmart-brand-v2 #ajax-products-view .am-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
 body.asinmart-brand-v2 .main-content .swiper-slide:has(.am-product-card){width:calc((100% - 14px)/2)!important;max-width:calc((100% - 14px)/2)!important}
 body.asinmart-brand-v2 .home-premium .am-reco-market__card{flex-basis:calc((100% - 14px)/2)!important}
 body.asinmart-brand-v2 .home-premium .am-trend-strip__track{grid-auto-columns:calc((100% - 14px)/2)!important}
 body.asinmart-brand-v2 .home-premium .am-brand-spotlight__rail,body.asinmart-brand-v2 .home-premium #amRecentlyViewed .am-recently-viewed__track{grid-auto-columns:calc((100% - 14px)/2)!important}
}
@media (max-width:767.98px){
 body.asinmart-brand-v2{padding-bottom:68px}
 body.asinmart-brand-v2 .container{max-width:100%!important;padding-inline:10px!important}
 body.asinmart-brand-v2 #ajax-products-view .am-products-grid{grid-template-columns:1fr!important;gap:14px!important}
 body.asinmart-brand-v2 .main-content .swiper-slide:has(.am-product-card){width:100%!important;max-width:100%!important;flex:0 0 100%!important}
 body.asinmart-brand-v2 .home-premium .am-reco-market__grid{gap:12px!important;padding-inline:0!important}
 body.asinmart-brand-v2 .home-premium .am-reco-market__card{flex:0 0 100%!important;max-width:100%!important}
 body.asinmart-brand-v2 .home-premium .am-trend-strip__track{grid-auto-columns:100%!important;gap:12px!important}
 body.asinmart-brand-v2 .home-premium .am-brand-spotlight__rail,body.asinmart-brand-v2 .home-premium #amRecentlyViewed .am-recently-viewed__track{grid-auto-columns:100%!important;gap:12px!important}
 body.asinmart-brand-v2 .am-product-card{transform:none!important;box-shadow:none!important}
 body.asinmart-brand-v2 .am-product-card__body{padding:10px!important}
 body.asinmart-brand-v2 .am-product-card__title{font-size:13px!important;line-height:18px!important;min-height:36px!important;max-height:36px!important}
}


/* ===== SAFE UI v3: marketplace mobile sections + category strip mega menu ===== */
body.asinmart-brand-v2 .am-desktop-category-strip{position:relative;z-index:1250!important}
body.asinmart-brand-v2 .am-desktop-category-strip>.container{overflow:visible!important}
body.asinmart-brand-v2 .am-strip-mega-layer{position:absolute;left:18px;right:18px;top:100%;z-index:1400;pointer-events:none}
body.asinmart-brand-v2 .am-strip-mega-panel{pointer-events:auto;margin-top:0;padding:22px 24px 24px;border:1px solid #e1e8e5;border-top:3px solid var(--am-yellow);border-radius:0 0 16px 16px;background:#fff;box-shadow:0 24px 55px rgba(0,45,38,.16);max-height:min(62vh,520px);overflow:auto}
body.asinmart-brand-v2 .am-strip-mega-panel[hidden]{display:none!important}
body.asinmart-brand-v2 .am-strip-mega-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid #edf1ef}
body.asinmart-brand-v2 .am-strip-mega-head small{display:block;margin-bottom:3px;color:#7b8681;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
body.asinmart-brand-v2 .am-strip-mega-head h4{margin:0;color:var(--am-green);font-size:22px;font-weight:850}
body.asinmart-brand-v2 .am-strip-mega-head>a{display:inline-flex;align-items:center;gap:7px;color:var(--am-green)!important;font-size:13px;font-weight:800;white-space:nowrap}
body.asinmart-brand-v2 .am-strip-mega-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 26px;align-items:start}
body.asinmart-brand-v2 .am-strip-mega-group{min-width:0;padding-right:8px}
body.asinmart-brand-v2 .am-strip-mega-group-title{display:block;margin-bottom:8px;color:#17211e!important;font-size:13px;font-weight:850;line-height:1.3}
body.asinmart-brand-v2 .am-strip-mega-links{display:grid;gap:6px}
body.asinmart-brand-v2 .am-strip-mega-links a{display:block;color:#5e6965!important;font-size:12px;line-height:1.35;white-space:normal}
body.asinmart-brand-v2 .am-strip-mega-links a:hover,body.asinmart-brand-v2 .am-strip-mega-group-title:hover{color:#0b766e!important;text-decoration:underline!important;text-underline-offset:2px}
body.asinmart-brand-v2 .am-desktop-category-item[aria-expanded="true"]{color:var(--am-green)!important;background:#f5faf8!important}

/* Unified home marketplace section rhythm. No data/query changes. */
body.asinmart-brand-v2 .home-premium .flash-deal-dark-support,
body.asinmart-brand-v2 .home-premium .am-most-viewed,
body.asinmart-brand-v2 .home-premium .am-home-recommendations,
body.asinmart-brand-v2 .home-premium .am-brand-spotlight,
body.asinmart-brand-v2 .home-premium .am-trending-showcases,
body.asinmart-brand-v2 .home-premium .am-recently-viewed{box-sizing:border-box}
body.asinmart-brand-v2 .home-premium .am-product-card__rating{min-height:24px;display:flex!important;align-items:center!important;gap:5px!important}
body.asinmart-brand-v2 .home-premium .am-product-card__category{font-size:11px!important;color:#77827d!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.asinmart-brand-v2 .home-premium .am-product-card__discount{border-radius:4px!important;padding:4px 6px!important;font-size:11px!important;font-weight:800!important}
body.asinmart-brand-v2 .home-premium .am-product-card__actions{opacity:0;transition:opacity .18s ease}
@media(hover:hover) and (pointer:fine){body.asinmart-brand-v2 .home-premium .am-product-card:hover .am-product-card__actions{opacity:1}}

@media(max-width:1199.98px) and (min-width:992px){
 body.asinmart-brand-v2 .am-strip-mega-columns{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:767.98px){
 body.asinmart-brand-v2 .home-premium{background:#f4f6f5!important}
 body.asinmart-brand-v2 .home-premium .flash-deal-dark-support,
 body.asinmart-brand-v2 .home-premium .am-most-viewed,
 body.asinmart-brand-v2 .home-premium .am-home-recommendations,
 body.asinmart-brand-v2 .home-premium .am-brand-spotlight,
 body.asinmart-brand-v2 .home-premium .am-trending-showcases,
 body.asinmart-brand-v2 .home-premium .am-recently-viewed{margin:8px 0!important;padding-top:14px!important;padding-bottom:14px!important;background:#fff!important;border-top:1px solid #e9eeeb!important;border-bottom:1px solid #e9eeeb!important;border-radius:0!important;box-shadow:none!important}
 body.asinmart-brand-v2 .home-premium h2,body.asinmart-brand-v2 .home-premium .title{font-size:20px!important;line-height:1.2!important;letter-spacing:-.02em!important}
 body.asinmart-brand-v2 .home-premium .section-title,body.asinmart-brand-v2 .home-premium .section-header,body.asinmart-brand-v2 .home-premium .section-heading{margin-bottom:10px!important}

 /* One complete, compact marketplace card per swipe with a small next-card cue. */
 body.asinmart-brand-v2 .main-content .swiper-slide:has(.am-product-card){width:calc(100vw - 44px)!important;max-width:calc(100vw - 44px)!important;flex:0 0 calc(100vw - 44px)!important;scroll-snap-align:start!important}
 body.asinmart-brand-v2 .home-premium .am-reco-market__card{flex:0 0 calc(100vw - 44px)!important;max-width:calc(100vw - 44px)!important}
 body.asinmart-brand-v2 .home-premium .am-trend-strip__track{grid-auto-columns:calc(100vw - 44px)!important}
 body.asinmart-brand-v2 .home-premium .am-brand-spotlight__rail,body.asinmart-brand-v2 .home-premium #amRecentlyViewed .am-recently-viewed__track{grid-auto-columns:calc(100vw - 44px)!important}
 body.asinmart-brand-v2 .home-premium .swiper,body.asinmart-brand-v2 .home-premium .am-reco-market__grid,body.asinmart-brand-v2 .home-premium .am-trend-strip__track{scroll-snap-type:x mandatory!important;overscroll-behavior-inline:contain!important;padding-bottom:6px!important}

 body.asinmart-brand-v2 .home-premium .am-product-card{border-radius:12px!important;border-color:#e2e7e4!important;box-shadow:0 2px 8px rgba(20,34,29,.055)!important}
 body.asinmart-brand-v2 .home-premium .am-product-card__media{height:230px!important;aspect-ratio:auto!important;padding:10px!important;background:#fff!important}
 body.asinmart-brand-v2 .home-premium .am-product-card__body{padding:10px 11px 12px!important}
 body.asinmart-brand-v2 .home-premium .am-product-card__title{font-size:14px!important;line-height:19px!important;min-height:38px!important;max-height:38px!important;margin-bottom:6px!important}
 body.asinmart-brand-v2 .home-premium .am-product-card__price strong{font-size:18px!important}
 body.asinmart-brand-v2 .home-premium .am-product-card__price del{font-size:12px!important}
 body.asinmart-brand-v2 .home-premium .am-product-card__actions{opacity:1!important}
 body.asinmart-brand-v2 .home-premium .am-product-card__icon{width:34px!important;height:34px!important}
 body.asinmart-brand-v2 .home-premium .am-reco-market__media,body.asinmart-brand-v2 .home-premium .am-trend-card__media{height:230px!important;aspect-ratio:auto!important}

 /* Listing/search cards stay one-per-row as previously requested, but with compact mobile proportions. */
 body.asinmart-brand-v2 #ajax-products-view .am-product-card__media{height:240px!important;aspect-ratio:auto!important}
 body.asinmart-brand-v2 #ajax-products-view .am-product-card__body{padding:11px!important}
}

@media(max-width:420px){
 body.asinmart-brand-v2 .main-content .swiper-slide:has(.am-product-card),
 body.asinmart-brand-v2 .home-premium .am-reco-market__card{width:calc(100vw - 34px)!important;max-width:calc(100vw - 34px)!important;flex-basis:calc(100vw - 34px)!important}
 body.asinmart-brand-v2 .home-premium .am-trend-strip__track,
 body.asinmart-brand-v2 .home-premium .am-brand-spotlight__rail,
 body.asinmart-brand-v2 .home-premium #amRecentlyViewed .am-recently-viewed__track{grid-auto-columns:calc(100vw - 34px)!important}
 body.asinmart-brand-v2 .home-premium .am-product-card__media,body.asinmart-brand-v2 .home-premium .am-reco-market__media,body.asinmart-brand-v2 .home-premium .am-trend-card__media{height:210px!important}
}

body[theme="dark"].asinmart-brand-v2 .am-strip-mega-panel{background:#101a18;border-color:#2a3c37;box-shadow:0 24px 55px rgba(0,0,0,.35)}
body[theme="dark"].asinmart-brand-v2 .am-strip-mega-head{border-color:#2b3a36}
body[theme="dark"].asinmart-brand-v2 .am-strip-mega-head h4,body[theme="dark"].asinmart-brand-v2 .am-strip-mega-group-title{color:#f2f7f5!important}
body[theme="dark"].asinmart-brand-v2 .am-strip-mega-links a{color:#b9c7c2!important}

/* ===== SAFE UI v4: Flipkart-like compact mobile commerce layout ===== */
@media (max-width:767.98px){
  /* Mobile top categories: ~5 visible, true tappable links, manual horizontal swipe. */
  body.asinmart-brand-v2 .am-mobile-category-strip{position:relative!important;z-index:1120!important;background:#fff!important;pointer-events:auto!important}
  body.asinmart-brand-v2 .am-mobile-category-strip>.container{pointer-events:auto!important}
  body.asinmart-brand-v2 .am-mobile-category-scroll{gap:0!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity!important;touch-action:pan-x!important;pointer-events:auto!important;padding:0 4px!important}
  body.asinmart-brand-v2 .am-mobile-category-item{position:relative!important;z-index:2!important;flex:0 0 20vw!important;min-width:68px!important;max-width:82px!important;min-height:70px!important;padding:7px 4px 6px!important;gap:4px!important;font-size:10.5px!important;line-height:1.08!important;font-weight:600!important;color:#303934!important;background:#fff!important;border-right:0!important;scroll-snap-align:start!important;pointer-events:auto!important;touch-action:manipulation!important;-webkit-tap-highlight-color:rgba(245,184,46,.16)!important}
  body.asinmart-brand-v2 .am-mobile-category-item:active{background:#fff8e6!important}
  body.asinmart-brand-v2 .am-mobile-category-icon.am-category-symbol{width:38px!important;height:38px!important;border:1px solid #dbe7e3!important;border-radius:10px!important;background:#f6fbf9!important}
  body.asinmart-brand-v2 .am-mobile-category-icon.am-category-symbol i{font-size:20px!important}
  body.asinmart-brand-v2 .am-mobile-category-item.is-for-you::after{left:8px!important;right:8px!important;height:3px!important}

  /* Flipkart-like compact home rails: three product tiles visible at once. */
  body.asinmart-brand-v2 .home-premium .swiper:has(.am-product-card),
  body.asinmart-brand-v2 .home-premium .am-reco-market__grid,
  body.asinmart-brand-v2 .home-premium .am-trend-strip__track,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__rail,
  body.asinmart-brand-v2 .home-premium #amRecentlyViewed .am-recently-viewed__track{gap:8px!important;scroll-snap-type:x proximity!important;padding:2px 3px 8px!important}

  body.asinmart-brand-v2 .main-content .swiper-slide:has(.am-product-card){width:calc((100vw - 36px)/3)!important;max-width:calc((100vw - 36px)/3)!important;flex:0 0 calc((100vw - 36px)/3)!important}
  body.asinmart-brand-v2 .home-premium .am-reco-market__card{flex:0 0 calc((100vw - 36px)/3)!important;max-width:calc((100vw - 36px)/3)!important;min-width:0!important}
  body.asinmart-brand-v2 .home-premium .am-trend-strip__track{grid-auto-columns:calc((100vw - 36px)/3)!important}
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__rail,
  body.asinmart-brand-v2 .home-premium #amRecentlyViewed .am-recently-viewed__track{grid-auto-columns:calc((100vw - 36px)/3)!important}

  body.asinmart-brand-v2 .home-premium .am-product-card,
  body.asinmart-brand-v2 .home-premium .am-reco-market__card,
  body.asinmart-brand-v2 .home-premium .am-trend-card,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__card{border:0!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important;transform:none!important}

  body.asinmart-brand-v2 .home-premium .am-product-card__media,
  body.asinmart-brand-v2 .home-premium .am-reco-market__media,
  body.asinmart-brand-v2 .home-premium .am-trend-card__media,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__media{height:128px!important;aspect-ratio:auto!important;padding:0!important;border-radius:9px!important;background:#f5f6f5!important;overflow:hidden!important}
  body.asinmart-brand-v2 .home-premium .am-product-card__media img,
  body.asinmart-brand-v2 .home-premium .am-reco-market__media img,
  body.asinmart-brand-v2 .home-premium .am-trend-card__media img,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__media img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}

  body.asinmart-brand-v2 .home-premium .am-product-card__body,
  body.asinmart-brand-v2 .home-premium .am-reco-market__body,
  body.asinmart-brand-v2 .home-premium .am-trend-card__body,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__body{padding:7px 1px 8px!important}

  body.asinmart-brand-v2 .home-premium .am-product-card__title,
  body.asinmart-brand-v2 .home-premium .am-reco-market__body h3,
  body.asinmart-brand-v2 .home-premium .am-trend-card__body h3,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__body h3{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;min-height:32px!important;max-height:32px!important;margin:0 0 5px!important;font-size:12px!important;line-height:16px!important;font-weight:700!important;color:#2e3431!important}

  body.asinmart-brand-v2 .home-premium .am-product-card__category,
  body.asinmart-brand-v2 .home-premium .am-trend-card__category,
  body.asinmart-brand-v2 .home-premium .am-trend-card__seller,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__brand,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__store-row{display:none!important}

  body.asinmart-brand-v2 .home-premium .am-product-card__price,
  body.asinmart-brand-v2 .home-premium .am-reco-market__pricing,
  body.asinmart-brand-v2 .home-premium .am-trend-card__price,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__price{display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:3px!important;margin:0!important;padding:0!important;border:0!important;line-height:1.1!important}
  body.asinmart-brand-v2 .home-premium .am-product-card__price strong,
  body.asinmart-brand-v2 .home-premium .am-reco-market__pricing strong,
  body.asinmart-brand-v2 .home-premium .am-trend-card__price strong,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__price{font-size:15px!important;font-weight:850!important;color:#282d2b!important}
  body.asinmart-brand-v2 .home-premium del{font-size:10.5px!important;color:#777!important}
  body.asinmart-brand-v2 .home-premium .am-product-card__discount,
  body.asinmart-brand-v2 .home-premium .am-reco-market__discount-text,
  body.asinmart-brand-v2 .home-premium .am-trend-card__discount{font-size:9.5px!important;padding:0!important;background:transparent!important;color:#16843d!important;font-weight:800!important}

  body.asinmart-brand-v2 .home-premium .am-product-card__rating,
  body.asinmart-brand-v2 .home-premium .am-reco-market__rating,
  body.asinmart-brand-v2 .home-premium .am-trend-card__rating{min-height:0!important;margin:3px 0 0!important;font-size:10px!important}
  body.asinmart-brand-v2 .home-premium .am-reco-market__rating-badge{padding:2px 4px!important;border-radius:4px!important;font-size:9.5px!important}

  body.asinmart-brand-v2 .home-premium .am-product-card__actions,
  body.asinmart-brand-v2 .home-premium .am-reco-market__actions,
  body.asinmart-brand-v2 .home-premium .am-trend-card__buttons,
  body.asinmart-brand-v2 .home-premium .am-trend-card__hover-actions{display:none!important}

  /* Section framing like mobile marketplace apps. */
  body.asinmart-brand-v2 .home-premium .flash-deal-dark-support,
  body.asinmart-brand-v2 .home-premium .am-most-viewed,
  body.asinmart-brand-v2 .home-premium .am-home-recommendations,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight,
  body.asinmart-brand-v2 .home-premium .am-trending-showcases,
  body.asinmart-brand-v2 .home-premium .am-recently-viewed{margin:6px 0!important;padding:12px 0 13px!important;background:#fff!important;border:0!important;border-radius:0!important}
  body.asinmart-brand-v2 .home-premium h2{font-size:20px!important;line-height:1.15!important;margin-bottom:10px!important}
  body.asinmart-brand-v2 .home-premium .am-product-section-nav button{display:none!important}

  /* Category/search result pages: clean two-column mobile grid. */
  body.asinmart-brand-v2 #ajax-products-view .am-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.asinmart-brand-v2 #ajax-products-view .am-product-card__media{height:180px!important}
  body.asinmart-brand-v2 #ajax-products-view .am-product-card__body{padding:8px!important}
}

@media (max-width:390px){
  body.asinmart-brand-v2 .main-content .swiper-slide:has(.am-product-card),
  body.asinmart-brand-v2 .home-premium .am-reco-market__card{width:calc((100vw - 30px)/3)!important;max-width:calc((100vw - 30px)/3)!important;flex-basis:calc((100vw - 30px)/3)!important}
  body.asinmart-brand-v2 .home-premium .am-trend-strip__track,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__rail,
  body.asinmart-brand-v2 .home-premium #amRecentlyViewed .am-recently-viewed__track{grid-auto-columns:calc((100vw - 30px)/3)!important}
  body.asinmart-brand-v2 .home-premium .am-product-card__media,
  body.asinmart-brand-v2 .home-premium .am-reco-market__media,
  body.asinmart-brand-v2 .home-premium .am-trend-card__media,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__media{height:116px!important}
  body.asinmart-brand-v2 #ajax-products-view .am-product-card__media{height:160px!important}
}

/* v4: stop timed/automatic category popping everywhere; movement is interaction-only. */
body.asinmart-brand-v2 .am-pop-category-card .am-pop-category-visual,
body.asinmart-brand-v2 .am-pop-category-card .am-pop-category-visual img{animation:none!important}
@media (hover:hover) and (pointer:fine){
 body.asinmart-brand-v2 .am-pop-category-card:hover .am-pop-category-visual img{transform:translateY(-5px) scale(1.045)!important;transition:transform .28s cubic-bezier(.22,1,.36,1)!important}
}
@media (max-width:767.98px){
 body.asinmart-brand-v2 .am-pop-category-section{padding:14px 0 18px!important;background:#fff!important}
 body.asinmart-brand-v2 .am-pop-category-head h2{font-size:21px!important}
 body.asinmart-brand-v2 .am-pop-category-track{gap:8px!important}
 body.asinmart-brand-v2 .am-pop-category-card{width:calc((100vw - 52px)/4)!important;flex:0 0 calc((100vw - 52px)/4)!important;min-width:76px!important;max-width:105px!important}
 body.asinmart-brand-v2 .am-pop-category-visual,
 body.asinmart-brand-v2 .am-layout-circle .am-pop-category-visual{height:92px!important;border-radius:16px!important}
 body.asinmart-brand-v2 .am-pop-category-visual img{height:100%!important;transform:none!important;object-fit:contain!important}
 body.asinmart-brand-v2 .am-pop-category-copy{min-height:42px!important;padding:0 2px!important}
 body.asinmart-brand-v2 .am-pop-category-copy strong{min-height:28px!important;font-size:10.5px!important;line-height:14px!important;-webkit-line-clamp:2!important}
 body.asinmart-brand-v2 .am-pop-category-copy small{display:none!important}
}

/* ===== SAFE UI v5: Flipkart-style mobile vertical product grids =====
   Purpose: remove horizontal product rails on mobile, tighten section rhythm,
   and keep the existing working homepage/category/PDP logic untouched. */
@media (max-width:767.98px){
  /* No page-level sideways drift. Individual category/fashion strips can still scroll themselves. */
  body.asinmart-brand-v2 .home-premium{overflow-x:clip!important;background:#f3f5f4!important}

  /* Tight marketplace section rhythm: content follows content, no oversized white bands. */
  body.asinmart-brand-v2 .home-premium .flash-deal-dark-support,
  body.asinmart-brand-v2 .home-premium .am-most-viewed,
  body.asinmart-brand-v2 .home-premium .am-home-recommendations,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight,
  body.asinmart-brand-v2 .home-premium .am-trending-showcases,
  body.asinmart-brand-v2 .home-premium .am-recently-viewed,
  body.asinmart-brand-v2 .home-premium .recommended-product,
  body.asinmart-brand-v2 .home-premium .trending-product,
  body.asinmart-brand-v2 .home-premium .top-rated-product{margin:0 0 7px!important;padding:10px 10px 11px!important;background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-height:0!important;height:auto!important}

  body.asinmart-brand-v2 .home-premium .container,
  body.asinmart-brand-v2 .home-premium .container-fluid{padding-left:10px!important;padding-right:10px!important}

  body.asinmart-brand-v2 .home-premium h2,
  body.asinmart-brand-v2 .home-premium .section-title,
  body.asinmart-brand-v2 .home-premium .title{font-size:18px!important;line-height:1.2!important;margin-top:0!important;margin-bottom:8px!important;padding:0!important}
  body.asinmart-brand-v2 .home-premium .section-header,
  body.asinmart-brand-v2 .home-premium .section-heading{margin:0 0 8px!important;padding:0!important;min-height:0!important}

  /* Swiper product rails -> normal wrapping 3-column grid. No horizontal product scrolling. */
  body.asinmart-brand-v2 .home-premium .swiper:has(.am-product-card){overflow:visible!important;padding:0!important;margin:0!important;width:100%!important}
  body.asinmart-brand-v2 .home-premium .swiper-wrapper:has(.am-product-card){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;transform:none!important;transition:none!important;width:100%!important;height:auto!important;align-items:stretch!important;overflow:visible!important}
  body.asinmart-brand-v2 .home-premium .swiper-slide:has(.am-product-card){width:auto!important;max-width:none!important;min-width:0!important;flex:initial!important;height:auto!important;margin:0!important;transform:none!important;scroll-snap-align:none!important}
  body.asinmart-brand-v2 .home-premium .swiper-pagination,
  body.asinmart-brand-v2 .home-premium .swiper-button-next,
  body.asinmart-brand-v2 .home-premium .swiper-button-prev{display:none!important}

  /* Custom homepage rails -> the same vertical wrapping grid. */
  body.asinmart-brand-v2 .home-premium .am-reco-market__grid,
  body.asinmart-brand-v2 .home-premium .am-trend-strip__track,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__rail,
  body.asinmart-brand-v2 .home-premium #amRecentlyViewed .am-recently-viewed__track{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;gap:8px!important;width:100%!important;overflow:visible!important;scroll-snap-type:none!important;overscroll-behavior:auto!important;padding:0!important;margin:0!important;transform:none!important}
  body.asinmart-brand-v2 .home-premium .am-reco-market__card,
  body.asinmart-brand-v2 .home-premium .am-trend-card,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__card,
  body.asinmart-brand-v2 .home-premium #amRecentlyViewed .am-recently-viewed__item{width:auto!important;max-width:none!important;min-width:0!important;flex:initial!important;margin:0!important;scroll-snap-align:none!important;height:auto!important}

  /* Compact Flipkart-style card: media, short title, price. */
  body.asinmart-brand-v2 .home-premium .am-product-card,
  body.asinmart-brand-v2 .home-premium .am-reco-market__card,
  body.asinmart-brand-v2 .home-premium .am-trend-card,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__card{height:auto!important;min-height:0!important;border:0!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important}

  body.asinmart-brand-v2 .home-premium .am-product-card__media,
  body.asinmart-brand-v2 .home-premium .am-reco-market__media,
  body.asinmart-brand-v2 .home-premium .am-trend-card__media,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__media{height:auto!important;aspect-ratio:1/1!important;padding:2px!important;border-radius:8px!important;background:#f6f7f6!important;overflow:hidden!important}
  body.asinmart-brand-v2 .home-premium .am-product-card__media img,
  body.asinmart-brand-v2 .home-premium .am-reco-market__media img,
  body.asinmart-brand-v2 .home-premium .am-trend-card__media img,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__media img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}

  body.asinmart-brand-v2 .home-premium .am-product-card__body,
  body.asinmart-brand-v2 .home-premium .am-reco-market__body,
  body.asinmart-brand-v2 .home-premium .am-trend-card__body,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__body{padding:6px 1px 5px!important;min-height:0!important;height:auto!important}

  body.asinmart-brand-v2 .home-premium .am-product-card__title,
  body.asinmart-brand-v2 .home-premium .am-reco-market__body h3,
  body.asinmart-brand-v2 .home-premium .am-trend-card__body h3,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__body h3{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;min-height:30px!important;max-height:30px!important;font-size:11px!important;line-height:15px!important;font-weight:700!important;margin:0 0 4px!important;color:#292d2b!important}

  body.asinmart-brand-v2 .home-premium .am-product-card__footer{margin-top:0!important}
  body.asinmart-brand-v2 .home-premium .am-product-card__price,
  body.asinmart-brand-v2 .home-premium .am-reco-market__pricing,
  body.asinmart-brand-v2 .home-premium .am-trend-card__price{display:flex!important;align-items:baseline!important;gap:3px!important;flex-wrap:wrap!important;margin:0!important;min-height:18px!important}
  body.asinmart-brand-v2 .home-premium .am-product-card__price strong,
  body.asinmart-brand-v2 .home-premium .am-reco-market__pricing strong,
  body.asinmart-brand-v2 .home-premium .am-trend-card__price strong{font-size:14px!important;line-height:17px!important;font-weight:850!important;color:#2a2e2c!important}
  body.asinmart-brand-v2 .home-premium del{font-size:9.5px!important;line-height:14px!important;color:#777!important}
  body.asinmart-brand-v2 .home-premium .am-product-card__discount,
  body.asinmart-brand-v2 .home-premium .am-reco-market__discount-text,
  body.asinmart-brand-v2 .home-premium .am-trend-card__discount{font-size:9px!important;line-height:12px!important;color:#13863b!important;background:transparent!important;padding:0!important}

  /* Cards should browse cleanly; purchase actions stay on PDP. */
  body.asinmart-brand-v2 .home-premium .am-product-card__actions,
  body.asinmart-brand-v2 .home-premium .am-product-card__cart,
  body.asinmart-brand-v2 .home-premium .am-reco-market__actions,
  body.asinmart-brand-v2 .home-premium .am-trend-card__buttons,
  body.asinmart-brand-v2 .home-premium .am-trend-card__hover-actions{display:none!important}

  /* Rating/category metadata should not create empty vertical space. */
  body.asinmart-brand-v2 .home-premium .am-product-card__category,
  body.asinmart-brand-v2 .home-premium .am-trend-card__category,
  body.asinmart-brand-v2 .home-premium .am-trend-card__seller{display:none!important}
  body.asinmart-brand-v2 .home-premium .am-product-card__rating,
  body.asinmart-brand-v2 .home-premium .am-reco-market__rating,
  body.asinmart-brand-v2 .home-premium .am-trend-card__rating{min-height:0!important;margin:2px 0 0!important;font-size:9px!important;line-height:12px!important}
}

@media (max-width:374.98px){
  body.asinmart-brand-v2 .home-premium .swiper-wrapper:has(.am-product-card),
  body.asinmart-brand-v2 .home-premium .am-reco-market__grid,
  body.asinmart-brand-v2 .home-premium .am-trend-strip__track,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__rail,
  body.asinmart-brand-v2 .home-premium #amRecentlyViewed .am-recently-viewed__track{gap:6px!important}
  body.asinmart-brand-v2 .home-premium .am-product-card__title,
  body.asinmart-brand-v2 .home-premium .am-reco-market__body h3,
  body.asinmart-brand-v2 .home-premium .am-trend-card__body h3{font-size:10.5px!important;line-height:14px!important;min-height:28px!important;max-height:28px!important}
  body.asinmart-brand-v2 .home-premium .am-product-card__price strong,
  body.asinmart-brand-v2 .home-premium .am-reco-market__pricing strong,
  body.asinmart-brand-v2 .home-premium .am-trend-card__price strong{font-size:13px!important}
}


/* ===== SAFE UI v6: Flipkart-like two-column mobile cards + compact cookie consent ===== */
@media (max-width:767.98px){
  /* Product carousels/rails become a vertical 2-column marketplace grid. */
  body.asinmart-brand-v2 .main-content .swiper:has(.am-product-card){
    overflow:visible!important;
    width:100%!important;
    padding:0!important;
    margin:0!important;
  }
  body.asinmart-brand-v2 .main-content .swiper-wrapper:has(.am-product-card),
  body.asinmart-brand-v2 .home-premium .am-reco-market__grid,
  body.asinmart-brand-v2 .home-premium .am-trend-strip__track,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__rail,
  body.asinmart-brand-v2 .home-premium #amRecentlyViewed .am-recently-viewed__track{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    gap:10px 8px!important;
    width:100%!important;
    overflow:visible!important;
    transform:none!important;
    transition:none!important;
    scroll-snap-type:none!important;
    padding:0!important;
    margin:0!important;
  }
  body.asinmart-brand-v2 .main-content .swiper-slide:has(.am-product-card),
  body.asinmart-brand-v2 .home-premium .am-reco-market__card,
  body.asinmart-brand-v2 .home-premium .am-trend-card,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight__card,
  body.asinmart-brand-v2 .home-premium #amRecentlyViewed .am-recently-viewed__item{
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    flex:initial!important;
    height:auto!important;
    margin:0!important;
    scroll-snap-align:none!important;
  }
  body.asinmart-brand-v2 .main-content .swiper-pagination,
  body.asinmart-brand-v2 .main-content .swiper-button-next,
  body.asinmart-brand-v2 .main-content .swiper-button-prev{
    display:none!important;
  }

  /* Category/search/store listing pages. */
  body.asinmart-brand-v2 #ajax-products-view .am-products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px 8px!important;
  }

  /* Flipkart-like browsing card proportions. */
  body.asinmart-brand-v2 .am-product-card,
  body.asinmart-brand-v2 .home-premium .am-reco-market__card,
  body.asinmart-brand-v2 .home-premium .am-trend-card{
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:#fff!important;
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
  }
  body.asinmart-brand-v2 .am-product-card__media,
  body.asinmart-brand-v2 .home-premium .am-reco-market__media,
  body.asinmart-brand-v2 .home-premium .am-trend-card__media{
    position:relative!important;
    height:auto!important;
    aspect-ratio:4/5!important;
    padding:4px!important;
    border-radius:9px!important;
    background:#f3f4f4!important;
    overflow:hidden!important;
  }
  body.asinmart-brand-v2 .am-product-card__media>img,
  body.asinmart-brand-v2 .home-premium .am-reco-market__media img,
  body.asinmart-brand-v2 .home-premium .am-trend-card__media img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
  }
  body.asinmart-brand-v2 .am-product-card__body,
  body.asinmart-brand-v2 .home-premium .am-reco-market__body,
  body.asinmart-brand-v2 .home-premium .am-trend-card__body{
    padding:8px 2px 10px!important;
    min-height:0!important;
  }
  body.asinmart-brand-v2 .am-product-card__category,
  body.asinmart-brand-v2 .am-trend-card__category,
  body.asinmart-brand-v2 .am-trend-card__seller{
    display:none!important;
  }
  body.asinmart-brand-v2 .am-product-card__title,
  body.asinmart-brand-v2 .home-premium .am-reco-market__body h3,
  body.asinmart-brand-v2 .home-premium .am-trend-card__body h3{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    min-height:36px!important;
    max-height:36px!important;
    margin:0 0 5px!important;
    font-size:13px!important;
    line-height:18px!important;
    font-weight:700!important;
    color:#202523!important;
  }
  body.asinmart-brand-v2 .am-product-card__price strong,
  body.asinmart-brand-v2 .home-premium .am-reco-market__pricing strong,
  body.asinmart-brand-v2 .home-premium .am-trend-card__price strong{
    font-size:16px!important;
    line-height:19px!important;
    font-weight:850!important;
    color:#202523!important;
  }
  body.asinmart-brand-v2 .am-product-card__price del,
  body.asinmart-brand-v2 .home-premium del{
    font-size:11px!important;
    color:#858b88!important;
  }
  body.asinmart-brand-v2 .am-product-card__discount,
  body.asinmart-brand-v2 .home-premium .am-reco-market__discount-text,
  body.asinmart-brand-v2 .home-premium .am-trend-card__discount{
    font-size:10px!important;
    font-weight:800!important;
    color:#149447!important;
    background:transparent!important;
  }
  body.asinmart-brand-v2 .am-product-card__rating{
    display:inline-flex!important;
    align-items:center!important;
    gap:3px!important;
    width:max-content!important;
    min-height:0!important;
    margin:3px 0 0!important;
    padding:2px 5px!important;
    border-radius:4px!important;
    background:#0f8f63!important;
    color:#fff!important;
    font-size:10px!important;
    line-height:13px!important;
  }
  body.asinmart-brand-v2 .am-product-card__rating i,
  body.asinmart-brand-v2 .am-product-card__rating strong{color:#fff!important}

  /* Flipkart-style wishlist: keep heart, hide quick-view eye on touch screens. */
  body.asinmart-brand-v2 .am-product-card__actions{
    display:flex!important;
    position:absolute!important;
    top:7px!important;
    right:7px!important;
    z-index:4!important;
  }
  body.asinmart-brand-v2 .am-product-card__actions .get-quick-view{display:none!important}
  body.asinmart-brand-v2 .am-product-card__actions .btn-wishlist,
  body.asinmart-brand-v2 .am-product-card__actions .add-to-wishlist{
    display:grid!important;
    place-items:center!important;
    width:34px!important;
    height:34px!important;
    border-radius:50%!important;
    background:rgba(255,255,255,.94)!important;
    box-shadow:0 1px 5px rgba(0,0,0,.10)!important;
  }

  /* Tight section spacing instead of large blank bands. */
  body.asinmart-brand-v2 .home-premium .flash-deal-dark-support,
  body.asinmart-brand-v2 .home-premium .am-most-viewed,
  body.asinmart-brand-v2 .home-premium .am-home-recommendations,
  body.asinmart-brand-v2 .home-premium .am-brand-spotlight,
  body.asinmart-brand-v2 .home-premium .am-trending-showcases,
  body.asinmart-brand-v2 .home-premium .am-recently-viewed,
  body.asinmart-brand-v2 .home-premium .recommended-product,
  body.asinmart-brand-v2 .home-premium .trending-product,
  body.asinmart-brand-v2 .home-premium .top-rated-product{
    margin:0 0 6px!important;
    padding:10px 10px 12px!important;
    min-height:0!important;
    height:auto!important;
    border-radius:0!important;
    box-shadow:none!important;
  }

  /* Cookie/privacy message -> compact mobile bottom sheet above the bottom nav. */
  #cookie-section .cookies{
    position:fixed!important;
    left:10px!important;
    right:10px!important;
    bottom:78px!important;
    z-index:2147482000!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:14px!important;
    border-radius:14px!important;
    background:rgba(22,27,25,.97)!important;
    color:#fff!important;
    box-shadow:0 12px 34px rgba(0,0,0,.28)!important;
    backdrop-filter:blur(8px)!important;
  }
  #cookie-section .cookies .container{
    width:100%!important;
    max-width:none!important;
    padding:0!important;
    margin:0!important;
  }
  #cookie-section .cookies h4{
    margin:0 0 6px!important;
    font-size:16px!important;
    line-height:21px!important;
    font-weight:800!important;
  }
  #cookie-section .cookies p{
    margin:0!important;
    max-height:68px!important;
    overflow:auto!important;
    font-size:12px!important;
    line-height:17px!important;
    color:rgba(255,255,255,.82)!important;
  }
  #cookie-section .cookies .d-flex{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    margin-top:10px!important;
  }
  #cookie-section .cookies .btn{
    width:100%!important;
    min-height:38px!important;
    margin:0!important;
    padding:7px 10px!important;
    border-radius:8px!important;
    font-size:12px!important;
    font-weight:800!important;
    text-decoration:none!important;
  }
  #cookie-section .cookies #cookie-reject{
    border:1px solid rgba(255,255,255,.24)!important;
    background:transparent!important;
    color:#fff!important;
  }
  #cookie-section .cookies #cookie-accept{
    border-color:#f5b82e!important;
    background:#f5b82e!important;
    color:#073b37!important;
  }
}

@media(max-width:380px){
  body.asinmart-brand-v2 .am-product-card__title,
  body.asinmart-brand-v2 .home-premium .am-reco-market__body h3,
  body.asinmart-brand-v2 .home-premium .am-trend-card__body h3{
    font-size:12px!important;
    line-height:17px!important;
    min-height:34px!important;
    max-height:34px!important;
  }
}


/* ===== SAFE UI v7: compact More Stores + Why Choose Us + Still Looking ===== */
#amRecentlyViewed .am-recent-card__visit,
#amRecentlyViewed .am-recent-card__icon[aria-label*="View"],
#amRecentlyViewed .am-recent-card__hover-actions{display:none!important}

@media(max-width:767.98px){
  /* More Stores: clean 2-column app grid; no horizontal page scroll. */
  body.asinmart-brand-v2 .am-more-stores{padding:8px 0 10px!important;margin:0!important;background:#fff!important}
  body.asinmart-brand-v2 .am-more-stores .container{padding-inline:10px!important}
  body.asinmart-brand-v2 .am-more-stores__content{padding-bottom:0!important}
  body.asinmart-brand-v2 .am-more-stores__content>.d-flex,
  body.asinmart-brand-v2 .am-more-stores__content>div>.d-flex{margin-bottom:10px!important}
  body.asinmart-brand-v2 .am-more-stores__content h2{font-size:19px!important;line-height:24px!important;margin:0!important;font-weight:850!important}
  body.asinmart-brand-v2 .am-more-stores__content .btn-link{font-size:11px!important;font-weight:750!important}
  body.asinmart-brand-v2 .am-more-stores .d-sm-none .table-responsive{overflow:visible!important;width:100%!important}
  body.asinmart-brand-v2 .am-more-stores .d-sm-none .store-list{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;overflow:visible!important
  }
  body.asinmart-brand-v2 .am-more-stores .am-more-store-card{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;
    min-width:0!important;width:100%!important;height:100%!important;padding:10px 7px!important;border:1px solid #e6ecea!important;border-radius:12px!important;
    background:#fff!important;box-shadow:none!important;text-align:center!important;transform:none!important;translate:none!important
  }
  body.asinmart-brand-v2 .am-more-stores .am-more-store-card .position-relative{flex:0 0 auto!important}
  body.asinmart-brand-v2 .am-more-stores .am-more-store-card .avatar,
  body.asinmart-brand-v2 .am-more-stores .am-more-store-card .avatar img{width:58px!important;height:58px!important;min-width:58px!important;object-fit:cover!important}
  body.asinmart-brand-v2 .am-more-stores .am-more-store-card .temporary-closed{--size:58px!important;font-size:8px!important}
  body.asinmart-brand-v2 .am-more-stores .am-more-store-card .min-w-130{min-width:0!important;width:100%!important;gap:1px!important}
  body.asinmart-brand-v2 .am-more-stores .am-more-store-card h5{font-size:12px!important;line-height:16px!important;margin:0!important;font-weight:800!important}
  body.asinmart-brand-v2 .am-more-stores .am-more-store-card .text-muted{font-size:10px!important;line-height:14px!important}
  body.asinmart-brand-v2 .am-more-stores .am-more-store-card .star-rating,
  body.asinmart-brand-v2 .am-more-stores .am-more-store-card .star-rating+span{display:none!important}

  /* Why Customers Trust AsinMart: no carousel; compact 2-col cards. */
  body.asinmart-brand-v2 .am-trust-section{padding:8px 0 12px!important;margin:0!important;background:#fff!important}
  body.asinmart-brand-v2 .am-trust-shell{padding:16px 10px!important;border-radius:16px!important;box-shadow:none!important;overflow:hidden!important}
  body.asinmart-brand-v2 .am-trust-heading{text-align:left!important;margin:0 0 12px!important;max-width:none!important}
  body.asinmart-brand-v2 .am-trust-eyebrow{margin-bottom:5px!important;font-size:9px!important;letter-spacing:.15em!important}
  body.asinmart-brand-v2 .am-trust-heading h2{font-size:20px!important;line-height:24px!important;letter-spacing:-.025em!important}
  body.asinmart-brand-v2 .am-trust-heading p{margin-top:5px!important;font-size:11px!important;line-height:16px!important}
  body.asinmart-brand-v2 .am-trust-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:0!important;overflow:visible!important;scroll-snap-type:none!important
  }
  body.asinmart-brand-v2 .am-trust-card{
    min-width:0!important;min-height:116px!important;padding:11px!important;border-radius:12px!important;scroll-snap-align:none!important;
    animation:none!important;transform:none!important;translate:none!important;box-shadow:none!important;cursor:default!important
  }
  body.asinmart-brand-v2 .am-trust-card:nth-child(5){grid-column:1/-1!important;min-height:92px!important}
  body.asinmart-brand-v2 .am-trust-card:hover,
  body.asinmart-brand-v2 .am-trust-card:focus-visible,
  body.asinmart-brand-v2 .am-trust-card.is-selected{transform:none!important;translate:none!important;box-shadow:none!important}
  body.asinmart-brand-v2 .am-trust-icon{width:36px!important;height:36px!important;border-radius:10px!important;font-size:16px!important;box-shadow:none!important}
  body.asinmart-brand-v2 .am-trust-card h3{margin:9px 0 4px!important;font-size:12px!important;line-height:15px!important}
  body.asinmart-brand-v2 .am-trust-card p{font-size:10px!important;line-height:14px!important}

  /* Mobile PDP sticky cart must remain hidden until JS confirms customer scrolled past main buy controls. */
  body.asinmart-brand-v2 .product-details-sticky.active:not(.am-mobile-sticky-allowed){opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(110%)!important}
  body.asinmart-brand-v2 .product-details-sticky.am-mobile-sticky-allowed.active{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateY(0)!important}
  body.asinmart-brand-v2 .product-details-sticky.am-mobile-sticky-allowed{border-radius:14px 14px 0 0!important;padding-top:8px!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
  body.asinmart-brand-v2 .product-details-sticky.am-mobile-sticky-allowed .product-details-sticky-bottom{gap:8px!important}
}

@media(min-width:992px){
  /* EasyZoom flyout stays inside the gallery and above image actions. */
  .product-details-premium .pd-main-product-card .quickviewSlider2 .easyzoom{width:100%!important;height:100%!important;display:block!important;overflow:hidden!important}
  .product-details-premium .pd-main-product-card .quickviewSlider2 .easyzoom>a{display:block!important;width:100%!important;height:100%!important}
  .product-details-premium .pd-main-product-card .quickviewSlider2 .easyzoom-flyout{z-index:25!important;background:#fff!important}
  .product-details-premium .pd-main-product-card .quickviewSliderThumb2{display:block!important;visibility:visible!important;opacity:1!important;height:84px!important;margin-top:8px!important}
}


/* ===== safe8 auth/category/mobile safeguards ===== */
@media(max-width:767.98px){
  /* Keep the category strip clickable above product/content layers. */
  body.asinmart-brand-v2 .am-mobile-category-strip,
  body.asinmart-brand-v2 .mobile-category-nav,
  body.asinmart-brand-v2 .header-bottom{
    position:relative!important;
    z-index:1010!important;
  }
  body.asinmart-brand-v2 .am-mobile-category-strip a,
  body.asinmart-brand-v2 .mobile-category-nav a,
  body.asinmart-brand-v2 .header-bottom a{
    pointer-events:auto!important;
    touch-action:manipulation!important;
  }

  /* Auth modals should fit small screens cleanly. */
  #loginModal .modal-dialog,
  #registerModal .modal-dialog{
    width:calc(100% - 20px)!important;
    max-width:520px!important;
    margin:10px auto!important;
  }
  #loginModal .modal-content,
  #registerModal .modal-content{
    max-height:calc(100dvh - 20px)!important;
    overflow:auto!important;
    border-radius:16px!important;
  }
}
