/* MARK: Single Product page */

/* MARK: Page foundations */

.product-page--v2 {
  overflow: hidden;
  background: var(--calabash-white);
  color: var(--calabash-navy);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.65;
}

.product-page--v2 *,
.product-page--v2 *::before,
.product-page--v2 *::after {
  box-sizing: border-box;
}

.product-page--v2 img {
  display: block;
  max-width: 100%;
  height: auto;
}

.product-page--v2 a {
  text-decoration: none;
}

.product-page--v2 .site-container {
  width: min(
    calc(100% - (var(--calabash-page-padding) * 2)),
    var(--calabash-page-max-width)
  );
  margin-inline: auto;
}

/* MARK: Shared elements */

.product-v2-icon-slot {
  display: block;
  flex-shrink: 0;
  border: 1.5px dashed var(--calabash-border);
  border-radius: 50%;
  background: var(--calabash-off-white);
}

.product-v2-icon {
  flex-shrink: 0;
  object-fit: contain;
}

.product-v2-empty {
  margin: 0;
  color: var(--calabash-muted);
  font-size: 0.92rem;
  font-style: italic;
}

/* MARK: Product overview */

.product-v2-header {
  padding: 40px 0;
  margin-bottom: var(--calabash-section-gap);
  background: linear-gradient(120deg, var(--calabash-off-white) 0%, var(--calabash-white) 40%, var(--calabash-orange-18) 150%);
}

.product-v2-header__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
}

.product-v2-gallery__main img {
  width: 100%;
  height: clamp(400px, 32vw, 560px);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-v2-gallery__main--empty {
  min-height: 400px;
  border: 1px dashed var(--calabash-border);
  border-radius: 12px;
  background: var(--calabash-off-white);
}

.product-v2-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.product-v2-gallery__thumb {
  overflow: hidden;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 2px solid var(--calabash-border);
  border-radius: 8px;
  background: var(--calabash-white);
  cursor: pointer;
  transition: border-color var(--calabash-transition);
}

.product-v2-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.product-v2-gallery__thumb:hover,
.product-v2-gallery__thumb.is-active {
  border-color: var(--calabash-green-dark);
}

.product-v2-summary h1 {
  margin: 0 0 12px;
  color: var(--calabash-navy);
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-v2-summary__excerpt {
  margin: 0 0 20px;
  color: var(--calabash-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.product-v2-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.product-v2-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--calabash-navy);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.product-v2-features__tick {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: rgb(0 120 95 / 12%);
  color: var(--calabash-green-dark);
  font-size: 0.72rem;
  line-height: 1;
}

.product-v2-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* MARK: Product details */

.product-v2-details {
  padding: 0 0 var(--calabash-section-gap);
  background: var(--calabash-white);
}

.product-v2-details__grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.3fr) minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.product-v2-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.5vw, 32px);
  margin-bottom: 26px;
  border-bottom: 1px solid var(--calabash-border);
}

.product-v2-tab {
  padding: 0 0 14px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--calabash-muted);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--calabash-transition), border-color var(--calabash-transition);
}

.product-v2-tab:hover {
  color: var(--calabash-navy);
}

.product-v2-tab.is-active {
  border-bottom-color: var(--calabash-company-orange-a11y);
  color: var(--calabash-company-orange-a11y);
}

.product-v2-panel__content {
  color: var(--calabash-navy);
  font-size: 0.96rem;
  line-height: 1.7;
}

.product-v2-panel__content p {
  margin: 0 0 16px;
}

.product-v2-panel__content > :last-child {
  margin-bottom: 0;
}

.product-v2-guide-link {
  margin: 20px 0 0;
  font-size: 0.96rem;
  line-height: 1.5;
}

.product-v2-guide-link a {
  color: var(--calabash-company-orange-a11y);
  font-weight: 800;
}

.product-v2-guide-link a:hover,
.product-v2-guide-link a:focus-visible {
  text-decoration: underline;
}

.product-v2-panel > h2 {
  margin: 0 0 16px;
  color: var(--calabash-navy);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}

.product-v2-highlights {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.product-v2-highlight {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: start;
  column-gap: 16px;
}

.product-v2-highlight .product-v2-icon {
  grid-row: 1 / span 2;
  width: 27px;
  height: 44px;
}

.product-v2-highlight h2 {
  grid-column: 2;
  margin: 0 0 5px;
  color: var(--calabash-navy);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
}

.product-v2-highlight p {
  grid-column: 2;
  margin: 0;
  color: var(--calabash-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.product-v2-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.product-v2-specs-table tr {
  border-bottom: 1px solid var(--calabash-border);
}

.product-v2-specs-table tr:first-child {
  border-top: 1px solid var(--calabash-border);
}

.product-v2-specs-table th,
.product-v2-specs-table td {
  padding: 13px 4px;
  text-align: left;
  font-size: 0.88rem;
}

.product-v2-specs-table th {
  width: 40%;
  color: var(--calabash-muted);
  font-weight: 700;
}

.product-v2-specs-table td {
  color: var(--calabash-navy);
  font-weight: 600;
}

.product-v2-aside {
  position: sticky;
  top: 110px;
}

@media (min-width: 961px) {
  .product-v2-aside {
    order: -1;
  }
}

.product-v2-details__grid--no-aside {
  grid-template-columns: minmax(0, 1fr);
}

/* MARK: Tablet layout */

@media (max-width: 960px) {
  .product-v2-header__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-v2-details__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-v2-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .product-v2-tabs {
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
  }

  .product-v2-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 590px) {
  .product-page--v2 {
    font-size: 15px;
  }

  .product-v2-summary__actions .calabash-ora-solid-button {
    width: 100%;
  }
}
