/* =========================================================
   FONT & ROOT VARIABLES
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Germania+One&family=Teko:wght@300..700&family=Truculenta:opsz,wght@12..72,100..900&display=swap');

:root {
  --header-height: 80px;
  --header-height-mobile: 70px;
  --primary: #003366;
  --accent: #66b3ff;
}

/* =========================================================
   BASE STYLE (HTML, BODY, HEADING)
   ========================================================= */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Cardo", serif;
  height: 100%;
  overflow-x: hidden;
}

body {
  padding-top: var(--header-height);
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: "Cardo", serif;
}

main {
  flex: 1;
}

/* =========================================================
   BACKGROUND SECTION (GLOBAL BACKDROP)
   ========================================================= */
.background-set {
  background: url(/images/background.avif) no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  position: relative;
}

.background-set::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.15);
}

/* =========================================================
   HEADER / NAVBAR
   ========================================================= */
.main-header { 
  position: fixed; 
  top: 0; left: 0; 
  width: 100%; 
  height: var(--header-height); 
  background: var(--primary); 
  display: flex; 
  align-items: center; 
  z-index: 1000; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 0 20px; 
} 

.header-container { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  width: 100%; 
} 

.logo-circle { 
  width: 56px; height: 56px; 
  background: #fff; 
  border-radius: 50%; 
  display: flex; align-items: center; justify-content: center; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.2); 
  overflow: hidden; 
} 

.logo-circle img { 
  max-width: 85%; 
  max-height: 85%; 
} 

.logo-text-container { 
  display: flex; align-items: center; gap: 10px; 
  white-space: nowrap;
} 

.company-text h2 { 
  font-family: 'Arial Black', sans-serif; 
  font-size: 18px; 
  font-weight: 700; 
  color: #ffffff; 
  margin: 0; 
  letter-spacing: 0.5px; 
} 

.company-text h3 { 
  font-family: Arial, sans-serif; 
  font-size: 13px; 
  font-weight: 600; 
  color: #d9f2e6; 
  margin: 2px 0 0 0; 
}

.nav-menu { 
  display: flex; 
  gap: 20px; 
} 

.nav-menu a { 
  color: #fff; 
  text-decoration: none; 
  font-size: 15px; 
  font-weight: 500; 
  transition: 0.3s ease;
} 

.nav-menu a:hover { 
  color: var(--accent); 
}

.menu-toggle { 
  display: none; 
} 

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: 0.3s;
  position: relative;
}

.hamburger-btn:hover { 
  transform: scale(1.1); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
}

.hamburger-btn span { 
  width: 22px; height: 2.5px; 
  background: #fff; 
  border-radius: 2px; 
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s ease;
}

.hamburger-btn span:nth-child(1) { top: 10px; }
.hamburger-btn span:nth-child(2) { top: 17px; }
.hamburger-btn span:nth-child(3) { top: 24px; }

.menu-toggle:checked + .hamburger-btn span:nth-child(1) {
  transform: translate(-50%, 7px) rotate(45deg);
}
.menu-toggle:checked + .hamburger-btn span:nth-child(2) {
  opacity: 0;
}
.menu-toggle:checked + .hamburger-btn span:nth-child(3) {
  transform: translate(-50%, -7px) rotate(-45deg);
}

.menu-toggle:checked ~ .nav-menu {
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
}


/* =========================================================
   MOBILE STYLE (HEADER)
   ========================================================= */
