:root{
  --navy:#081f56;
  --navy-2:#0d347f;
  --yellow:#ffd330;
  --yellow-dark:#f3bf00;
  --bg:#f4f7fc;
  --white:#ffffff;
  --text:#1d2b4d;
  --muted:#6d7691;
  --line:#dde5f2;
  --soft:#edf2fb;
  --success:#0e9448;
  --success-bg:#e9f8ef;
  --shadow:0 18px 45px rgba(8,31,86,.12);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}
img{max-width:100%}
button,input,select,textarea{font:inherit}

.topbar{
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:14px 5vw;
  background:rgba(8,31,86,.96);
  box-shadow:0 4px 20px rgba(0,0,0,.12);
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:#fff;
}
.brand img{
  width:58px;
  height:58px;
  border-radius:16px;
  object-fit:cover;
}
.brand div{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.brand strong{
  font-family:'Montserrat', sans-serif;
  font-size:20px;
  font-weight:900;
  font-style:italic;
  letter-spacing:0.5px;
}
.brand span{
  font-size:13px;
  color:#d9e3fb;
  line-height:1.4;
}
nav{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
nav a{
  text-decoration:none;
  color:#fff;
  font-weight:600;
  font-size:14px;
}
.cart-btn,
.primary,
.secondary,
.ghost{
  border:none;
  cursor:pointer;
  border-radius:14px;
  padding:13px 18px;
  font-weight:700;
  transition:.2s ease;
  text-decoration:none;
  text-align:center;
}
.cart-btn,
.primary{
  background:var(--yellow);
  color:var(--navy);
}
.cart-btn:hover,
.primary:hover{
  transform:translateY(-1px);
  background:var(--yellow-dark);
}
.cart-btn span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:26px;
  height:26px;
  margin-left:7px;
  padding:0 8px;
  background:var(--navy);
  color:#fff;
  border-radius:999px;
  font-size:12px;
}
.secondary{
  background:var(--soft);
  color:var(--navy);
}
.secondary:hover,
.ghost:hover{
  background:#e4ebf8;
}
.ghost{
  background:#fff;
  color:var(--navy);
}
.full{width:100%}
.wa-btn{margin-top:10px}

.hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  align-items:center;
  gap:30px;
  min-height:560px;
  padding:70px 7vw;
  background:
    radial-gradient(circle at top left, rgba(255,211,48,.14), transparent 28%),
    linear-gradient(135deg, #081f56 0%, #0d347f 58%, #154aa8 100%);
  color:#fff;
}
.hero-copy h1{
  font-size:clamp(42px, 5vw, 72px);
  line-height:1.04;
  margin:12px 0 16px;
}
.hero-copy p{
  max-width:680px;
  color:#dfe8ff;
  line-height:1.8;
  font-size:17px;
}
.hero img{
  width:100%;
  max-height:420px;
  object-fit:contain;
  filter:drop-shadow(0 28px 28px rgba(0,0,0,.28));
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}

.eyebrow{
  display:inline-block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--yellow);
}
.eyebrow.navy{
  color:var(--navy-2);
}
.section-sub{
  color:var(--muted);
  margin:8px 0 0;
  line-height:1.7;
}

.benefits{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  padding:24px 5vw;
  background:#eef3fb;
}
.benefit-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:28px 24px;
  box-shadow:0 10px 25px rgba(8,31,86,.05);
}
.benefit-card strong{
  display:block;
  font-size:19px;
  color:var(--navy);
  margin-bottom:8px;
}
.benefit-card span{
  display:block;
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
}

.section{
  padding:80px 6vw;
}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:26px;
}
.section-head h2,
.shipping-card h2{
  margin:8px 0;
  font-size:38px;
  line-height:1.1;
}
.section-head input{
  width:min(360px, 100%);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px 16px;
  background:#fff;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.product-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(8,31,86,.06);
  transition:.22s ease;
}
.product-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
}
.product-image{
  width:100%;
  height:250px;
  object-fit:contain;
  background:#fff;
  padding:18px;
}
.product-body{
  padding:20px;
}
.product-body h3{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.45;
}
.price{
  color:var(--navy-2);
  font-size:22px;
  font-weight:800;
  margin-bottom:10px;
}
.price.large{
  font-size:32px;
}
.spec-preview{
  color:var(--muted);
  line-height:1.6;
  font-size:13px;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:84px;
}
.card-actions{
  display:flex;
  gap:10px;
  margin-top:16px;
}
.card-actions button{
  flex:1;
}

