/* Premium Product Card Styles for Showcase */
.premium-product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(163, 29, 32, 0.1);
    z-index: 1;
    height: 440px;
    display: flex;
    flex-direction: column;
}

.premium-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(163, 29, 32, 0.15);
    border-color: rgba(163, 29, 32, 0.3);
}

.premium-product-card .image-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    height: 240px;
}

.premium-product-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.premium-product-card:hover .image-wrapper img {
    transform: scale(1.08);
}

.premium-product-card .content {
    padding: 25px 20px;
    background: transparent;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.premium-product-card .title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #231f20;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.premium-product-card:hover .title {
    color: #a31d20;
}

.premium-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: transparent;
    color: #a31d20;
    font-weight: 600;
    border: 2px solid #a31d20;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}

.premium-product-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #a31d20;
    z-index: -1;
    transition: all 0.3s ease;
}

.premium-product-btn:hover {
    color: #fff;
    border-color: #a31d20;
}

.premium-product-btn:hover::before {
    width: 100%;
}

.premium-product-btn i {
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.premium-product-btn:hover i {
    transform: translateX(5px);
}

/* =========================================
   Mobile UI Fixes
   ========================================= */

@media (max-width: 991px) {
    /* Give the logo column more space so it doesn't overflow and cover the menu */
    .mobile-header .row .col:first-child {
        flex: 0 0 75%;
        max-width: 75%;
    }
    .mobile-header .row .col:last-child {
        flex: 0 0 25%;
        max-width: 25%;
    }

    /* Fix Mobile Logo Size so tagline is readable */
    .mobile-logo img {
        max-width: 240px;
        width: 100%; /* Prevent it from overflowing its new 75% container */
        height: auto;
    }

    /* Fix Hero Text Spacing (Line-Height) - increased specificity */
    .hero-content .title {
        line-height: 1.3 !important;
        font-size: 32px !important;
    }

    /* Reduce Large Empty Spacer at Bottom of Hero */
    .promo-single-item {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    /* Target the actual box holding the padding */
    .promo-single-item .box {
        padding: 25px 20px !important;
    }
    
    .promo-single-item .icon {
        margin-bottom: 15px !important;
        height: 70px !important;
        width: 70px !important;
    }
    .promo-single-item .icon img {
        padding: 15px !important;
    }

    /* Fix Massive Gap Below "All Products" Button */
    .working-process-display-section.section-top-space {
        margin-top: 40px !important;
        padding-top: 40px !important;
    }

    /* Prevent Section Headers from Overlapping Back-to-Top Button */
    .section-content {
        padding-left: 15px;
        padding-right: 45px; /* Leave space on the right for the floating button */
    }
}

/* Improve Product Description Typography Contrast */
.premium-product-card .quick-specs {
    font-weight: 500 !important;
    color: #333 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fix "Our Products" Button Visibility over Sparks - increased specificity */
.hero-slider-active .hero-content .btn,
.hero-content .btn {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

/* Darken the hero image overlay slightly to help text pop */
.hero-bg::after {
    background: rgba(0, 0, 0, 0.4) !important;
}

.logo img {
    max-width: 200px;
    height: auto;
}

/* Fix Mobile Menu Visibility (Overrides Bootstrap 5 hidden state) */
.offcanvas.offcanvas-open {
    visibility: visible !important;
}


.premium-product-card .image-wrapper img {
    background-color: #ffffff;
    object-fit: contain !important;
    padding: 10px;
    /* mix-blend-mode: multiply; */
}

/* 2-Column Mobile Fixes for Product Cards */
@media (max-width: 768px) {
    .premium-product-card {
        height: 340px;
    }
    .premium-product-card .image-wrapper {
        height: 160px;
        padding: 10px;
    }
    .premium-product-btn {
        padding: 6px 8px !important;
        font-size: 0.7rem !important;
        letter-spacing: 0 !important;
    }
    .premium-product-btn i {
        margin-left: 3px !important;
    }
    .premium-product-card .content {
        padding: 15px 10px !important;
    }
    .premium-product-card .title {
        font-size: 0.9rem !important;
        margin-bottom: 10px !important;
        -webkit-line-clamp: 3;
    }
    .premium-product-card .quick-specs {
        display: none; /* Hide specs on mobile to save space */
    }
}


/* =========================================
   Category Filter Tabs Redesign
   ========================================= */
.projects-gallery-filter-nav-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 15px;
}

.projects-gallery-filter-nav {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    padding: 6px;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.projects-gallery-filter-nav::-webkit-scrollbar {
    display: none;
}

.projects-gallery-filter-nav .btn,
.projects-gallery-filter-nav .btn-outline-secondary {
    border: none;
    background: transparent;
    color: #555;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 30px;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex: 0 0 auto;
    margin: 0 !important;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.projects-gallery-filter-nav .btn-outline-secondary:hover {
    color: #a31d20;
    background: rgba(163, 29, 32, 0.08);
}

.projects-gallery-filter-nav .btn-outline-secondary.active {
    background: #a31d20;
    color: #fff;
    box-shadow: 0 4px 12px rgba(163, 29, 32, 0.25);
}

@media (max-width: 991px) {
    .projects-gallery-filter-nav {
        justify-content: flex-start;
        border-radius: 25px;
        padding: 6px 10px;
    }
}

/* =========================================
   Pagination Styles
   ========================================= */
.product-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    padding-bottom: 20px;
}

.product-pagination .page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-pagination .page-btn:hover {
    background: rgba(163, 29, 32, 0.05);
    color: #a31d20;
    border-color: #a31d20;
}

.product-pagination .page-btn.active {
    background: #a31d20;
    color: #fff;
    border-color: #a31d20;
    box-shadow: 0 4px 10px rgba(163, 29, 32, 0.2);
}

.product-pagination .page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}




/* =========================================
   Isotope grid container: ensure it never 
   collapses to zero height during pagination
   ========================================= */
.projects-wrapper {
    min-height: 400px;
    position: relative;
}
