/* =========================================================
   Mulia Acetech Perkasa - Stylesheet
   Font: Manrope (heading + body)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  --cream: #f5eaac;
  --cream-light: #f8f3d6;
  --green-dark: #1f5c42;
  --green-darker: #184a35;
  --green-mid: #2f6b4c;
  --green-bright: #3f935f;
  --red: #ef4136;
  --text-dark: #1a1a1a;
  --white: #ffffff;
  --gray-border: #d8d0a0;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
}

*{ box-sizing: border-box; }

body{
  margin:0;
  font-family: 'Manrope', sans-serif;
  background: var(--cream-light);
  color: var(--text-dark);
}

h1,h2,h3,h4{
  font-family: 'Manrope', sans-serif;
  margin: 0;
}

a{ text-decoration:none; color:inherit; }
img{ max-width:100%; display:block; }
button{ font-family:'Manrope',sans-serif; cursor:pointer; }

.container{
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Header ---------- */
.site-header{
  background: var(--cream);
  padding: 18px 0;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand img{ width:64px; height:64px; object-fit:contain; }
.brand .brand-name{
  font-family:'Manrope', sans-serif;
  font-weight:800;
  font-size:1.5rem;
  color: var(--text-dark);
  line-height:1.15;
}
.brand .brand-tagline{
  font-size:0.9rem;
  color:#333;
}
.main-nav{
  display:flex;
  gap: 36px;
}
.main-nav a{
  font-family:'Manrope', sans-serif;
  font-weight:700;
  font-size:1.1rem;
  color: var(--text-dark);
  padding-bottom:6px;
  border-bottom: 3px solid var(--green-dark);
}
.main-nav a.active{
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:600;
  font-size:1rem;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover{ opacity:0.92; }
.btn-solid-green{
  background: var(--green-dark);
  color: var(--white);
}
.btn-outline-green{
  background: transparent;
  border-color: var(--green-dark);
  color: var(--green-dark);
}
.btn-red{
  background: var(--red);
  color:#fff;
}
.btn-view-details{
  background: var(--green-dark);
  color:#fff;
  width:100%;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight:600;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.btn-view-details svg{ width:18px; height:18px; }
.btn-delete{
  background: var(--red);
  color:#fff;
  width:100%;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight:700;
  border:none;
  margin-top:10px;
}
.btn-small{
  padding: 10px 18px;
  font-size:0.95rem;
}

/* ---------- Hero (Home) ---------- */
.hero{
  padding: 50px 0 30px;
}
.hero .container{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items:center;
}
.hero-img{
  border-radius: 24px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.hero-title{
  font-size: 2.7rem;
  font-weight:900;
  line-height:1.15;
}
.hero-title .accent{ color: var(--green-dark); }
.hero-divider{
  width:70px;
  height:4px;
  background: var(--green-dark);
  margin: 18px 0;
}
.hero-sub{
  font-family:'Manrope',sans-serif;
  color: var(--green-dark);
  font-weight:700;
  font-size:1.2rem;
  margin-bottom:10px;
}
.hero-desc{
  font-size:1.05rem;
  line-height:1.6;
  margin-bottom:26px;
}
.hero-actions{ display:flex; gap:18px; flex-wrap:wrap; }

/* ---------- Section titles ---------- */
.section-title{
  text-align:center;
  margin: 60px 0 36px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  font-size:2rem;
  font-weight:800;
}
.section-title .line{
  height:3px;
  width:110px;
  background: var(--green-dark);
}

/* ---------- Product cards (home) ---------- */
.product-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
@media (max-width: 1100px){ .product-grid{ grid-template-columns: repeat(3,1fr);} }
@media (max-width: 700px){ .product-grid{ grid-template-columns: repeat(2,1fr);} }

.product-card{
  background:#fff;
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
  text-align:center;
  display:flex;
  flex-direction:column;
}
.product-card .photo-wrap{
  height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:10px;
}
.product-card .photo-wrap img{ max-height:150px; object-fit:contain; }
.product-card .p-name{
  font-weight:600;
  margin-bottom:14px;
}

.view-more-wrap{
  text-align:center;
  margin: 40px 0 10px;
}

/* ---------- Why choose us ---------- */
.why-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 22px;
  margin: 40px 0 70px;
}
@media (max-width: 900px){ .why-grid{ grid-template-columns: repeat(2,1fr);} }
.why-item{
  background:#fff;
  border-radius: 50px;
  padding: 20px 22px;
  display:flex;
  align-items:center;
  gap:14px;
  font-weight:600;
  box-shadow: var(--shadow);
}
.why-item .icon{
  width:38px;height:38px;
  flex-shrink:0;
  color: var(--green-dark);
}

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--green-bright);
  padding: 34px 0;
}
.cta-band .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:20px;
}
.cta-band h3{
  color:#fff;
  font-size:1.7rem;
  margin-bottom:8px;
}
.cta-band p{ color:#eafff0; margin:0; }
.cta-band .btn-red{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--green-darker);
  color:#eafff0;
  padding: 18px 0;
}
.site-footer .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
}
.footer-socials{ display:flex; gap:14px; }
.footer-socials a{
  width:38px;height:38px;
  border-radius:50%;
  background:#fff;
  color: var(--green-darker);
  display:flex;align-items:center;justify-content:center;
  transition: transform .15s;
}
.footer-socials a:hover{ transform: translateY(-3px); }
.footer-socials svg{ width:20px;height:20px; }

