/* WordPress integration and template-specific extensions. */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body.admin-bar .site-header {
  top: 32px;
}

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

.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
  color: #123f34;
  font-weight: 800;
}

.desktop-nav .menu,
.mobile-menu .menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav .sub-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: -18px;
  display: none;
  min-width: 220px;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  list-style: none;
}

.desktop-nav li {
  position: relative;
}

.desktop-nav li:hover > .sub-menu,
.desktop-nav li:focus-within > .sub-menu {
  display: grid;
  gap: 8px;
}

.site-main,
.catalog-page,
.single-product-page {
  overflow: hidden;
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.product-category-label,
.single-product-category {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--green);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.product-card .product-image {
  display: block;
}

.product-card .product-image img {
  object-fit: contain;
  background: #d8d8d5;
}

.product-card-copy h3 a {
  display: inline;
}

.footer-brand a {
  display: inline-flex;
}

.footer-menu {
  justify-content: flex-end;
  gap: 24px;
}

.footer-menu a {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.renze-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-notice {
  margin-bottom: 28px;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  font-size: 13px;
}

.form-notice--error {
  border-color: #b42318;
  background: #fee4e2;
}

.catalog-controls {
  grid-template-columns: minmax(280px, 1fr) minmax(220px, .5fr) auto;
}

.catalog-hero > * {
  min-width: 0;
}

.catalog-search-button {
  min-width: 150px;
  padding: 0 34px;
  border: 0;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
}

.category-pills a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.category-pills a:hover,
.category-pills a.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.wp-product-results {
  padding: clamp(44px, 6vw, 90px) 4.5vw clamp(90px, 10vw, 150px);
  background: var(--cream);
}

.wp-results-heading {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.wp-results-heading p {
  margin: 0;
}

.wp-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.wp-product-grid .product-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wp-product-grid .product-image {
  height: clamp(260px, 27vw, 430px);
}

.navigation.pagination {
  margin-top: 48px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-links .page-numbers {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
}

.nav-links .current,
.nav-links a:hover {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 22px 4.5vw;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.single-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  min-height: 720px;
  border-bottom: 1px solid var(--line);
}

.single-product-gallery {
  padding: clamp(32px, 5vw, 70px) 4.5vw;
  background: #d8d8d5;
}

.single-product-main-image {
  position: relative;
  height: min(62vw, 660px);
  max-height: 660px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.55);
  background: #d2d2cf;
}

.single-product-main-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.single-product-main-image .photo-number {
  position: absolute;
  top: 20px;
  left: 20px;
}

.single-product-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}

.single-product-thumbnails button {
  flex: 0 0 76px;
  height: 76px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
}

.single-product-thumbnails button.is-active {
  border-color: var(--green);
}

.single-product-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-product-summary {
  align-self: center;
  padding: clamp(54px, 7vw, 108px) clamp(30px, 6vw, 90px);
}

.single-product-summary h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(54px, 6vw, 94px);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .86;
  text-transform: uppercase;
}

.single-product-lede {
  max-width: 650px;
  margin: 30px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.product-specifications {
  display: grid;
  margin: 36px 0 0;
  border-top: 2px solid var(--ink);
}

.product-specifications > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.product-specifications dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-specifications dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.single-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.single-product-content {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 10vw;
}

.single-product-content h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 72px);
  letter-spacing: -.055em;
  line-height: .9;
  text-transform: uppercase;
}

.entry-content {
  font-size: 15px;
  line-height: 1.8;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content img {
  height: auto;
}

.content-shell {
  min-height: 70vh;
  padding: clamp(70px, 9vw, 140px) 4.5vw;
}

.content-article,
.content-archive-header {
  max-width: 1000px;
  margin: 0 auto;
}

.content-article header h1,
.content-archive-header h1,
.error-page h1 {
  margin: 0 0 50px;
  font-family: var(--display);
  font-size: clamp(58px, 8vw, 116px);
  letter-spacing: -.065em;
  line-height: .84;
  text-transform: uppercase;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1200px;
  margin: 60px auto 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.content-card {
  min-height: 280px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.content-card > span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.content-card h2 {
  font-family: var(--display);
  font-size: 32px;
  text-transform: uppercase;
}

.error-page {
  display: grid;
  min-height: 72vh;
  align-content: center;
  padding: 80px 4.5vw;
}

.error-page > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

@media (min-width: 1600px) {
  .site-header,
  .product-breadcrumb,
  .wp-product-results,
  .category-pills,
  .catalog-note,
  .site-footer {
    padding-right: max(4.5vw, calc((100vw - 1760px) / 2));
    padding-left: max(4.5vw, calc((100vw - 1760px) / 2));
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .mobile-menu {
    position: relative;
    display: block;
    justify-self: end;
  }

  .mobile-menu summary {
    display: grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { width: 18px; height: 1px; background: var(--ink); }
  .mobile-menu nav {
    position: fixed;
    top: 82px;
    right: 0;
    left: 0;
    padding: 18px 4.5vw 28px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
  }
  body.admin-bar .mobile-menu nav { top: 114px; }
  .mobile-menu .menu { display: grid; gap: 0; }
  .mobile-menu .menu a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 20px; font-weight: 900; text-transform: uppercase; }

  .wp-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-product-hero { grid-template-columns: 1fr; }
  .single-product-main-image { height: min(85vw, 720px); }
  .single-product-content { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 800px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .mobile-menu nav { top: 70px; padding-right: 22px; padding-left: 22px; }
  body.admin-bar .mobile-menu nav { top: 116px; }
  .catalog-controls { position: relative; top: auto; grid-template-columns: 1fr; }
  .catalog-controls label { padding: 14px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .catalog-search-button { min-height: 54px; }
  .wp-product-results { padding-right: 22px; padding-left: 22px; }
  .wp-product-grid { grid-template-columns: 1fr; }
  .wp-product-grid .product-image { height: min(85vw, 460px); }
  .single-product-gallery,
  .single-product-summary,
  .product-breadcrumb { padding-right: 22px; padding-left: 22px; }
  .product-specifications > div { grid-template-columns: 120px 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .footer-menu { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 540px) {
  .catalog-hero { grid-template-columns: 1fr; }
  .catalog-hero h1 { font-size: clamp(48px, 13.5vw, 60px); }
  .catalog-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .single-product-summary h1 { font-size: clamp(50px, 15vw, 72px); }
  .single-product-gallery { padding-top: 24px; padding-bottom: 24px; }
  .single-product-main-image { height: 88vw; }
  .product-specifications > div { grid-template-columns: 1fr; gap: 6px; }
  .single-product-actions,
  .single-product-actions .button { width: 100%; }
  .content-shell { padding-right: 22px; padding-left: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .has-js .reveal { opacity: 1; transform: none; transition: none; }
}
