/* GALERI MODIFIKASI: customer-facing black / warm yellow. No full-image colour filter. */
:root{--black:#0c0c0e;--gold:#ffcf19;--ink:#202022;--paper:#f6f5f2;--line:#e4e0d6;--muted:#676355;font-family:'Segoe UI',Arial,sans-serif}
body{font-family:'Segoe UI',Arial,sans-serif;background:#f6f5f2}.site-head{background:#0c0c0e;border-bottom:1px solid #4d401c;box-shadow:0 3px 12px #0002;color:#fff}
.head-inner{max-width:1560px;min-height:78px;padding:9px 24px;gap:22px}.brand img{width:214px;height:64px;object-fit:contain}.brand{max-width:30%}.top-search{max-width:800px!important}
.top-search input{border-color:#d2b345;background:#fff;color:#26221a;min-height:44px}.top-search button{border-color:#edbe10;background:#ffcf19;color:#17130a}.top-search .secondary{background:#22211e;border-color:#57503d;color:#f4e4b9}
.cart-link{background:#ffcf19;color:#171309;border:1px solid #ffdd64;border-radius:8px;padding:12px 13px;font-size:12px}.owner-link{color:#f2d879;font-weight:700;padding:12px 0}.main-nav{background:#161615;border-top:1px solid #353022;padding:0 max(16px,calc((100vw - 1510px)/2));border-bottom:3px solid #efc01a}
.main-nav a{color:#e6e3d9;font-size:13px;padding:12px 23px}.main-nav a:hover{background:#37311d;color:#ffe485}.main-nav a[aria-current='page']{background:#ffcf19;color:#191406}
main{padding:20px 24px;max-width:1560px}.hero{position:relative;min-height:136px;display:flex;align-items:center;justify-content:space-between;gap:28px;background:linear-gradient(112deg,#0e0e10 0%,#242019 67%,#796013 98%);border:1px solid #b38c19;border-radius:12px;padding:24px 30px;margin-bottom:14px;overflow:hidden}
.hero:before{content:'';position:absolute;right:17%;top:-60%;height:230%;width:22px;background:#ffcf19;transform:rotate(22deg);box-shadow:34px 0 #a98413,52px 0 #ffcf19;opacity:.17;pointer-events:none}.hero>div{position:relative}.hero h1{font-size:30px;line-height:1.18;max-width:660px;margin:5px 0 9px}.hero p{font-size:12px;line-height:1.5;color:#ddd1ab;max-width:660px}.hero .eyebrow{color:#ffcf19}
.hero-mark{display:flex;background:transparent;color:#ffe892;padding:0;flex-shrink:0;gap:16px}.hero-mark img{width:112px;height:112px;object-fit:contain}.hero-mark strong{font-size:12px;line-height:1.6}
.preview-note{background:#fff8de;color:#6a5211;border-color:#ecd374;font-size:11px}.section-title{margin:20px 0 13px}.section-title h2{color:#191919;font-size:23px}.section-title .eyebrow{color:#856413}.sync-note{color:#756951}.result-bar{border-color:#e4dfd0;background:#fffdf8;color:#554729}
.filters{background:#fff;border-color:#e3dccb}.filters summary{color:#302715}.filters button:hover{background:#fcf7e7}.filters button[aria-pressed='true']{background:#ffeaa0;color:#312407}.filters button span{color:#7b6a3b}.filters select{border-color:#c8b885}.filters hr{border-color:#e8dfc9}
.product-card{border-color:#e0dbce;border-radius:11px;background:#fff;box-shadow:0 1px 2px #3d2d0d05}.product-card:hover{border-color:#dab73c;box-shadow:0 9px 26px #45350c15}.brand-frame{border-bottom:1px solid #efe9d7}
.photo-stage{padding:0!important;aspect-ratio:1;overflow:hidden;background:#fff}.photo-stage .product-img{width:100%;height:100%;object-fit:contain;filter:none!important;display:block}.gm-seller-mark{display:none!important}
.product-body{padding:12px;gap:5px}.product-card h3{font-size:13px;line-height:1.4;color:#171717;min-height:37px}.price{color:#15140e;font-size:19px;font-weight:850;font-variant-numeric:tabular-nums}.sku{color:#77705e;font-size:10px}.price-note{color:#7e7460;font-size:9px}.stock{font-size:10px}
.card-actions{gap:7px;margin-top:7px}.card-actions .cta{background:#ffcf19;color:#191609;border:1px solid #efbf12;min-height:43px;border-radius:7px;font-size:12px;font-weight:800}.card-actions .cta:hover{background:#ffe16c}.quick-cart{background:#171717;color:#ffdc59;border:1px solid #29271c;min-width:44px;min-height:43px;font-weight:800}.quick-cart:hover{background:#3a301a}
.digital-top{background:linear-gradient(125deg,#101012,#332c18);color:#f7d966}.digital-icon{background:#ffcf19;border-color:#efbd11;color:#221a08}.digital-top .type{color:#ffe38a}.category-strip button{border-color:#d3c594}.category-strip button[aria-pressed='true']{background:#ffcf19;color:#201906;border-color:#e6b912}
.pager button,.retry{border-color:#cdbb83;color:#4d3c0f;background:#fffdf6}.pager button:hover{background:#fff0b4}.pager span{color:#685b3c}footer{background:#0d0d0e;color:#f5e7bb;border-top:3px solid #cfa724}footer img{width:138px;height:49px;background:transparent;border-radius:0;padding:0;object-fit:contain}footer small,footer div span{color:#b6ab90}.classic-link{color:#edcc5a}
#productDialog{border-color:#c5a34f;background:#fffdf7}.dialog-top button{background:#ffcf19;color:#231906;border-color:#d2ad25}.detail-info .notice{background:#fff7dc;border-color:#e1c36f;color:#625018}.detail-info .cta{background:#ffcf19;color:#241b07}.copy-sku{border-color:#cfbd89;background:#fffbef;color:#4d3c10}
@media(min-width:951px){.head-inner{flex-wrap:nowrap}.head-inner .top-search{order:0;flex-basis:auto}.cart-link{margin-left:0}}
@media(min-width:701px) and (max-width:1100px){.brand img{width:185px;height:56px}.hero h1{font-size:25px}.hero-mark strong{display:none}.hero-mark img{width:98px;height:98px}.hero{padding:20px}.head-inner{gap:14px}}
@media(max-width:700px){.head-inner{padding:7px 11px;gap:8px;min-height:0}.brand{max-width:none}.brand img{width:155px;height:48px}.cart-link{font-size:10px;padding:9px 8px;min-height:40px;margin-left:auto}.owner-link{font-size:11px;min-height:40px;padding:10px 0}.head-inner .top-search{order:4;flex-basis:100%;width:100%;max-width:none!important}.top-search input{font-size:16px;min-height:43px}.top-search .secondary{padding:0 8px}.top-search button{padding:0 10px}.main-nav{padding:0 5px}.main-nav a{font-size:11px;padding:10px 12px;min-height:42px}.hero{display:none}main{padding:10px 9px 18px}.preview-note{font-size:10px;padding:7px 9px}.section-title h2{font-size:19px}.section-title{margin:13px 0 9px}.product-grid{gap:8px}.product-body{padding:9px;gap:4px}.product-card h3{font-size:12px;min-height:34px}.price{font-size:17px}.card-actions{gap:5px}.card-actions .cta{font-size:11px;padding:8px 4px;min-height:42px}.quick-cart{min-width:40px;padding:6px;font-size:10px}.filters{border-radius:9px}.sync-note{font-size:10px}.result-bar{font-size:11px}footer{padding:18px 13px;gap:12px}footer img{width:116px;height:40px}.detail-info .price{font-size:23px}}
@media(max-width:359px){.brand img{width:131px;height:41px}.cart-link{padding:8px 6px}.head-inner{gap:6px}.product-body{padding:7px}.price{font-size:16px}.quick-cart{min-width:36px}.card-actions .cta{font-size:10px}}

.brand img,.login-logo{mix-blend-mode:screen}

/* Circular presentation of the Galeri badge; source artwork stays intact. */
img[src='/gm-logo-round.png']{border-radius:50%}

/* 0.1.34: status stok tersedia memakai emas gelap merek (status habis tetap merah). */
.stock.stock--available{color:#7a5b00}

/* 0.1.35: merapikan tampilan toko. Tidak mengubah fungsi, data, atau URL. */

/* Informasi toko di samping bagian Layanan (desktop berdampingan, HP bertumpuk). */
.layanan-and-info{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);
  gap:22px;
  align-items:start;
  margin:0 0 10px;
}
.store-info-panel{min-width:0;}
.store-info-card{
  background:#fffef6;
  border:1px solid #d9c789;
  border-radius:12px;
  padding:16px 18px 18px;
  color:#202022;
  box-shadow:0 2px 10px #0006;
}
.store-info-card h3{
  margin:18px 0 8px;
  font-size:15px;
  line-height:1.3;
  color:#191406;
  border-bottom:2px solid #ffcf19;
  display:inline-block;
  padding:0 0 4px;
}
.store-info-block:first-child h3{margin-top:0;}
.store-info-block p{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin:0;
  font-size:12.5px;
  line-height:1.55;
  color:#3a372c;
  max-height:240px;
  overflow:auto;
  background:#fff;
  border:1px solid #eee9dc;
  border-radius:8px;
  padding:10px 12px;
}
.store-info-socials{display:flex;gap:12px;margin-top:14px;flex-wrap:wrap;}
.store-info-socials a{color:#7a5b00;font-weight:700;text-transform:capitalize;}
.owner-published-content{
  max-width:1560px;
  margin:0 auto 16px;
  padding:18px 20px;
  border:1px solid #d9c789;
  border-radius:12px;
  background:#fffef6;
  color:#202022;
}
.owner-published-banner{max-width:100%;max-height:360px;object-fit:contain;display:block;}

/* Jangan biarkan sisa gaya lama menempel setelah footer. */
body>.owner-published-information{display:none;}

html,body{overflow-x:hidden;}
main{margin-left:auto;margin-right:auto;max-width:1560px;box-sizing:border-box;}

@media(min-width:901px){
  .store-info-panel{position:sticky;top:132px;}
  .store-info-card{max-height:calc(100vh - 156px);overflow:auto;}
}
@media(max-width:900px){
  .layanan-and-info{grid-template-columns:1fr;gap:16px;}
  .store-info-panel{position:static;}
  .store-info-card{max-height:none;}
  .store-info-block p{max-height:220px;}
}

/* Mobile: menu tidak terpotong ke tepi layar; tombol bayar tetap ada di Keranjang. */
@media(max-width:700px){
  .main-nav{
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    overflow-x:auto!important;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    max-width:100%;
    padding:0 8px!important;
  }
  .main-nav a{flex:0 0 auto;white-space:nowrap;}
  .main-nav [data-gm-wa-open]{display:none!important;}
  .store-values{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    overflow:visible!important;
    gap:0!important;
    padding:6px 0!important;
    scrollbar-width:thin;
  }
  .store-values>div{
    min-width:0!important;
    padding:10px!important;
    gap:8px;
    border-right:0!important;
    border-bottom:1px solid #e4e3dc;
  }
  .store-values>div:nth-child(odd){border-right:1px solid #e4e3dc!important;}
  .store-values>div:nth-last-child(-n+2){border-bottom:0;}
  .store-values strong,.store-values small{white-space:normal!important;}
  .store-values strong{font-size:11px;}
  .store-values small{font-size:9px;}
  .store-values .gm-icon{width:22px;height:22px;flex-basis:22px;}
  .featured-grid{max-width:100%;}
  .card-actions{gap:5px;}
  .card-actions .cta{
    min-width:0;
    font-size:10px;
    padding:7px 4px;
    line-height:1.2;
    white-space:normal;
  }
}

@media(max-width:359px){
  .store-values{grid-template-columns:1fr;}
  .store-values>div{border-right:0;}
}

/* 0.1.36: kategori + filter sejajar dengan katalog di layar yang sama. Tidak mengubah fungsi atau data. */

/* Sidebar kiri, produk di kanan, satu rak yang sama. */
#partsSection .catalog-layout{
  display:grid;
  grid-template-columns:minmax(220px,240px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
#partsSection .catalog-main{min-width:0;}
#partsSection .filters{
  min-width:0;
  position:sticky;
  top:calc(var(--store-head-height,110px) + 12px);
  max-height:calc(100vh - var(--store-head-height,110px) - 24px);
  overflow:auto;
  align-self:start;
}
#partsSection .filters-heading{
  margin:0 0 8px;
  font-size:13px;
  font-weight:750;
  color:#302715;
}
#partsSection .filter-category-block{margin-bottom:8px;}
#partsSection #partFilters > summary{
  cursor:pointer;
  font-weight:750;
  padding:6px 0 8px;
}

/* Pilihan unggulan berada di kolom produk, bukan blok penuh di atas sidebar. */
#partsSection .home-picks{margin:0 0 18px;}
#partsSection .picks-title{margin-bottom:10px;}
#partsSection .picks-title h2{font-size:22px;}
#partsSection .section-title{margin:0 0 12px;}
#partsSection .featured-grid{max-width:100%;}
#partsSection .home-picks,#partsSection .catalog-main,#partsSection .filter-category-block{min-width:0;}

/* Rapikan jarak atas supaya katalog masuk ke layar pertama bersama filter. */
.hero.hero-premium{margin-bottom:14px;}
.store-values{margin-bottom:10px;}
#storeContact.store-contact{margin-bottom:10px;}

@media(min-width:701px) and (max-width:950px){
  #partsSection .catalog-layout{grid-template-columns:minmax(180px,200px) minmax(0,1fr);gap:14px;}
}

/* HP: bilah kategori horizontal di atas produk, filter tambahan tetap bisa dilipat. Bukan blok terpisah jauh di bawah. */
@media(max-width:700px){
  /* Hero premium di CSS lama ditampilkan lagi dan mendorong katalog ke bawah. Sembunyikan di HP agar kategori naik. */
  .hero.hero-premium{display:none !important;}
  .store-values{margin-bottom:8px;}
  #storeContact.store-contact{margin-bottom:8px;}

  #partsSection,
  #partsSection .catalog-layout,
  #partsSection .filters,
  #partsSection .filter-category-block,
  #partsSection .catalog-main,
  #partsSection .home-picks,
  #partsSection .featured-grid{
    min-width:0;
    max-width:100%;
    width:100%;
    box-sizing:border-box;
  }
  #partsSection .catalog-layout{
    display:flex;
    flex-direction:column;
    gap:8px;
  }
  #partsSection .filters{
    position:static;
    max-height:none;
    overflow:visible;
    padding:0;
    background:transparent;
    border:0;
    order:0;
  }
  #partsSection .catalog-main{order:1;}
  #partsSection .filter-category-block{
    margin:0 0 8px;
    padding:0;
    overflow:hidden;
  }
  #partsSection .featured-grid{
    overflow-x:auto;
  }
  #partsSection .filters-heading{display:none;}
  #partsSection #supplierCats.filter-options{
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    gap:8px;
    max-height:none;
    max-width:100%;
    width:100%;
    min-width:0;
    margin:0;
    padding:2px 0 8px;
    grid-template-columns:none;
    box-sizing:border-box;
  }
  #partsSection #supplierCats.filter-options button{
    flex:0 0 auto;
    width:auto;
    max-width:none;
    white-space:nowrap;
    min-height:40px;
    padding:8px 12px;
    border:1px solid #d3c594;
    border-radius:999px;
    background:#fff;
    font-size:12px;
    gap:8px;
  }
  #partsSection #supplierCats.filter-options button[aria-pressed='true']{
    background:#ffcf19;
    color:#201906;
    border-color:#e6b912;
    font-weight:750;
  }
  #partsSection #supplierCats.filter-options button span{color:#7b6a3b;}
  #partsSection #partFilters{
    border:1px solid #e3dccb;
    border-radius:10px;
    background:#fff;
    padding:0 12px;
  }
  #partsSection #partFilters > summary{
    padding:10px 0;
    font-size:12px;
    min-height:42px;
  }
  #partsSection .home-picks{margin:0 0 12px;}
  #partsSection .picks-title h2{font-size:18px;}
  #partsSection .featured-grid{margin-top:0;}
}


/* 0.1.37: tombol kartu di HP dan dialog Safari. Tidak mengubah fungsi atau data. */

/* Dialog yang tertutup tidak boleh tampil atau menangkap sentuhan di Safari iOS. */
dialog:not([open]){
  display:none !important;
  pointer-events:none !important;
  visibility:hidden !important;
}
dialog[open],
#productDialog[open],
.wa-cart-dialog[open]{
  z-index:80;
  max-height:min(94dvh, 94vh);
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

/* overflow-x:hidden pada html dan body bisa merusak dialog dan position:fixed di iOS. */
html,body{overflow-x:clip;}

/* Di HP, dua tombol dalam satu baris membuat "Lihat detail" terhimpit (hanya ~10px). */
@media(max-width:700px){
  .card-actions{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:6px !important;
    width:100%;
  }
  .card-actions .cta,
  .card-actions .wa-add,
  .card-actions .quick-cart{
    width:100% !important;
    flex:0 0 auto !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box;
    white-space:normal !important;
    font-size:12px !important;
    padding:9px 10px !important;
    line-height:1.25;
    min-height:42px;
  }
}


/* 0.1.38: foto dan label Galeri Modifikasi di kartu dan dialog.
   Kotak 1:1, object-fit contain, latar putih, label emas terlihat utuh.
   Menimpa aspect-ratio 1.28/1.05 pada .featured-grid di store-showcase.css
   (file itu dimuat setelah ini, jadi selector harus lebih spesifik). */
#featuredGrid.featured-grid .photo-stage,
#homePicks .featured-grid .photo-stage,
#partsSection .featured-grid .photo-stage,
.home-picks .featured-grid .photo-stage,
#productDialog .photo-stage,
#productDialog .brand-frame .photo-stage,
.detail-layout .photo-stage,
.product-grid .photo-stage,
#partGrid .photo-stage{
  aspect-ratio:1/1 !important;
  width:100%;
  background:#fff !important;
  overflow:hidden;
  padding:0 !important;
  box-sizing:border-box;
}
#featuredGrid.featured-grid .photo-stage .product-img,
#homePicks .featured-grid .product-img,
#partsSection .featured-grid .product-img,
.home-picks .featured-grid .product-img,
#productDialog .photo-stage .product-img,
#productDialog .product-img,
.detail-layout .photo-stage .product-img,
.product-grid .photo-stage .product-img,
#partGrid .photo-stage .product-img,
.featured-grid .product-img{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  background:#fff;
  display:block;
}
@media(max-width:700px){
  #featuredGrid.featured-grid .photo-stage,
  #homePicks .featured-grid .photo-stage,
  .home-picks .featured-grid .photo-stage,
  .featured-grid .photo-stage{
    aspect-ratio:1/1 !important;
  }
}
