.market-identity{
  max-width:1180px;
  margin:14px auto 0;
  padding:0 20px;
  font-size:13px;
  color:#64748b;
}

.market-identity strong{
  color:#0f172a;
}

.market-hero{
  max-width:1180px;
  margin:18px auto 0;
  padding:0 20px;
}

.market-slider{
  position:relative;
  overflow:hidden;
  border-radius:20px;
  min-height:260px;
  background:#0f172a;
}

.market-slide{
  display:none;
  min-height:260px;
  padding:40px;
  box-sizing:border-box;
  align-items:center;
}

.market-slide.active{
  display:flex;
}

.market-slide-content{
  max-width:570px;
}

.market-slide-label{
  display:inline-block;
  margin-bottom:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:12px;
  font-weight:700;
}

.market-slide h1{
  color:#fff;
  font-size:36px;
  line-height:1.12;
  margin:0 0 14px;
}

.market-slide p{
  color:#e2e8f0;
  font-size:16px;
  line-height:1.55;
  margin:0;
}

.market-slide-1{
  background:
    linear-gradient(120deg,#064e3b,#059669);
}

.market-slide-2{
  background:
    linear-gradient(120deg,#1e3a8a,#2563eb);
}

.market-slide-3{
  background:
    linear-gradient(120deg,#7c2d12,#ea580c);
}

.market-slider-dots{
  position:absolute;
  left:0;
  right:0;
  bottom:15px;
  display:flex;
  justify-content:center;
  gap:7px;
}

.market-slider-dot{
  width:8px;
  height:8px;
  border:0;
  padding:0;
  border-radius:50%;
  background:rgba(255,255,255,.45);
}

.market-slider-dot.active{
  width:22px;
  border-radius:10px;
  background:#fff;
}

.home-section{
  max-width:1180px;
  margin:28px auto 0;
  padding:0 20px;
}

.home-section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:15px;
  margin-bottom:15px;
}

.home-section-head h2{
  margin:0 0 4px;
  font-size:22px;
  color:#0f172a;
}

.home-section-head p{
  margin:0;
  color:#64748b;
  font-size:14px;
}

.home-link-button{
  border:0;
  background:none;
  color:#059669;
  font-weight:700;
  cursor:pointer;
}

.promo-scroll{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(180px,220px);
  gap:14px;
  overflow-x:auto;
  padding:2px 2px 12px;
  scroll-snap-type:x proximity;
}

.promo-scroll::-webkit-scrollbar{
  height:5px;
}

.promo-card{
  scroll-snap-align:start;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  overflow:hidden;
}

.product-image-frame{
  position:relative;
  width:100%;
  aspect-ratio:1 / 1;
  overflow:hidden;
  background:#f8fafc;
}

.product-image-frame img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}

.promo-body{
  padding:12px;
}

.promo-store{
  font-size:11px;
  color:#64748b;
  margin-bottom:5px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.promo-name{
  min-height:40px;
  color:#0f172a;
  font-size:14px;
  font-weight:600;
  line-height:20px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.promo-price{
  margin-top:8px;
  font-size:16px;
  font-weight:800;
  color:#059669;
}

.market-middle-banner{
  max-width:1180px;
  margin:30px auto 0;
  padding:0 20px;
}

.market-middle-banner-inner{
  min-height:170px;
  padding:30px;
  border-radius:20px;
  display:flex;
  align-items:center;
  box-sizing:border-box;
  background:
    linear-gradient(120deg,#052e16,#16a34a);
}

.market-middle-banner-inner h2{
  margin:0 0 8px;
  color:#fff;
  font-size:27px;
}

.market-middle-banner-inner p{
  margin:0;
  max-width:620px;
  color:#dcfce7;
  line-height:1.55;
}

.product-card{
  overflow:hidden;
}

.product-card > .product-image{
  width:100%;
  aspect-ratio:1 / 1;
  height:auto !important;
  display:block;
  object-fit:cover;
  object-position:center;
  background:#f8fafc;
}

.product-name{
  min-height:42px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

@media(max-width:700px){
  .market-identity{
    margin-top:10px;
    padding:0 14px;
  }

  .market-hero{
    margin-top:12px;
    padding:0 12px;
  }

  .market-slider,
  .market-slide{
    min-height:185px;
  }

  .market-slider{
    border-radius:14px;
  }

  .market-slide{
    padding:24px 20px 38px;
  }

  .market-slide h1{
    font-size:24px;
  }

  .market-slide p{
    font-size:13px;
  }

  .home-section{
    margin-top:22px;
    padding:0 14px;
  }

  .home-section-head h2{
    font-size:18px;
  }

  .home-section-head p{
    font-size:12px;
  }

  .promo-scroll{
    grid-auto-columns:155px;
    gap:10px;
  }

  .market-middle-banner{
    margin-top:22px;
    padding:0 14px;
  }

  .market-middle-banner-inner{
    min-height:135px;
    padding:22px;
    border-radius:14px;
  }

  .market-middle-banner-inner h2{
    font-size:21px;
  }

  .market-middle-banner-inner p{
    font-size:13px;
  }
}

.wishlist-button{
  position:absolute;
  top:9px;
  right:9px;
  z-index:2;
  width:36px;
  height:36px;
  padding:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e2e8f0;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  box-shadow:0 2px 8px rgba(15,23,42,.10);
  cursor:pointer;
}

.wishlist-button svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:#475569;
  stroke-width:1.8;
}

.wishlist-button.active svg{
  fill:#ef4444;
  stroke:#ef4444;
}

.card-qty-control{
  width:100%;
  height:42px;
  margin-top:12px;
  display:grid;
  grid-template-columns:42px 1fr 42px;
  align-items:center;
  overflow:hidden;
  border:1px solid #d1d5db;
  border-radius:999px;
  background:#f8fafc;
}

.card-qty-control button{
  height:100%;
  border:0;
  background:#ecfdf5;
  color:#047857;
  font-size:22px;
  font-weight:700;
  cursor:pointer;
}

.card-qty-control span{
  text-align:center;
  color:#0f172a;
  font-weight:700;
}

.promo-card .product-button{
  width:100%;
  margin-top:12px;
}

@media(max-width:700px){
  .wishlist-button{
    width:32px;
    height:32px;
    top:7px;
    right:7px;
    padding:7px;
  }

  .wishlist-button svg{
    width:18px;
    height:18px;
  }

  .card-qty-control{
    height:38px;
    grid-template-columns:38px 1fr 38px;
  }
}

.bottom-nav-svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
}

.wishlist-nav-wrap{
  position:relative;
}

.wishlist-nav-badge{
  position:absolute;
  top:3px;
  left:50%;
  margin-left:7px;
  min-width:17px;
  height:17px;
  padding:0 4px;
  box-sizing:border-box;
  display:none;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:10px;
  font-weight:700;
}

.wishlist-overlay{
  position:fixed;
  inset:0;
  z-index:1200;
  display:none;
  background:rgba(15,23,42,.48);
}

.wishlist-overlay.open{
  display:block;
}

.wishlist-sheet{
  position:absolute;
  right:0;
  top:0;
  width:min(440px,100%);
  height:100%;
  display:flex;
  flex-direction:column;
  background:#fff;
  box-shadow:-10px 0 35px rgba(15,23,42,.18);
}

.wishlist-head{
  padding:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #e2e8f0;
}

.wishlist-head strong{
  display:block;
  color:#0f172a;
  font-size:20px;
}

.wishlist-head small{
  display:block;
  margin-top:3px;
  color:#64748b;
}

.wishlist-close{
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:#f1f5f9;
  color:#334155;
  font-size:25px;
  cursor:pointer;
}

.wishlist-content{
  flex:1;
  overflow:auto;
  padding:14px;
}

.wishlist-empty{
  padding:60px 20px;
  text-align:center;
  color:#64748b;
}

.wishlist-empty strong{
  display:block;
  margin-bottom:7px;
  color:#0f172a;
  font-size:17px;
}

.wishlist-empty p{
  margin:0;
  line-height:1.5;
}

.wishlist-item{
  display:grid;
  grid-template-columns:100px 1fr;
  gap:13px;
  padding:13px 0;
  border-bottom:1px solid #e2e8f0;
}

.wishlist-item-image{
  width:100px;
  aspect-ratio:1 / 1;
  overflow:hidden;
  border-radius:10px;
  background:#f8fafc;
}

.wishlist-item-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.wishlist-item-store{
  margin-bottom:3px;
  color:#64748b;
  font-size:11px;
}

.wishlist-item-name{
  color:#0f172a;
  font-size:14px;
  font-weight:700;
  line-height:19px;
}

.wishlist-item-price{
  margin-top:5px;
  color:#059669;
  font-weight:800;
}

.wishlist-item-actions{
  margin-top:9px;
  display:flex;
  align-items:center;
  gap:8px;
}

.wishlist-remove{
  border:0;
  background:none;
  color:#dc2626;
  font-weight:600;
  cursor:pointer;
}

.wishlist-cart-action{
  flex:1;
}

.wishlist-cart-action .product-button{
  width:100%;
  margin:0;
}

.wishlist-cart-action .card-qty-control{
  margin:0;
}

@media(max-width:700px){
  .wishlist-sheet{
    top:auto;
    bottom:0;
    width:100%;
    height:min(78vh,650px);
    border-radius:20px 20px 0 0;
  }

  .wishlist-head{
    padding:17px;
  }

  .wishlist-content{
    padding:10px 15px 90px;
  }

  .wishlist-item{
    grid-template-columns:88px 1fr;
  }

  .wishlist-item-image{
    width:88px;
  }
}

@media(max-width:700px){

  .promo-scroll{
    grid-auto-columns:calc((100vw - 56px) / 2.25);
    gap:10px;
    padding-right:14px;
  }

  .promo-card{
    min-width:0;
  }

  .promo-body{
    padding:10px;
  }

  .promo-name{
    min-height:38px;
    font-size:13px;
    line-height:19px;
  }

  .promo-price{
    margin-top:7px;
    font-size:15px;
  }

  .promo-card .product-button{
    height:38px;
    margin-top:10px;
    padding:0 10px;
    font-size:13px;
  }

  .promo-card .card-qty-control{
    height:38px;
    margin-top:10px;
  }

  .home-section{
    overflow:hidden;
  }

  .home-section-head{
    align-items:flex-end;
  }
}

@media(max-width:700px){

  .promo-card{
    display:flex;
    flex-direction:column;
  }

  .promo-body{
    display:flex;
    flex-direction:column;
    flex:1;
  }

  .promo-price{
    margin-top:auto;
    padding-top:8px;
  }
}

.product-detail-link{
  cursor:pointer;
}

.product-detail-link:focus-visible{
  outline:2px solid #059669;
  outline-offset:2px;
}

/* Marketplace dynamic banners v1 */

.market-slide-dynamic{
  position:relative;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.market-slide-dynamic::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
}

.market-slide-content-dynamic{
  position:relative;
  z-index:1;
}

.market-slide-link{
  position:relative;
  z-index:1;
  width:100%;
  min-height:260px;
  padding:40px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  color:inherit;
  text-decoration:none;
}

.market-middle-banner-dynamic{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.market-middle-banner-link{
  display:block;
  color:inherit;
  text-decoration:none;
}

@media(max-width:700px){
  .market-slide-link{
    min-height:185px;
    padding:24px 20px 38px;
  }
}

/* Compact Pilihan Hari Ini - mobile v1 */
@media(max-width:700px){

  .promo-card .product-image-frame{
    aspect-ratio:1 / .82;
  }

  .promo-card .product-image-frame img{
    object-fit:contain;
    object-position:center;
    padding:8px;
    box-sizing:border-box;
    background:#fff;
  }

  .promo-card .promo-body{
    padding:9px;
  }

  .promo-card .promo-store{
    margin-bottom:3px;
    font-size:10px;
  }

  .promo-card .promo-name{
    min-height:34px;
    font-size:12px;
    line-height:17px;
  }

  .promo-card .promo-price{
    padding-top:5px;
    margin-top:auto;
    font-size:14px;
  }

  .promo-card .product-button{
    height:34px;
    margin-top:8px;
    font-size:12px;
  }

  .promo-card .card-qty-control{
    height:34px;
    margin-top:8px;
    grid-template-columns:34px 1fr 34px;
  }

  .promo-card .card-qty-control button{
    font-size:19px;
  }

}

/* Marketplace category rail - mobile v1 */
@media(max-width:600px){
  #categories .category-grid{
    display:flex;
    grid-template-columns:none;
    gap:9px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:2px 1px 8px;
    scroll-behavior:smooth;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  #categories .category-grid::-webkit-scrollbar{
    display:none;
  }

  #categories .category{
    flex:0 0 76px;
    min-width:76px;
    height:118px;
    padding:10px 5px 8px;
    border-radius:16px;
    scroll-snap-align:start;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
  }

  #categories .category img{
    width:50px;
    height:50px;
    flex:0 0 50px;
    margin:0 auto 7px;
  }

  #categories .category span{
    width:100%;
    min-height:30px;
    display:-webkit-box;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    font-size:10.5px;
    line-height:14px;
    font-weight:700;
    text-align:center;
  }
}

