:root {
  color-scheme: only light;
  --header-bg: #275beb;
  --header-text: #ffffff;
  --bg: #f5f6f8;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-text: #ffffff;
  --card-bg: #ffffff;
  --border: #e2e5ea;
  --hero-bg: #dfe3e8;
  --font-body: system-ui, sans-serif;
  --font-heading: system-ui, sans-serif;
  --radius: 10px;
  --max-width: 1200px;
  --header-height: 72px;
  --hero-height: 640px;
  --card-overlap: 460px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--primary); }

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  background: var(--header-bg);
  color: var(--header-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-inner {
  width: 100%;
  height: var(--header-height);
  margin: 0;
  padding: 0 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 14px;
  color: var(--header-text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}
.brand img { height: 100%; width: auto; max-width: none; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: 8px; }

.nav-link,
.dropdown-toggle {
  color: var(--header-text);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover,
.dropdown-toggle:hover,
.dropdown.open .dropdown-toggle {
  background: rgba(255, 255, 255, 0.14);
}

.dropdown { position: relative; }
.dropdown-toggle .caret {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.15s;
}
.dropdown.open .caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  max-height: 70vh;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  display: none;
}
.dropdown.open .dropdown-menu { display: block; }

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--text);
  text-decoration: none;
  border-radius: calc(var(--radius) - 3px);
  font-weight: 500;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible { background: var(--bg); color: var(--primary); outline: none; }
.dropdown-menu img {
  width: 36px; height: 36px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}


.hero-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero {
  position: absolute;
  inset: 0;
  background: var(--hero-bg);
}

.hero-inner {
  position: relative;
  width: 100%;                   
  margin: 0;
  
  padding: 36px 24px 28px;
  min-height: var(--hero-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-text {
  align-self: end;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.hero-text:empty { display: none; }
.hero-text h1 { margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.4rem); }
.hero-text p { margin: 0; font-size: 1.05rem; opacity: 0.95; }

.products-section {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: calc(var(--card-overlap) * -1) auto 0;
  padding: 0 20px 48px;
}
.section-title { margin: 0 0 18px; font-size: 1.5rem; }
.section-title:empty { display: none; }


.products-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 28%, 340px);
  gap: 20px;
  align-items: stretch;
}

.product-grid {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fb-column { grid-column: 2; min-width: 0; position: relative; min-height: 240px; }

.fb-card { height: var(--fb-height, 330px); }

.fb-column .fb-card { position: absolute; inset: 0; height: auto; }

@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-layout { grid-template-columns: minmax(0, 1fr) clamp(250px, 34%, 320px); }
}


.product-card.fb-card:hover,
.product-card.fb-card:focus-visible {
  transform: none;
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.fb-card { min-height: 0; }
.fb-scroll { flex: 1; min-height: 0; overflow-y: hidden; padding: 0; }
.product-card .fb-unavailable { margin: 16px; color: var(--muted); }


.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
  outline: none;
}
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--hero-bg);
}
.product-card .card-body { padding: 14px 16px 16px; }
.product-card h3 { margin: 0; font-size: 1.1rem; }
.product-card p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }

.product-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 40px 50px;
}
.crumbs { margin-bottom: 18px; font-size: 0.95rem; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { opacity: 0.75; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--hero-bg);
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button {
  padding: 0;
  border: 2px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: none;
  cursor: pointer;
  width: 84px; height: 64px;
}
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.product-price { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin: 0 0 14px; }
.product-desc { font-size: 1.12rem; line-height: 1.65; }
.product-desc p { margin: 0 0 14px; }
.product-features {
  margin-top: 36px;
  font-size: 1.08rem;
  line-height: 1.6;
}
.product-details-title { margin: 0 0 8px; font-size: 1.3rem; }
.product-details + .product-details-title,
.product-details + .product-section-text { margin-top: 28px; }   /* gap between sections */
.product-section-text { margin: 0 0 10px; }
.product-details { padding-left: 22px; margin: 8px 0 16px; }
.product-details li { margin-bottom: 4px; }
.product-details li.has-sub { margin: 12px 0; }
.product-details li.has-sub:first-child { margin-top: 0; }
.product-details ul { list-style: circle; padding-left: 26px; margin: 4px 0 0; }
.product-details ul li { margin-bottom: 2px; }

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-text);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  margin-top: 8px;
}
.btn:hover { filter: brightness(1.1); }

.not-found { text-align: center; padding: 60px 0; color: var(--muted); }

.contact-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 40px 50px;
}
.contact-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.contact-intro.no-image { grid-template-columns: 1fr; }
.contact-intro img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--hero-bg);
}
.contact-page h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.contact-subtitle { margin: 0 0 16px; color: var(--muted); font-size: 1.1rem; }
.contact-body p { margin: 0 0 14px; }

.contact-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.contact-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.contact-card p { margin: 0; color: var(--muted); }

.contact-info {
  margin-top: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.contact-info a { text-decoration: none; }
.contact-info a:hover { opacity: 0.75; }
.contact-card a { text-decoration: none; }
.contact-info ul { list-style: none; margin: 0; padding: 0; }
.contact-info li { display: flex; gap: 12px; margin-bottom: 6px; }
.contact-info li:last-child { margin-bottom: 0; }
.contact-info strong { flex: 0 0 80px; }
.contact-info .ci-value { min-width: 0; overflow-wrap: anywhere; }
.contact-info .ci-note { color: var(--muted); font-size: 0.9em; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  :root { --hero-height: 268px; --card-overlap: 220px; }
  .hero-inner { grid-template-columns: 1fr; padding: 24px 16px; }
  .product-layout { grid-template-columns: 1fr; }
  .contact-intro { grid-template-columns: 1fr; }
}

@media (max-height: 520px) and (orientation: landscape) and (min-width: 861px) {
  :root { --card-overlap: 540px; }
}

@media (max-width: 600px) {
  .header-inner { padding-right: 10px; gap: 8px; }
  .brand { gap: 10px; }
  .brand span { font-size: 0.95rem; line-height: 1.15; }
  .nav-link, .dropdown-toggle { padding: 8px 9px; font-size: 0.9rem; }
  .main-nav { gap: 2px; }
}

@media (max-width: 700px) {
  .products-section { padding: 0 12px 36px; }
  .products-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .product-grid { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
  /* FB feed sits below all the product cards, as wide as the two cards above */
  .fb-column { grid-column: 1; position: static; min-height: 0; }
  .fb-column .fb-card { position: relative; inset: auto; height: var(--fb-height, 420px); }

  .product-card .card-body { padding: 10px 12px 12px; }
  .product-card h3 { font-size: 0.98rem; }
  .product-card p { font-size: 0.82rem; }

}

.contact-map { margin-top: 28px; }
.contact-map h2 { margin: 0 0 12px; font-size: 1.3rem; }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--hero-bg);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; }
.map-link:hover { text-decoration: underline; }
.map-note {
  background: var(--card-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--muted);
}
