*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

body{
  background:#f7f9fc;
  color:#333;
}

/* HEADER */
.header-adv{
  position:sticky;
  top:0;
  z-index:4000;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 40px;
  background:#2f56a6;
  color:#fff;
}

.logo{font-size:20px;font-weight:700;}
.header-action span{
  margin-left:15px;
  cursor:pointer;
}

/* HERO */
.katalog-hero{
  background:linear-gradient(135deg,#2f56a6,#1f2f5c);
  color:#fff;
  padding:50px 40px;
}

.katalog-hero h1{font-size:28px;}
.katalog-hero p{font-size:14px;opacity:.9}

/* SECTION */
.section{
  padding:50px 40px;
}

.section h2{
  font-size:22px;
  margin-bottom:20px;
}

.brand-section{
  background:#fff;
}

/* LIST */
.list{
  max-width:1000px;
  margin:auto;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.list-item{
  background:#fff;
  border-radius:14px;
  padding:18px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  transition:.3s;
  text-decoration:none;
  color:#333;
}

.list-item:hover{
  transform:translateX(6px);
  box-shadow:0 18px 40px rgba(0,0,0,.15);
}

/* LEFT */
.item-left{
  display:flex;
  align-items:center;
  gap:16px;
}

.item-icon{
  width:46px;
  height:46px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:24px;
}

.item-text h3{
  font-size:16px;
}
.item-text p{
  font-size:13px;
  color:#666;
}

/* RIGHT */
.item-right{
  font-size:20px;
  color:#999;
}

/* ICON COLOR */
.blue{background:#2f56a6;}
.yellow{background:#f39c12;}
.green{background:#2ecc71;}
.purple{background:#6c5ce7;}
.orange{background:#e67e22;}
.red{background:#e74c3c;}
.gray{background:#7f8c8d;}

/* BRAND LOGO */
.brand-logo{
  width:70px;
  height:36px;
  object-fit:contain;
}

/* RESPONSIVE */
@media(max-width:600px){
  .header-adv,
  .katalog-hero,
  .section{
    padding-left:20px;
    padding-right:20px;
  }
  .item-text p{
    display:none;
  }
}
    .item-icon{
  width:46px;
  height:46px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  color:#fff;
}
.group{
  background:#fff;
  border-radius:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  overflow:hidden;
}

.group-header{
  padding:16px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
}

.group-title{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:600;
}

.group-body{
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease;
  border-top:1px solid #eee;
}



.group-body .list-item{
  box-shadow:none;
  border-radius:0;
  padding:14px 20px;
}
.item-badge{
  background:#eef1f7;
  padding:2px 8px;
  border-radius:10px;
  font-size:12px;
  font-weight:600;
}
.group-body{
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease;
  border-top:1px solid #eee;
}

.group-header .material-icons:last-child{
  transition:transform .3s ease;
}

.group.open .group-header .material-icons:last-child{
  transform:rotate(180deg);
}
.group-header{
  transition:background .2s;
}
.group-header:hover{
  background:#f6f8fc;
}
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:14px;
}

.product-card{
  background:#fff;
  border-radius:14px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  overflow:hidden;
}

.product-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
}

.product-card .info{
  padding:10px;
}

.product-card h4{
  font-size:14px;
  line-height:1.3;
}
.product-thumb{
  position:relative;
}

.badge-kategori{
  position:absolute;
  top:8px;
  left:8px;
  background:#2f56a6;
  color:#fff;
  font-size:11px;
  padding:4px 8px;
  border-radius:8px;
}

.product-title{
  font-size:14px;
  font-weight:600;
  margin-bottom:4px;
}

.product-sku{
  font-size:11px;
  color:#888;
  margin-bottom:6px;
}

.product-price{
  font-weight:700;
  color:#27ae60;
  margin-bottom:4px;
}

.product-meta{
  font-size:11px;
  color:#999;
}
.gallery-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.gallery-modal.show{
  display:flex;
}

.gallery-content{
  background:#fff;
  width:90%;
  max-width:420px;
  max-height:90vh;
  overflow:auto;
  border-radius:16px;
  padding:16px;
  position:relative;
}

.gallery-close{
  position:absolute;
  top:10px;
  right:14px;
  font-size:20px;
  cursor:pointer;
}

.gallery-main{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:12px;
}

.gallery-thumbs{
  display:flex;
  gap:8px;
  margin-top:12px;
  overflow-x:auto;
}

.gallery-thumb{
  width:60px;
  height:60px;
  object-fit:cover;
  border-radius:8px;
  cursor:pointer;
  opacity:.5;
  flex-shrink:0;
  border:2px solid transparent;
}

.gallery-thumb.active{
  opacity:1;
  border-color:#2f56a6;
}
.product-sku{
  font-size:12px;
  color:#777;
  margin-bottom:6px;
  display:block;
}
.product-toolbar{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:20px 0 30px;
}

.product-toolbar input,
.product-toolbar select{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #ddd;
  font-size:14px;
}

.product-toolbar input{
  flex:1;
  min-width:180px;
}

@media(max-width:600px){
  .product-toolbar{
    flex-direction:column;
  }
}
.toast{
  position:fixed;
  bottom:30px;
  right:30px;
  background:#333;
  color:#fff;
  padding:14px 18px;
  border-radius:10px;
  opacity:0;
  transform:translateY(20px);
  transition:.4s;
  z-index:9999;
}
.toast.show{
  opacity:1;
  transform:translateY(0);
}
/* ============================= */
/* PRODUCT ACTION (PRICE + CART) */
/* ============================= */
.product-action{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
}

/* HARGA */
.product-price{
  font-size:16px;
  font-weight:700;
  color:#2ecc71;
}

/* TOMBOL KERANJANG */
.btn-cart{
  display:flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg,#2f56a6,#1f3f8a);
  color:#fff;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:.25s ease;
  box-shadow:0 6px 14px rgba(47,86,166,.35);
}

.btn-cart .material-icons{
  font-size:18px;
}

.btn-cart:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(47,86,166,.45);
}

.btn-cart:active{
  transform:scale(.96);
}

/* MOBILE */
@media(max-width:600px){
  .product-action{
    flex-direction:column;
    align-items:stretch;
  }

  .btn-cart{
    justify-content:center;
    width:100%;
  }

  .product-price{
    text-align:center;
  }
}
/* ============================= */
/* PRODUCT CARD FIXED BOTTOM BTN */
/* ============================= */
.product-card{
  display:flex;
  flex-direction:column;
  height:100%;
}

/* AREA INFO */
.product-card .info{
  display:flex;
  flex-direction:column;
  flex:1;                 /* 🔑 isi tinggi card */
}

/* PRICE + CART WRAPPER */
.product-action{
  margin-top:auto;        /* 🔥 KUNCI: dorong ke bawah */
}

/*STYLE UNTUK BUTTON SELURUH PRODUK*/ 
.all-product-section {
  display: flex;
  justify-content: flex-start; /* posisi kanan */
  margin-top: 0px;         /* naik sedikit ke area hero */
  margin-bottom: 12px;
}


/* section kategori produk */
.section h2 {
  margin-top: -50px;   /* 🔥 tarik judul ke atas */
}
.btn-all-product {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2f5aa6, #1e3c72);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-all-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.btn-all-product .material-icons {
  font-size: 18px;
}

/*BADGE ANGKA UNTUK JUMLAH DALAM PRODUK*/
.badge-count {
  background: linear-gradient(135deg, #43a047, #2e7d32);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 8px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  box-shadow: 0 2px 6px rgba(46,125,50,.35);
}

/*SEARCH KATALOG*/
/* SEARCH KATEGORI */
.kategori-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 12px 0 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.kategori-search .material-icons {
  font-size: 20px;
  color: #777;
}

.kategori-search input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
}

/*switch katalog & Brand*/
/* ===== TAB SWITCH ===== */
.tab-wrapper{
  display:flex;
  gap:20px;
  border-bottom:2px solid #eee;
  margin-bottom:25px;
}

.tab-btn{
  background:none;
  border:none;
  font-size:16px;
  font-weight:600;
  padding:10px 0;
  cursor:pointer;
  color:#888;
  position:relative;
  transition:.3s ease;
}

.tab-btn.active{
  color:#2f56a6;
}

.tab-btn.active::after{
  content:"";
  position:absolute;
  bottom:-2px;
  left:0;
  width:100%;
  height:3px;
  background:#2f56a6;
  border-radius:2px;
}

.tab-btn:hover{
  color:#2f56a6;
}
 
/*kunci lokasi setelah close card produk*/
html.modal-open,
body.modal-open {
  overflow: hidden !important;
}

/*HIGHLIGHT EFFECT*/
.highlight-card {
  box-shadow: 0 0 0 3px #2f56a6;
  transition: box-shadow .3s ease;
}

.kategori-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
gap:15px;
margin-bottom:40px;
}

.kategori-card{
padding:20px;
background:#f5f5f5;
cursor:pointer;
text-align:center;
border-radius:8px;
font-weight:600;
}

.produk-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
gap:20px;
}

.product-card img{
width:100%;
border-radius:8px;
}

.grid-container{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
gap:20px;
margin-top:30px;
}

.katalog-card{
padding:25px;
background:#f5f6fa;
border-radius:10px;
cursor:pointer;
text-align:center;
font-weight:600;
transition:.2s;
}

.katalog-card:hover{
transform:translateY(-4px);
box-shadow:0 6px 16px rgba(0,0,0,.1);
}

.search-wrapper{
margin-top:20px;
}

.search-wrapper input{
width:100%;
padding:12px;
border-radius:8px;
border:1px solid #ddd;
}

.produk-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
gap:24px;
margin-top:30px;
}

.product-card{
background:#fff;
border-radius:12px;
overflow:hidden;
cursor:pointer;
transition:.25s;
box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.product-card:hover{
transform:translateY(-5px);
box-shadow:0 8px 24px rgba(0,0,0,.12);
}

.product-img{
width:100%;
height:200px;
object-fit:cover;
background:#f5f5f5;
}

.product-info{
padding:14px;
}

.product-title{
font-size:14px;
font-weight:600;
margin-bottom:8px;
min-height:40px;
}

.variant-select{
width:100%;
padding:6px;
border-radius:6px;
border:1px solid #ddd;
font-size:13px;
}
.modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.6);
display:none;
align-items:center;
justify-content:center;
z-index:999;
}

.modal.show{
display:flex;
}

.modal-content{
background:#fff;
padding:20px;
border-radius:10px;
max-width:900px;
width:90%;
}

.modal-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:30px;
}

.modal-gallery img{
width:100%;
border-radius:8px;
}

#modalThumbs{
display:flex;
gap:10px;
margin-top:10px;
}