.shipping-card{
  margin:0 6vw 20px;
  background:linear-gradient(135deg, #081f56 0%, #0f3d92 100%);
  color:#fff;
  border-radius:28px;
  padding:42px;
  box-shadow:var(--shadow);
}
.shipping-card p{
  color:#dbe5ff;
  line-height:1.8;
  max-width:980px;
  margin:10px 0 0;
}

.store-profile{
  padding-top:60px;
}
.profile-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:22px;
}
.profile-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:24px;
  box-shadow:0 10px 24px rgba(8,31,86,.05);
}
.profile-card h3{
  margin:0 0 12px;
  color:var(--navy);
}
.profile-card p{
  margin:0 0 10px;
  line-height:1.7;
  color:var(--muted);
}
.profile-card a{
  color:var(--navy-2);
  text-decoration:none;
  font-weight:600;
}

footer{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:28px 6vw;
  background:#06163e;
  color:#fff;
  margin-top:10px;
}
footer img{
  width:56px;
  height:56px;
  border-radius:14px;
  object-fit:cover;
}
footer strong{
  display:block;
  margin-bottom:6px;
}
footer span{
  color:#c5d3f0;
  font-size:13px;
  line-height:1.7;
}

.modal{
  position:fixed;
  inset:0;
  background:rgba(4,10,24,.72);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:60;
  overflow:auto;
}
.hidden{display:none !important}
.modal-card{
  position:relative;
  width:100%;
  max-width:1100px;
  background:#fff;
  border-radius:28px;
  box-shadow:var(--shadow);
  overflow:auto;
  max-height:92vh;
}
.close{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:#edf2fb;
  font-size:26px;
  cursor:pointer;
  z-index:2;
}
.product-modal-card{
  display:grid;
  grid-template-columns:1fr 1fr;
}
.gallery{
  padding:32px;
  border-right:1px solid var(--line);
  background:#fbfcff;
}
.gallery > img{
  width:100%;
  height:380px;
  object-fit:contain;
  margin-bottom:16px;
}
.thumbs{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
}
.thumbs img{
  width:100%;
  height:120px;
  object-fit:contain;
  border:2px solid transparent;
  border-radius:14px;
  background:#fff;
  cursor:pointer;
  padding:10px;
}
.thumbs img.active{
  border-color:var(--yellow);
}
.product-detail{
  padding:36px 32px;
}
.product-detail p{
  color:var(--muted);
  line-height:1.8;
}
.qty-row{
  display:flex;
  align-items:center;
  gap:16px;
  margin:24px 0;
}
.qty-row input{
  width:110px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
}

.checkout-card{
  max-width:860px;
  padding:32px;
}
.checkout-steps{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:24px;
}
.checkout-steps span{
  background:#edf2fb;
  color:var(--muted);
  border-radius:999px;
  padding:9px 14px;
  font-size:13px;
  font-weight:600;
}
.checkout-steps .active{
  background:var(--navy);
  color:#fff;
}
.cart-line{
  display:grid;
  grid-template-columns:82px 1fr 82px auto auto;
  gap:14px;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.cart-line img{
  width:82px;
  height:68px;
  object-fit:contain;
}
.cart-line h4{
  margin:0 0 6px;
}
.cart-line small{
  color:var(--muted);
}
.cart-line input{
  width:82px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px;
}
.line-price{
  font-weight:700;
  color:var(--navy);
}
.remove{
  border:none;
  background:#ffe9e9;
  color:#a52a2a;
  border-radius:10px;
  padding:10px 12px;
  cursor:pointer;
}
form h3{
  margin:28px 0 14px;
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.form-grid label{
  font-size:13px;
  font-weight:700;
  color:#4b5878;
}
.form-grid input,
.form-grid select,
.form-grid textarea{
  width:100%;
  margin-top:8px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:13px 14px;
  background:#fff;
}
.form-grid textarea{
  min-height:96px;
  resize:vertical;
}
.span-2{
  grid-column:span 2;
}
.summary{
  background:#f7faff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  margin:24px 0;
}
.summary-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:8px 0;
}
.summary-row.total{
  margin-top:8px;
  padding-top:14px;
  border-top:1px solid var(--line);
  font-size:20px;
  font-weight:800;
}
.summary small{
  display:block;
  margin-top:8px;
  color:var(--muted);
  line-height:1.6;
}

.payment-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.payment-options label{
  display:flex;
  gap:12px;
  align-items:flex-start;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  cursor:pointer;
}
.payment-options strong{
  display:block;
}
.payment-options small{
  color:var(--muted);
  line-height:1.6;
}
.payment-detail{
  margin:16px 0 18px;
  padding:20px;
  border:1px dashed #aab7d3;
  border-radius:18px;
  background:#fbfdff;
  text-align:center;
}
.payment-detail img{
  width:100%;
  max-width:310px;
  border-radius:14px;
  margin:14px auto;
  display:block;
}
.payment-detail p{
  color:var(--muted);
  margin:8px 0 0;
}

.success-card{
  max-width:520px;
  padding:40px 30px;
  text-align:center;
}
.success-icon{
  width:78px;
  height:78px;
  margin:0 auto 18px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--success-bg);
  color:var(--success);
  font-size:42px;
  font-weight:800;
}
.success-card h2{
  margin:0 0 10px;
}
.success-card p{
  line-height:1.7;
}
.notice{
  background:#fff8d8;
  color:#7b6500;
  border-radius:14px;
  padding:14px;
  margin:18px 0 12px;
}

