/* ===== VARIABLES ===== */
:root {
  --red: #D32F2F;
  --red-dark: #B71C1C;
  --red-light: #FFEBEE;
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-400: #BDBDBD;
  --gray-600: #757575;
  --gray-800: #424242;
  --gray-900: #212121;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--red);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gray-900);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .fa-jar {
  font-size: 1.4rem;
  color: var(--red);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--red);
}

/* ===== NAV TOGGLE ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--gray-800);
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(165deg, var(--white) 60%, var(--red-light) 100%);
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 500px;
  margin: 0 auto 36px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.35);
}

/* ===== PRODUCTS ===== */
.products-section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 56px;
  font-size: 1.05rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card.featured {
  border: 2px solid var(--red);
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--red);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-image {
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.product-icon {
  font-size: 4rem;
  color: var(--red);
}

.product-info {
  padding: 28px;
  text-align: center;
}

.product-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-desc {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 20px;
}

.btn-buy {
  width: 100%;
  padding: 12px;
}

/* ===== FEATURES ===== */
.features-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  text-align: center;
  padding: 32px 20px;
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--red);
}

.feature h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ===== ABOUT ===== */
.about-section {
  padding: 100px 0;
}

.about-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-top: 20px;
  line-height: 1.8;
}

/* ===== CART FAB ===== */
.cart-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 90;
}

.cart-fab:hover {
  transform: scale(1.08);
  background: var(--red-dark);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gray-900);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CART MODAL ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.cart-overlay.active {
  display: flex;
}

.cart-modal {
  background: white;
  border-radius: var(--radius);
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--gray-200);
}

.cart-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--gray-600);
  transition: color 0.2s;
}

.cart-close:hover {
  color: var(--gray-900);
}

.cart-items {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.cart-empty {
  text-align: center;
  color: var(--gray-400);
  padding: 32px 0;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-800);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.qty-value {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 20px;
  text-align: center;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-price {
  font-weight: 700;
  color: var(--red);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.cart-item-remove:hover {
  color: var(--red);
}

.cart-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--gray-200);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.btn-checkout {
  width: 100%;
  text-align: center;
}

.btn-checkout:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
}

.btn-checkout:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ===== MACUN BANNER ===== */
.macun-banner {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--gray-900) 0%, #371010 100%);
  color: var(--white);
}

.macun-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.macun-banner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 12px 0 8px;
}

.macun-banner p {
  color: var(--gray-400);
  font-size: 0.95rem;
  max-width: 480px;
}

.macun-banner .age-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .macun-banner-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  background: var(--gray-900);
  color: var(--gray-400);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .products-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1rem;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }
}