/* Marketplace HERO natural image v2 */
.market-slider:has(.market-slide-dynamic){
  min-height:0;
  background:#f8fafc;
}

.market-slider:has(.market-slide-dynamic)
.market-slide-dynamic{
  min-height:0;
  padding:0;
  width:100%;
  background:none;
}

.market-slider:has(.market-slide-dynamic)
.market-slide-dynamic.active{
  display:block;
}

.market-slider:has(.market-slide-dynamic)
.market-slide-link{
  display:block;
  width:100%;
  min-height:0;
  padding:0;
  line-height:0;
}

.market-hero-image{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}

@media(max-width:700px){
  .market-slider:has(.market-slide-dynamic),
  .market-slider:has(.market-slide-dynamic)
  .market-slide-dynamic{
    min-height:0;
  }
}

/* Category + feature visual refresh v2 */
.category-grid-v2{
  gap:12px;
}

.category-v2{
  min-height:132px;
  padding:10px 8px 12px;
  border-radius:18px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.category-v2:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(15,23,42,.08);
}

.category-v2.active{
  border-color:#059669;
  box-shadow:0 0 0 1px rgba(5,150,105,.08);
}

.category-icon-wrap{
  width:72px;
  height:72px;
  border-radius:18px;
  background:#f5f7f6;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:9px;
  overflow:hidden;
}