#modalThumbs img{
width:60px;
height:60px;
object-fit:cover;
cursor:pointer;
border-radius:6px;
}

.close-modal{
cursor:pointer;
font-size:26px;
float:right;
}
.produk-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
gap:22px;
margin-top:30px;
}

.product-card{
background:#fff;
border-radius:12px;
overflow:hidden;
cursor:pointer;
transition:.25s;
border:1px solid #eee;
}

.product-card:hover{
transform:translateY(-4px);
box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.product-img{
width:100%;
height:200px;
object-fit:cover;
background:#f3f3f3;
}

.product-info{
padding:14px;
}

.product-title{
font-size:14px;
font-weight:600;
margin-bottom:10px;
line-height:1.3;
height:38px;
overflow:hidden;
}

.variant-select{
width:100%;
padding:7px;
border-radius:6px;
border:1px solid #ddd;
background:#fafafa;
font-size:13px;
}
.product-modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.6);
display:none;
align-items:center;
justify-content:center;
z-index:999;
padding:10px;
}

.product-modal.show{
display:flex;
}

.modal-box{
background:#fff;
width:900px;
max-width:100%;
border-radius:12px;
overflow:hidden;
}

/* HEADER */

.modal-header{
display:flex;
justify-content:space-between;
align-items:center;
padding:14px 18px;
border-bottom:1px solid #eee;
}

