@import url("./fonts.css");

:root {
  --bg: #FBF7F2;
  --text: #4A3F38;
  --muted: #8A7A6F;
  --muted2: #6B5E54;
  --accent: #B98787;
  --accent2: #C9A0A0;
  --line: #EDE1D3;
  --line2: #E0CFC4;
  --panel: #F3E9E1;
  --dark: #3F332C;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--sans);
  color: var(--text);
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

button { font-family: var(--sans); }

.navlink { transition: color .2s; }
.btn-primary { transition: background .2s, opacity .2s; }
.btn-primary:hover { background: var(--accent) !important; }

input:focus, textarea:focus, select:focus {
  outline: 1px solid var(--accent2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 242, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}
.main-nav { display: flex; gap: 30px; font-size: 15px; }
.main-nav a.active { color: var(--accent); }
.cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--line);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  white-space: nowrap;
}
.cart-link.active { color: var(--accent); }
.cart-badge {
  background: var(--accent2);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.site-footer { background: var(--dark); color: var(--line); padding: 60px 32px 30px; }
.site-footer .footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer .footer-brand { font-family: var(--serif); font-style: italic; font-size: 26px; margin-bottom: 14px; }
.site-footer p { font-size: 14px; line-height: 1.7; color: #C9BBAE; max-width: 280px; }
.footer-heading { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent2); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { color: var(--line); }
.site-footer .footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #55483F;
  font-size: 12px;
  color: #9C8C7E;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.eyebrow { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }

.btn-dark {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 16px 32px;
  border-radius: 4px;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
}
.btn-outline {
  display: inline-block;
  border: 1px solid var(--accent2);
  padding: 16px 32px;
  border-radius: 4px;
  font-size: 15px;
}

.img-slot { width: 100%; object-fit: cover; border-radius: 6px; background: var(--panel); }
.img-slot.rect { border-radius: 0; }

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--text);
  color: #fff;
  padding: 16px 24px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateY(0); }

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  color: var(--line);
  padding: 18px 32px;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner span { font-size: 13px; max-width: 640px; }
.cookie-banner a { color: var(--line); text-decoration: underline; }
.cookie-banner button {
  background: var(--accent2);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.product-card { background: var(--bg); border-radius: 6px; overflow: hidden; }
.product-card .body { padding: 18px; }
.product-card .name { font-family: var(--serif); font-size: 17px; margin-bottom: 4px; }
.product-card .meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.product-card .row { display: flex; justify-content: space-between; align-items: center; }
.product-card .price { font-size: 17px; }
.add-btn {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}
.add-btn:hover { background: var(--accent); }

table { border-collapse: collapse; width: 100%; }
th, td { padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line2); }
th { font-family: var(--serif); font-weight: 500; background: var(--panel); }

.field {
  padding: 14px 16px;
  border: 1px solid var(--line2);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--sans);
  width: 100%;
  background: #fff;
  color: var(--text);
}

.form-msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.form-msg.error { color: #a94442; }
.form-msg.ok { color: #3f6b3f; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .hide-m { display: none !important; }
  .grid4 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid3 { grid-template-columns: 1fr !important; }
  .split { grid-template-columns: 1fr !important; }
  .cartgrid { grid-template-columns: 1fr !important; }
  .filters { flex-wrap: wrap !important; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
