:root {
  --bg-color: #fdfcf0;
  --primary-color: #8d5524; /* Tempeh Brown */
  --secondary-color: #d32f2f; /* Chili Red */
  --accent-color: #fbc02d; /* Golden Yellow */
  --text-color: #333;
  --card-bg: #fff;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-hover: 0 10px 15px rgba(0,0,0,0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cart-btn {
  background: var(--accent-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}

.cart-btn:hover {
  transform: scale(1.05);
}

.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(rgba(141, 85, 36, 0.1), rgba(141, 85, 36, 0.05));
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

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

.product-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: #f0f0f0;
}

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
}

.product-info h2 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.product-info p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.price {
  font-weight: bold;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 1rem;
}

.add-to-cart {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.product-card.spicy .add-to-cart {
  background: var(--secondary-color);
}

.add-to-cart:hover {
  filter: brightness(1.1);
}

footer {
  text-align: center;
  padding: 2rem;
  background: #333;
  color: white;
  margin-top: 4rem;
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  display: none;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cart Drawer Styles */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #fafafa;
}

.cart-footer {
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 999;
}

.overlay.visible {
  display: block;
}

/* Checkout Page Styles */
.checkout-container {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
}

@media (max-width: 768px) {
  .checkout-container { grid-template-columns: 1fr; }
}

.checkout-form {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.checkout-form h2 { margin-bottom: 1.5rem; color: var(--primary-color); }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.order-summary {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.order-summary h2 { margin-bottom: 1.5rem; border-bottom: 1px solid #eee; padding-bottom: 0.5rem; }

.total-row {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #eee;
}

.cart-total-display {
  padding: 1rem 0;
  font-weight: bold;
  font-size: 1.1rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}

/* Video section styles */
.video-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 5%;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
