/* Keep the opening product view compact while showing the complete product. */
.product-hero {
  padding: 24px 0 42px;
}

.product-hero > .container {
  max-width: 1120px;
}

.product-hero .breadcrumbs {
  margin-bottom: 24px;
}

.product-hero .hero-inner {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  padding: 0;
}

.product-hero .hero-inner > div {
  min-width: 0;
}

.product-hero .eyebrow {
  margin-bottom: 14px;
}

.product-hero .hero-inner h1 {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: clamp(34px, 3.5vw, 44px);
  line-height: 1.12;
}

.product-hero .lead {
  max-width: 570px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.8;
}

.product-hero .hero-actions {
  margin-top: 22px;
  gap: 18px;
}

.product-hero .hero-actions .button {
  min-height: 48px;
  padding: 12px 22px;
  font-size: 12px;
}

.product-hero .hero-actions .text-link {
  font-size: 12px;
}

.product-hero .product-detail-photo {
  width: 100%;
  max-width: 440px;
  margin: 0 0 0 auto;
}

.product-hero .product-visual {
  width: 100%;
  aspect-ratio: 1.25;
  max-height: 352px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-hero .product-detail-photo .product-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.product-hero .product-photo-enlarge {
  padding-top: 9px;
}

@media (max-width: 900px) {
  .product-hero .hero-inner {
    gap: 30px;
  }

  .product-hero .hero-inner h1 {
    font-size: 34px;
  }
}

@media (max-width: 760px) {
  .product-hero {
    padding: 22px 0 34px;
  }

  .product-hero .breadcrumbs {
    margin-bottom: 22px;
  }

  .product-hero .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .product-hero .hero-inner h1 {
    font-size: clamp(28px, 5.5vw, 36px);
    margin-bottom: 16px;
  }

  .product-hero .hero-actions {
    margin-top: 20px;
    gap: 16px;
  }

  .product-hero .product-detail-photo {
    max-width: 440px;
    margin: 0 auto;
  }

  .product-hero .product-visual {
    aspect-ratio: 1.35;
    max-height: 326px;
    border-radius: 0;
  }

  .product-hero .product-detail-photo .product-visual img {
    padding: 0;
  }
}

/* These rules apply only after the product sections have been enhanced. */
.product-details-tabs {
  padding: 34px 0 16px;
  background: #fff;
  scroll-margin-top: 104px;
}

.product-details-tabs .container {
  max-width: 1120px;
}

.product-details-tablist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.product-details-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 54px;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: 700 15px/1.4 Arial, "Helvetica Neue", sans-serif;
  cursor: pointer;
  transition: color .18s, background .18s, box-shadow .18s;
}

.product-details-tab:hover {
  color: var(--blue);
  background: #e5edff;
}

.product-details-tab[aria-selected="true"] {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 4px 12px #1756d91a;
}

.product-details-tab:focus-visible,
.product-details-panel:focus-visible {
  outline: 3px solid #1756d9;
  outline-offset: 4px;
}

.product-details-tabs .product-details-panel {
  padding: 36px 0 0;
  border: 0;
  background: #fff;
  scroll-margin-top: 184px;
}

.product-details-tabs .product-details-panel[hidden] {
  display: none;
}

.product-details-panel > .container {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr);
  gap: 48px;
}

.product-details-panel h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.product-details-panel .eyebrow {
  margin-bottom: 12px;
  font-size: 10px;
}

