/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a6b3c;
  --primary-dark: #134d2c;
  --accent: #f0a500;
  --text: #1e1e1e;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-light: #f7f9f7;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--text); background: var(--bg); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background: var(--bg-light); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
}
.logo { font-size: 1.1rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.logo span { font-size: 1.4rem; }
.logo small { font-size: 0.7rem; font-weight: 400; color: var(--text-muted); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.btn-cart {
  position: relative;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-cart:hover { background: var(--primary-dark); }
.cart-count {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2d9e5f 100%);
  color: #fff;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  min-height: 520px;
}
.hero-content { max-width: 520px; }
.hero-content h1 { font-size: 2.8rem; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.hero-content h1 span { color: var(--accent); }
.hero-content p { font-size: 1rem; opacity: 0.9; margin-bottom: 32px; line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img { flex-shrink: 0; }
.fish-placeholder {
  font-size: 10rem;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ===== STATS ===== */
.stats {
  background: var(--primary-dark);
  color: #fff;
  padding: 40px 20px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item h2 { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-item p { font-size: 0.85rem; opacity: 0.8; margin-top: 4px; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.section-header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}
.section-header p { color: var(--text-muted); margin-top: 12px; }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 1;
}
.product-badge.new { background: #3b82f6; }
.product-badge.sale { background: #ef4444; }
.product-img {
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  height: 180px;
}
.product-info { padding: 16px; }
.product-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.product-type { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.btn-add {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
.btn-add:hover { background: var(--primary-dark); }

.center-btn { text-align: center; margin-top: 40px; }

/* ===== CATEGORY GRID ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.category-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.category-card:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.cat-icon { font-size: 2.5rem; margin-bottom: 10px; }
.category-card h3 { font-size: 0.95rem; font-weight: 600; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-placeholder {
  background: var(--bg-light);
  border-radius: var(--radius);
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}
.about-text h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.about-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.about-list i { color: var(--primary); font-size: 1.1rem; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 24px;
  text-align: center;
}
.contact-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 14px; }
.contact-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.contact-card p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.9rem; }

/* ===== FOOTER ===== */
.footer { background: var(--text); color: #fff; padding: 60px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; opacity: 0.6; line-height: 1.7; }
.footer-links h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; color: var(--accent); }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.85rem; opacity: 0.7; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ===== KATALOG PAGE ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary), #2d9e5f);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.page-header h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
.page-header p { opacity: 0.85; }

.katalog-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  padding: 40px 0;
}
.filter-sidebar {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  height: fit-content;
}
.filter-sidebar h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; color: var(--primary); }
.filter-group { margin-bottom: 24px; }
.filter-group h4 { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-bottom: 8px; cursor: pointer; }
.filter-group input[type=range] { width: 100%; accent-color: var(--primary); }
.price-range-display { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

.katalog-main {}
.katalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.katalog-toolbar span { font-size: 0.9rem; color: var(--text-muted); }
.sort-select {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

/* ===== KERANJANG PAGE ===== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
  padding: 40px 0;
}
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.cart-item-img { font-size: 3.5rem; background: var(--bg-light); border-radius: 8px; padding: 12px; }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 1rem; font-weight: 600; }
.cart-item-info p { font-size: 0.85rem; color: var(--text-muted); }
.cart-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.qty-btn { background: var(--bg-light); border: none; border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-size: 1rem; }
.cart-item-price { font-weight: 700; color: var(--primary); font-size: 1.05rem; }
.cart-remove { color: #ef4444; background: none; border: none; cursor: pointer; font-size: 1.1rem; }

.cart-summary {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  height: fit-content;
}
.cart-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 12px; }
.summary-row.total { font-weight: 700; font-size: 1rem; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.cart-summary .btn { width: 100%; text-align: center; margin-top: 16px; }

/* ===== CHECKOUT PAGE ===== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  padding: 40px 0;
}
.checkout-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.checkout-form h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: var(--primary); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.payment-methods { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.payment-option:hover { border-color: var(--primary); }
.payment-option input[type=radio] { accent-color: var(--primary); }
.payment-option span { font-size: 0.9rem; font-weight: 500; }

.order-summary-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  height: fit-content;
}
.order-summary-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.order-item { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 10px; }
.order-item span:first-child { color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 65px; left: 0; right: 0; background: #fff; padding: 20px; border-bottom: 1px solid var(--border); gap: 16px; }
  .hamburger { display: block; }

  .hero { flex-direction: column; text-align: center; padding: 60px 20px; gap: 30px; }
  .hero-content h1 { font-size: 2rem; }
  .fish-placeholder { font-size: 6rem; }
  .hero-btns { justify-content: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .katalog-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
