
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #171a20;
  --muted: #5c5e62;
  --light: #f4f4f4;
  --line: #d5d5d5;
  --blue: #3e6ae1;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--black);
  background: #fff;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
}

.announcement {
  min-height: 36px;
  padding: 8px 16px;
  background: #f4f4f4;
  text-align: center;
  font-size: 12px;
}

.announcement a {
  margin-left: 6px;
  text-decoration: underline;
  font-weight: 700;
}

.navbar {
  height: 56px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
  width: 118px;
  height: auto;
  object-fit: contain;
}

.desktop-nav,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 600;
}

.nav-actions {
  gap: 18px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 24px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 92px;
  right: 0;
  z-index: 30;
  width: min(320px, 100%);
  padding: 20px;
  background: #fff;
  box-shadow: 0 8px 24px #0002;
}

.mobile-nav.open {
  display: grid;
  gap: 6px;
}

.mobile-nav a {
  padding: 13px 10px;
  border-radius: 5px;
  font-weight: 600;
}

.mobile-nav a:hover {
  background: var(--light);
}

.product-hero {
  min-height: 620px;
  padding: 28px 4% 50px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 38px;
  align-items: start;
}

.gallery-main {
  height: 420px;
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
  border-radius: 5px;
}

.gallery-main > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #ffffffd9;
  font-size: 28px;
}

.gallery-arrow.prev {
  left: 12px;
}

.gallery-arrow.next {
  right: 12px;
}

.image-count {
  position: absolute;
  bottom: 12px;
  right: 14px;
  padding: 5px 9px;
  border-radius: 20px;
  background: #ffffffdf;
  font-size: 12px;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  flex: 1;
  height: 64px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #f4f4f4;
}

.thumb.active {
  border-color: var(--black);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 0;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--muted);
}

.product-info h1 {
  margin-top: 2px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.delivery {
  margin-top: 24px;
}

.delivery label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
}

.zip-row {
  display: flex;
  gap: 8px;
}

.zip-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline-color: var(--blue);
}

.text-button {
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 700;
}

.small-message {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.payment-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
  padding: 4px;
  background: #f0f0f0;
  border-radius: 5px;
}

.payment-tab {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.payment-tab.active {
  background: #fff;
  box-shadow: 0 1px 4px #0001;
}

.price {
  margin-top: 20px;
  font-size: 27px;
  font-weight: 700;
}

.price-caption {
  color: var(--muted);
  font-size: 12px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-grid div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-grid strong {
  font-size: 18px;
}

.spec-grid span {
  color: var(--muted);
  font-size: 10px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 11px 20px;
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: opacity 0.2s ease;
}

.button:hover {
  opacity: 0.85;
}

.button-dark {
  background: var(--black);
  color: #fff;
}

.button-outline {
  border: 1px solid var(--black);
  background: transparent;
}

.full-button {
  width: 100%;
}

.disclaimer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.section {
  padding: 80px 6%;
}

.configuration-section {
  background: #f7f7f7;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading h2,
.feature-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -1px;
}

.section-heading > p:last-child,
.feature-copy > p:not(.eyebrow):not(.disclaimer) {
  color: var(--muted);
  font-size: 14px;
}

.configuration-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: auto;
}

.config-card {
  padding: 22px;
  border: 2px solid #dedede;
  border-radius: 7px;
  background: #fff;
  text-align: left;
}

.config-card.selected {
  border-color: var(--blue);
}

.config-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}

.config-top strong:first-child {
  font-size: 14px;
}

.config-top strong:last-child {
  white-space: nowrap;
  font-size: 14px;
}

.config-details {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.feature-section {
  min-height: 400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6%;
  padding: 65px 6%;
}

.feature-section.reverse .feature-image {
  order: 2;
}

.feature-image {
  height: 320px;
  overflow: hidden;
  border-radius: 5px;
  background: #f4f4f4;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy {
  max-width: 450px;
}

.feature-copy .button {
  margin-top: 20px;
}

.accessories-section {
  background: #f7f7f7;
}

.accessory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1050px;
  margin: auto;
}