.product-details-panel p,
.product-details-panel .feature-list {
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 760px) {
  .product-details-tabs {
    padding-top: 24px;
    scroll-margin-top: 92px;
  }

  .product-details-tablist {
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
  }

  .product-details-tab {
    min-height: 58px;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 13px;
  }

  .product-details-tabs .product-details-panel {
    padding-top: 26px;
  }

  .product-details-panel > .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .product-details-panel h2 {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-details-tab {
    transition: none;
  }
}

/* Backend rich content inherits a consistent product presentation. */
.product-details-tab{text-decoration:none;text-align:center}
.product-details-panel .cms-rich-content{min-width:0;overflow-wrap:anywhere}
.product-details-body{overflow-x:auto}
.product-details-body>:first-child{margin-top:0}
.product-details-body table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.7}
.product-details-body th,.product-details-body td{padding:13px 16px;border:1px solid var(--line);vertical-align:top;text-align:left}
.product-details-body th{font-weight:700;color:var(--ink);background:var(--soft)}
.product-details-body td{color:var(--muted)}
.product-details-body ul,.product-details-body ol{padding-left:22px;margin:0 0 20px;color:var(--muted);font-size:14px;line-height:1.8}
.product-details-body li{padding:7px 0}
.product-details-body img{max-width:100%;height:auto;object-fit:contain}
.product-details-panel:not(:last-child){margin-bottom:32px}
.product-details-tabs.is-enhanced .product-details-panel{margin-bottom:0}
.sy-tag-filter{display:flex;align-items:end;justify-content:space-between;gap:18px 30px;margin:0 0 30px;scroll-margin-top:110px}
.sy-tag-controls{min-width:0}
.sy-tag-label{font-size:15px;font-weight:700;letter-spacing:.08em;color:var(--muted);margin:0 0 12px}
.sy-tag-buttons{display:flex;flex-wrap:wrap;gap:8px}
.sy-tag-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 20px;border:1px solid #c8daf3;border-radius:999px;background:#eaf1ff;color:#435a78;font:600 17px/1.45 Arial,"Helvetica Neue",sans-serif;text-decoration:none}
.sy-tag-button:hover{border-color:#adc3f1;color:#173865;background:#dbe8ff}
.sy-tag-button[aria-current],.sy-tag-button[aria-pressed="true"]{background:#173865;border-color:#173865;color:#fff}
.sy-tag-button{cursor:pointer}
.sy-tag-button:focus-visible{outline:3px solid #9bbcf7;outline-offset:3px}
.sy-tag-status{flex-shrink:0;font-size:11px;line-height:1.7;color:var(--muted);margin:0 0 9px}
.sy-product-tags{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:0 0 12px}
.sy-product-tags li{padding:3px 9px;border-radius:999px;background:var(--soft);color:var(--blue);font-size:10px;line-height:1.6}
.sy-tag-empty{grid-column:1/-1;padding:28px;border:1px solid var(--line);border-radius:20px;background:var(--soft);font-size:13px}
.sy-tag-empty button.text-link{cursor:pointer;background:transparent;border:0;border-bottom:1px solid currentColor}
.sy-category-products-more{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;margin-top:34px;text-align:center}
.sy-category-products-more .button{cursor:pointer}
.sy-category-products-more [data-sy-product-reset]{cursor:pointer;background:transparent;border:0;border-bottom:1px solid var(--line);font:inherit;color:var(--blue)}
.sy-category-products-more [hidden]{display:none!important}
.sy-category-products-more .button:disabled{background:var(--soft);border-color:var(--line);color:var(--muted);box-shadow:none;cursor:default;transform:none}
@media(max-width:760px){.sy-tag-filter{align-items:start;flex-direction:column;gap:15px;margin-bottom:25px}.sy-tag-status{margin:0}.sy-tag-label{font-size:14px}.sy-tag-button{font-size:16px}.sy-tag-button{min-height:44px;padding:10px 14px}.sy-tag-buttons{gap:7px}.product-details-tablist{grid-template-columns:repeat(auto-fit,minmax(min(120px,100%),1fr))}}

/* The product index has its own centered pagination; other archives keep theirs. */
.pagination.product-index-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  min-width: 0;
  margin: 44px auto 0;
  padding: 0;
  border: 0;
  text-align: center;
}

.product-index-pagination .product-index-page-status {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  white-space: normal;
}

.product-index-pagination .product-index-page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  max-width: 100%;
  min-width: 0;
}

.product-index-pagination .product-index-page-step,
.product-index-pagination .product-index-page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid #d2def2;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.product-index-pagination .product-index-page-step {
  padding: 12px 23px;
  white-space: nowrap;
}

.product-index-pagination .product-index-page-number {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 0;
}

.product-index-pagination .product-index-page-number[aria-current="page"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.product-index-pagination .product-index-page-step[aria-disabled="true"] {
  border-color: #e1e6ee;
  color: #98a3b3;
}

.product-index-pagination a.product-index-page-step:hover,
.product-index-pagination a.product-index-page-number:hover {
  border-color: #a8c2f2;
  background: var(--soft);
  color: var(--blue);
}

.product-index-pagination a:focus-visible {
  outline: 3px solid #9bbcf7;
  outline-offset: 3px;
}

@media (max-width: 540px) {
  .pagination.product-index-pagination {
    gap: 15px;
    margin-top: 32px;
  }

  .product-index-pagination .product-index-page-status {
    font-size: 14px;
  }

  .product-index-pagination .product-index-page-links {
    gap: 10px 4px;
  }

  .product-index-pagination .product-index-page-step,
  .product-index-pagination .product-index-page-number {
    min-height: 40px;
    font-size: 13px;
  }

  .product-index-pagination .product-index-page-step {
    padding: 9px 8px;
  }

  .product-index-pagination .product-index-page-number {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
}
