/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

@media (max-width: 1024px) {
   
	.elementor-widget-n-tabs .e-n-tabs-heading {
		display: block !important;
		
	}
	
	.elementor-widget-n-tabs .e-n-tabs-heading .e-n-tab-title {
		min-width: 300px !important;
	}
	
}



/* ==========================================================================
   GUTENBERG TABLES (wp-block-table) - RESPONSIVE & STICKY 1st COLUMN
   ========================================================================== */

/* 1. Στοίχιση αριθμών σταθερού πλάτους για τεχνικά δεδομένα */
figure.wp-block-table table.has-fixed-layout {
    font-variant-numeric: tabular-nums;
    -moz-font-feature-settings: "tnum";
    -webkit-font-feature-settings: "tnum";
    font-feature-settings: "tnum";
}

@media (max-width: 1200px) {
    /* 2. Ενεργοποίηση οριζόντιας κύλισης στο figure container */
    figure.wp-block-table {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        display: block;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* 3. Αποτροπή συμπίεσης του πίνακα (παράκαμψη του fixed layout κάτω από 1200px) */
    figure.wp-block-table table.has-fixed-layout,
    figure.wp-block-table table.has-border-color {
        min-width: 1100px !important; /* Ελάχιστο πλάτος για να αναπνέουν οι 8 στήλες */
        width: 1100px !important;
        border-collapse: separate !important; /* Απαραίτητο για τη σωστή λειτουργία του sticky */
        border-spacing: 0;
    }

    /* 4. Καρφωμένη (Sticky) η 1η στήλη με τα χαρακτηριστικά */
    figure.wp-block-table table tr th:first-child,
    figure.wp-block-table table tr td:first-child {
        position: sticky !important;
        left: 0 !important;
        z-index: 3;
        background-color: #ffffff; /* Απαραίτητο αδιαφανές φόντο για να μην επικαλύπτονται τα κείμενα */
        min-width: 170px !important;
        max-width: 190px !important;
        /* Σκιά στα δεξιά για να δίνει βάθος καθώς τα τούβλα περνούν από κάτω */
        box-shadow: 4px 0 8px -3px rgba(0, 0, 0, 0.12);
    }

    /* Αν η πρώτη γραμμή (κεφαλίδες) έχει άλλο χρώμα φόντου */
    figure.wp-block-table table thead tr th:first-child {
        background-color: #f7f7f7;
    }

    /* 5. Ελάχιστο πλάτος για τις στήλες των προϊόντων */
    figure.wp-block-table table tr th:not(:first-child),
    figure.wp-block-table table tr td:not(:first-child) {
        min-width: 125px !important;
        white-space: normal;
    }
}

/* 6. Προσαρμοσμένη μπάρα κύλισης (Scrollbar) */
figure.wp-block-table::-webkit-scrollbar {
    height: 6px;
}

figure.wp-block-table::-webkit-scrollbar-track {
    background: #eaeaea;
    border-radius: 4px;
}

figure.wp-block-table::-webkit-scrollbar-thumb {
    background: #c55a28; /* Κεραμιδί χρώμα ΧΑΛΚΙΣ */
    border-radius: 4px;
}



/* ==========================================================================
   SHOWING COLOR VARIATIONS EVEN IF IT IS ONE
   ========================================================================== */
.elementor .e-flexbox-base {
	align-items: normal;
}

/* 1. Εξασφάλιση ότι το wrapper (και το Dynamic Field του JetEngine) πιάνει 100% πλάτος */
.jet-listing-dynamic-field,
.jet-listing-dynamic-field__inline-wrap,
.jet-listing-dynamic-field__content,
figure.wp-block-table {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
}

/* 2. Ο πίνακας πιάνει όλο το πλάτος του container και κεντράρεται */
figure.wp-block-table table,
figure.wp-block-table table.has-fixed-layout,
figure.wp-block-table table.has-border-color {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    table-layout: fixed; /* Μοιράζει ισόποσα τις στήλες σε όλο το container */
}

/* 3. Κεντράρισμα κειμένων και εικόνων μέσα στα κελιά (οριζόντια & κάθετα) */
figure.wp-block-table table th,
figure.wp-block-table table td {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Προαιρετικά: Αν θέλεις η 1η στήλη (ονόματα ιδιοτήτων) να μένει στοιχισμένη αριστερά */
figure.wp-block-table table tr th:first-child,
figure.wp-block-table table tr td:first-child {
    text-align: left !important;
}

figure.wp-block-table table img {
    display: block;
    margin: 0 auto !important;
}
