/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --accent: #f1f5f9;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    margin: 8px 12px 8px 0;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    background-image:url("/images/main-header.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 30%; /* Προσαρμόζουμε τη θέση για καλύτερη εμφάνιση */
    padding: 80px 0 60px; /* Μειώνουμε το padding για μικρότερο ύψος */
    text-align: center;
    height: 60vh; /* Μικρότερο ύψος - 60% του viewport αντί για 100% */
    min-height: 400px; /* Ελάχιστο ύψος για μικρές οθόνες */
    max-height: 600px; /* Μέγιστο ύψος για πολύ μεγάλες οθόνες */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    color: white;
    text-shadow: 1px 1px 2px #000000;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
    color: white;
    text-shadow: 1px 1px 2px #000000;
}

/* Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--accent);
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary);
}

/* Products Grid */
.products-container,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

#products article,
.product-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

#products article:hover,
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card img {
    width: 100%;
    height: auto;
    max-height: 480px;      /* αν θέλεις, το αλλάζεις */
    object-fit: contain;    /* να μη κόβει το προϊόν */
    object-position: center;
    transition: var(--transition);
}


.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    padding: 20px 20px 8px;
}

.product-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

/* Why Us */
#why-us ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

#why-us li {
    background: var(--white);
    padding: 24px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

#why-us li:hover {
    transform: translateX(8px);
}

/* Catalog */
#catalog {
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

#catalog h2 {
    color: var(--white);
}

#catalog p {
    margin-bottom: 32px;
    opacity: 0.9;
}

#catalog .btn-primary {
    background: var(--white);
    color: var(--primary);
}

/* Contact Form */
form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

label {
    display: block;
    margin-bottom: 24px;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 14px 16px;
    margin-top: 8px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    height: 140px;
    resize: vertical;
}

.honey-pot {
    display: none !important;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 20px; }

    nav { flex-direction: column; gap: 16px; }
    .nav-links { gap: 20px; flex-wrap: wrap; justify-content: center; }

    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.125rem; }

    section { padding: 50px 0; }
    h2 { font-size: 1.875rem; margin-bottom: 32px; }

    .hero-buttons { flex-direction: column; align-items: center; gap: 12px; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 280px; margin: 4px 0; }

    .products-container,
    .products-grid { grid-template-columns: 1fr; gap: 24px; }

    #products article,
    .product-card { padding: 24px; }

    form { padding: 24px; margin: 0 12px; }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-dark);
    color: var(--white);
    padding: 24px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-content h3 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.cookie-content p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 8px;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-link {
    background: none;
    border: none;
    color: var(--white);
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 16px;
}

.btn-link:hover {
    opacity: 0.8;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    max-width: 500px;
    width: 90%;
}

.cookie-settings-modal h3 {
    margin-bottom: 20px;
    text-align: center;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.setting-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.setting-group input[type="checkbox"] {
    width: auto;
    margin-top: 0;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px;
    }

    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-buttons button {
        width: 100%;
        margin: 4px 0;
    }

    .cookie-settings-modal {
        padding: 24px;
    }
}
/* ==================== PRODUCT IMAGE CONSISTENCY ==================== */

/* Main website product images */
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Admin panel product images */
.admin-product-image,
.product-card-admin img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
    border: 2px solid #e2e8f0;
}

/* Featured products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* Admin products grid */
.admin-grid .product-card-admin {
    background: var(--accent-color);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
}

/* Ensure placeholder images also follow same dimensions */
.product-card img[src*="placeholder"],
.admin-product-image[src*="placeholder"] {
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .product-card img {
        height: 200px;
    }

    .admin-product-image,
    .product-card-admin img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .product-card img {
        height: 180px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
/* Hero για σελίδες κατηγοριών (workwear, medical, κτλ) */
.hero-inner {
    background-image: none !important;
    background-color: #f8fafc;          /* ή #ffffff αν θέλεις εντελώς λευκό */
    height: auto !important;
    min-height: 220px;
    max-height: none;
    padding: 80px 0 40px;
}

/* Κείμενο hero στις σελίδες κατηγοριών */
.hero-inner h1,
.hero-inner p {
    color: var(--text-dark);
    text-shadow: none;
}
/* Λογότυπο και header για όλες τις σελίδες */
header nav.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 0.25rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Social icons – ίδιο στυλ με την αρχική */
.header-social-links {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.social-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

/* Χρώματα ανά πλατφόρμα */
.social-link.facebook .social-icon { background: #1877f2; }
.social-link.instagram .social-icon { 
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.social-link.linkedin .social-icon { background: #0a66c2; }
.social-link.youtube .social-icon { background: #ff0000; }
.social-link.tiktok .social-icon { background: #070101; }
/* Μείωση μεγέθους λογοτύπου */
.logo-image-container img,
.logo-img {
    max-height: 75px;     /* 👉 Ρύθμισε εδώ αν θέλεις πιο μικρό ή πιο μεγάλο */
    width: auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 1rem;
    font-weight: 600;
}
/* Fix oversized product images in category pages */
#category-products-container .product-card img {
    width: 100%;
    height: auto !important;
    max-height: 320px;      /* ενιαίο ύψος στις κάρτες, χωρίς θόλωμα */
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
}
/* ==================== PRODUCT DETAIL PAGE – FREE LAYOUT ==================== */

/* Βγάζουμε το λευκό πλαίσιο ΜΟΝΟ στη σελίδα προϊόντος */
.product-page .product-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Η γκρι επιφάνεια πίσω από τη φωτογραφία να φύγει */
.product-page .product-image-wrap {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Η φωτογραφία στο προϊόν να είναι όσο πιο μεγάλη γίνεται, χωρίς “κόψιμο” */
.product-page .product-image-main {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    border-radius: 0 !important;
}

/* Λίγο μικρότερο κενό πάνω από την κάρτα προϊόντος */
.product-page {
    padding-top: 40px;
}

