/* The product was the one surface still running to the window edge. It sits in
   the same column as every other page now. */
.omega-product__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: start;
  gap: 40px;
  margin-inline: var(--omega-gutter);
  padding-block: 40px 72px;
}

/* Explicit rows, not fractions: with a stretched grid item the fractions feed
   back against the row height and the gallery inflates. These two figures run
   the gallery to about the foot of the specification beside it. */
.omega-product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 560px 420px;
  gap: 4px;
}

.omega-product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.omega-product-gallery__main {
  grid-column: span 2;
}

/* A product whose craft frame does not exist yet has a single secondary frame;
   let it take the full width rather than sit in a half-empty row. */
.omega-product-gallery img:nth-child(2):last-child {
  grid-column: span 2;
}

.omega-product-summary {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-inline-start: 40px;
  border-inline-start: 1px solid var(--omega-hair);
}

.omega-product-summary__intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.omega-product-summary h1 {
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1;
}

.omega-product-summary .omega-price,
.omega-product-summary__quote {
  color: var(--omega-bronze);
  font-size: 18px;
}

.omega-product-summary__description p {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
}

.omega-product-dimension {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 20px;
  font-family: var(--omega-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.omega-product-dimension i {
  height: 1px;
  flex: 1;
  background: var(--omega-ember);
}

.omega-product-purchase form.cart,
.omega-product-purchase .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.omega-product-purchase table.variations {
  width: 100%;
  margin: 0 0 6px;
  border-collapse: collapse;
}

.omega-product-purchase table.variations th,
.omega-product-purchase table.variations td {
  display: block;
  padding: 0;
  text-align: start;
}

.omega-product-purchase table.variations th {
  margin-bottom: 8px;
  color: var(--omega-sand);
  font-size: 15px;
  font-weight: 400;
}

.omega-product-purchase table.variations select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--omega-hair);
  border-radius: 0;
  background: var(--omega-olive);
}

.omega-product-purchase table.variations select.screen-reader-text {
  width: 1px;
  min-height: 1px;
  height: 1px;
  padding: 0;
}

.omega-variation-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--omega-hair);
}

.omega-variation-option {
  min-height: 50px;
  padding: 10px;
  border: 0;
  border-inline-start: 1px solid var(--omega-hair);
  background: transparent;
  font-size: 15px;
}

.omega-variation-option:first-child {
  border-inline-start: 0;
}

.omega-variation-option[aria-pressed="true"] {
  background: var(--omega-stone);
  color: var(--omega-bark);
}

.omega-product-purchase .reset_variations,
.omega-product-purchase .woocommerce-variation-description,
.omega-product-purchase .woocommerce-variation-availability,
.omega-product-purchase .woocommerce-variation-price {
  display: none !important;
}

.omega-product-purchase .quantity {
  display: flex;
  flex: 0 0 132px;
  border: 1px solid var(--omega-hair);
}

.omega-product-purchase .quantity input {
  width: 40px;
  height: 56px;
  border: 0;
  border-inline: 1px solid var(--omega-hair);
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.omega-quantity-button {
  width: 44px;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--omega-mono);
}

.omega-product-purchase .single_add_to_cart_button {
  min-height: 56px;
  flex: 1;
  padding: 0 24px;
  border: 1px solid var(--omega-stone);
  border-radius: 0;
  background: var(--omega-stone);
  color: var(--omega-bark);
  font-family: var(--omega-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Before a variation is chosen the button is not broken, it is waiting. A ghost
   state reads that way; a half-transparent filled button reads as a fault. */
.omega-product-purchase .single_add_to_cart_button.disabled,
.omega-product-purchase .single_add_to_cart_button:disabled {
  border-color: var(--omega-hair) !important;
  background: transparent !important;
  color: var(--omega-sand) !important;
  opacity: 1;
}

.omega-product-summary__availability {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--omega-sand);
  font-size: 15px;
}

.omega-product-summary__availability strong {
  color: var(--omega-bronze);
  font-weight: 400;
}

/* The specification belongs with the description, in the space the summary
   column used to leave empty, not in a centred band far below the fold. */
.omega-product-specification {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--omega-hair);
}

.omega-product-specification h2 {
  font-size: 26px;
}

.omega-product-specification__grid {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.omega-product-specification__grid > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--omega-hair);
  font-size: 15px;
}

.omega-product-specification__grid > div:last-child {
  border-bottom: 0;
}

.omega-product-specification__grid span {
  color: var(--omega-sand);
}

.omega-product-specification__grid strong {
  font-weight: 400;
  text-align: end;
}

@media (max-width: 700px) {
  .omega-product__layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-inline: 20px;
    padding-block: 20px 40px;
  }

  .omega-product-gallery {
    grid-template-rows: 400px 200px;
    min-height: 0;
  }

  .omega-product-summary {
    gap: 20px;
    padding: 28px 0 0;
    border: 0;
  }

  .omega-product-summary h1 {
    font-size: 42px;
  }

  .omega-product-summary .omega-price,
  .omega-product-summary__quote {
    font-size: 17px;
  }

  .omega-product-dimension {
    margin: 0;
  }

  .omega-product-specification h2 {
    font-size: 24px;
  }

  .omega-product-purchase form.cart,
  .omega-product-purchase .woocommerce-variation-add-to-cart {
    width: 100%;
  }

  .omega-product-purchase .woocommerce-variation-add-to-cart {
    position: sticky;
    z-index: 20;
    inset-block-end: 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--omega-stone);
    background: rgba(20, 21, 15, 0.96);
  }

  .omega-product-purchase .quantity {
    flex-basis: 124px;
  }

  .omega-product-purchase .quantity input,
  .omega-product-purchase .single_add_to_cart_button,
  .omega-quantity-button {
    height: 52px;
    min-height: 52px;
  }

  .omega-product-summary__availability {
    display: none;
  }
}
.omega-product-related {
  padding: 96px var(--omega-gutter);
  border-top: 1px solid var(--omega-hair);
}

.omega-product-related > header {
  margin-bottom: 42px;
}

.omega-product-related h2 {
  margin-top: 12px;
  font-size: clamp(48px, 6vw, 82px);
}

.omega-product-related .omega-shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}

@media (max-width: 700px) {
  .omega-product-related {
    padding: 64px 20px;
  }

  .omega-product-related .omega-shop-grid {
    grid-template-columns: 1fr;
  }

  .omega-product-related .omega-product-card {
    display: flex;
  }
}
