.product-page {
  background: #fff;
}

.woocommerce-notices-wrapper {
  width: min(var(--container), calc(100% - 64px));
  margin: 24px auto 0;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin: 0 0 18px;
  padding: 16px 18px 16px 56px;
  list-style: none;
  border-left: 4px solid var(--red);
  background: #f7f8f9;
  color: var(--navy);
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}

.woocommerce-error {
  border-left-color: var(--red-dark);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
}

.woocommerce-message::before {
  content: "\2713";
  background: rgba(20, 133, 76, 0.12);
  color: var(--green);
}

.woocommerce-info::before {
  content: "i";
  background: rgba(23, 36, 47, 0.08);
  color: var(--navy);
}

.woocommerce-error::before {
  content: "!";
  background: rgba(200, 16, 46, 0.12);
  color: var(--red-dark);
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  margin-left: auto;
  order: 2;
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover {
  background: var(--red);
}

.product-heading {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.product-heading-inner {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #9aa4ad;
  font-size: 12px;
}

.breadcrumbs a {
  color: #8c96a0;
}

.breadcrumbs a:hover {
  color: var(--red);
}

.breadcrumbs i {
  color: #c8d0d6;
  font-style: normal;
}

.product-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.title-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--red);
  border: 1px solid rgba(239, 35, 60, 0.24);
  background: rgba(239, 35, 60, 0.045);
}

.product-title-row h1 {
  color: var(--navy);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 42px;
  align-items: start;
  padding-top: 28px;
}

.product-main-column {
  min-width: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.gallery-photo {
  height: 350px;
  background: #f5f6f7;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.gallery-photo.secondary img {
  object-fit: contain;
  padding: 28px;
}

.gallery-toolbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  color: #8c96a0;
  font-size: 12px;
}

.gallery-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  opacity: 0.28;
  transition: width 0.18s ease, opacity 0.18s ease;
}

.gallery-dot.active {
  width: 22px;
  opacity: 1;
}

.gallery-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.gallery-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7d8790;
  transition: color 0.18s ease;
}

.gallery-actions button:hover {
  color: var(--red);
}

.gallery-actions [data-lucide] {
  width: 18px;
  height: 18px;
}

.thumb-strip {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 92px);
  gap: 10px;
}

.thumb {
  height: 74px;
  background: #f5f6f7;
  border: 1px solid transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.thumb.active {
  border-color: var(--red);
}

.product-description {
  max-width: 860px;
  padding: 18px 0 42px;
}

.product-section {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.product-section:first-child {
  padding-top: 17px;
}

.product-section h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.product-section h3 {
  margin: 20px 0 9px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
}

.product-section p {
  color: #596672;
  line-height: 1.76;
  margin-bottom: 12px;
}

.product-section ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: #596672;
  line-height: 1.55;
}

.product-section li {
  position: relative;
  padding-left: 20px;
}

.product-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  background: var(--red);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 34%;
  color: var(--navy);
  font-weight: 900;
  background: #f8f9fa;
}

.summary-card {
  position: sticky;
  top: 176px;
  background: #fff;
  padding: 4px 0 0;
}

