/* Theme Variables & Reset */
:root {
    --prt-gold: #f6b600;
    --prt-dark: #191e28;
}

/* Hero Section */
.slm-2200-product-hero-section {
    
      width: 100%;
    /* This creates a balanced height for wide screens */
    height: 570px; 
    
   background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('../images/tarleimg/slm-2200-banner.png');
    
    /* This is critical for your 2882px image */
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;

    /* Centers your text inside the banner */
    display: flex;
    align-items: center;
    justify-content: center;
}
.slm-3000-product-hero-section {
     
     width: 100%; 
    /* This creates a balanced height for wide screens */
    height: 570px; 
    
   background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('../images/tarleimg/slm-3000-banner.png');
    /* This is critical for your 2882px image */
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;

    /* Centers your text inside the banner */
    display: flex;
    align-items: center;
    justify-content: center;
}
.slm-4300-product-hero-section {
    width: 100%;
    /* This creates a balanced height for wide screens */
    height: 570px; 
    
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../images/tarleimg/slm-4300-banner-1.png');
    
    /* This is critical for your 2882px image */
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;

    /* Centers your text inside the banner */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adjust for smaller desktops */
@media (min-width:1200px) and (max-width: 1350px) {
    .slm-4300-product-hero-section, .slm-3000-product-hero-section, .slm-2200-product-hero-section  {
        height: 400px;
    }
}
@media (min-width:800px) and (max-width: 1024px) {
    .slm-4300-product-hero-section, .slm-3000-product-hero-section, .slm-2200-product-hero-section{
        height: 500px;
    }
}
@media (min-width:767px) and (max-width: 799px) {
    .slm-4300-product-hero-section, .slm-3000-product-hero-section, .slm-2200-product-hero-section {
        height: 550px;
    }
}
@media(min-width: 425px) and  (max-width: 600px) {
    .slm-4300-product-hero-section, .slm-3000-product-hero-section, .slm-2200-product-hero-section {
        height: 600px;
    }
}
@media(min-width: 310px) and  (max-width: 400px) {
    .slm-4300-product-hero-section, .slm-3000-product-hero-section, .slm-2200-product-hero-section {
        height: 670px;
    }
}
.rollar-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/tarleimg/road-rollar-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 100px;
}
.plate-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/tarleimg/plate-compresure-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 100px;
}
.bar-banding-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/tarleimg/bar-banding-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 100px;
}
.bar-cutting-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/tarleimg/bar-cutting-banner-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 100px;
}
.power-trowels-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/tarleimg/power-trowels-banner-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 100px;
}
.concrit-cutter-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/tarleimg/concrit-cutter-banner-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 100px;
}
.vibratory-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/tarleimg/vibratory-paver-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 100px;
}
.truss-screed-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/tarleimg/truss-screed-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 100px;
}
.needle-vibrator-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),  url('../images/tarleimg/needle-vibrator-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 100px;
}
.screed-vibrator-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),  url('../images/tarleimg/screed-vibrator-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 100px;
}
.construction-hoist-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),  url('../images/tarleimg/construction-hoist-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 100px;
}


@media (max-width: 991px) {
 
    .product-hero-section, .rollar-hero-section, .plate-hero-section, .bar-banding-hero-section, .bar-cutting-hero-section, .power-trowels-hero-section, .concrit-cutter-hero-section, .vibratory-hero-section, .truss-screed-hero-section, .needle-vibrator-hero-section, .screed-vibrator-hero-section, .construction-hoist-hero-section {
        padding: 60px 0;
    }
}
.ls-2 {
    letter-spacing: 2px;
}

.mt-minus-50 {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

/* Product Visuals */
.main-stage {
    position: relative;
}

.badge-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
}

.main-hero-img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
}

.thumb-item {
    width: 100px;
    height: 70px;
    padding: 5px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: 0.3s;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.thumb-item.active-thumb {
    border-color: var(--prt-gold);
}

/* Specs Table */
.custom-spec-table th {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
}

.custom-spec-table td {
    font-weight: 700;
    color: var(--prt-dark);
}

.spec-preview-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

/* Features */
.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-light-warning {
    background-color: #fff9e6;
}

.hover-shadow:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
}

.transition {
    transition: all 0.3s ease;
}

.feature-card-modern {
    background: #fff;
    border-radius: 15px;
    transition: 0.3s;
    border: 1px solid #f0f0f0;
}

.feature-card-modern:hover {
    border-color: var(--prt-gold);
    background: #fffcf0;
}

/* Gallery Section */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 400px;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 193, 7, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.cardborder {
    border-color: #ffc338 !important;
    height:100%;
}

.slide {
    height: 400px;
    align-items: center;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Owl Carousel Styling */
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: #ffc107 !important;
    /* Your warning gold */
}