.modal-header h3{
font-size:16px;
margin:0;
}

.modal-close{
background:none;
border:none;
font-size:22px;
cursor:pointer;
}

/* BODY */

.modal-body{
display:grid;
grid-template-columns:1fr 1fr;
gap:25px;
padding:20px;
}

/* GALLERY */

.modal-gallery img{
width:100%;
border-radius:8px;
}

#modalThumbs{
display:flex;
gap:8px;
margin-top:10px;
overflow-x:auto;
}

#modalThumbs img{
width:60px;
height:60px;
object-fit:cover;
cursor:pointer;
border-radius:6px;
border:1px solid #eee;
}

/* DETAIL */

.modal-detail{
font-size:14px;
}

.modal-detail p{
margin-top:15px;
font-weight:600;
}

@media (max-width:768px){

.modal-box{
height:95vh;
overflow-y:auto;
border-radius:10px;
}

.modal-body{
grid-template-columns:1fr;
gap:15px;
padding:15px;
}

.modal-gallery img{
max-height:320px;
object-fit:contain;
}

#modalThumbs{
justify-content:flex-start;
}

.modal-header h3{
font-size:14px;
line-height:1.3;
}

}
/* DETAIL PRODUK DI MODAL */

.modal-product-info{
margin-top:14px;
padding-top:10px;
border-top:1px solid #eee;
}

