/* Accessories info pages (Products > Accessories > ...) */
.acc-section { padding: 36px 0 12px; }
.acc-section:last-of-type { padding-bottom: 56px; }
.acc-section-title { margin: 0 0 22px; font-size: 24px; color: var(--primary); }

/* Feature (single product, e.g. antifreeze) */
.acc-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.acc-feature-media { position: relative; margin: 0; background: var(--white, #fff); border: 1px solid #dde4ee; border-radius: 4px; padding: 18px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.acc-feature-media img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 3px; background: #fff; border: 1px solid #e5ebf3; box-sizing: border-box; }
.acc-badge { position: absolute; top: 30px; left: 30px; z-index: 1; background: #c8102e; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .02em; padding: 6px 14px; border-radius: 999px; }
.acc-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.acc-feature-body h2 { margin: 0 0 6px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; color: var(--primary); }
.acc-sub { margin: 0 0 14px; font-size: 17px; font-weight: 600; color: #3a5a8c; }
.acc-feature-body p { line-height: 1.65; }
.acc-bullets { list-style: none; margin: 16px 0 4px; padding: 0; display: grid; gap: 8px; }
.acc-bullets li { position: relative; padding-left: 28px; line-height: 1.5; color: #26344f; }
.acc-bullets li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.4l2.4 2.4 5.2-5.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.acc-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; padding: 0; }
.acc-chips li { display: flex; flex-direction: column; gap: 2px; min-width: 110px; padding: 10px 14px; background: #f3f7fd; border: 1px solid #dbe6f6; border-radius: 4px; }
.acc-chips b { font-size: 20px; color: var(--primary); }
.acc-chips span { font-size: 12px; color: #5b6b86; }
.acc-h3 { margin: 24px 0 10px; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); }
.acc-usage { margin: 0; padding: 14px 16px; background: #f7f9fc; border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; font-size: 15px; }
.acc-actions { margin-top: 22px; }
/* Buttons row: same look as the product pages; sits on the bottom edge of the image card */
.acc-feature-body { display: flex; flex-direction: column; align-self: stretch; min-width: 0; }
.acc-feature-media { align-self: start; }
.acc-downloads { margin-top: auto; padding-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.acc-downloads .btn-solid--download { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; font-size: 14px; font-weight: 700; border-radius: 4px; text-align: center; background: #0b2a66; color: #fff; border: 0; box-shadow: none; text-decoration: none; transition: background 0.18s ease; }
.acc-downloads .btn-solid--download:hover, .acc-downloads .btn-solid--download:focus-visible { background: #0b63b6; color: #fff; }
.acc-downloads .btn-solid--download.is-disabled { background: #0b2a66; color: #fff; cursor: default; pointer-events: none; opacity: 1; }
.acc-feature-details { margin-top: 36px; }
.acc-feature-details .acc-h3:first-child { margin-top: 0; }
.acc-feature-details .acc-table--spec { background: #fff; border: 1px solid #dde4ee; border-radius: 4px; overflow: hidden; font-size: 16px; }
.acc-feature-details .acc-table th, .acc-feature-details .acc-table td { padding: 14px 20px; }
.acc-feature-details .acc-table--spec tbody th { width: 50%; }

/* Tables */
.acc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.acc-table th, .acc-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e6edf7; }
.acc-table thead th { background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .4px; }
.acc-table tbody tr:nth-child(even) { background: #f6f9fd; }
.acc-table--spec tbody th { font-weight: 600; color: #26344f; width: 58%; }
.acc-code { font-weight: 700; color: #1a6fc4; white-space: nowrap; }

/* Groups (e.g. mounting kits: pitched / flat roof) */
.acc-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.acc-group { background: #fff; border: 1px solid #dde4ee; border-radius: 4px; overflow: hidden; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.acc-group-title { margin: 0; padding: 14px 20px; font-size: 16px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); border-bottom: 3px solid var(--accent); }
.acc-group-media { display: grid; gap: 8px; padding: 14px; background: #fff; }
.acc-group-media--2 { grid-template-columns: 1fr 1fr; }
.acc-group-media img { display: block; width: 100%; height: 220px; object-fit: contain; border-radius: 3px; background: #fff; border: 1px solid #e5ebf3; box-sizing: border-box; }
/* Anchor chips (jump links between sections) + gallery inside a feature */
.acc-section--anchors { padding: 24px 0 0; }
.acc-anchors { display: flex; flex-wrap: wrap; gap: 10px; }
.acc-anchors a { display: inline-block; padding: 10px 20px; background: #fff; border: 1px solid #dde4ee; border-radius: 4px; color: var(--primary); font-weight: 700; font-size: 14px; text-decoration: none; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; }
.acc-anchors a:hover, .acc-anchors a:focus-visible { border-color: var(--primary); background: var(--primary); color: #fff; }
.acc-section[id] { scroll-margin-top: 90px; }
.acc-feature-media--gallery { padding: 18px; }
.acc-feature-media--gallery .acc-gallery { padding: 0; background: #fff; }
.acc-feature-media--gallery .acc-gallery-stage { aspect-ratio: 4 / 3; }

/* Gallery inside group cards */
.acc-gallery { padding: 14px; background: #fff; display: grid; gap: 10px; }
.acc-gallery-stage { position: relative; aspect-ratio: 16 / 10; background: #fff; border: 1px solid #e5ebf3; border-radius: 3px; overflow: hidden; min-height: 0; cursor: zoom-in; }
.acc-gallery-stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; border: 0; }
.acc-gallery-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acc-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, 84px); gap: 8px; }
.acc-gallery-thumb { padding: 0; width: 84px; height: 62px; background: #fff; border: 1px solid #e5ebf3; border-radius: 3px; overflow: hidden; cursor: pointer; transition: border-color 0.15s ease; }
.acc-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.acc-gallery-thumb:hover, .acc-gallery-thumb:focus-visible { border-color: #b7c5db; }
.acc-gallery-thumb.is-active { border: 2px solid var(--accent); }
.acc-note { margin: 16px 0 0; font-size: 13px; color: #5b6b86; }

/* Cards (category landing) */
.acc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.acc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #dde4ee; border-radius: 4px; overflow: hidden; color: inherit; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.acc-card:hover, .acc-card:focus-visible, .acc-group:hover, .acc-feature-media:hover { border-color: #b7c5db; box-shadow: 0 2px 8px rgba(15, 36, 72, 0.06); }
.acc-card-media { aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid #edf1f7; display: block; overflow: hidden; }
.acc-card-media img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 16px; box-sizing: border-box; }
.acc-card-media .acc-img-ph { width: 100%; height: 100%; min-height: 0; border-radius: 0; border: 0; box-sizing: border-box; }
.acc-card-body { padding: 18px 20px 22px; }
.acc-card-body h3 { margin: 0 0 6px; font-size: 18px; color: var(--primary); }
.acc-card-body p { margin: 0 0 12px; font-size: 14px; color: #44546f; line-height: 1.55; }
.acc-card-link { font-weight: 700; font-size: 14px; color: var(--accent); }

/* Placeholders / notice */
.acc-img-ph { display: grid; place-items: center; min-height: 180px; border: 1px solid #e5ebf3; border-radius: 3px; background: repeating-linear-gradient(45deg, #f6f9fd, #f6f9fd 10px, #eef3fb 10px, #eef3fb 20px); }
.acc-img-ph span { font-size: 13px; font-weight: 600; color: #7a8aa6; }
.acc-notice { padding: 28px; text-align: center; background: #fff; border: 1px solid #dde4ee; border-radius: 4px; color: #5b6b86; }

@media (max-width: 900px) {
  .acc-feature { grid-template-columns: 1fr; gap: 24px; }
  .acc-groups { grid-template-columns: 1fr; }
  .acc-cards { grid-template-columns: 1fr; }
  .acc-section { padding-top: 24px; }
}

/* Large slideshow (lightbox) */
html.acc-lb-open { overflow: hidden; }
.acc-lightbox { position: fixed; inset: 0; z-index: 2147483100; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; background: rgba(8, 20, 44, 0.88); }
.acc-lightbox[hidden] { display: none; }
.acc-lb-stage { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.acc-lb-img { display: block; max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; background: #fff; border-radius: 4px; object-fit: contain; }
.acc-lb-cap { color: #fff; font-size: 15px; text-align: center; max-width: 80ch; }
.acc-lb-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.acc-lb-nav { justify-self: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.acc-lb-nav[hidden] { display: none; }
.acc-lb-close:hover, .acc-lb-nav:hover, .acc-lb-close:focus-visible, .acc-lb-nav:focus-visible { background: var(--accent); outline: none; }
.acc-lb-count { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #cbd6ea; font-size: 14px; }
@media (max-width: 640px) {
  .acc-lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .acc-lb-nav { width: 38px; height: 38px; font-size: 28px; }
  .acc-lb-img { max-height: calc(100vh - 170px); }
}

/* Image card follows the height of the info column, so its bottom edge lines up with the buttons */
.acc-feature-media { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.acc-feature-media--gallery { justify-content: flex-start; }
.acc-feature-media--gallery .acc-gallery { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.acc-feature-media--gallery .acc-gallery-stage { flex: 1 1 auto; aspect-ratio: auto; min-height: 280px; }
@media (max-width: 900px) {
  .acc-feature-media { align-self: start; }
  .acc-feature-media--gallery .acc-gallery-stage { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
}

/* Accessories landing cards: same look as the Products cards (title bar, divider, outlined button) */
.acc-card { transition: border-color 0.18s ease, box-shadow 0.18s ease; border-radius: 6px; }
.acc-card:hover, .acc-card:focus-visible { border-color: #b7c5db; box-shadow: 0 6px 18px rgba(15, 36, 72, 0.08); transform: none; }
.acc-card-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.acc-card-body h3 { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; color: var(--primary); }
.acc-card-body h3::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--accent); }
.acc-card-body p { margin: 0; font-size: 14.5px; line-height: 1.65; color: #53637d; min-height: calc(1.65em * 2); }
.acc-card-btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 20px; background: #fff; border: 1.5px solid var(--primary); border-radius: 6px; color: var(--primary); font-size: 13.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; transition: background 0.18s ease, color 0.18s ease; }
.acc-card-body p + .acc-card-btn { margin-top: auto; }
.acc-card-btn::after { content: "\2192"; font-size: 16px; line-height: 1; transition: transform 0.18s ease; }
.acc-card:hover .acc-card-btn, .acc-card:focus-visible .acc-card-btn { background: var(--primary); color: #fff; }
.acc-card:hover .acc-card-btn::after, .acc-card:focus-visible .acc-card-btn::after { transform: translateX(4px); }
.acc-card-body::before { content: none; }