/* Reset */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f5f7fa;
  color: #333;
}

/* Navbar */
header {
  background: linear-gradient(90deg, #003399, #0055cc);
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header img {
  height: 45px; /* logo kecil */
  margin-right: 10px;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
}
nav a {
  color: #fff;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: opacity .2s;
}
nav a:hover {
  opacity: 0.8;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(to right, #f0f4ff, #ffffff);
}
.hero h1 {
  font-size: 2.2rem;
  color: #003399;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.1rem;
  color: #555;
}

/* Produk grid */
.section {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}
.section h2 {
  text-align: center;
  color: #003399;
  margin-bottom: 2rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform .2s;
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.card .info {
  padding: 1rem;
}
.card h3 {
  margin: 0;
  font-size: 1rem;
  color: #222;
}
.card p {
  font-size: 0.9rem;
  color: #666;
  height: 40px;
  overflow: hidden;
}
.price {
  font-weight: 700;
  color: #003399;
  margin-top: 0.5rem;
}
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-top: 0.8rem;
  background: #0055cc;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background .2s;
}
.btn:hover {
  background: #003399;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #003399;
  color: #fff;
  margin-top: 2rem;
  font-size: 0.9rem;
}
/* =============================================== */
/* == STYLE UNTUK HALAMAN DETAIL PRODUK          == */
/* =============================================== */

/* Breadcrumbs (Navigasi Jejak) */
.breadcrumbs {
    padding: 1.5rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumbs a:hover {
    color: var(--primary-color);
}
.breadcrumbs span {
    color: var(--text-light);
}

/* Layout Utama Halaman Produk */
.product-detail-section {
    padding-bottom: 4rem;
}
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Galeri Gambar Produk */
.product-gallery {
    position: sticky;
    top: 100px; /* Jarak dari atas saat scroll */
}
.main-product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    background-color: var(--white);
}

/* Kartu Informasi Produk */
.product-info-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.product-header {
    margin-bottom: 1rem;
}

.product-category-badge {
    display: inline-block;
    background-color: #e9d8fd;
    color: #5b21b6;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.product-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.product-description {
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}
.product-description p {
    margin-bottom: 1rem;
}

.btn-buy-now {
    display: block;
    width: 100%;
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.btn-buy-now:hover {
    background: #5a67d8;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(102, 126, 234, 0.4);
}

.product-meta {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.product-meta span {
    display: block;
    margin-bottom: 0.5rem;
}

/* Penyesuaian untuk Mobile (Responsive) */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .product-gallery {
        position: static;
        top: auto;
    }
    .product-info-card {
        padding: 1.5rem;
    }
    .product-title {
        font-size: 1.75rem;
    }
    .product-price {
        font-size: 2rem;
    }
}