.category-icon-wrap img{
  width:58px;
  height:58px;
  object-fit:contain;
}

.category-v2 span{
  font-size:12px;
  line-height:16px;
  font-weight:700;
  text-align:center;
}

.feature-section-v1{
  margin-top:24px;
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:12px;
}

.feature-card{
  min-height:128px;
  padding:12px 8px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
}

.feature-icon-wrap{
  width:72px;
  height:72px;
  border-radius:18px;
  background:#f5f7f6;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:9px;
}

.feature-icon-wrap img{
  width:56px;
  height:56px;
  object-fit:contain;
}

.feature-card span{
  font-size:12px;
  line-height:16px;
  font-weight:700;
  color:#111827;
}

@media(max-width:900px){
  .feature-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media(max-width:600px){
  .category-grid-v2{
    display:flex;
    overflow-x:auto;
    gap:9px;
    padding-bottom:8px;
    scrollbar-width:none;
  }

  .category-grid-v2::-webkit-scrollbar{
    display:none;
  }

  .category-v2{
    flex:0 0 86px;
    min-width:86px;
    min-height:124px;
    padding:9px 6px 10px;
  }

  .category-icon-wrap{
    width:62px;
    height:62px;
    border-radius:16px;
  }

  .category-icon-wrap img{
    width:50px;
    height:50px;
  }

  .feature-grid{
    display:flex;
    overflow-x:auto;
    gap:9px;
    padding-bottom:8px;
    scrollbar-width:none;
  }

  .feature-grid::-webkit-scrollbar{
    display:none;
  }

  .feature-card{
    flex:0 0 96px;
    min-width:96px;
    min-height:122px;
    padding:9px 7px 10px;
  }

  .feature-icon-wrap{
    width:62px;
    height:62px;
    border-radius:16px;
  }

  .feature-icon-wrap img{
    width:48px;
    height:48px;
  }

  .feature-card span{
    font-size:11px;
    line-height:14px;
  }
}

/* Feature rail mobile stability v1 */
@media(max-width:600px){
  .feature-grid{
    direction:ltr;
    justify-content:flex-start;
    scroll-snap-type:x proximity;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-inline:contain;
  }

  .feature-card{
    scroll-snap-align:start;
    scroll-snap-stop:normal;
  }
}

/* Feature grid mobile v2 */
@media(max-width:600px){
  .feature-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
    overflow:visible;
    padding-bottom:0;
    direction:ltr;
    scroll-snap-type:none;
  }

  .feature-card{
    min-width:0;
    width:auto;
    min-height:108px;
    padding:8px 4px 9px;
    border-radius:16px;
    scroll-snap-align:none;
  }

  .feature-icon-wrap{
    width:56px;
    height:56px;
    margin-bottom:7px;
    border-radius:15px;
  }

  .feature-icon-wrap img{
    width:43px;
    height:43px;
  }

  .feature-card span{
    font-size:10px;
    line-height:13px;
  }
}