@media (max-width: 768px) { 

  :root { --header-height: var(--header-height-mobile); } 
  body { padding-top: var(--header-height); } 

  .logo-circle { width: 48px; height: 48px; }

  .company-text h2 { font-size: 10px; } 
  .company-text h3 { font-size: 8px; } 

  .nav-menu { 
    flex-direction: column;
    position: absolute;
    left: 0; right: 0;
    top: var(--header-height);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;

    transition: 0.35s ease;
  }

  .nav-menu a {
    padding: 14px;
    color: var(--primary);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    text-align: center;
  }

  .menu-toggle:checked ~ .nav-menu { 
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .hamburger-btn { display: flex; }
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
  background: linear-gradient(
    180deg,
    #c9e2ff 50%,
    #d9ebff 60%,
    #d9ebff 70%,
    #ffffff 100%
  );
  padding: 5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero-container {
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1 1 500px;
  color: #003366;
}

.welcome-text { 
  color: #0059b3; 
  margin-bottom: 0.5rem;
  text-align: justify;	
}

.hero-title { 
  font-size: 2.5rem; 
  font-weight: 700; 
  margin-bottom: 1rem; 
  text-align: justify;
}

.hero-description { 
  line-height: 1.6; 
  margin-bottom: 1.5rem; 
  text-align: justify;
}

/* Tombol */
.btn-hero {
  background: rgb(0, 102, 204);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-hero:hover { 
  background: rgb(0, 76, 153); 
}

.hero-image img {
  max-width: 100%;
  border-radius: 0.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1.2rem;
    min-height: auto;
	background: linear-gradient(
		180deg,
		#c9e2ff 50%,
		#d9ebff 60%,
		#d9ebff 70%,
		#ffffff 100%
  );
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: justify;
  }

  .hero-title {
    font-size: 2rem;
    text-align: justify;
  }

  .hero-description,
  .welcome-text {
    text-align: justify;
  }

  .btn-hero {
    display: inline-block;
    margin-top: 1rem;
  }

  .hero-image img {
    width: 80%;
    margin: 0 auto;
  }
}

/* =========================================================
   ETALASE / PRODUK BUKU
   ========================================================= */
.section-title { 
  text-align: center; 
  margin: 40px auto 30px; 
  font-size: 28px; font-weight: 700; 
  color: #007bff; 
  text-transform: uppercase; 
  letter-spacing: 2px; 
  position: relative;
} 

.section-title::after { 
  content: ""; display: block; 
  width: 80px; height: 4px; 
  background: #00c4ff; 
  margin: 10px auto 0; 
  border-radius: 2px; 
  box-shadow: 0 2px 6px rgba(0, 196, 255, 0.5); 
}

.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.product-container::-webkit-scrollbar { height: 6px; }
.product-container::-webkit-scrollbar-thumb { background: #0077cc; border-radius: 10px; }

.product-card {
  flex: 0 0 calc(20% - 16px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 16px;
  text-align: center;
  position: relative;
}

.product-card img {
  height: 180px;
  object-fit: contain;
  margin-bottom: 12px;
}

.product-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0;
  min-height: 40px;
}

.price {
  font-size: 16px;
  font-weight: bold;
  color: #0077cc;
  margin: 8px 0;
}

.btn {
  background: #0077cc;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s;
}
.btn:hover { background: #005fa3; }

.badge {
  position: absolute;
  top: 10px; left: 10px;
  background: #ff5722; color: #fff;
  font-size: 12px; padding: 4px 8px;
  border-radius: 6px;
}

/* =========================================================
   LAYANAN / SERVICE SECTION
   ========================================================= */
.partnership-section {
  text-align: center;
  padding: 50px 20px;
  background: #f9f9f9;
}

.service-box {
  background: linear-gradient(135deg, #e6f2ff, #cce5ff);
  border-radius: 12px;
  padding: 25px;
  margin: 20px auto;
  max-width: 900px;
  text-align: left;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  animation: fadeIn 1s ease;
}

/* ===============================
   DETAIL PRODUK - Layout Desktop sejajar
================================ */
.detail-section {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #fff;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.detail-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  max-width: 1100px;
  width: 100%;
  background: linear-gradient(135deg, rgb(204, 229, 255), rgb(153, 204, 255));
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 9px 20px rgba(0,0,0,0.08);
  box-sizing: border-box;
  flex-wrap: nowrap;
}

/* =========================================
   KIRI: Cover + rekomendasi buku
========================================= */
.detail-image {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-image img {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  margin-bottom: 12px;
  object-fit: cover;
}

.image-extra-text {
  font-size: 13px;
  color: #333;
  text-align: center;
  margin-bottom: 12px;
}

/* Rekomendasi di bawah cover */
.rekom-buku {
  width: 100%;
  text-align: center;
}

.rekom-buku h5 {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

/* Slider Rekomendasi */
.rekom-slider {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  justify-content: center;
  padding: 4px 0;
}

.rekom-slider img {
  flex: 0 0 calc((100% - 20px) / 3); /* 3 gambar terlihat, sisanya scroll */
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rekom-slider img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Detail Text */
.detail-title {
  font-size: 26px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 10px;
}

.detail-sold {
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
}

.detail-price {
  font-size: 26px;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 16px;
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.detail-description {
  font-size: 15px;
  color: #222;
  line-height: 1.6;
}

.detail-description strong {
  color: #003366;
}

.detail-description hr {
  border: 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin: 14px 0;
}

/* =========================================
   RESPONSIVE - Stack di layar kecil
========================================= */
@media (max-width: 850px) {
  .detail-container {
    flex-direction: column;
    align-items: left;
    text-align: justify;
    gap: 20px;
  }

  .detail-image {
    flex: none;
    width: 100%;
  }

  .detail-info {
    width: 100%;
  }

  .rekom-slider {
    justify-content: center;
  }
}

/* =========================================================
   END OF FILE
   ========================================================= */