/* ---------- About page ---------- */
.page-title{
  text-align:center;
  font-size:2.4rem;
  font-weight:800;
  margin: 40px 0 30px;
}
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items:flex-start;
  margin-bottom: 50px;
}
.about-photo{
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.about-text p{
  line-height:1.7;
  margin-bottom:18px;
  font-size:1.02rem;
}
.about-text b{ color: var(--text-dark); }
.about-text .lead{ color: var(--red); font-weight:700; }

.services-grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 26px;
  margin-bottom: 60px;
}
@media (max-width: 900px){ .services-grid{ grid-template-columns: 1fr;} }
.service-card{
  background:#fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align:center;
}
.service-card .icon{
  width:34px;height:34px;
  margin: 0 auto 14px;
  color: var(--green-dark);
}
.service-card h4{ font-size:1.15rem; margin-bottom:10px; }
.service-card p{ font-size:0.95rem; line-height:1.6; color:#333; }

/* ---------- Products page ---------- */
.products-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  margin: 40px 0 20px;
}
.tabs-main{ display:flex; gap:16px; flex-wrap:wrap; }
.tab-btn{
  padding: 14px 34px;
  border-radius: 10px;
  border: 2px solid var(--green-dark);
  background:#fff;
  font-weight:700;
  font-family:'Manrope',sans-serif;
  font-size:1.05rem;
  color: var(--text-dark);
}
.tab-btn.active{ background:#c9c9c9; border-color:#c9c9c9; }

.tabs-sub{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 34px;
}
.pill-btn{
  padding: 10px 22px;
  border-radius: 30px;
  border: none;
  background:#fff;
  font-weight:600;
  box-shadow: var(--shadow);
  color: var(--text-dark);
}
.pill-btn.active{ background:#c9c9c9; }
.pill-btn.add-pill{
  background:#fff;
  border: 2px dashed var(--green-dark);
  color: var(--green-dark);
}
.pill-btn.empty-pill{ opacity:0.55; }

.pill-wrap{
  position:relative;
  display:inline-flex;
}
.pill-delete-btn{
  position:absolute;
  top:-8px;
  right:-8px;
  width:22px;
  height:22px;
  border-radius:50%;
  background: var(--red);
  color:#fff;
  border: 2px solid var(--cream-light);
  font-size:13px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  font-weight:700;
}

.edit-toggle-btn{
  padding: 12px 26px;
  border-radius: 10px;
  border: 2px solid var(--green-dark);
  background:#fff;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:10px;
}
.edit-toggle-btn.is-active{ background: var(--green-dark); color:#fff; }

.catalog-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}
@media (max-width: 1100px){ .catalog-grid{ grid-template-columns: repeat(3,1fr);} }
@media (max-width: 800px){ .catalog-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 550px){ .catalog-grid{ grid-template-columns: 1fr;} }

.catalog-card{ text-align:center; }
.catalog-card .poster-wrap{
  border-radius: 10px;
  overflow:hidden;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  background:#fff;
  aspect-ratio: 3/4;
  display:flex;
  align-items:center;
  justify-content:center;
}
.catalog-card .poster-wrap img{ width:100%; height:100%; object-fit:cover; }
.catalog-card .poster-wrap.no-image{
  background: #eee;
  color:#999;
  font-size:0.9rem;
  padding: 20px;
}
.catalog-card .p-title{
  font-weight:600;
  margin-bottom: 12px;
}
.catalog-card .p-title .std{ color: var(--red); }
.catalog-card .p-title .nm{ color: var(--green-dark); }

.add-product-tile{
  border: 2px solid var(--green-dark);
  border-radius: 10px;
  background:#fff;
  aspect-ratio: 3/4;
  display:flex;
  align-items:center;
  justify-content:center;
}
.add-product-tile button{
  border: 2px solid var(--green-dark);
  border-radius: 8px;
  background:#fff;
  padding: 14px 26px;
  font-weight:700;
  color: var(--text-dark);
}

.empty-catalog-msg{
  padding: 60px 20px;
  text-align:center;
  color:#777;
  font-size:1.05rem;
}

/* ---------- Product detail ---------- */
.detail-title{
  text-align:center;
  font-size:1.6rem;
  font-weight:700;
  margin: 30px 0 26px;
}
.detail-title .std{ color: var(--red); }
.detail-title .nm{ color: var(--green-dark); }

.detail-poster{
  max-width: 620px;
  margin: 0 auto 40px;
  border-radius: 14px;
  overflow:hidden;
  box-shadow: var(--shadow);
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.detail-poster img{
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.detail-spec-fallback{
  max-width: 700px;
  margin: 0 auto 50px;
  background:#fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 30px 36px;
}
.detail-spec-fallback .photo{
  text-align:center;
  margin-bottom: 20px;
}
.detail-spec-fallback .photo img{ max-height:220px; margin:0 auto; }
.spec-row{
  display:flex;
  justify-content:space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.spec-row .label{ color:#777; }
.spec-row .value{ font-weight:600; text-align:right; }

.back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin: 20px 0;
  font-weight:600;
  color: var(--green-dark);
}

/* ---------- Contact page ---------- */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin: 40px 0 50px;
}
@media (max-width: 900px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-card{
  background:#fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 36px;
}
.contact-card h3{
  font-size:1.6rem;
  margin-bottom: 6px;
}
.title-underline{
  width: 60px; height:3px;
  background: var(--green-dark);
  margin-bottom: 26px;
}
.contact-item{
  display:flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item .ic{
  width:42px;height:42px;
  border-radius:50%;
  border: 2px solid var(--green-dark);
  display:flex;align-items:center;justify-content:center;
  color: var(--green-dark);
  flex-shrink:0;
}
.contact-item .ic svg{ width:20px;height:20px; }
.contact-item h4{ margin-bottom:4px; font-size:1.05rem; }
.contact-item p{ margin:0; color:#333; line-height:1.5; }
.contact-item a{ color: var(--green-dark); font-weight:600; }

.social-block h3, .map-block h3{
  font-size:1.35rem;
  margin-bottom:6px;
}
.social-icons{ display:flex; gap:18px; margin: 16px 0 34px; }
.social-icons a{
  width:56px;height:56px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#fff;
}
.social-icons a.ig{ background:#111; border:2px solid #111; }
.social-icons a.fb{ background:#1877F2; }
.social-icons svg{ width:26px;height:26px; }

.map-frame{
  border-radius: 14px;
  overflow:hidden;
  box-shadow: var(--shadow);
  height: 260px;
}
.map-frame iframe{ width:100%; height:100%; border:0; }

.service-process{
  border: 2px solid var(--green-dark);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 60px;
}
.service-process h3{
  text-align:center;
  font-size:1.6rem;
  margin-bottom: 34px;
}
.process-steps{
  display:grid;
  grid-template-columns: repeat(5,1fr);
  gap: 20px;
  text-align:center;
}
@media (max-width: 900px){ .process-steps{ grid-template-columns: repeat(2,1fr);} }
.process-steps .icon{
  width:34px;height:34px;
  margin: 0 auto 10px;
  color: var(--text-dark);
}
.process-steps .step-name{ font-weight:700; margin-bottom: 14px; }
.process-steps .step-num{
  width:34px;height:34px;
  border-radius:50%;
  background: var(--green-bright);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  margin: 0 auto;
  font-weight:700;
}

/* ---------- Modal (Edit: add category / add product) ---------- */
.modal-overlay{
  position:fixed; inset:0;
  background: rgba(0,0,0,0.45);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.open{ display:flex; }
.modal-box{
  background:#fff;
  border-radius: 20px;
  padding: 34px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y:auto;
  position:relative;
}
.modal-box h3{ font-size:1.4rem; margin-bottom:22px; }
.modal-close{
  position:absolute; top:18px; right:22px;
  background:none; border:none; font-size:1.4rem; cursor:pointer;
}
.form-row{ margin-bottom: 18px; }
.form-row label{ display:block; font-weight:600; margin-bottom:8px; }
.form-row input[type=text], .form-row select{
  width:100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: var(--cream-light);
  font-family:'Manrope',sans-serif;
}
.upload-box{
  border: 2px solid #222;
  border-radius: 10px;
  height: 240px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
  overflow:hidden;
  position:relative;
  background: var(--cream-light);
}
.upload-box img{ width:100%; height:100%; object-fit:contain; }
.upload-box input[type=file]{ display:none; }
.btn-upload{
  display:block;
  margin: 20px auto 0;
  background: var(--green-bright);
  color:#fff;
  font-weight:700;
  padding: 14px 40px;
  border-radius: 8px;
  border:none;
  font-size:1rem;
}
.form-msg{ margin-top:10px; font-weight:600; }
.form-msg.error{ color: var(--red); }
.form-msg.success{ color: var(--green-dark); }

.password-gate{ text-align:center; }
.password-gate input{
  width:100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin: 16px 0;
  text-align:center;
  font-size:1.1rem;
}

@media (max-width: 700px){
  .hero .container{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .hero-title{ font-size:2rem; }
}