/* Pasar Pintar feature image assets v1 */
.feature-icon-wrap{
  overflow:hidden;
}

.feature-icon-wrap img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}

/* Marketplace lapak final v2 */

.store-section-v1{
  margin-top:8px;
}

.store-scroll{
  display:grid;
  grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
}

.store-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 5px 18px rgba(15,23,42,.05);
}

.store-card-logo{
  height:100px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f8fafc;
  border-bottom:1px solid #e2e8f0;
}

.store-card-logo img{
  width:68px;
  height:68px;
  object-fit:cover;
  border-radius:14px;
}

.store-card-body{
  padding:14px;
}

.store-market{
  color:#16a34a;
  font-size:12px;
  font-weight:700;
  margin-bottom:4px;
}

.store-card h3{
  margin:0 0 8px;
  color:#0f172a;
  font-size:17px;
  line-height:1.25;
}

.store-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-bottom:10px;
  color:#64748b;
}

.store-meta span{
  padding:4px 8px;
  background:#f1f5f9;
  border-radius:999px;
  font-size:11px;
}

.store-open-button{
  width:100%;
  border:0;
  border-radius:9px;
  padding:8px;
  background:#16a34a;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

@media(max-width:640px){

  .store-section-v1{
    margin-top:4px;
  }

  .store-section-v1 .home-section-head{
    gap:8px;
  }

  .store-section-v1 .home-link-button{
    font-size:12px;
    white-space:nowrap;
  }

  .store-scroll{
    display:grid;
    grid-template-columns:
      repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .store-card{
    width:100%;
    min-width:0;
    border-radius:14px;
  }

  .store-card-logo{
    height:86px;
  }

  .store-card-logo img{
    width:58px;
    height:58px;
    border-radius:12px;
  }

  .store-card-body{
    padding:9px;
  }

  .store-market{
    font-size:9px;
    margin-bottom:3px;
  }

  .store-card h3{
    font-size:14px;
    line-height:1.2;
    margin-bottom:6px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .store-meta{
    gap:3px;
    margin-bottom:7px;
  }

  .store-meta span{
    padding:3px 5px;
    font-size:8px;
  }

  .store-open-button{
    padding:7px 5px;
    font-size:10px;
    border-radius:7px;
  }
}