.modal-product-info h4{
font-size:15px;
font-weight:600;
margin-bottom:8px;
line-height:1.4;
}

.modal-variant{
margin:8px 0;
}

.modal-variant select{
width:100%;
padding:8px;
border-radius:8px;
border:1px solid #ddd;
background:#fafafa;
font-size:13px;
}

.modal-sku,
.modal-brand{
font-size:13px;
color:#666;
margin-top:6px;
}
.btn-detail{
margin-top:8px;
padding:7px 12px;
border:none;
border-radius:8px;
background:#2f56a6;
color:#fff;
font-size:12px;
font-weight:600;
cursor:pointer;
transition:.2s;
width:100%;
}

.btn-detail:hover{
background:#1f3f8a;
}
/* =========================
MOBILE FIX
========================= */

@media (max-width:600px){

/* SECTION */

.section{
padding:20px;
}

/* HERO */

.katalog-hero{
padding:30px 20px;
}

.katalog-hero h1{
font-size:22px;
}

/* GRID PRODUK */

.produk-grid{
grid-template-columns:repeat(2,1fr);
gap:12px;
}

/* CARD */

.product-card{
border-radius:10px;
}

/* IMAGE */

.product-thumb{
padding:6px;
}

.product-thumb img{
max-height:140px;
object-fit:contain;
}

/* INFO */

.product-info{
padding:10px;
}

.product-title{
font-size:12px;
min-height:32px;
}

.product-sku{
font-size:11px;
}

/* VARIANT */

.variant-select{
font-size:11px;
padding:5px;
}

/* BUTTON */

.btn-detail{
font-size:11px;
padding:6px;
}

/* TOOLBAR */

.product-toolbar{
flex-direction:column;
gap:8px;
}

/* MODAL */

.modal-box{
width:100%;
max-width:100%;
border-radius:12px;
}

.modal-content{
grid-template-columns:1fr;
gap:15px;
}

/* GALLERY */

.gallery-main-wrapper{
padding:10px;
}

.gallery-main-wrapper img{
max-height:260px;
}

/* THUMB */

.gallery-thumbs img{
width:50px;
height:50px;
}

/* INFO */

.modal-info h2{
font-size:15px;
}

/* META */

.meta-item span{
font-size:11px;
}

.meta-item b{
font-size:13px;
}

}

/* ============================= */
/* PRODUCT DETAIL MODAL CLEAN UI */
/* ============================= */

.modal-box{
max-width:520px;
width:95%;
margin:auto;
padding:16px;
border-radius:16px;
}

/* IMAGE AREA */

