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

body {
  font-family: 'Inter', sans-serif;
  color: #2d1b0e;
  background: #fdf8f3;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: #fff8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #5c2e0e;
}

.logo span {
  color: #c67b3c;
  font-weight: 400;
}

nav a {
  text-decoration: none;
  color: #5c2e0e;
  margin: 0 14px;
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

nav a.active, nav a:hover {
  border-color: #c67b3c;
}

.cart-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: #f0e4d5;
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.cart-icon:hover {
  background: #e5d4c0;
}

.cart-count {
  background: #c67b3c;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f0e4d5 0%, #e8d3bb 100%);
  padding: 80px 0;
  text-align: center;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #3b1f0a;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 28px;
  color: #6b4a2e;
}

.btn {
  display: inline-block;
  background: #5c2e0e;
  color: #fff;
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: #7a3f18;
  transform: translateY(-1px);
}

/* Products */
.products-section {
  padding: 60px 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #3b1f0a;
  margin-bottom: 36px;
  text-align: center;
}

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

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 16px;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #2d1b0e;
}

.product-info .desc {
  font-size: 0.85rem;
  color: #8c6f54;
  margin-bottom: 10px;
}

.product-info .price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #5c2e0e;
  margin-bottom: 12px;
}

.add-btn {
  background: #c67b3c;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.add-btn:hover {
  background: #b06a2f;
}

.add-btn:active {
  transform: scale(0.97);
}

/* Checkout */
.checkout-section {
  padding: 60px 0;
  min-height: 60vh;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: #8c6f54;
  font-size: 1.1rem;
  background: #fff;
  border-radius: 12px;
}

.empty-cart a {
  color: #c67b3c;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cart-item img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

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

.cart-item-info .cart-item-price {
  font-size: 0.85rem;
  color: #8c6f54;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.qty-controls button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-controls button:hover {
  background: #f0e4d5;
}

.qty-controls span {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.remove-btn {
  background: none;
  border: none;
  color: #c0392b;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.1s;
}

.remove-btn:hover {
  transform: scale(1.2);
}

.order-summary {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  position: sticky;
  top: 90px;
}

.order-summary h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: #3b1f0a;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 6px 0;
  color: #5c3a22;
}

.summary-row.total {
  border-top: 2px solid #f0e4d5;
  margin-top: 10px;
  padding-top: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2d1b0e;
}

form input, form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}

form input:focus, form textarea:focus {
  border-color: #c67b3c;
}

form textarea {
  resize: vertical;
}

#placeOrderBtn {
  width: 100%;
  margin-top: 4px;
}

#placeOrderBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  animation: fadeIn 0.3s;
}

.modal h2 {
  font-family: 'Playfair Display', serif;
  color: #3b1f0a;
  margin-bottom: 10px;
}

.modal p {
  color: #6b4a2e;
  margin-bottom: 6px;
}

.modal .btn {
  margin-top: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

footer {
  background: #2d1b0e;
  color: #d4c4b0;
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
}
