:root {
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: oklch(0.97 0.014 75);
  font-family: var(--font-sans);
  color: oklch(0.24 0.02 258);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: oklch(0.30 0.045 258); text-decoration: none; }
a:hover { color: oklch(0.64 0.11 73); }
img { display: block; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
summary { list-style: none; }
summary::marker { content: ''; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: oklch(0.21 0.045 258);
  color: oklch(0.97 0.014 75);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Cart badge count */
.cart-badge { min-width: 22px; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: oklch(0.21 0.045 258);
  color: oklch(0.95 0.014 75);
  padding: 18px 32px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.cookie-banner[hidden] { display: none; }

/* Inline confirmation boxes */
.form-notice { color: oklch(0.5 0.1 150); font-size: 13px; font-weight: 600; margin-top: 12px; }
.form-notice[hidden] { display: none; }

/* Responsive overrides for the fixed two-column layouts used across pages */
@media (max-width: 860px) {
  .grid-hero,
  .grid-about,
  .grid-cart,
  .grid-product {
    grid-template-columns: 1fr !important;
  }
  .grid-catalog {
    grid-template-columns: 1fr !important;
  }
  .grid-catalog > aside {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px !important;
  }
  .site-header {
    padding: 14px 18px !important;
  }
  .cart-summary {
    position: static !important;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 26px !important; }
  .hero-title { font-size: 30px !important; }
}
