/*
Theme Name:   Hello Elementor Child
Theme URI:    https://elementor.com/
Description:  Child theme for Hello Elementor to safely customize search layouts.
Author:       Anuj Kumar
Author URI:   https://github.com/geekyanuj
Template:     hello-elementor
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Custom CSS can be added below this line if needed */


/* ==========================================================================
   Full Width Class-Isolated Custom Search Results (Dark Theme Layout)
   ========================================================================== */

/* Full Screen Middle Section Base Setup */
.search-page-main-container {
    background-color: #182535 !important;
    color: #e2e8f0 !important;
    width: 100% !important;
    max-width: 100% !important; /* Forces full screen breaking fluid layout */
    box-sizing: border-box !important;
}

/* Page Titles */
.search-page-header {
    border-bottom: 2px solid #24354a;
    padding-bottom: 15px;
    margin-bottom: 35px !important;
}

.search-page-main-title {
    font-size: 1.45rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.search-page-query-highlight {
    color: #182535 !important;
    background-color: #97d031 !important; /* Theme Primary Color */
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
}

/* Fluid Adaptive Grid Display */
.custom-search-results-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
    gap: 28px !important;
    margin-bottom: 50px !important;
}

/* Product Search Cards */
.product-search-card {
    background: #182535 !important;
    border: 1px solid #24354a !important;
    border-radius: 12px !important;
    padding: 18px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.25s ease !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card Active States */
.product-search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(13, 192, 215, 0.15) !important; /* Theme Secondary Glow */
    border-color: #0dc0d7 !important; /* Theme Secondary Color Accent Frame */
}

/* Content Media Boundaries */
.product-search-thumbnail-wrapper {
    background: #1e2e42 !important;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px !important;
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #24354a;
}

.product-search-image {
    max-height: 100% !important;
    width: auto !important;
    object-fit: contain;
    transition: transform 0.3s ease !important;
    border-radius: 5px;
}

.product-search-card:hover .product-search-image {
    transform: scale(1.05);
}

/* Text Sizing Systems */
.product-search-title {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
}

.product-search-title-link {
    /* color: #ffffff !important; */
     color: #0dc0d7 !important; 
    text-decoration: none !important;
    transition: color 0.15s ease !important;
    font-weight: 600;
}

.product-search-title-link:hover {
    color: #97d031 !important; /* Primary Accent toggle */
}

