.single-product .breadcrumbs {
    margin-bottom: 35px;
}

.single-product .summary > *:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.single-product .product_title {
    margin-bottom: 12px;
    font-size: 35px;
    text-transform: uppercase;
    color: #231f20;
}

/* Gallery */
.product-gallery {
    margin-bottom: 35px;
}

.product-gallery .fx-slide-inner {
    display: block;
    position: relative;
    z-index: 1;
    padding: 10px;
    border: none;
}

.product-gallery .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
}

/* Main Gallery */
.product-gallery-main {
    margin-bottom: 15px;
    padding: 20px;
    position: relative;
    /* z-index: 1; */
    border: 1px solid #e6e7e9;
    border-radius: 10px;
    overflow: hidden;
}

.product-gallery-main .fx-slide-inner {
    padding: 0;
}

.product-gallery-image-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgba(35, 31, 32, 0.85);
    text-transform: uppercase;
    font-size: 25px;
    font-family: "Barlow Condensed", "sans-serif";
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    cursor: -webkit-zoom-in;
    cursor: zoom-in;
}

.product-gallery-image-overlay svg {
    margin-right: 10px;
}

/* Thumbnails Gallery */
.product-gallery-thumbnails {
    margin: 0 -10px;
}

.product-gallery-thumbnails.has-arrows {
    margin: 0;
    padding: 0 25px;
}

.product-gallery-thumbnails .fx-slide {
    margin: 10px;
    padding: 0;
    border: none;
    background-color: #e6e7e9;
    border-radius: 10px;
}

.product-gallery-thumbnails.slick-initialized .fx-slide {
    height: 8px;
}

.product-gallery-thumbnails .fx-slide.slick-current {
    background-color: #6c6d70;
}

.product-gallery-thumbnails .slick-arrow {
    top: 50%;
    bottom: auto;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
}

.product-gallery-thumbnails .fx-slide-inner {
    display: none;
}

.product-gallery-main .play-btn {
    -webkit-transform: translate(-50%, -50%) scale(1.5);
            transform: translate(-50%, -50%) scale(1.5);
}

/* Resources Links */
.product-resources-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px -20px 0 0;
}

.product-resources-links li {
    margin-bottom: 10px;
    margin-right: 10px;
    padding-right: 10px;
    padding-left: 0;
    border-right: 1px solid #e6e7e9;
}

.product-resources-links li:last-child {
    border-right: none;
}

.product-resources-links li:before {
    display: none;
}

.product-resource-link {
    padding: 5px 20px;
	display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.product-resource-link:before {
	/* content: "\e90d"; */
    content: "";
    margin-right: 5px;
    /* font-family: "icomoon"; */
    /* font-size: 16px; */
    /* color: #ce0024; */
    transition: all ease-in-out 0.3s;
    background: url('/wp-content/uploads/2024/01/pdf-download-color.svg');
    width: 35px;
	height: 35px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.product-resource.video .product-resource-link:before {
    content: "";
    margin-right: 5px;
    /* font-family: "icomoon"; */
    /* font-size: 16px; */
    /* color: #ce0024; */
    transition: all ease-in-out 0.3s;
    background: url('/wp-content/uploads/2025/12/video-link-colored.svg');
    width: 35px;
	height: 35px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

}

.product-resource-link:hover {
    border-radius: 100px;
    background-color: #ce0024;
    color: #fff;
}

.product-resource-link:hover:before {
    color: #fff;
	background: url('/wp-content/uploads/2024/01/pdf-download.svg');
	background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.product-resource.video .product-resource-link:hover:before {
    color: #fff;
	background: url('/wp-content/uploads/2025/12/video-link-hovered.svg');
	background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


.product-resource-link::after {
    display: none;
}

/* SKUs Table */
/* Assuming all of the SKUs Table don't use thead & th */
.product-skus-table tbody tr:first-child {
    position: sticky;
    top: 0;
    z-index: 1;
}

.product-skus-table tbody tr:first-child {
    background-color: #231f20;
    text-transform: uppercase;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 18px;
    color: #fff;
}

/* Features & Benefits */
.product-features-heading {
    font-size: 30px;
}

.product-features li.has-icon {
    display: flex;
    align-items: flex-start;
    padding-left: 0;
}

.product-features li.has-icon:before {
    display: none;
}

.product-features li:last-child {
    margin-bottom: 0;
}

.product-features li img {
    margin-right: 10px;
    width: 40px;
    height: 40px;
    -o-object-fit: contain;
       object-fit: contain;
}

/* Installations */
.product-installations.slick-dotted {
    padding-bottom: 25px;
}

.product-installations.slick-dotted .slick-dots {
    width: calc(100% - 70px);
}

.product-installation {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
    border-bottom: none;
    text-align: center;
}

.product-installation .figure {
    width: 100%;
    height: 100%;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.product-installation h5 {
    color: #231f20;
}

@media (min-width: 600px) {
    .single-product .product_title {
        font-size: 40px;
    }

    /* Main Gallery */
    .product-gallery-main .figure {
        padding-top: 270px;
    }

    /* Thumbnails Gallery */
    .product-gallery-thumbnails .fx-slide {
        border: 1px solid #e6e7e9;
        background-color: transparent;
    }

    .product-gallery-thumbnails.slick-initialized .fx-slide {
        height: inherit;
    }

    .product-gallery-thumbnails .fx-slide-inner {
        display: block;
    }

    .product-gallery-thumbnails .fx-slide.slick-current {
        background-color: transparent;
    }

    .product-gallery-thumbnails .figure {
        padding-top: 100px;
    }

    /* SKU Table */
    .product-skus-table tbody tr:first-child {
        font-size: 20px;
    }

    /* Image Buttons */
    .single-product .image-buttons-top {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .single-product .image-buttons-top-content {
        padding: 0;
        text-align: left;
    }

    .single-product .image-buttons-top-content > *:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .single-product .image-buttons-top-button {
        margin-top: 0;
    }
}

@media (min-width: 1200px) {
    .single-product .breadcrumbs {
        margin-bottom: 0;
    }

    .single-product .product_title {
        font-size: 60px;
    }

    /* Main Gallery */
    .product-gallery-main[data-active-type="image"]:hover
        .product-gallery-image-overlay {
        opacity: 1;
    }
    
    .product-gallery-main .figure {
        padding-top: 440px;
    }

    /* Thumbnails Gallery */
    .product-gallery-thumbnails .figure {
        padding-top: 110px;
    }
}

.fade-scroll {
    position: relative;
}

.fade-scroll::before,
.fade-scroll::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
    z-index: 1;
}



.fade-scroll::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(9, 11, 14, .75) 0%, rgba(255, 255, 255, 0) 100%);
}


.fade-scroll {
    position: relative;
    max-height: 400px; /* Add initial height limit */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.fade-scroll.expanded {
    max-height: none;
}

.fade-scroll::before,
.fade-scroll::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease-out;
}

.fade-scroll.expanded::before,
.fade-scroll.expanded::after {
    opacity: 0;
}

.fade-scroll::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(9, 11, 14, .75) 0%, rgba(255, 255, 255, 0) 100%);
}

.fade-scroll-expand {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ce0024;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 2;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    transition: background-color 0.3s;
    border: none;
}

.table-responsive.expanded {
    max-height: 950px;
}

.fade-scroll-expand:hover {
    background: #231f20;
}

.fade-scroll.expanded .fade-scroll-expand {
    display: none;
}

/* Top Horizontal Scrollbar for Tables */
.table-top-scrollbar {
    overflow-x: auto;
    overflow-y: hidden;
    height: 12px;
    margin-bottom: 0px;
    border: 1px solid #e6e7e9;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background-color: #f8f9fa;
}

.table-top-scrollbar::-webkit-scrollbar {
    height: 12px;
}

.table-top-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px 10px 0 0;
}

