:root {
  --ink: #202226;
  --muted: #5f6570;
  --brand: #f28c00;
  --brand-dark: #a55300;
  --accent: #0b7d80;
  --paper: #f7f9fb;
  --line: #d8dde3;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--brand-dark);
}

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

.contact-strip,
.site-footer p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  padding: 8px 16px;
  font-weight: 700;
  color: var(--brand-dark);
}

.contact-strip img,
.site-footer img,
.page-copy p img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
}

.brand-banner {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(220px, 520px) minmax(90px, 1fr);
  align-items: center;
  border-block: 5px solid var(--brand);
  background: #fff;
}

.brand-banner > img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.brand-banner a {
  display: grid;
  place-items: center;
  padding: 10px;
}

.brand-banner a img {
  max-height: 180px;
  object-fit: contain;
}

.site-nav {
  background: var(--ink);
  border-bottom: 5px solid var(--brand);
}

.site-nav ul,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.site-nav button,
.site-footer nav a {
  display: block;
  padding: 12px 18px;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav button:hover,
.site-nav a[aria-current="page"] {
  background: var(--accent);
}

.has-menu {
  position: relative;
}

.has-menu ul {
  display: none;
  position: absolute;
  z-index: 10;
  min-width: 240px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.has-menu ul a {
  color: var(--ink);
}

.has-menu ul a:hover {
  color: #fff;
}

.has-menu:hover ul,
.has-menu.is-open ul {
  display: block;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

h1,
h2,
h3 {
  color: var(--brand-dark);
  line-height: 1.15;
}

.intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 28px;
}

.intro h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin: 0 0 10px;
}

.intro p {
  font-size: 1.2rem;
}

.feature-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.feature-links a {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
}

.feature-links img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.feature-links span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 10px;
  color: #fff;
  background: rgba(32, 34, 38, 0.84);
  font-weight: 700;
  text-align: center;
}

.hero-product img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  background: #fff;
}

.page-copy {
  max-width: 940px;
}

.page-copy p,
.order-notes p {
  color: var(--muted);
  font-size: 1.05rem;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 24px;
  align-items: start;
}

.product-details {
  position: sticky;
  top: 14px;
}

.product-details img,
#gallery-large {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
}

.product-details img {
  max-height: 560px;
}

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

.product-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.product-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.product-card h3 {
  margin: 0;
  font-size: 1rem;
}

.price {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 700;
}

.buy-link,
form button,
.inline-field button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.buy-link:hover,
form button:hover,
.inline-field button:hover {
  background: #ffb33d;
  color: var(--ink);
}

.order-section {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 5px solid var(--brand);
}

form {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-inline: auto;
}

label {
  display: grid;
  gap: 6px;
  color: var(--brand-dark);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px;
  font: inherit;
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.slider button,
.thumb-strip button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.slider button img {
  width: 44px;
  height: 44px;
}

.slider-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 0;
}

.slider-track img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  flex: 0 0 auto;
}

.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gallery-preview {
  display: grid;
  gap: 16px;
}

#gallery-large {
  max-height: 640px;
}

.thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.thumb-strip img {
  width: 90px;
  height: 110px;
  object-fit: cover;
  border: 2px solid transparent;
}

.thumb-strip button:hover img {
  border-color: var(--brand);
}

.site-footer {
  border-top: 5px solid var(--brand);
  background: #fff;
  color: var(--brand-dark);
  text-align: center;
}

.site-footer nav a {
  color: var(--brand-dark);
}

.credit {
  font-weight: 700;
}

.credit a img {
  width: 28px;
  height: 28px;
}

@media (max-width: 760px) {
  .brand-banner {
    grid-template-columns: 1fr;
  }

  .brand-banner > img {
    display: none;
  }

  .site-nav > ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .has-menu ul {
    position: static;
    box-shadow: none;
    background: #ffffff;
  }

  .feature-links,
  .product-layout,
  .two-up {
    grid-template-columns: 1fr;
  }

  .product-details {
    position: static;
  }

  .inline-field {
    grid-template-columns: 1fr;
  }
}