.owl-theme .owl-dots .owl-dot span {
    background: #444 !important;
    width: 10px;
    height: 10px;
    margin: 5px 7px;
    display: block;
    transition: opacity .2s ease;
    border-radius: 30px;
}

.gallery-card {
    cursor: grab;
    /* Shows user they can drag */
}

.gallery-card:active {
    cursor: grabbing;
}

@media (max-width: 991px) {
    .mt-minus-50 {
        margin-top: 0;
    }

    .product-hero-section {
        padding: 60px 0;
    }
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

/* The Large Image */
.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Right Side Close Button */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
    color: #f7c32e; /* Using your brand yellow */
}

/* Active State */
.lightbox-overlay.active {
    display: flex;
}


/* Base Style (Desktop) */
.product-visual-wrapper .main-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Desktop Dimensions */
    width: 40px; 
    height: 60px; 
    border-radius: 10px; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Icon centering and sizing */
.product-visual-wrapper .main-nav-btn i {
    font-size: 1.5rem; 
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-visual-wrapper .main-nav-btn:hover {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

/* Position adjustments */
.product-visual-wrapper .main-nav-btn.left { left: 10px; }
.product-visual-wrapper .main-nav-btn.right { right: 10px; }

/* --- Tablet Responsive (Max 991px) --- */
@media (max-width: 991px) {
    .product-visual-wrapper .main-nav-btn {
        width: 35px;
        height: 70px;
    }
    .product-visual-wrapper .main-nav-btn i {
        font-size: 1.5rem;
    }
}

/* --- Mobile Responsive (Max 576px) --- */
@media (max-width: 576px) {
    .product-visual-wrapper .main-nav-btn {
        width: 30px;
        height: 50px;
        border-radius: 6px; /* Slightly sharper corners for smaller scale */
    }
    .product-visual-wrapper .main-nav-btn i {
        font-size: 1.0rem;
    }
    /* Move buttons closer to edges on small screens */
    .product-visual-wrapper .main-nav-btn.left { left: 5px; }
    .product-visual-wrapper .main-nav-btn.right { right: 5px; }
}
 

/* Specific curve for Left/Right to "hug" the edge if desired */
.product-visual-wrapper .main-nav-btn.left { 
    left: 10px; 
    border-top-left-radius: 0; 
    border-bottom-left-radius: 0; 
}
.product-visual-wrapper .main-nav-btn.right { 
    right: 10px; 
    border-top-right-radius: 0; 
    border-bottom-right-radius: 0; 
}
    .product-visual-wrapper .main-nav-btn:hover {
        background: #ffc107;
        border-color: #ffc107;
        color: #000;
    }

    .product-visual-wrapper .main-nav-btn.left { left: 15px; }
    .product-visual-wrapper .main-nav-btn.right { right: 15px; }

    /* Scrollbar Hide Logic */
    .thumb-scroll-container::-webkit-scrollbar { display: none; }
    .thumb-scroll-container { 
        -ms-overflow-style: none; 
        scrollbar-width: none; 
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .square-thumb {
        width: 70px; 
        height: 70px; 
        flex-shrink: 0; 
        cursor: pointer;
        border: 2px solid #444; 
        border-radius: 4px; 
        background: #111; 
        transition: 0.3s;
    }

    .active-thumb { border-color: #ffc107 !important; }
    .active-thumb img { opacity: 1 !important; }
    .square-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }

    /* Prevent the main image from jumping during fast scroll */
    #mainView {
        display: block;
        margin: 0 auto;
    }


    /* Section Styling */
.video-container {
    height: 450px;
    background: #111;
}

.video-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: 0.5s;
}

.video-container:hover .video-cover-img {
    transform: scale(1.05);
    opacity: 0.7;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* Play Button Design */
.play-icon-box {
    width: 80px;
    height: 80px;
    background: #e7e7e7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffc107;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-icon-box:hover {
    transform: scale(1.15);
    background: #f3f3f3;
    color:#000;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
}

.h-line {
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

/* FULL SCREEN POPUP - CENTERED */
.video-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none; /* Controlled by JS */
    align-items: center;    /* Vertical Center */
    justify-content: center;  /* Horizontal Center */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.video-popup-content {
    width: 90%;
    max-width: 1100px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.video-popup-content video {
    width: 100%;
    display: block; /* Removes bottom gap */
}

/* CLOSE BUTTON - NO ROTATION */
.video-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 10px;
    height: 62px;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #ffc107;
    color: #ffc107;
    font-size: 25px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    outline: none;
}

.video-close-btn:hover {
    background: #ffc107;
    color: #000;
    transform: scale(1.1); /* Only scale, no rotation */
}

/* Responsive Scaling */
@media (max-width: 768px) {
    .video-container { height: 300px; }
    .play-icon-box { width: 60px; height: 60px; font-size: 2rem; }
    .video-popup-content { width: 95%; }
    .video-close-btn { top: 15px; right: 15px; width: 45px; height: 45px; font-size: 18px; }
}