.summary-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.summary-top h2 {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.14;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.summary-code {
  color: #98a3ad;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.price-box {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 16px;
  align-items: end;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.price-box.price-box-full {
  grid-template-columns: 1fr;
}

.price-box small {
  display: block;
  margin-bottom: 4px;
  color: #8c98a3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-price {
  color: var(--navy);
  font-family: Montserrat, sans-serif;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.product-price ins {
  text-decoration: none;
}

.product-price del,
.product-price .amount + .amount {
  color: #9aa4ad;
}

.tax-note {
  display: block;
  margin-top: 3px;
  color: #9aa4ad;
  font-size: 12px;
}

.qty-box label {
  display: block;
  margin-bottom: 7px;
  color: #8f99a3;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.qty-input {
  height: 40px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.qty-input button {
  display: grid;
  place-items: center;
  color: #66727d;
  font-weight: 800;
}

.qty-input .quantity {
  width: 100%;
}

.qty-input .quantity input.qty {
  width: 100%;
  height: 38px;
  border: 0;
  padding: 0;
  text-align: center;
  color: #66727d;
  font-weight: 800;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-input .quantity input.qty::-webkit-outer-spin-button,
.qty-input .quantity input.qty::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.stock-line {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #18894f;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.stock-line [data-lucide] {
  width: 17px;
  height: 17px;
  color: #18894f;
}

.stock-line.is-out-of-stock,
.stock-line.is-out-of-stock [data-lucide] {
  color: var(--red-dark);
}

.product-options {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.summary-card form.cart,
.product-options form.cart {
  margin: 0;
}

.product-options .variations {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.product-options .variations th,
.product-options .variations td {
  padding: 0;
  text-align: left;
}

.product-options .variations label,
.product-options .label label {
  display: block;
  margin-bottom: 9px;
  color: #7b8791;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-options .variations select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9e0e6;
  padding: 0 14px;
  background: #fff;
  color: var(--navy);
}

.product-options .reset_variations {
  display: inline-flex;
  margin-top: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.product-options .woocommerce-variation {
  margin: 14px 0;
  color: #596672;
}

.product-options .single_variation_wrap {
  display: grid;
  gap: 14px;
}

.product-options .quantity {
  display: inline-flex;
}

.product-options .quantity input.qty {
  width: 82px;
  min-height: 42px;
  border: 1px solid var(--line);
  text-align: center;
}

.product-options .single_add_to_cart_button,
.step-btn {
  min-height: 36px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  border: 0;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-options .single_add_to_cart_button:hover,
.step-btn:hover {
  background: var(--red-dark);
}

.summary-links {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 16px 0 19px;
  border-bottom: 1px solid var(--line);
}

.summary-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.summary-links [data-lucide] {
  width: 16px;
  height: 16px;
}

.next-step {
  padding-top: 22px;
}

.next-step h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.step-action {
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.step-action strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.step-action span {
  display: block;
  margin-top: 3px;
  color: #8d98a2;
  font-size: 12px;
}

.advisor-box {
  margin-top: 18px;
  padding: 20px;
  background: #f5f6f7;
}

.advisor-box small {
  color: #87929c;
  font-size: 12px;
  line-height: 1.55;
}

.advisor-box strong {
  display: block;
  margin: 12px 0 4px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.advisor-box span {
  display: block;
  color: #7f8a94;
  font-size: 12px;
  line-height: 1.5;
}

.related-products-block {
  padding: 44px 0 50px;
  background: #f6f7f8;
  overflow: hidden;
}

.related-products-block h2 {
  margin-bottom: 24px;
  text-align: center;
  color: var(--navy);
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.related-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  min-height: 248px;
  padding: 16px;
  background: #fff;
  transition: transform 0.18s ease;
}

.related-card:hover {
  transform: translateY(-4px);
}

.related-photo {
  height: 136px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: #f5f6f7;
}

.related-photo img {
  max-width: 90%;
  max-height: 120px;
  object-fit: contain;
}

.related-card h3 {
  min-height: 36px;
  color: var(--navy);
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 8px;
}

.related-card p {
  color: #6d7884;
  font-size: 12px;
  line-height: 1.45;
}

.related-all {
  margin-top: 18px;
  text-align: center;
}

.related-all a {
  min-height: 38px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-banner {
  min-height: 420px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.1)), url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

.contact-content {
  max-width: 520px;
}

.contact-content h2 {
  margin-bottom: 16px;
  font-size: 37px;
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.contact-content p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.contact-content a {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 18, 24, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  width: min(1060px, 100%);
  max-height: 88vh;
  background: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-top {
  min-height: 58px;
  padding: 0 18px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.lightbox-top strong {
  color: var(--navy);
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 900;
}

.lightbox-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--navy);
}

.lightbox-img-wrap {
  min-height: 460px;
  display: grid;
  place-items: center;
  background: #f6f7f8;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  padding: 26px;
}

.lightbox-bottom {
  min-height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.lightbox-bottom button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 1260px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
  }

  .gallery-photo {
    height: 320px;
  }
}

@media (max-width: 980px) {
  .product-heading-inner {
    min-height: auto;
    padding: 22px 0;
  }

  .product-title-row h1 {
    font-size: 25px;
  }

  .product-layout {
    display: block;
    padding-top: 20px;
  }

  .summary-card {
    position: static;
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-photo {
    height: 310px;
  }

  .gallery-photo.secondary {
    display: none;
  }

  .thumb-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .related-strip {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
  }

  .related-card {
    min-width: 210px;
  }

  .contact-banner {
    min-height: 330px;
  }
}

@media (max-width: 520px) {
  .woocommerce-notices-wrapper {
    width: min(100% - 20px, var(--container));
  }

  .product-title-row {
    align-items: flex-start;
  }

  .title-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }

  .product-title-row h1 {
    font-size: 22px;
  }

  .gallery-photo {
    height: 260px;
  }

  .gallery-toolbar {
    height: auto;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-actions {
    width: 100%;
    justify-content: space-between;
  }

  .summary-card {
    padding: 18px;
  }

  .summary-top,
  .price-box,
  .step-action {
    grid-template-columns: 1fr;
    display: grid;
  }

  .summary-code {
    white-space: normal;
  }

  .price-box {
    align-items: start;
  }

  .step-btn,
  .product-options .single_add_to_cart_button {
    width: 100%;
  }

  .product-section p {
    line-height: 1.65;
  }

  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table th {
    border-bottom: 0;
    padding-bottom: 6px;
  }

  .spec-table td {
    padding-top: 0;
  }
}
