/* Product page tweaks (non-slick fallback) */

/* Unify font across all sections on product pages */
body {
    font-family: Muli, sans-serif;
}

.product-template .slider .slider-for {
    background: #f7f9fb;
    width: auto;
    margin: 0;
    display: grid;
    overflow: hidden;
}

.product-template .slider .slider-for .slider-image {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
    display: block !important; /* override common.css :not(.slick-initialized) hide */
}

.product-template .slider .slider-for .slider-image.active {
    opacity: 1;
    pointer-events: auto;
}

.product-template .slider .slider-for .slider-image > img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
}

/* Single-image slider (e.g., Silcote-AS — no .slider-nav): show smaller, framed by gray bg */
.product-template .slider:not(:has(.slider-nav)) .slider-for {
    padding: 40px;
}

.product-template .slider:not(:has(.slider-nav)) .slider-for .slider-image > img {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

/* Thumbnail row */
.product-template .slider .slider-nav {
    display: flex;
    gap: 14px;
    /* reset the inherited slick gutter (margin-left:-15px) that pulled the
       thumbnail strip 15px left of the main image / text grid on narrow widths */
    margin: 16px 0 0;
    width: auto;
}

.product-template .slider .slider-nav > img {
    display: block !important; /* override the :not(.slick-initialized) hide */
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    background: #f7f9fb;
    padding: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity 0.2s, border-color 0.2s;
}

.product-template .slider .slider-nav > img:hover {
    opacity: 0.7;
}

.product-template .slider .slider-nav > img.active {
    border-color: #4070f4;
}

/* Single-image gallery: keep the thumbnail small instead of stretching it to
   the full slider width. Matches the size of a thumbnail in a 4-up row. */
.product-template .slider .slider-nav > img:only-child {
    flex: 0 0 auto;
    width: calc((100% - 42px) / 4);
}

/* A short product gallery used to leave a large blank gap before the Product features
   section because the info column on the right is taller. Let the gallery fill the
   column height: the main-image panel grows (image stays centered inside it) and the
   thumbnail strip drops to just above Product features instead of floating mid-column. */
.product-template .row > div:first-child {
    display: flex;
    flex-direction: column;
}

.product-template .slider {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.product-template .slider .slider-for {
    flex: 1 1 auto;
    min-height: 0;
    align-content: center;
}

/* Spacing between product-template top section and product-details */
.product-details {
    margin-top: 60px;
}

/* Force bullet markers in product-details lists */
.product-details ul {
    list-style: disc !important;
    padding-left: 20px;
}
.product-details ul li {
    margin-bottom: 4px;
}

/* Notes (italic gray) */
.product-details .notes {
    font-style: italic;
    color: #6c757d;
    margin-top: 6px;
    margin-bottom: 16px;
}

/* Subtitles in product-details */
.product-details .subtitle {
    font-weight: 800;
    color: #222;
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 18px;
}

/* Product H1 subtitle — the descriptive part after the product name,
   shown smaller on its own line. */
.product-template .product-main-info h1 .product-subtitle {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    /* own line-height so wrapped subtitles don't inherit the tall h1 leading (~43px) */
    line-height: 1.3;
}

/* Buy button — vertical-center text inside fixed-height anchor */
.product-template .product-main-info a.btn.add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Facts section icons — bigger */
.page-section.facts .fact-content .svg-icon {
    height: 40px;
}

/* Silcote-AS — reduce gap between intro h2 and first solution block */
.page-section.dtm-solution.pt-lg-5 {
    padding-top: 2.5rem;
    padding-bottom: 1rem;
}

.page-section.dtm-solution.pt-lg-5 + .page-section {
    padding-top: 2rem;
}

/* Reduce vertical padding on solution blocks (each contains .row.dtm-solution) */
.page-section:has(.row.dtm-solution) {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Spacing after Industry Usage (last content section before footer on Silcote-AS) */
.product-details.bg-white-dark {
    padding-bottom: 80px;
}

/* Silcote-AS solution blocks — match home page typography */
.dtm-solution .solution-title {
    font-family: Muli, sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    line-height: 22px;
    margin-bottom: 12px;
}

.dtm-solution h4 {
    font-family: Muli, sans-serif;
    margin-bottom: 16px;
}

.dtm-solution .solution-description {
    font-family: Muli, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #444;
}

/* Hide common.css's old :before triangle (its hide rule requires .product-template as ancestor; we have them as siblings) */
.product-details .accordion .card .card-header.caret:before {
    display: none !important;
}

/* Accordion — flat (no card bg/border), thin chevron */
.product-details .accordion .card {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #dde5ee !important;
    border-radius: 0 !important;
}

.product-details .accordion .card .card-header,
.product-details .accordion .card .card-header.caret {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 1.25rem 0;
    font-size: 20px;
    font-weight: 500;
    color: #222;
    transition: color 0.2s ease;
    cursor: pointer;
}

.product-details .accordion .card .card-header.caret .card-title {
    margin: 0;
    color: inherit;
    font-weight: inherit;
}

.product-details .accordion .card .card-header.caret:after {
    content: "";
    width: 14px;
    height: 14px;
    border: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.25s ease;
}

.product-details .accordion .card .card-header.caret[aria-expanded="true"]:after {
    transform: translateY(-50%) rotate(180deg);
}

.product-details .accordion .card .card-header.caret:hover {
    color: #0d44db;
}

.product-details .accordion .card .card-body {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
}

/* PDF/listing block items inside accordion body */
.product-details .accordion .card .card-body .block {
    display: flex !important;
    align-items: center;
    margin-bottom: 5px;
    background: #fafafa;
    padding: 20px 15px;
    text-decoration: none;
    color: #212529;
    transition: background-color 0.3s ease-in;
    border-radius: 4px;
}

.product-details .accordion .card .card-body .block:hover,
.product-details .accordion .card .card-body .block:focus {
    background: #ededed;
    text-decoration: none;
    color: #212529;
}

.product-details .accordion .card .card-body .block .block-img {
    margin-right: 18px;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.product-details .accordion .card .card-body .block .block-img .svg-icon {
    max-width: 60px;
    max-height: 45px;
    width: auto;
    height: auto;
}

/* Technical data: PDF icons are taller-than-wide, narrower box */
.product-details .accordion .card #collapse-technical-data .block .block-img {
    width: 40px;
}

.product-details .accordion .card #collapse-technical-data .block .block-img .svg-icon {
    max-width: 40px;
    max-height: 48px;
}

.product-details .accordion .card .card-body .block > span {
    font-size: 1rem;
    color: #212529;
}

/* Price + size variants block (sits above Buy from Manufacturer button) */
.product-main-info .product-pricing {
    margin: 18px 0;
}

.product-main-info .product-pricing .product-price {
    margin-bottom: 8px;
}

.product-main-info .product-pricing .price-amount {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.1;
}

.product-main-info .product-pricing .product-sizes-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 4px;
}

.product-main-info .product-pricing .product-sizes {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
}

.product-main-info .product-pricing .product-sizes li {
    padding: 2px 0;
    color: #212529;
    font-size: 0.95rem;
}

/* Listings accordion: group several documents under one program logo */
.product-details .accordion .card .card-body .listing-group {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    background: #fafafa;
    padding: 20px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease-in;
}

.product-details .accordion .card .card-body .listing-group:hover {
    background: #ededed;
}

.product-details .accordion .card .card-body .listing-group .block-img {
    margin-right: 18px;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.product-details .accordion .card .card-body .listing-group .block-img .svg-icon {
    max-width: 60px;
    max-height: 45px;
    width: auto;
    height: auto;
}

.product-details .accordion .card .card-body .listing-group .listing-docs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-details .accordion .card .card-body .listing-group .listing-docs a {
    color: #212529;
    text-decoration: none;
    font-size: 1rem;
}

.product-details .accordion .card .card-body .listing-group .listing-docs a:hover,
.product-details .accordion .card .card-body .listing-group .listing-docs a:focus {
    color: #0d44db;
    text-decoration: underline;
}

.product-details .accordion .card .card-body .listing-group .listing-docs .listing-pending {
    color: #6c757d;
    font-size: 1rem;
}