.gallery-main-wrapper{
background:#f7f7f7;
border-radius:12px;
padding:10px;
display:flex;
justify-content:center;
align-items:center;
}

.gallery-main-wrapper img{
max-height:300px;
object-fit:contain;
}

/* THUMBNAIL */

.gallery-thumbs{
display:flex;
gap:8px;
margin-top:10px;
overflow-x:auto;
padding-bottom:4px;
}

.gallery-thumbs img{
width:60px;
height:60px;
object-fit:contain;
background:#f3f3f3;
padding:6px;
border-radius:8px;
cursor:pointer;
}

.gallery-thumbs img.active{
border:2px solid #2f56a6;
}

/* INFO AREA */

.modal-info{
margin-top:16px;
display:flex;
flex-direction:column;
gap:10px;
}

.modal-info h2{
font-size:16px;
line-height:1.4;
font-weight:600;
}

/* META */

.modal-meta{
background:#fafafa;
border-radius:10px;
padding:10px 12px;
display:flex;
flex-direction:column;
gap:8px;
}

.meta-item{
display:flex;
justify-content:space-between;
font-size:13px;
}

.meta-item span{
color:#777;
}

.meta-item b{
font-weight:600;
}

/* VARIANT */

.modal-variant{
margin-top:6px;
}

.modal-variant label{
font-size:12px;
color:#777;
margin-bottom:4px;
display:block;
}

.modal-variant select{
width:100%;
padding:8px;
border-radius:8px;
border:1px solid #ddd;
font-size:13px;
background:#fff;
}

/* MOBILE FIX */

@media (max-width:600px){

.modal-content{
grid-template-columns:1fr;
gap:12px;
}

.gallery-main-wrapper img{
max-height:240px;
}

}
/* ========================= */
/* PRODUCT DETAIL MARKET UI  */
/* ========================= */

.product-modal{
position:fixed;
inset:0;
background:rgba(0,0,0,.6);
display:none;
justify-content:center;
align-items:center;
z-index:9999;
padding:20px;
}

.product-modal.show{
display:flex;
}

.product-detail{
background:#fff;
max-width:420px;
width:100%;
border-radius:16px;
overflow:hidden;
position:relative;
}

/* IMAGE */

.detail-main{
background:#f5f6fa;
padding:16px;
display:flex;
justify-content:center;
align-items:center;
}

.detail-main img{
max-height:320px;
object-fit:contain;
}

/* THUMBS */

.detail-thumbs{
display:flex;
gap:8px;
padding:10px;
overflow-x:auto;
}

.detail-thumbs img{
width:60px;
height:60px;
object-fit:contain;
background:#f3f3f3;
padding:6px;
border-radius:8px;
cursor:pointer;
}

.detail-thumbs img.active{
border:2px solid #2f56a6;
}

/* INFO */

.detail-info{
padding:16px;
display:flex;
flex-direction:column;
gap:10px;
}

.detail-sku{
font-size:18px;
font-weight:700;
color:#111;
}

.detail-info h1{
font-size:15px;
line-height:1.4;
}

.detail-brand{
font-size:13px;
color:#666;
}

/* VARIANT */

.modal-variant select{
width:100%;
padding:10px;
border-radius:8px;
border:1px solid #ddd;
font-size:14px;
}

/* CLOSE */

.modal-close{
position:absolute;
top:10px;
right:10px;
background:#fff;
border:none;
font-size:18px;
cursor:pointer;
border-radius:50%;
width:30px;
height:30px;
box-shadow:0 2px 8px rgba(0,0,0,.2);
}
.modal-body{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
padding:20px;
}

.modal-gallery img{
width:100%;
object-fit:contain;
}

#modalThumbs{
display:flex;
gap:8px;
margin-top:10px;
overflow-x:auto;
}

#modalThumbs img{
width:60px;
height:60px;
object-fit:cover;
cursor:pointer;
border-radius:6px;
}

.modal-product-info{
display:flex;
flex-direction:column;
gap:10px;
}

@media(max-width:768px){

.modal-body{
grid-template-columns:1fr;
}

}
