/* Dapur Misani UMKM - Clean Design System & Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --primary: #d97706; /* Warm Amber */
  --primary-dark: #b45309;
  --primary-light: #fef3c7;
  --accent: #92400e; /* Terracotta / Spice */
  --accent-secondary: #059669; /* Emerald Halal & Freshness green */
  --bg-main: #fffdfa;
  --bg-surface: #ffffff;
  --bg-subtle: #fbf7f0;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border-color: #f3e8d7;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 25px -5px rgba(217, 119, 6, 0.08), 0 8px 10px -6px rgba(0,0,0,0.03);
  --shadow-lg: 0 20px 30px -10px rgba(146, 64, 14, 0.12), 0 10px 15px -5px rgba(0,0,0,0.04);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
}

main, section, header, footer {
  width: 100%;
  max-width: 100%;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(255, 253, 250, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(243, 232, 215, 0.7);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 253, 250, 0.98);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.nav-right-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.mobile-cart-cta {
  display: none;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white !important;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.cart-badge-count {
  background: rgba(255, 255, 255, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 99px;
  font-size: 0.75rem;
}


.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  z-index: 1002;
}

.mobile-nav-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-nav-toggle.active .bar:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.mobile-nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-cta {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white !important;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Hero Section */
.hero {
  padding: 9rem 0 5rem;
  background: radial-gradient(circle at top right, #fef3c7 0%, transparent 60%),
              radial-gradient(circle at bottom left, #fff7ed 0%, transparent 50%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero-title span {
  color: var(--primary);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--accent);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-subtle);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat-item h3 {
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 800;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: var(--transition);
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

.floating-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-icon {
  background: #ecfdf5;
  color: var(--accent-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.badge-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.badge-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Features Grid */
.features-section {
  padding: 4rem 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-box {
  background: var(--bg-subtle);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.feature-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Products Section */
.products-section {
  padding: 6rem 0;
  background: var(--bg-main);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.product-img-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.product-badge.popular {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.product-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.tag {
  background: var(--bg-subtle);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-amount {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.price-unit {
  font-size: 0.75rem;
  color: var(--text-light);
}

.btn-add-cart {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-add-cart:hover {
  background: var(--primary);
  color: white;
}

/* Order Summary Box / Calculator */
.cart-drawer-section {
  padding: 5rem 0;
  background: white;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cart-box {
  background: linear-gradient(135deg, #fffcf7, #fff7ed);
  border: 2px solid #fde68a;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.cart-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.cart-item-name {
  font-weight: 700;
  color: var(--accent);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-qty {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

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

.cart-summary {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.95rem;
}

.summary-total {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  border-top: 2px dashed var(--border-color);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  font-family: inherit;
}

.input-field:focus {
  outline: 2px solid var(--primary);
}

/* About Section */
.about-section {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-text h2 {
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}

.about-points {
  list-style: none;
  margin-top: 1.5rem;
}

.about-points li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.about-points li span {
  color: var(--accent-secondary);
  font-weight: 800;
}

/* FAQ Section */
.faq-section {
  padding: 6rem 0;
  background: var(--bg-subtle);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.4rem 1.8rem;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.8rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: var(--transition);
}

/* Footer */
footer {
  background: #111827;
  color: #9ca3af;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-title {
  color: white;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #1f2937;
  font-size: 0.85rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  font-size: 1.8rem;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6);
}

/* Media Queries (Tablet & Mobile) */
@media (max-width: 992px) {
  .hero-grid, .about-grid, .cart-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.9rem 1.25rem;
  }

  .nav-right-wrap {
    gap: 0.8rem;
  }

  .mobile-cart-cta {
    display: inline-flex;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
  }

  .mobile-nav-toggle {
    display: flex;
    margin-left: 0.2rem;
  }

  .desktop-cart-cta {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fffdfa;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    padding: 6rem 2rem 2rem;
    z-index: 1001;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
  }
}

@media (max-width: 640px) {
  .container {
    width: 92%;
    padding: 0;
  }

  .nav-container {
    padding: 0.85rem 1rem;
  }

  .logo-group {
    gap: 0.5rem;
  }

  .logo-title {
    font-size: 1.1rem;
  }

  .logo-sub {
    font-size: 0.6rem;
  }

  .logo-badge {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .nav-right-wrap {
    gap: 0.65rem;
  }


  .hero {
    padding: 6.5rem 0 3rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: space-between;
  }

  .stat-item h3 {
    font-size: 1.4rem;
  }

  .hero-image-card img {
    height: 280px;
  }

  .floating-badge {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 0.75rem;
    max-width: calc(100% - 24px);
  }

  .floating-badge .badge-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .cart-box {
    padding: 1.25rem 0.9rem;
    border-radius: var(--radius-md);
  }

  .cart-item {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.8rem;
  }

  .cart-item-name {
    font-size: 0.9rem;
    width: 100%;
  }

  .qty-control {
    width: 100%;
    justify-content: flex-end;
  }

  .cart-summary {
    padding: 1.25rem 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    bottom: 16px;
    right: 16px;
  }
}
