*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Poppins,sans-serif;
}

body{
background:#f4f7fb;
color:#333;
}


/* ================= HEADER ================= */
header{
display:flex;
justify-content:space-between;
align-items:center;

background:linear-gradient(90deg,#1f6f78,#00c2c7);
padding:16px 5%;
color:white;
box-shadow:0 3px 12px rgba(0,0,0,0.2);
border-radius:0 0 20px 20px;
}

#logo-container{
display:flex;
align-items:center;
gap:12px;
flex-shrink:0;
}

#logo-container div{
display:flex;
flex-direction:column;
justify-content:center;
}

#logo-container h1{
font-size:20px;
font-weight:700;
letter-spacing:1px;
margin:0;
line-height:1.2;
}

.tagline{
font-size:11px;
letter-spacing:1px;
line-height:1.2;
white-space:nowrap;
}

/* SOCIAL HEADER */
.social-header{
display:flex;
gap:18px;
font-size:22px;
flex-shrink:0;
}

.social-header a{
color:white;
transition:.3s;
}

.social-header a:hover{
transform:scale(1.2);
color:#e8fefe;
}

/* ================= NAV ================= */
.top-nav{
display:flex;
gap:10px;
padding:10px;
background:white;
position:sticky;
top:0;
z-index:10;
box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

.nav-btn{
flex:1;
text-align:center;
padding:10px;
border-radius:8px;
background:#eee;
text-decoration:none;
color:#333;
font-size:14px;
font-weight:600;
transition:.25s;
}

.nav-btn:hover{
background:#1f6f78;
color:white;
transform:translateY(-2px);
}


/* ================= FORM ================= */
.form-section{
margin:20px 5%;
background:white;
padding:25px;
border-radius:16px;
box-shadow:0 6px 20px rgba(0,0,0,0.1);
}

.form-section h2{
margin-bottom:10px;
color:#1f6f78;
}

label{
display:block;
margin-top:14px;
font-weight:600;
font-size:14px;
}

input,textarea,select{
width:100%;
padding:11px;
margin-top:5px;
border-radius:10px;
border:1px solid #ccc;
font-size:14px;
transition:.25s;
}

input:focus,
textarea:focus,
select:focus{
outline:none;
border-color:#00c2c7;
box-shadow:0 0 0 3px rgba(0,194,199,0.15);
}

textarea{
min-height:100px;
resize:vertical;
}


/* ================= RINGKASAN BIAYA ================= */
.summary-box{
margin-top:20px;
background:#f9ffff;
border:1px dashed #00c2c7;
padding:15px;
border-radius:12px;
}

.summary-box h3{
margin-bottom:10px;
color:#1f6f78;
}

.summary-row{
display:flex;
justify-content:space-between;
margin:6px 0;
font-size:14px;
}

.summary-total{
margin-top:10px;
padding-top:10px;
border-top:2px solid #00c2c7;
font-size:16px;
font-weight:bold;
color:#1f6f78;
}


/* ================= BUTTON ================= */
.btn-submit{
margin-top:25px;
width:100%;
padding:15px;
border-radius:12px;
background:linear-gradient(90deg,#1f6f78,#00c2c7);
color:white;
font-size:16px;
font-weight:bold;
cursor:pointer;
border:none;
transition:.25s;
}

.btn-submit:hover{
transform:scale(1.03);
box-shadow:0 5px 18px rgba(0,194,199,0.5);
}


/* ================= GRID SERVICE ================= */
.products-grid{
margin-top:15px;
display:grid;
gap:15px;
}

/* 📱 MOBILE = 2 KOLOM FIX */
@media (max-width:600px){
  .products-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* 📲 TABLET */
@media (min-width:601px) and (max-width:1024px){
  .products-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

/* 🖥 DESKTOP */
@media (min-width:1025px){
  .products-grid{
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  }
}

.product-card{
display:flex;
flex-direction:column;
justify-content:space-between;
background:white;
border-radius:14px;
padding:12px;
box-shadow:0 3px 12px rgba(0,0,0,0.12);
text-align:center;
transition:.25s;
}

.product-card:hover{
transform:translateY(-5px);
box-shadow:0 8px 20px rgba(0,0,0,0.18);
}

.product-card img{
width:100%;
height:130px;
object-fit:cover;
border-radius:10px;
margin-bottom:8px;
}

.product-card h4{
margin:5px 0;
font-size:15px;
min-height:40px;
}

.product-card p{
font-weight:bold;
color:#1f6f78;
}

.product-card button{
margin-top:8px;
padding:9px;
width:100%;
border-radius:9px;
background:#1f6f78;
color:white;
font-weight:bold;
border:none;
cursor:pointer;
transition:.25s;
}

.product-card button:hover{
background:#00c2c7;
}


/* ================= MODAL ================= */
.modal{
position:fixed;
inset:0;
background:rgba(0,0,0,0.6);
display:flex;
align-items:center;
justify-content:center;
animation:fade .2s;
}

@keyframes fade{
from{opacity:0}
to{opacity:1}
}

.hidden{display:none}

.modal-content{
background:white;
padding:22px;
border-radius:16px;
width:90%;
max-width:350px;
text-align:center;
position:relative;
animation:scale .2s;
}

@keyframes scale{
from{transform:scale(.9)}
to{transform:scale(1)}
}

.btn-close{
position:absolute;
right:15px;
top:8px;
font-size:26px;
cursor:pointer;
}

.modal-img{
width:100%;
border-radius:12px;
margin-bottom:12px;
}

.btn-add{
margin-top:12px;
padding:13px;
width:100%;
border-radius:12px;
background:linear-gradient(90deg,#1f6f78,#00c2c7);
color:white;
font-weight:bold;
border:none;
cursor:pointer;
transition:.25s;
}

.btn-add:hover{
transform:scale(1.05);
}


/* ================= FOOTER ================= */
footer{
margin-top:30px;
background:linear-gradient(90deg,#0b1c22,#2b4d58);
color:white;
text-align:center;
padding:14px;
font-size:13px;
}


/* ================= MOBILE ================= */
@media(max-width:600px){

.form-section{
margin:15px;
padding:18px;
}

.product-card img{
height:110px;
}

.nav-btn{
font-size:12px;
padding:8px;
}

}

/* ================= MAP LEAFLET ================= */
#map{
height:260px;
margin-top:10px;
border-radius:14px;
border:1px solid #dceeff;
box-shadow:0 3px 10px rgba(0,0,0,0.12);
z-index:1;
}


/* ================= KOORDINAT BOX ================= */
#customer-coord{
background:#f3fbff;
font-weight:600;
color:#1f6f78;
text-align:center;
}


/* ================= BUTTON LOKASI ================= */
#getLocation{
margin-top:10px;
padding:12px;
width:100%;
border:none;
border-radius:10px;
background:linear-gradient(90deg,#1f6f78,#00c2c7);
color:white;
font-weight:bold;
cursor:pointer;
transition:.25s;
}

#getLocation:hover{
transform:scale(1.02);
box-shadow:0 5px 16px rgba(0,194,199,0.5);
}


/* ================= TRANSPORT INFO ================= */
#distance-info{
margin-top:6px;
font-size:12px;
color:#555;
text-align:right;
font-style:italic;
}


/* ================= SUMMARY ANIMATION ================= */
.summary-row span:last-child{
font-weight:bold;
color:#0b6d70;
}

.summary-total span:last-child{
color:#0b6d70;
font-size:18px;
}


/* ================= SCROLL MODAL MOBILE ================= */
.modal-content{
max-height:90vh;
overflow-y:auto;
}


/* ================= CUSTOM MARKER ================= */
.custom-marker{
display:flex;
align-items:center;
justify-content:center;
}

.custom-marker i{
font-size:34px;
color:#1f6f78; /* hijau */
text-shadow:
0 3px 8px rgba(0,0,0,.35),
0 0 6px rgba(10,125,59,.4);
transition:.25s;
}

/* efek saat marker aktif */
.custom-marker i:active{
transform:scale(.9);
}

/* ================= ANIMASI LONCAT ================= */
.bounce{
animation:markerBounce .6s cubic-bezier(.34,1.56,.64,1);
}

@keyframes markerBounce{
0%{transform:translateY(-28px) scale(.9)}
40%{transform:translateY(0) scale(1.05)}
65%{transform:translateY(-10px)}
100%{transform:translateY(0)}
}

/* ================= CART ================= */
#cart-items{
margin-top:10px;
display:flex;
flex-direction:column;
gap:10px;
}

.cart-row{
display:flex;
justify-content:space-between;
align-items:center;
background:#f3fbff;
padding:10px;
border-radius:10px;
font-size:14px;
}

.cart-controls{
display:flex;
align-items:center;
gap:6px;
}

.cart-controls button{
border:none;
background:#1f6f78;
color:white;
width:24px;
height:24px;
border-radius:6px;
cursor:pointer;
font-weight:bold;
}

.cart-controls button:hover{
background:#00c2c7;
}

.cart-controls .remove{
background:#d9534f;
}

.cart-controls .remove:hover{
background:#ff6b6b;
}

/* =========== Search Box dan Kategory =========== */
.search-box-sp{
  position:relative;
  display:flex;
  align-items:center;
}

.search-box-sp i{
  position:absolute;
  left:14px;
  color:#888;
  font-size:14px;
}

#searchSparepart{
  padding:12px 15px 12px 38px; /* kasih space kiri buat icon */
  border-radius:12px;
  border:1px solid #ddd;
  font-size:14px;
  min-width:240px;
  transition:0.2s;
}

#searchSparepart:focus{
  border-color:#009688;
  box-shadow:0 0 0 2px rgba(0,150,136,0.15);
  outline:none;
}

/* floating chat */
.floating-wa{
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
}

.floating-wa a{
  width:60px;
  height:60px;
  background:#00c2c7;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size:28px;
  text-decoration:none;
  box-shadow:0 6px 16px rgba(0,0,0,0.25);
  transition:0.3s;
}

.floating-wa a:hover{
  transform:scale(1.1);
}
