* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  background: #fffdf8;
  color: #2b2418;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  background: #2e2410;
  color: #f3e6c4;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f8ecc9;
}
.brand .icon { font-size: 1.6rem; }
.brand .tagline {
  font-family: system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: #c9b27f;
  display: block;
  font-weight: 400;
  margin-top: 1px;
}
.main-nav {
  display: flex;
  gap: 22px;
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
}
.main-nav a { color: #d9cba3; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: #fff; border-bottom-color: #c9a24a; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.cart-link {
  position: relative;
  font-size: 1.3rem;
  color: #f3e6c4;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #c0392b;
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Mobile nav toggle (kept simple; nav wraps on small screens) */
@media (max-width: 760px) {
  .main-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #3d2f14, #2e2410);
  color: #f8ecc9;
  text-align: center;
  padding: 56px 24px;
}
.hero h1 { font-size: 2.1rem; margin: 0 0 10px; font-weight: 400; letter-spacing: 0.5px; }
.hero p { font-family: system-ui, sans-serif; color: #cbb988; font-size: 0.95rem; max-width: 520px; margin: 0 auto; }
.hero .rate-strip {
  margin-top: 22px;
  display: inline-flex;
  gap: 24px;
  background: rgba(255,255,255,0.06);
  padding: 10px 22px;
  border-radius: 30px;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
}
.hero .rate-strip span.label { color: #a8976b; margin-right: 6px; }
.hero .rate-strip span.val { color: #f3e6c4; font-weight: 600; }

/* ---------- Category strip ---------- */
.category-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 24px 10px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
}
.category-chip {
  flex: 0 0 auto;
  text-align: center;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: #4a3a1f;
}
.category-chip .circle {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #f1e6cc;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 6px;
  overflow: hidden;
  border: 1px solid #e3d3a8;
}
.category-chip .circle img { width: 100%; height: 100%; object-fit: cover; }
.category-chip .circle .fallback { font-size: 1.6rem; }
.category-chip:hover .circle { border-color: #c9a24a; }

/* ---------- Section heading ---------- */
.section-title {
  max-width: 1200px;
  margin: 40px auto 18px;
  padding: 0 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-title h2 { font-size: 1.4rem; font-weight: 400; color: #3d2f14; margin: 0; }
.section-title a { font-family: system-ui, sans-serif; font-size: 0.82rem; color: #8a6d3b; }

/* ---------- Product grid ---------- */
.product-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 50px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid #efe6d2;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.product-card:hover { box-shadow: 0 8px 22px rgba(60,45,10,0.1); transform: translateY(-2px); }
.product-card .thumb {
  aspect-ratio: 1 / 1;
  background: #faf6ec;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .no-image { color: #c9b998; font-size: 2rem; font-family: system-ui, sans-serif; }
.product-card .info { padding: 14px 14px 16px; font-family: system-ui, sans-serif; }
.product-card .cat-label { font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; color: #a8936a; margin-bottom: 4px; }
.product-card h3 { font-size: 0.95rem; font-weight: 600; margin: 0 0 6px; color: #2b2418; font-family: 'Georgia', serif; }
.product-card .meta { font-size: 0.76rem; color: #8a7b5c; margin-bottom: 10px; }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; }
.product-card .price { font-size: 1.05rem; font-weight: 700; color: #6b4e1e; }
.product-card .price .from { font-size: 0.68rem; font-weight: 400; color: #a8936a; display: block; }
.product-card .price-missing { font-size: 0.78rem; color: #b06a3a; }
.add-to-cart-btn {
  background: #2e2410;
  color: #f3e6c4;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: system-ui, sans-serif;
}
.add-to-cart-btn:hover { background: #4a3a1f; }
.add-to-cart-btn:disabled { background: #ccc; cursor: not-allowed; }

/* ---------- Footer ---------- */
.site-footer {
  background: #231b0c;
  color: #a8936a;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  padding: 36px 24px 24px;
  margin-top: 40px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-inner .brand-foot { color: #f3e6c4; font-family: 'Georgia', serif; font-size: 1.1rem; margin-bottom: 8px; }
.site-footer .copyright { text-align: center; margin-top: 26px; font-size: 0.75rem; color: #7a6a4a; border-top: 1px solid #3a2f18; padding-top: 16px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2e2410;
  color: #f3e6c4;
  padding: 11px 22px;
  border-radius: 30px;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 100;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Cart page ---------- */
.cart-wrap { max-width: 900px; margin: 0 auto; padding: 36px 24px 60px; }
.cart-wrap h1 { font-weight: 400; font-size: 1.6rem; color: #3d2f14; }
.cart-item {
  display: flex; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid #efe6d2;
  font-family: system-ui, sans-serif;
}
.cart-item .thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #faf6ec; flex-shrink: 0; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .details { flex: 1; }
.cart-item .details h4 { margin: 0 0 4px; font-size: 0.95rem; font-family: Georgia, serif; }
.cart-item .details .meta { font-size: 0.78rem; color: #8a7b5c; }
.cart-item .qty-controls { display: flex; align-items: center; gap: 8px; }
.cart-item .qty-controls button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid #ddd; background: #fff; cursor: pointer;
}
.cart-item .line-price { font-weight: 700; color: #6b4e1e; min-width: 90px; text-align: right; }
.cart-item .remove-link { font-size: 0.75rem; color: #c0392b; margin-left: 12px; }
.cart-summary {
  background: #faf6ec; border-radius: 10px; padding: 20px 24px; margin-top: 24px;
  font-family: system-ui, sans-serif;
}
.cart-summary .row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 5px 0; }
.cart-summary .row.total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid #e3d3a8; margin-top: 8px; padding-top: 12px; color: #3d2f14; }
.checkout-btn {
  display: block; width: 100%; text-align: center;
  background: #2e2410; color: #f3e6c4; padding: 13px; border-radius: 8px;
  margin-top: 18px; font-family: system-ui, sans-serif; font-size: 0.95rem; border: none; cursor: pointer;
}
.empty-cart { text-align: center; padding: 60px 20px; font-family: system-ui, sans-serif; color: #8a7b5c; }