@media (max-width: 980px){
  .hero{grid-template-columns:1fr}
  .benefits{grid-template-columns:repeat(2,1fr)}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .profile-grid{grid-template-columns:1fr}
  .product-modal-card{grid-template-columns:1fr}
  .gallery{border-right:none;border-bottom:1px solid var(--line)}
  .payment-options{grid-template-columns:1fr}
}

@media (max-width: 680px){
  .topbar{
    align-items:flex-start;
    flex-direction:column;
  }
  nav{
    width:100%;
    justify-content:space-between;
  }
  nav a{display:none}
  .hero{
    padding:56px 6vw;
    min-height:auto;
  }
  .benefits{grid-template-columns:1fr}
  .section-head{
    flex-direction:column;
    align-items:stretch;
  }
  .product-grid{grid-template-columns:1fr}
  .gallery > img{height:280px}
  .thumbs{grid-template-columns:1fr 1fr}
  .cart-line{
    grid-template-columns:62px 1fr;
  }
  .cart-line input,
  .line-price,
  .remove{
    grid-column:2;
  }
  .form-grid{
    grid-template-columns:1fr;
  }
  .span-2{
    grid-column:span 1;
  }
  .checkout-card{
    padding:22px;
  }
}


/* Tampilan spesifikasi yang lebih rapi */
.spec-preview{
  min-height:110px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
  overflow:hidden;
}

.spec-mini,
.spec-detail-list{
  margin:0;
  padding:0;
  list-style:none;
}

.spec-mini{
  display:grid;
  gap:8px;
}

.spec-mini li{
  position:relative;
  padding-left:18px;
  color:var(--muted);
}

.spec-mini li::before{
  content:'•';
  position:absolute;
  left:2px;
  top:0;
  color:var(--navy-2);
  font-weight:900;
}

.spec-detail-list{
  display:grid;
  gap:10px;
  margin-top:16px;
}

.spec-detail-list li{
  position:relative;
  padding:12px 14px 12px 38px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8faff;
  color:#4f5d78;
  line-height:1.65;
}

.spec-detail-list li::before{
  content:'✓';
  position:absolute;
  left:14px;
  top:12px;
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--yellow);
  color:var(--navy);
  font-size:11px;
  font-weight:900;
}

.product-detail > p{
  margin:0;
}