.accessory-card {
  padding: 14px;
  background: #fff;
  border-radius: 5px;
}

.accessory-card img {
  height: 180px;
  object-fit: contain;
  background: #f5f5f5;
}

.accessory-card h3 {
  margin-top: 14px;
  font-size: 15px;
}

.accessory-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.order-bottom-space {
  height: 75px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 28px 16px 100px;
  font-size: 11px;
  color: var(--muted);
}

.sticky-order-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 5%;
  background: #ffffffed;
  border-top: 1px solid #e6e6e6;
  backdrop-filter: blur(12px);
}

.sticky-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.sticky-price strong {
  font-size: 16px;
}

.order-button {
  min-width: 160px;
}

@media (max-width: 900px) {
  .desktop-nav {
    gap: 12px;
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px 5% 45px;
  }

  .gallery-main {
    height: clamp(260px, 58vw, 430px);
  }

  .product-info {
    max-width: 620px;
  }

  .feature-section {
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .announcement {
    font-size: 10px;
  }

  .navbar {
    height: 52px;
    padding: 0 16px;
  }

  .logo {
    font-size: 19px;
  }

  .desktop-nav,
  .nav-actions > a {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    top: 88px;
  }

  .product-hero {
    padding: 12px 16px 35px;
    gap: 24px;
  }

  .gallery-main {
    height: 270px;
  }

  .gallery-thumbnails {
    gap: 6px;
    margin-top: 8px;
  }

  .thumb {
    height: 49px;
  }

  .product-info h1 {
    font-size: 37px;
  }

  .spec-grid {
    margin: 20px 0;
    padding: 16px 0;
  }

  .spec-grid strong {
    font-size: 16px;
  }

  .spec-grid span {
    font-size: 9px;
  }

  .section {
    padding: 52px 16px;
  }

  .configuration-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .config-card {
    padding: 17px;
  }

  .feature-section,
  .feature-section.reverse {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 36px 16px;
  }

  .feature-section.reverse .feature-image {
    order: 0;
  }

  .feature-image {
    height: 230px;
  }

  .feature-copy h2 {
    font-size: 30px;
  }

  .accessory-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .accessory-card {
    padding: 12px;
  }

  .accessory-card img {
    height: 190px;
  }

  .footer {
    gap: 15px;
    padding: 25px 12px 95px;
  }

  .footer span {
    flex-basis: 100%;
    text-align: center;
  }

  .sticky-order-bar {
    padding: 10px 14px;
  }

  .sticky-price {
    font-size: 10px;
    max-width: 58%;
  }

  .sticky-price strong {
    font-size: 15px;
  }

  .order-button {
    min-width: 125px;
    min-height: 40px;
  }

  .order-bottom-space {
    height: 50px;
  }
}

@media (max-width: 360px) {
  .gallery-main {
    height: 230px;
  }

  .config-top {
    flex-direction: column;
    gap: 5px;
  }

  .sticky-price {
    max-width: 54%;
  }

  .order-button {
    min-width: 110px;
    padding: 10px;
  }
}

[hidden] {
  display: none !important;
}

#featureSections .feature-section:first-child {
  margin-top: 0;
}

#relatedProductGrid .accessory-card a {
  display: block;
}

#relatedProductGrid .accessory-card img {
  margin-bottom: 12px;
}


/* Product gallery: fill the main image frame */
.gallery-main,
.product-gallery-main,
.main-product-image {
  overflow: hidden;
}

.gallery-main img,
.product-gallery-main img,
.main-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* Related Products Layout */
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

/* Tablet */
@media (min-width: 521px) and (max-width: 1024px) {
  .related-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

/* Mobile: one product per row */
@media (max-width: 520px) {
  .related-products-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .related-product-image {
    aspect-ratio: 4 / 3;
  }

  .related-product-title {
    font-size: 18px;
  }

  .related-product-description {
    font-size: 14px;
  }
}

