:root {
  --bg: #f7f2e8;
  --surface: #efe7d6;
  --fg: #2d2a22;
  --muted: #6c6456;
  --border: #ddd2bd;
  --accent: #a95f32;
  --green: #2f5c45;
  --green-dark: #244735;
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Lora", Georgia, serif;
  line-height: 1.2;
  color: var(--green-dark);
  margin: 0 0 0.5em;
}

h1 {
  font-size: 44px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 34px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 24px;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--green);
}

a:hover {
  color: var(--green-dark);
}

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

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: var(--white);
  padding: 12px 20px;
}

.skip-link:focus {
  left: 0;
  z-index: 50;
}

.site-top {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.top-row {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-name {
  font-family: "Lora", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--green-dark);
}

.main-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-left: auto;
}

.main-nav a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 2px;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(45, 42, 34, 0.18);
}

.cart-link:hover {
  background: var(--green-dark);
  color: var(--white);
}

.cart-badge {
  background: var(--white);
  color: var(--green-dark);
  border-radius: 999px;
  min-width: 26px;
  text-align: center;
  padding: 1px 7px;
  font-size: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 28px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(45, 42, 34, 0.22);
}

.btn:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-line {
  background: var(--white);
  color: var(--green-dark);
  border: 2px solid var(--green);
  box-shadow: none;
}

.btn-line:hover {
  background: var(--surface);
  color: var(--green-dark);
}

.intro {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}

.intro-note {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.intro-lead {
  font-size: 21px;
  max-width: 34ch;
}

.intro-photo img {
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(45, 42, 34, 0.18);
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 36px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  text-decoration: none;
  color: var(--fg);
  box-shadow: 0 3px 10px rgba(45, 42, 34, 0.08);
}

.cat-card:hover {
  border-color: var(--green);
  color: var(--fg);
  box-shadow: 0 6px 16px rgba(45, 42, 34, 0.14);
}

.cat-card h3 {
  margin-bottom: 8px;
}

.cat-card p {
  color: var(--muted);
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 10px rgba(45, 42, 34, 0.08);
}

.product-card:hover {
  box-shadow: 0 8px 20px rgba(45, 42, 34, 0.16);
}

.product-card a.card-photo {
  display: block;
}

.product-card .card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.product-card h3 a {
  text-decoration: none;
  color: var(--green-dark);
}

.product-card h3 a:hover {
  color: var(--green);
}

.card-short {
  color: var(--muted);
  font-size: 17px;
  flex: 1;
}

.price {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  margin: 10px 0 14px;
}

.card-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.card-actions form {
  margin: 0;
}

.filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-row a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 22px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.filter-row a:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.filter-row a.on {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.crumbs {
  padding: 22px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--green-dark);
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0 64px;
  align-items: start;
}

.pdp-photo img {
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(45, 42, 34, 0.14);
}

.pdp-price {
  font-size: 34px;
  font-weight: 600;
  color: var(--accent);
  margin: 18px 0;
}

.spec-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid var(--border);
}

.spec-list li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.spec-list .k {
  min-width: 130px;
  color: var(--muted);
  font-weight: 600;
}

.qty-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
}

.qty-row label {
  font-weight: 600;
}

.qty-row input {
  width: 90px;
  min-height: 48px;
  font-size: 18px;
  font-family: inherit;
  padding: 6px 12px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--white);
}

.ship-hint {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 17px;
  margin-top: 20px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.cart-table th,
.cart-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.cart-table th {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-thumb {
  width: 84px;
  border-radius: 8px;
}

.cart-item-name {
  font-weight: 600;
  text-decoration: none;
  color: var(--green-dark);
  font-size: 19px;
}

.cart-item-name:hover {
  color: var(--green);
}

.cart-table input[type="number"] {
  width: 84px;
  min-height: 48px;
  font-size: 18px;
  font-family: inherit;
  padding: 6px 10px;
  border: 2px solid var(--border);
  border-radius: 6px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 17px;
  cursor: pointer;
  text-decoration: underline;
  padding: 12px 4px;
  min-height: 48px;
}

.link-btn:hover {
  color: var(--green-dark);
}

.totals-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 28px;
  max-width: 420px;
  margin-left: auto;
  margin-top: 28px;
}

.totals-box .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.totals-box .grand {
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 22px;
  font-weight: 600;
  color: var(--green-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  max-width: 760px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  min-height: 48px;
  font-size: 18px;
  font-family: inherit;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--fg);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 16px;
}

.alert-bad {
  background: #f6e3dc;
  border: 1px solid #cf8a6b;
  color: #6e3317;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.alert-good {
  background: #e3ecdf;
  border: 1px solid #7fa189;
  color: var(--green-dark);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 28px;
}

.review-card blockquote {
  margin: 0 0 14px;
  font-size: 18px;
}

.review-who {
  color: var(--muted);
  font-weight: 600;
  font-size: 16px;
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.choose-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 28px;
}

.choose-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--green);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.about-grid img {
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(45, 42, 34, 0.14);
}

.prose {
  max-width: 68ch;
  padding: 48px 0 64px;
}

.prose h2 {
  margin-top: 1.4em;
}

.prose ul {
  padding-left: 24px;
}

.prose li {
  margin-bottom: 10px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(45, 42, 34, 0.08);
}

.blog-card:hover {
  box-shadow: 0 8px 20px rgba(45, 42, 34, 0.16);
}

.blog-card .card-body {
  padding: 22px 24px 26px;
}

.blog-card h3 a {
  text-decoration: none;
  color: var(--green-dark);
}

.blog-card h3 a:hover {
  color: var(--green);
}

.article-photo {
  border-radius: 10px;
  margin: 0 0 28px;
  box-shadow: 0 8px 22px rgba(45, 42, 34, 0.14);
}

.nap-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 30px;
}

.nap-box p {
  margin-bottom: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: start;
  padding: 40px 0 64px;
}

.confirm-box {
  max-width: 680px;
  margin: 56px auto 72px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 44px 48px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(45, 42, 34, 0.1);
}

.confirm-box .order-id {
  font-size: 20px;
  color: var(--accent);
  font-weight: 600;
}

.site-end {
  background: var(--green-dark);
  color: #e9e2d2;
  margin-top: 40px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding: 52px 24px 36px;
}

.foot-brand {
  font-family: "Lora", Georgia, serif;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 10px;
}

.foot-head {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8bfa5;
  font-weight: 600;
  margin-bottom: 12px;
}

.foot-col a {
  display: block;
  color: #e9e2d2;
  text-decoration: none;
  padding: 5px 0;
}

.foot-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 22px;
  padding-bottom: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 16px;
}

.foot-legal a {
  color: #e9e2d2;
  margin-left: 18px;
}

.foot-legal a:first-child {
  margin-left: 0;
}

.cookie-note {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(45, 42, 34, 0.25);
  z-index: 40;
}

.cookie-note p {
  margin: 0;
  font-size: 16px;
}

.cookie-note button {
  min-height: 48px;
  padding: 10px 26px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-note button:hover {
  background: var(--green-dark);
}

@media (max-width: 900px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .top-row {
    flex-wrap: wrap;
    padding: 14px 0;
    gap: 14px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 18px;
  }

  .intro-grid,
  .pdp-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .intro-grid {
    padding: 40px 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cart-table th:nth-child(4),
  .cart-table td:nth-child(4) {
    display: none;
  }

  .cookie-note {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .cart-table th:nth-child(1),
  .cart-table td:nth-child(1) {
    display: none;
  }
}