/* ===== MOBILE MARKETPLACE LAYOUT ===== */
@media (max-width: 680px){

  body{
    overflow-x:hidden;
  }

  .topbar{
    position:sticky;
    top:0;
    z-index:50;
    padding:10px 12px;
    gap:10px;
    flex-direction:row;
    align-items:center;
  }

  .brand{
    min-width:0;
    flex:1;
  }

  .brand img{
    width:42px;
    height:42px;
    border-radius:11px;
  }

  .brand div{
    min-width:0;
  }

  .brand strong{
    font-size:16px;
    white-space:nowrap;
  }

  .brand span{
    display:none;
  }

  nav{
    width:auto;
    margin-left:auto;
  }

  nav a{
    display:none;
  }

  .cart-btn{
    padding:10px 12px;
    border-radius:11px;
    font-size:12px;
    white-space:nowrap;
  }

  .cart-btn span{
    min-width:22px;
    height:22px;
    padding:0 6px;
    margin-left:5px;
    font-size:11px;
  }

  .hero{
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
    min-height:auto;
    padding:38px 16px 28px;
  }

  .hero-copy h1{
    font-size:34px;
    line-height:1.08;
    margin:10px 0 12px;
  }

  .hero-copy p{
    font-size:14px;
    line-height:1.7;
  }

  .hero-actions{
    gap:8px;
    margin-top:16px;
  }

  .hero-actions .primary,
  .hero-actions .ghost{
    padding:11px 14px;
    border-radius:11px;
    font-size:12px;
  }

  .hero img{
    max-height:230px;
  }

  .benefits{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
    padding:14px 12px;
  }

  .benefit-card{
    padding:15px 13px;
    border-radius:15px;
  }

  .benefit-card strong{
    font-size:14px;
    margin-bottom:5px;
  }

  .benefit-card span{
    font-size:11px;
    line-height:1.5;
  }

  .section{
    padding:34px 10px;
  }

  .section-head{
    margin-bottom:16px;
    gap:12px;
  }

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

  .section-sub{
    font-size:12px;
    line-height:1.6;
  }

  .section-head input{
    width:100%;
    padding:12px 13px;
    border-radius:12px;
    font-size:13px;
  }

  /* Two-column marketplace-style catalogue */
  .product-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:10px;
    align-items:stretch;
  }

  .product-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(8,31,86,.08);
  }

  .product-card:hover{
    transform:none;
  }

  .product-image{
    width:100%;
    height:150px;
    padding:8px;
    object-fit:contain;
    background:#fff;
  }

  .product-body{
    display:flex;
    flex-direction:column;
    flex:1;
    min-width:0;
    padding:11px 10px 10px;
  }

  .product-body h3{
    margin:0 0 7px;
    font-size:12.5px;
    line-height:1.4;
    min-height:35px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .price{
    margin-bottom:8px;
    font-size:16px;
    line-height:1.2;
  }

  /* Hide technical preview on cards; details remain available in modal */
  .spec-preview{
    display:none !important;
  }

  .card-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    margin-top:auto;
  }

  .card-actions button{
    min-width:0;
    padding:9px 4px;
    border-radius:9px;
    font-size:10.5px;
    line-height:1.2;
  }

  .shipping-card{
    margin:0 10px 18px;
    padding:24px 18px;
    border-radius:20px;
  }

  .shipping-card h2{
    font-size:26px;
  }

  .shipping-card p{
    font-size:13px;
    line-height:1.7;
  }

  .store-profile{
    padding-top:36px;
  }

  .profile-grid{
    gap:12px;
  }

  .profile-card{
    padding:18px;
    border-radius:16px;
  }

  footer{
    padding:22px 14px;
  }

  footer img{
    width:46px;
    height:46px;
  }

  footer span{
    font-size:11px;
  }

  /* Product detail modal */
  .modal{
    padding:0;
    align-items:flex-end;
  }

  .modal-card{
    width:100%;
    max-width:none;
    max-height:94vh;
    border-radius:22px 22px 0 0;
  }

  .close{
    width:38px;
    height:38px;
    top:10px;
    right:10px;
  }

  .product-modal-card{
    display:block;
  }

  .gallery{
    padding:18px 14px 14px;
  }

  .gallery > img{
    height:230px;
    margin-bottom:10px;
  }

  .thumbs{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:7px;
  }

  .thumbs img{
    height:68px;
    padding:5px;
    border-radius:9px;
  }

  .product-detail{
    padding:20px 15px 22px;
  }

  .product-detail h2{
    font-size:23px;
    line-height:1.25;
    padding-right:30px;
  }

  .price.large{
    font-size:25px;
  }

  .spec-detail-list{
    gap:8px;
  }

  .spec-detail-list li{
    padding:10px 10px 10px 34px;
    border-radius:10px;
    font-size:12px;
    line-height:1.55;
  }

  .spec-detail-list li::before{
    left:11px;
    top:10px;
  }

  .qty-row{
    margin:18px 0;
  }

  /* Checkout */
  .checkout-card{
    padding:20px 14px 24px;
  }

  .checkout-steps{
    gap:6px;
    margin-right:38px;
  }

  .checkout-steps span{
    padding:7px 9px;
    font-size:10px;
  }

  .cart-line{
    grid-template-columns:58px 1fr;
    gap:8px;
    padding:12px 0;
  }

  .cart-line img{
    width:58px;
    height:50px;
  }

  .cart-line h4{
    font-size:12px;
    line-height:1.35;
  }

  .cart-line input,
  .line-price,
  .remove{
    grid-column:2;
  }

  .cart-line input{
    width:70px;
  }

  .form-grid{
    grid-template-columns:1fr;
    gap:11px;
  }

  .span-2{
    grid-column:span 1;
  }

  .payment-options{
    grid-template-columns:1fr;
  }

  .payment-detail img{
    max-width:260px;
  }

  .success-card{
    padding:34px 20px 26px;
  }
}

@media (max-width: 380px){
  .product-grid{
    gap:8px;
  }

  .product-image{
    height:135px;
  }

  .product-body{
    padding:9px 8px;
  }

  .product-body h3{
    font-size:11.5px;
  }

  .price{
    font-size:14px;
  }

  .card-actions button{
    font-size:9.5px;
    padding:8px 2px;
  }
}