.table-top-scrollbar::-webkit-scrollbar-thumb {
    background-color: #ce0024;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

.table-top-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #ce0024;
}

.table-scrollbar-spacer {
    height: 1px;
    pointer-events: none;
}

/* Ensure table responsive container has consistent border radius */
.product-skus-table .table-responsive {
    border-radius: 0 0 10px 10px;
    border-top: none;
}

/* When table is expanded, apply different styling */
.product-skus-table.expanded .table-top-scrollbar {
    border-radius: 10px 10px 0 0;
}

.product-skus-table.expanded .table-responsive {
    border-radius: 0 0 10px 10px;
}

/* Deck It Out Popup */
#popmake-65500.pum-container {
    position: relative;
}
#popmake-65500.pum-container::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: url('https://grip-rite.com/wp-content/uploads/2026/04/bg-popup-deck.jpg') center / cover no-repeat;
    opacity: 0.1;
}

.popup-custom {
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.popup-custom__content {
    align-content: center;
    padding-right: 2rem;
    padding-bottom: 1.5rem;
}
.popup-custom__image {
    display: flex;
    place-items: center;
    align-content: center;
    flex-wrap: wrap;
}
.pum-container.pum-responsive .popup-custom__image img {
    width: 100%;
    border-radius: 10px;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.popup-custom__content .h4 {
    text-transform: capitalize;
    padding-bottom: 24px;
}

.popup-custom__cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-bottom: 10px;
}
.popup-custom__cta-row .btn {
    margin-bottom: 0 !important;
}
.popup-custom__arrow {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #ce0024;
    animation: popup-custom-arrow-nudge 1.4s ease-in-out infinite;
}
.popup-custom__arrow-svg {
    width: clamp(3rem, 12vw, 5.5rem);
    height: auto;
    display: block;
}
@keyframes popup-custom-arrow-nudge {
    0%, 100% { transform: translateX(6px); }
    50% { transform: translateX(-6px); }
}
@media (prefers-reduced-motion: reduce) {
    .popup-custom__arrow {
        animation: none;
    }
}
.popup-custom__content span {
    font-size: 14px !important;
}
.popup-custom__image a:hover {
    border-bottom-color: rgba(206,0,36,.0);
}
.popup-custom__image a:hover img {
    opacity: .85 !important;
}

@media (min-width: 600px) {
    .popup-custom {
        flex-direction: row;
    }
    .popup-custom__content {
        padding-right: 2.5rem;
        padding-bottom: 0;
    }
    .pum-container.pum-responsive .popup-custom__image img {
        width: 300px;
    }
}

@media only screen and (min-width: 1199px) {
    #popmake-65500.pum-container.pum-responsive.pum-responsive-medium {
        margin-left: -30%;
        width: 50%;
    }

    .popup-custom__content .h2 {
        font-size: 64px !important;
    }

    .popup-custom__arrow-svg {
        width: clamp(4rem, 15vw, 6.5rem);
    }
}
@media only screen and (min-width: 1365px) {
    .popup-custom__content .h2 {
        font-size: 80px !important;
    }
    .popup-custom {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}
.product-skus-table.fade-scroll.expanded {
    overflow-x: scroll;
}
