/* Catalog-only styles. The landing page loads only its original stylesheet. */
.catalog-page .navbar{
  position:relative;
  background:var(--bg)
}
.catalog-main{
  max-width:1500px;
  margin:auto;
  padding:80px 7% 100px
}
.catalog-intro{
  position:relative;
  border-bottom:1px solid #25313c;
  padding:0 0 42px;
  margin-bottom:32px
}
.catalog-intro h1{
  font-size:54px;
  letter-spacing:-2px;
  line-height:1.12;
  overflow-wrap:anywhere
}
.catalog-lead{
  color:var(--muted);
  line-height:1.8;
  max-width:720px
}
.category-image{
  width:130px;
  height:110px;
  object-fit:contain;
  margin-top:15px
}
.catalog-toolbar{
  display:flex;
  flex-direction:column;
  gap:28px
}
.category-filter{
  display:flex;
  flex-wrap:wrap;
  gap:10px
}
.category-filter a{
  padding:12px 17px;
  border:1px solid #303b45;
  border-radius:7px;
  font-size:13px
}
.category-filter a.selected,.category-filter a:hover{
  background:var(--orange);
  border-color:var(--orange);
  color:var(--bg)
}
.catalog-search{
  display:flex;
  gap:10px;
  max-width:550px
}
.catalog-search input{
  min-width:0;
  flex:1;
  padding:13px 16px;
  background:var(--panel);
  border:1px solid #303b45;
  border-radius:8px;
  color:var(--text);
  font:inherit;
  font-size:14px
}
.catalog-search button{
  border:0;
  color:var(--text);
  cursor:pointer;
  font-family:inherit
}
.result-count{
  color:var(--muted);
  font-size:13px;
  margin:28px 0 20px
}
.result-count a,.category-link{
  color:var(--orange)
}
.catalog-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px
}
.catalog-card{
  border:1px solid #25313c;
  border-radius:20px;
  background:linear-gradient(145deg,#121b24,#080d13);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-width:0
}
.catalog-visual{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  place-items:center;
  flex-shrink:0;
  overflow:hidden;
  height:280px;
  background:radial-gradient(circle,#203c50,#091018 70%);
  padding:25px
}
.catalog-visual img{
  display:block;
  min-width:0;
  min-height:0;
  max-width:100%;
  max-height:100%;
  width:100%;
  height:100%;
  object-fit:contain;
  transition:transform .25s
}
.catalog-visual:hover img{
  transform:scale(1.04)
}
.catalog-card-body{
  padding:26px;
  display:flex;
  flex-direction:column;
  flex:1;
  align-items:flex-start
}
.catalog-card-body h2{
  font-size:23px;
  letter-spacing:-.5px;
  line-height:1.3;
  margin:15px 0 8px;
  overflow-wrap:anywhere
}
.model{
  font-size:13px;
  color:var(--muted);
  margin:0 0 15px
}
.card-description{
  color:var(--muted);
  font-size:14px;
  line-height:1.7;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0 0 22px
}
.catalog-card-body .mini-specs{
  margin-bottom:24px
}
.catalog-card-body .btn{
  width:100%;
  margin-top:auto
}
.catalog-empty{
  grid-column:1/-1;
  padding:70px 30px;
  border:1px solid #25313c;
  border-radius:16px;
  text-align:center;
  background:var(--panel)
}
.catalog-empty p{
  color:var(--muted);
  line-height:1.8
}
.catalog-empty .btn{
  margin:10px
}
.image-placeholder{
  font-size:13px;
  color:var(--muted)
}
.pagination{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  font-size:13px;
  margin:40px 0 0
}
.pagination a{
  padding:12px 17px;
  border:1px solid #303b45;
  border-radius:7px
}
.pagination>span{
  color:var(--muted)
}
.breadcrumbs{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
  margin-bottom:35px
}
.breadcrumbs a:hover{
  color:var(--orange)
}
.product-detail{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:65px;
  align-items:start
}
.gallery-main{
  height:480px;
  display:grid;
  place-items:center;
  padding:30px;
  border:1px solid #25313c;
  border-radius:20px;
  background:radial-gradient(circle,#203c50,#091018 70%)
}
.gallery-main img{
  width:100%;
  height:100%;
  min-height:0;
  object-fit:contain
}
.gallery-thumbnails{
  display:flex;
  gap:12px;
  margin-top:16px;
  overflow-x:auto;
  padding:4px
}
.gallery-thumbnail{
  flex:0 0 85px;
  height:85px;
  padding:8px;
  background:var(--panel);
  border:1px solid #303b45;
  border-radius:8px
}
.gallery-thumbnail img{
  width:100%;
  height:100%;
  object-fit:contain
}
.gallery-thumbnail[aria-current]{
  border:2px solid var(--orange)
}
.detail-summary{
  padding:20px 0
}
.detail-summary h1{
  font-size:46px;
  line-height:1.12;
  letter-spacing:-1.8px;
  overflow-wrap:anywhere
}
.detail-summary .eyebrow{
  font-size:11px;
  letter-spacing:2px
}
.detail-summary .mini-specs{
  margin:25px 0
}
.detail-summary>p{
  color:var(--muted);
  line-height:1.7
}
.detail-summary .btn{
  margin-top:20px
}
.detail-nav{
  display:flex;
  gap:30px;
  flex-wrap:wrap;
  padding:26px 0;
  margin-top:60px;
  border-bottom:1px solid #303b45;
  font-size:14px
}
.detail-nav a:hover{
  color:var(--orange)
}
.detail-section{
  padding:42px 0;
  border-bottom:1px solid #25313c;
  scroll-margin-top:25px
}
.detail-section h2,.related-heading h2{
  font-size:30px;
  letter-spacing:-1px;
  margin:0 0 25px
}
.detail-section .eyebrow{
  font-size:10px
}
.detail-copy{
  color:var(--muted);
  line-height:1.9
}
.preserve-lines{
  white-space:pre-line;
  overflow-wrap:anywhere
}
.feature-list{
  list-style:none;
  padding:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}
.feature-list li{
  padding:20px 22px;
  background:var(--panel);
  border:1px solid #25313c;
  border-radius:10px;
  font-size:14px;
  line-height:1.7;
  overflow-wrap:anywhere
}
.feature-list li:before{
  content:'✓';
  color:var(--orange);
  margin-right:12px
}
.table-wrap{
  overflow-x:auto
}
.spec-group{
  margin:26px 0
}
.spec-group h3{
  padding:15px 20px;
  margin:0;
  background:#18232e;
  font-size:15px;
  color:var(--orange)
}
.spec-table{
  border-collapse:collapse;
  width:100%;
  text-align:left;
  font-size:14px;
  table-layout:fixed
}
.spec-table td,.spec-table th{
  padding:17px 20px;
  border-bottom:1px solid #25313c;
  line-height:1.6;
  overflow-wrap:anywhere
}
.spec-table th{
  width:36%;
  font-weight:500;
  color:var(--muted)
}
.spec-table tr:nth-child(even){
  background:var(--panel)
}
.related-products{
  margin-top:60px
}
.related-heading{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:20px
}
.related-heading>a{
  color:var(--orange);
  font-size:13px
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0)
}
.catalog-page :focus-visible{
  outline:2px solid var(--orange);
  outline-offset:4px
}
@media(max-width:1100px){
  .catalog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .product-detail{
    gap:30px
  }
  .gallery-main{
    height:380px
  }
  .detail-summary h1{
    font-size:37px
  }
}
@media(max-width:700px){
  .catalog-main{
    padding:55px 6% 65px
  }
  .catalog-intro h1{
    font-size:40px
  }
  .product-detail{
    grid-template-columns:1fr
  }
  .detail-summary h1{
    font-size:36px
  }
  .detail-summary{
    padding:0
  }
  .gallery-main{
    height:370px
  }
  .feature-list{
    grid-template-columns:1fr
  }
  .detail-nav{
    gap:20px;
    margin-top:35px;
    font-size:12px
  }
  .catalog-grid{
    grid-template-columns:1fr
  }
  .catalog-visual{
    height:300px
  }
  .catalog-intro .eyebrow{
    font-size:10px;
    letter-spacing:2px
  }
  .catalog-empty{
    padding:35px 20px
  }
  .spec-table td,.spec-table th{
    padding:14px 10px;
    font-size:12px
  }
  .related-heading{
    align-items:flex-start;
    flex-direction:column;
    gap:0;
    margin-bottom:25px
  }
  .pagination{
    font-size:11px
  }
  .pagination a{
    padding:10px
  }
  .catalog-page .logo-footer{
    max-width:100%
  }
}
@media(prefers-reduced-motion:reduce){
  .catalog-visual img{
    transition:none
  }
}

/* Sidebar and horizontal rows on product listing pages. */
.catalog-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.catalog-sidebar {
  background: var(--panel);
  border: 1px solid #25313c;
}
.catalog-sidebar h2 {
  margin: 0;
  padding: 20px 18px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid #303b45;
}
.catalog-sidebar .category-filter {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.catalog-sidebar .category-filter a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid #25313c;
  border-radius: 0;
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.catalog-sidebar .category-filter a:last-child { border-bottom: 0; }
.catalog-sidebar .category-filter a.selected,
.catalog-sidebar .category-filter a:hover {
  background: #ff730014;
  color: var(--orange);
  box-shadow: inset 3px 0 var(--orange);
}
.catalog-results { min-width: 0; }
.catalog-results > .breadcrumbs {
  padding: 0 0 20px;
  margin: 0 0 28px;
  border-bottom: 1px solid #303b45;
}
.catalog-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.catalog-list-heading h1 {
  font-size: 28px;
  letter-spacing: -1px;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}
.catalog-list-heading .catalog-search { max-width: 360px; }
.catalog-list-heading .catalog-search .btn { padding: 12px 16px; }
.catalog-results .result-count { margin: 18px 0; }
.catalog-list { display: grid; gap: 18px; }
.catalog-row {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  border: 1px solid #25313c;
  background: var(--panel);
  min-width: 0;
}
.catalog-row-image {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 28px;
  background: radial-gradient(circle, #203c50, #091018 75%);
}
.catalog-row-image img {
  width: 100%;
  height: 270px;
  object-fit: contain;
}
.catalog-row-content { padding: 34px; min-width: 0; }
.catalog-row-content h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 12px 0 8px;
  overflow-wrap: anywhere;
}
.catalog-row-content .tag { font-size: 10px; }
.row-description, .row-features {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.row-description { margin: 0 0 12px; }
.row-features { margin: 0 0 18px; padding-left: 18px; }
.row-features li { padding-left: 2px; }
.catalog-row-content .mini-specs { margin-bottom: 20px; }
.catalog-row-content .btn { padding: 10px 18px; border-radius: 4px; font-size: 12px; }
@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 25px; }
  .catalog-list-heading { align-items: stretch; flex-direction: column; gap: 16px; }
  .catalog-list-heading .catalog-search { max-width: none; }
  .catalog-row-content { padding: 24px; }
  .catalog-row-image { padding: 18px; }
}
@media (max-width: 800px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .catalog-sidebar .category-filter { flex-direction: row; flex-wrap: wrap; }
  .catalog-sidebar .category-filter a { border-bottom: 0; padding: 12px 16px; }
  .catalog-sidebar h2 { padding: 15px 16px; }
}
@media (max-width: 520px) {
  .catalog-row { grid-template-columns: minmax(0, 1fr); }
  .catalog-row-image { min-height: 240px; }
  .catalog-row-image img { height: 220px; }
  .catalog-row-content { padding: 24px; }
}

.category-filter .category-subfilter { padding-left: 28px; font-size: 14px; }

.catalog-sidebar .category-filter { flex-direction: column; flex-wrap: nowrap; }
.category-group { border-bottom: 1px solid #25313c; min-width: 0; }
.category-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  cursor: pointer;
  list-style: none;
}
.category-group summary::-webkit-details-marker { display: none; }
.category-group summary:hover,
.category-group summary.selected {
  background: #ff730014;
  color: var(--orange);
  box-shadow: inset 3px 0 var(--orange);
}
.category-group summary:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.category-chevron { flex-shrink: 0; transition: transform .2s ease; }
.category-group[open] > summary .category-chevron { transform: rotate(90deg); }
.catalog-sidebar .category-children a { padding: 12px 18px 12px 30px; font-size: 13px; }
.category-children { background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  .category-chevron { transition: none; }
}

/* Keep category navigation available without pushing products down on phones. */
.catalog-category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.catalog-category-toggle::-webkit-details-marker { display: none; }
.catalog-category-panel[open] > summary { border-bottom: 1px solid #303b45; }
.catalog-category-toggle > span { transition: transform .2s; }
.catalog-category-panel[open] > summary > span { transform: rotate(180deg); }
.catalog-row-image { min-width: 0; }
.catalog-row-image img { max-width: 100%; }
.catalog-row-content .model,
.catalog-row-content .tag,
.catalog-row-content .mini-specs span,
.catalog-results .result-count { overflow-wrap: anywhere; }
.catalog-row-content .mini-specs span { min-width: 0; max-width: 100%; }

@media (max-width: 800px) {
  .catalog-main { padding: 28px 5% 56px; }
  .catalog-category-toggle { min-height: 48px; padding: 14px 16px; }
  .catalog-layout { gap: 24px; }
  .catalog-row { grid-template-columns: minmax(0, 1fr); }
  .catalog-row-image { min-height: 0; padding: 20px; }
  .catalog-row-image img { height: 240px; }
  .catalog-row-content { padding: 22px; }
  .catalog-row-content .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    width: 100%;
  }
  .catalog-search { width: 100%; }
  .catalog-search input { font-size: 16px; }
  .catalog-search button { min-height: 44px; flex-shrink: 0; }
  .catalog-results > .breadcrumbs { margin-bottom: 20px; overflow-wrap: anywhere; }
  .pagination { flex-wrap: wrap; justify-content: center; }
  .pagination a { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 600px) {
  .catalog-page .navbar { padding: 0 16px; gap: 12px; }
  .catalog-page .brand { width: auto; min-width: 0; flex: 1; }
  .catalog-page .logo { width: 100%; max-width: 240px; height: auto; }
  .catalog-page .menu-toggle { flex: 0 0 44px; min-height: 44px; padding: 0; }
  .catalog-row-image img { height: 220px; }
  .catalog-row-content { padding: 20px; }
  .catalog-list-heading h1 { font-size: 26px; }
  .catalog-empty .btn { max-width: 100%; margin: 10px 0; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-category-toggle > span { transition: none; }
}

/* Product detail: constrain intrinsic image and text widths to their columns. */
.product-detail > *,
.gallery-main,
.detail-summary { min-width: 0; }
.gallery-main {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.gallery-main img { display: block; min-width: 0; max-width: 100%; max-height: 100%; }
.gallery-thumbnails { max-width: 100%; }
.detail-summary > p,
.detail-summary .mini-specs span,
.spec-group h3 { overflow-wrap: anywhere; }
.detail-summary .mini-specs span { min-width: 0; max-width: 100%; }
.detail-section h2,
.related-heading h2 { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .product-detail { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gallery-main { height: clamp(260px, 55vw, 440px); padding: 24px; }
  .detail-summary { padding: 0; }
  .detail-summary h1 { font-size: clamp(28px, 5vw, 38px); letter-spacing: -1px; margin: 12px 0; }
  .detail-summary .eyebrow { line-height: 1.7; }
  .detail-summary .btn { min-height: 48px; }
}

@media (max-width: 600px) {
  .catalog-main > .breadcrumbs { gap: 8px; margin-bottom: 24px; overflow-wrap: anywhere; }
  .gallery-main { height: clamp(240px, 75vw, 360px); padding: 20px; border-radius: 14px; }
  .gallery-thumbnail { flex-basis: 68px; height: 68px; }
  .gallery-thumbnails { gap: 8px; margin-top: 12px; }
  .detail-summary .btn { width: 100%; justify-content: center; gap: 16px; }
  .detail-summary .mini-specs { margin: 20px 0; }
  .detail-nav { gap: 8px; padding: 16px 0; margin-top: 28px; }
  .detail-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; font-size: 13px; }
  .detail-section { padding: 28px 0; }
  .detail-section h2,
  .related-heading h2 { font-size: 26px; line-height: 1.3; margin-bottom: 20px; }
  .feature-list { gap: 12px; }
  .feature-list li { padding: 16px; }
  .spec-group h3 { padding: 14px 12px; line-height: 1.5; }
  .spec-table th { width: 42%; }
  .spec-table td,
  .spec-table th { font-size: 13px; vertical-align: top; }
  .related-products { margin-top: 36px; }
}

.gallery-navigation-controlled {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  min-width: 0;
}
.gallery-navigation-controlled .gallery-thumbnails {
  flex: 1;
  min-width: 0;
  max-width: 481px;
  margin-top: 0;
}
.gallery-arrow {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #303b45;
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 28px;
  cursor: pointer;
}
.gallery-arrow[hidden] { display: none; }
.gallery-arrow:hover { border-color: var(--orange); color: var(--orange); }
@media (max-width: 600px) {
  .gallery-navigation-controlled { gap: 6px; margin-top: 12px; }
  .gallery-navigation-controlled .gallery-thumbnails { max-width: 380px; }
}

/* Parent text navigates; the remaining summary area toggles its children. */
.catalog-sidebar .category-group summary .category-parent-link {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
}
.catalog-sidebar .category-group summary .category-parent-link:hover {
  color: var(--orange);
  text-decoration: underline;
}
.catalog-sidebar .category-group summary .category-parent-link:focus-visible {
  outline-offset: 4px;
}
