:root {
  --bg: #ffffff;
  --fg: #3b7530;
  --fg-hover: #1c4d12;
  --btn-bg: #3b7530;
  --btn-text: #ffffff;
  --btn-hover: #1c4d12;
  --max-width: 1200px;
  --gutter: 1.5rem;
  --gap: 1.25rem;
  --font-body: 'Karla', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--fg);
  color: var(--btn-text);
  z-index: 1000;
}

.wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.header {
  padding: 2rem 0 1.5rem;
}
.header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.store-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}
.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.content { flex: 1 0 auto; padding: 1rem 0 4rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem var(--gap);
}
.product-card {
  display: block;
  color: inherit;
}
.product-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.03); }
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0 0;
  font-size: 0.95rem;
}
.product-name { font-weight: 500; }
.product-price { font-variant-numeric: tabular-nums; }

.page-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.product-page-image {
  width: 100%;
  height: auto;
  display: block;
}
.product-page-details { display: flex; flex-direction: column; gap: 1.25rem; }
.product-page-details .page-title { margin: 0; font-size: 1.75rem; }
.product-page-price { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.product-description p { margin: 0 0 0.75rem; }

.button {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 0;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease;
  align-self: start;
}
.button:hover { background: var(--btn-hover); color: var(--btn-text); }

.info-section { max-width: 720px; }
.info-section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  margin: 2rem 0 0.5rem;
  letter-spacing: 0.02em;
}
.info-section h2:first-child { margin-top: 0; }
.info-section p { margin: 0 0 0.75rem; }

.info-divider {
  border: 0;
  border-top: 1px solid currentColor;
  opacity: 0.2;
  margin: 3rem 0;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }

.footer {
  padding: 2rem 0;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.footer .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .header { padding: 1.5rem 0 1rem; }
  .header .wrapper { gap: 0.5rem; }
  .nav { gap: 1rem; font-size: 0.9rem; }
  .product-page { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-page-details .page-title { font-size: 1.5rem; }
}