.product-search-excerpt-wrapper p {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    color: #a0aec0 !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Technical Specification Elements */
.product-search-technical-specs {
    border-top: 1px solid #24354a !important;
    padding-top: 14px !important;
    margin-top: 16px !important;
}

.product-search-specs-heading {
    font-size: 0.72rem !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #0dc0d7 !important; /* Theme Secondary Subheading Color */
    display: block;
    margin-bottom: 8px;
}

/* Dynamic Table Inner Styles */
.product-search-technical-specs table.acf-specs-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

.product-search-technical-specs table.acf-specs-table tr {
    border-bottom: 1px solid #24354a !important;
    transition: background-color 0.12s ease !important;
}

.product-search-technical-specs table.acf-specs-table tr:last-child {
    border-bottom: none !important;
}

.product-search-technical-specs table.acf-specs-table tr:hover {
    background-color: #1e2e42 !important;
}

.product-search-technical-specs table.acf-specs-table th,
.product-search-technical-specs table.acf-specs-table td {
    font-size: 0.75rem !important;
    padding: 6px 4px !important;
    line-height: 1.3 !important;
}

.product-search-technical-specs table.acf-specs-table th {
    color: #97d031 !important; /* Theme Primary Color */
    font-weight: 600 !important;
    width: 40%;
}

.product-search-technical-specs table.acf-specs-table td {
    color: #e2e8f0 !important;
}

/* Clean Numbered Pagination List System (1, 2, 3...) */
.search-page-pagination ul.page-numbers {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 40px 0 0 0 !important;
    gap: 10px !important;
    justify-content: center !important;
}

.search-page-pagination ul.page-numbers li {
    margin: 0 !important;
}

.search-page-pagination ul.page-numbers a,
.search-page-pagination ul.page-numbers span.page-numbers {
    display: inline-block !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    border: 1px solid #24354a !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
}

/* Normal Link Number States */
.search-page-pagination ul.page-numbers a {
    color: #97d031 !important; /* Theme Primary */
    background: #182535 !important;
}

/* Hover over individual numbers */
.search-page-pagination ul.page-numbers a:hover {
    background: #0dc0d7 !important; /* Theme Secondary */
    color: #182535 !important;
    border-color: #0dc0d7 !important;
}

/* Active current selected page index item number */
.search-page-pagination ul.page-numbers span.current {
    background: #97d031 !important; /* Theme Primary */
    color: #182535 !important;
    border-color: #97d031 !important;
}

/* Empty State Styling */
.search-page-no-results {
    padding: 40px 0;
    text-align: center;
}

.search-page-empty-text {
    color: #e2e8f0 !important;
    font-size: 0.95rem !important;
    margin-bottom: 24px !important;
}

.search-page-fallback-form input[type="search"] {
    background-color: #1e2e42 !important;
    border: 1px solid #24354a !important;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
}

.search-page-fallback-form input[type="search"]:focus {
    border-color: #0dc0d7 !important;
    outline: none;
}


/* single proudct view */

/* Base Canvas Wrapping Container */
.custom-product-single-container {
    background-color: #0b131c; /* True deep theme background accent */
    width: 100%;
    min-height: 80vh;
    padding: 60px 4%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Master Product Presentation Card */
.product-showcase-card {
    background-color: #24292e; /* Slate charcoal block profile matching screenshot */
    border: 1px solid #2f363d;
    border-radius: 8px;
    width: 100%;
    max-width: 1100px;
    padding: 40px;
    box-sizing: border-box;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Header Text Alignments */
.product-showcase-header {
    text-align: center;
    margin-bottom: 35px;
}
.product-showcase-title {
    color: #2ecc71; /* High vibrance clean tech green matching top banner */
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
}
.header-accent-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2ecc71, transparent);
}

/* Split Column Body Alignment Layout */
.product-showcase-body {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
}

/* Left Image Box Framing with Zoom Hover Micro-Interactions */
.product-showcase-image-wrapper {
    flex: 1;
    max-width: 45%;
}
.image-zoom-frame {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.interactive-product-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.image-zoom-frame:hover .interactive-product-image {
    transform: scale(1.06); /* Fluid responsive scaling action */
}

/* Right Content Profile Panel */
.product-showcase-details {
    flex: 1;
    color: #b0b8c0;
    font-size: 1.05rem;
    line-height: 1.6;
}
.product-description-text {
    margin-bottom: 25px;
    color: #e1e4e8;
}
.technical-specs-heading {
    color: #2ecc71;
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

/* Premium Interactive Spec Table Layout */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 30px;
}
.technical-specs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1c2024;
}
.technical-specs-table th, 
.technical-specs-table td {
    border: 1px solid #2f363d;
    padding: 14px 18px;
    text-align: left;
    font-size: 0.95rem;
}
.technical-specs-table th {
    background-color: #16191c;
    color: #ffffff;
    width: 35%;
    font-weight: 600;
}
.technical-specs-table td {
    color: #d1d5da;
}
.technical-specs-table tr:hover {
    background-color: rgba(46, 204, 113, 0.04); /* Soft rows reaction glow */
}
.highlight-blue-text {
    color: #3892ff !important;
    font-weight: 600;
}
.table-inline-link {
    color: #3892ff;
    text-decoration: none;
    transition: color 0.2s ease;
}
.table-inline-link:hover {
    text-decoration: underline;
    color: #66aaff;
}

/* Action Button Footers */
.product-action-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.download-datasheet-btn {
    display: inline-flex;
    align-items: center;
    background-color: #2ecc71;
    color: #ffffff;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
    transition: all 0.25s ease;
}
.download-datasheet-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
}

/* Smooth Layout Collapse for Mobile Displays */
@media (max-width: 768px) {
    .product-showcase-body {
        flex-direction: column;
    }
    .product-showcase-image-wrapper {
        max-width: 100%;
        width: 100%;
    }
    .product-showcase-card {
        padding: 20px;
    }
}