/* ========================================================================= */
/*                          1. ΓΕΝΙΚΕΣ ΡΥΘΜΙΣΕΙΣ & RESET                      */
/* ========================================================================= */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #1abc9c;
    --background-light: #ecf0f1;
    --text-color: #34495e;
    --font-primary: 'Lora', serif;
    --font-secondary: 'Nunito', sans-serif;
    --header-height: 80px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
@keyframes sparkle-magic { from { background-position: 0 0; } to { background-position: -10000px 5000px; } }
body {
    background-color: #fdfcff;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 217, 102, 0.2) 1px, transparent 2px), radial-gradient(circle at 80% 30%, rgba(144, 202, 249, 0.2) 1px, transparent 2px), radial-gradient(circle at 10% 80%, rgba(244, 143, 177, 0.2) 1px, transparent 2px), radial-gradient(circle at 50% 60%, rgba(206, 147, 216, 0.2) 1px, transparent 2px);
    background-repeat: repeat; background-size: 2000px 2000px;
    animation: sparkle-magic 150s linear infinite;
    font-family: var(--font-secondary); color: var(--text-color); line-height: 1.6;
    padding-top: var(--header-height);
    transition: background-color 0.5s ease;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.section-title { text-align: center; font-family: var(--font-primary); font-size: 2.8rem; margin-bottom: 50px; color: var(--primary-color); }
.btn-primary {
    display: inline-block;
    padding: 15px 35px; /* Αυξημένο padding */
    background: linear-gradient(to right, #FF0000, #FFA500); /* Καθαρό Κόκκινο σε Πορτοκαλί */
    color: white;
    text-decoration: none;
    border-radius: 50px; /* Πιο στρογγυλεμένες άκρες (pill shape) */
    font-weight: bold;
    font-size: 1.1rem; /* Ελαφρώς μεγαλύτερο μέγεθος γραμματοσειράς */
    transition: all 0.3s ease; /* Ομαλότερη μετάβαση σε όλες τις ιδιότητες */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Αρχική σκιά */
    letter-spacing: 0.5px; /* Διακριτικό διάστημα γραμμάτων */
}
.btn-primary:hover {
    transform: translateY(-5px); /* Πιο έντονο ανέβασμα */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); /* Πιο έντονη σκιά */
    background: linear-gradient(to left, #FF0000, #FFA500); /* Καθαρό Κόκκινο σε Πορτοκαλί */
}

/* ========================================================================= */
/*                                2. HEADER & MENU                           */
/* ========================================================================= */
.main-header {
    background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0,0,0,0.07); z-index: 1000;
}
.main-header .container {
    display: flex; justify-content: space-between; align-items: center; height: 100%; position: relative;
}
@keyframes logo-pop-in { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes logo-road-trip {
    0%   { transform: translateX(0px)  translateY(0px)  rotate(0deg); }
    25%  { transform: translateX(6px)  translateY(1px)  rotate(0.5deg); }
    50%  { transform: translateX(-6px) translateY(-1px) rotate(-0.5deg); }
    75%  { transform: translateX(4px)  translateY(0px)  rotate(0.2deg); }
    100% { transform: translateX(0px)  translateY(0px)  rotate(0deg); }
}
.logo { animation: logo-pop-in 0.8s ease-out forwards, logo-road-trip 12s ease-in-out 1s infinite; }
.logo:hover { animation-play-state: paused; transform: scale(1.1); }
.logo img { max-height: 50px; width: auto; }
.main-nav { position: absolute; left: 50%; transform: translateX(-50%); }
.main-nav ul { list-style: none; padding: 0; display: flex; gap: 25px; }
.main-nav a {
    display: flex; align-items: center; gap: 8px; text-decoration: none;
    color: var(--primary-color); font-weight: bold; transition: color 0.3s ease;
    font-size: 0.95rem; white-space: nowrap;
}
.main-nav a:hover { color: var(--secondary-color); }
.header-actions { display: flex; gap: 20px; }
.header-actions a { color: var(--primary-color); font-size: 1.2rem; transition: color 0.3s ease, transform 0.3s ease; }
.header-actions a:hover { color: var(--secondary-color); transform: scale(1.1); }
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary-color); cursor: pointer; z-index: 1001; }
.mobile-nav-wrapper {
    position: fixed; top: 0; left: -100%; width: 85%; max-width: 320px; height: 100vh;
    background-color: #fff; box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    padding: 100px 40px 40px 40px; transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1); z-index: 1002;
}
.mobile-nav-wrapper.mobile-open { left: 0; }
.mobile-nav-wrapper nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 25px; margin-bottom: 40px; }
.mobile-nav-wrapper .header-actions { display: flex; border-top: 1px solid var(--background-light); padding-top: 25px; }

/* ========================================================================= */
/*                          3. HERO SECTION (ΕΠΑΝΑΣΧΕΔΙΑΣΜΟΣ)                 */
/* ========================================================================= */
#hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    min-height: calc(90vh - var(--header-height));
    background-color: transparent;
    position: relative;
    /* overflow: hidden; ΑΦΑΙΡΕΘΗΚΕ ΓΙΑ ΝΑ ΛΕΙΤΟΥΡΓΕΙ ΤΟ SCALE */
}

.hero-full-bg-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-size: cover; background-position: center center; background-repeat: no-repeat;
    opacity: 0; transform: scale(1.05);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    z-index: 990; pointer-events: none;
}
.hero-full-bg-overlay::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.hero-full-bg-overlay.active { opacity: 1; transform: scale(1); }
.hero-full-bg-overlay.active::before { opacity: 1; }
.hero-text-content { position: relative; z-index: 1; transition: opacity 0.5s ease; }
.hero-text-content .hero-title {
    font-family: var(--font-primary);
    font-size: 4.2rem; /* Αυξημένο μέγεθος */
    line-height: 1.1; /* Σφιχτότερο line-height */
    color: var(--primary-color);
    transition: color 0.5s ease;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); /* Διακριτική σκιά κειμένου */
}
.hero-text-content .hero-subtitle {
    font-size: 1.2rem; margin-top: 15px; margin-bottom: 30px;
    color: var(--text-color); transition: color 0.5s ease;
}
#hero-section.overlay-active .hero-text-content .hero-title,
#hero-section.overlay-active .hero-text-content .hero-subtitle { color: white; }
#hero-section.overlay-active .hero-text-content .btn-primary {
    background-color: var(--accent-color); box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}
#hero-section.overlay-active .hero-text-content .btn-primary:hover { background-color: #158b73; }
.hero-image-collage { position: relative; width: 100%; height: 500px; z-index: 1; transition: opacity 0.5s ease; }
@keyframes float-animation { 0% { transform: translateY(0px) rotate(var(--initial-rotate)); } 50% { transform: translateY(-15px) rotate(var(--initial-rotate)); } 100% { transform: translateY(0px) rotate(var(--initial-rotate)); } }


/* ====================================================== */
/* START: ΤΕΛΙΚΟΣ ΚΑΝΟΝΑΣ ΓΙΑ HOVER ΕΙΚΟΝΩΝ HERO         */
/* ====================================================== */

.hero-image-wrapper {
    position: absolute;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    /* Ομαλή μετάβαση για τις ιδιότητες transform και box-shadow */
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Ο κανόνας :hover που εφαρμόζει τις αλλαγές */
.hero-image-wrapper:hover {
    transform: scale(1.7); /* Μεγέθυνση κατά 70% (1.0 + 0.7 = 1.7) */
    z-index: 10;           /* Έρχεται μπροστά από τις άλλες εικόνες */
    box-shadow: 0 15px 35px rgba(0,0,0,0.25); /* Βελτιωμένη σκιά */
    outline: 3px solid var(--accent-color); /* ΠΡΟΣΘΗΚΗ: Έντονο περίγραμμα για οπτική επιβεβαίωση του hover */
}

/* ====================================================== */
/* END: ΤΕΛΙΚΟΣ ΚΑΝΟΝΑΣ ΓΙΑ HOVER ΕΙΚΟΝΩΝ HERO           */
/* ====================================================== */


#image-1 { --initial-rotate: -8deg; width: 50%; top: 0; left: 10%; z-index: 1; animation: float-animation 6s ease-in-out infinite; }
#image-2 { --initial-rotate: 6deg; width: 45%; top: 25%; left: 45%; z-index: 2; animation: float-animation 8s ease-in-out infinite -2s; }
#image-3 { --initial-rotate: 4deg; width: 40%; top: 55%; left: 5%; z-index: 1; animation: float-animation 7s ease-in-out infinite -4s; }
#image-4 { --initial-rotate: -5deg; width: 55%; top: 50%; left: 40%; z-index: 3; animation: float-animation 6.5s ease-in-out infinite -1s; }


/* ========================================================================= */
/*                       4. ΕΝΟΤΗΤΑ ΝΕΩΝ ΚΥΚΛΟΦΟΡΙΩΝ                         */
/* ========================================================================= */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
}
.book-card {
    background-color: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center; padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* ΝΕΟ: Κανόνες για τον clickable wrapper της εικόνας και του τίτλου */
.book-card-link-wrapper {
    display: block; /* Κάνει το <a> block-level για να περιέχει την εικόνα και τον τίτλο */
    text-decoration: none; /* Αφαιρεί την υπογράμμιση */
    color: var(--primary-color); /* Το χρώμα του τίτλου θα κληρονομήσει από εδώ */
    /* Προσθέστε transition για ομαλή αλλαγή χρώματος τίτλου στο hover */
    transition: color 0.3s ease;
}
.book-card-link-wrapper:hover h3 {
    color: var(--secondary-color); /* Αλλάζει το χρώμα του τίτλου στο hover */
}
.book-card img {
    width: 100%; /* Η εικόνα καλύπτει το πλάτος της κάρτας */
    height: 180px; /* Σταθερό ύψος για όλες τις εικόνες */
    object-fit: cover; /* Κρατάει τις αναλογίες και καλύπτει τον χώρο, περικόπτοντας αν χρειαστεί */
    margin-bottom: 8px;
    border-radius: 4px;
    transition: transform 0.3s ease; /* Ομαλή μετάβαση για το εφέ lift */
}
.book-card-link-wrapper:hover img {
    transform: translateY(-3px); /* Ελαφρύ ανέβασμα της εικόνας στο hover */
}
.book-card h3 { font-family: var(--font-primary); font-size: 0.95rem; color: var(--primary-color); margin-bottom: 3px; line-height: 1.3; }
.book-card .author { font-size: 0.8rem; color: #777; margin-bottom: 8px; }
.book-card .price { font-size: 0.95rem; font-weight: bold; color: var(--secondary-color); display: block; margin-bottom: 12px; }
.sale-price-display {
    font-size: 0.75em; color: #dc3545; font-weight: normal; text-decoration: line-through; margin-left: 5px;
}
.btn-secondary { padding: 6px 10px; font-size: 0.8rem; background-color: var(--accent-color); color: white; text-decoration: none; border-radius: 5px; font-weight: bold; transition: background-color 0.3s ease; }
.btn-secondary:hover { background-color: #16a085; }

/* ========================================================================= */
/*                 5. ΑΝΑΒΑΘΜΙΣΜΕΝΗ ΕΝΟΤΗΤΑ ΚΑΤΗΓΟΡΙΩΝ                       */
/* ========================================================================= */
.full-width-section { width: 100%; padding-left: 0; padding-right: 0; }

#kids-categories {
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #e9ecef; /* The base background color for the section */
    overflow: hidden;
}

/* START: ΝΕΟΣ ΚΩΔΙΚΑΣ */
#kids-categories::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: var(--bg-image); /* This CSS variable will be set by JS */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.6s ease-in-out; /* Smooth fade-in for the image */
    z-index: 0; /* Behind the content */
}

#kids-categories.background-visible::before {
    opacity: 1; /* Makes the image visible */
}

#kids-categories .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1; /* Ensure content is above the background image */
}
/* END: ΝΕΟΣ ΚΩΔΙΚΑΣ */


.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.glass-card {
    position: relative; padding: 40px 20px; border-radius: 15px;
    text-align: center; font-size: 1.4rem; font-weight: bold; color: var(--primary-color);
    text-decoration: none; text-shadow: 0 1px 2px rgba(255,255,255,0.5);
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Maintain card's own transitions */
    overflow: hidden;
}
.glass-card::before {
    content: ''; position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 60%);
    transform: rotate(45deg); opacity: 0; transition: opacity 0.5s ease;
}
.glass-card:hover {
    transform: translateY(-10px) scale(1.03);
    /* Δεν χρειάζεται backdrop-filter: none; εδώ, αφού το background είναι στο section */
    /* Δεν χρειάζεται color: white; εδώ, εκτός αν θέλετε το κείμενο της κάρτας να αλλάζει */
}
.glass-card:hover::before { opacity: 1; }

/* Αφαιρέθηκαν οι κανόνες nth-child(:hover) για background-color στις κάρτες */


/* ========================================================================= */
/*                      6. ΠΡΟΤΕΙΝΟΜΕΝΑ ΒΙΒΛΙΑ (FEATURED)                    */
/* ========================================================================= */
#featured-books .section-title {
    margin-bottom: 50px;
}

/* ========================================================================= */
/*                   7. ΕΝΟΠΟΙΗΜΕΝΟ ACTION HUB WIDGET                        */
/* ========================================================================= */
.action-hub {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hub-closed-messages {
    position: absolute;
    bottom: 80px;
    right: 75px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 998;
}
.action-hub:not(:hover) .hub-closed-messages {
    opacity: 1;
    transform: translateX(0);
}
.action-hub:hover .hub-closed-messages {
    opacity: 0;
    transform: translateX(30px);
}
.hub-message-bubble {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.action-hub:not(:hover) .hub-message-bubble:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 0.1s; }
.action-hub:not(:hover) .hub-message-bubble:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.2s; }
.action-hub:not(:hover) .hub-message-bubble:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.3s; }
.action-hub:not(:hover) .hub-message-bubble:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.4s; }
.hub-trigger {
    background-color: #FF6600; /* Έντονο Πορτοκαλί */
    color: white;
    width: 65px; height: 65px; border-radius: 50%; border: none;
    font-size: 1.8rem; cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hub-trigger i { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.action-hub:hover .hub-trigger i { transform: rotate(135deg); }
.hub-options { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-bottom: 20px; }
.hub-item { position: relative; display: flex; align-items: center; }
.hub-icon {
    width: 55px; height: 55px; border-radius: 50%;
    background-color: white; color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0; transform: translateY(20px) scale(0.5); pointer-events: none;
}
.action-hub:hover .hub-icon { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.action-hub:hover #hub-ebooks .hub-icon { transition-delay: 0.1s; }
.action-hub:hover #hub-personal-pick .hub-icon { transition-delay: 0.2s; }
.action-hub:hover #hub-events .hub-icon { transition-delay: 0.3s; }
.action-hub:hover #hub-author .hub-icon { transition-delay: 0.4s; }
.hub-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hub-details {
    position: absolute; right: 70px; bottom: 0;
    width: 350px; background-color: white; border-radius: 12px;
    padding: 20px; box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    opacity: 0; transform: translateX(20px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    pointer-events: none;
}
.hub-item:hover .hub-details { opacity: 1; transform: translateX(0); pointer-events: auto; }
.widget-title { display: block; font-size: 0.8rem; font-weight: bold; color: var(--accent-color); text-transform: uppercase; margin-bottom: 10px; }
.author-details h3 { font-family: var(--font-primary); color: var(--primary-color); font-size: 1.4rem; margin: 0; }
.author-details p { font-size: 0.9rem; color: var(--text-color); margin: 5px 0 15px 0; white-space: normal; }
.btn-widget { display: inline-block; padding: 5px 15px; background-color: var(--secondary-color); color: white; text-decoration: none; border-radius: 20px; font-size: 0.9rem; transition: background-color 0.3s ease; }
.btn-widget:hover { background-color: #c0392b; }
.event-details a { text-decoration: none; }
.event-row { display: flex; align-items: center; gap: 15px; padding: 10px; margin: 0 -10px; border-radius: 8px; transition: background-color 0.2s ease; }
.event-row:hover { background-color: #f7f7f7; }
.event-date-small { text-align: center; color: var(--secondary-color); font-weight: bold; }
.event-date-small span { display: block; }
.event-date-small span:first-child { font-size: 0.8rem; }
.event-date-small span:last-child { font-size: 1.5rem; line-height: 1; }
.event-title-small { color: var(--primary-color); font-weight: bold; }
.event-title-small span { display: block; font-size: 0.8rem; font-weight: normal; color: #777; }
.event-title-small span i { margin-right: 4px; }

/* ========================================================================= */
/*                      8. SECTION: Η Περσεφόνη Προτείνει                     */
/* ========================================================================= */
#persephone-recommends {
    background-color: var(--background-light);
    padding: 80px 0;
    text-align: center;
}
.persephone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.persephone-content img {
    max-width: 280px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.persephone-content img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}
.persephone-text {
    text-align: center;
}
.persephone-text h3 {
    font-family: var(--font-primary);
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.persephone-text p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) {
    .persephone-content {
        flex-direction: row;
        text-align: left;
    }
    .persephone-text {
        flex: 1;
        text-align: left;
    }
    .persephone-content img {
        margin-right: 40px;
        flex-shrink: 0;
    }
    .persephone-text p {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ========================================================================= */
/*                                 9. FOOTER                                 */
/* ========================================================================= */
.main-footer { background-color: var(--primary-color); color: rgba(255, 255, 255, 0.8); padding: 60px 0 20px 0; margin-top: 60px; border-top: 5px solid var(--accent-color); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-column h4 { font-family: var(--font-primary); color: #fff; margin-bottom: 20px; font-size: 1.3rem; }
.footer-column p, .footer-column li { font-size: 0.95rem; margin-bottom: 10px; }
.footer-column ul { list-style: none; padding: 0;}
.footer-column a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color 0.3s ease; }
.footer-column a:hover { color: #fff; }
.copyright { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 20px; font-size: 0.9rem; }

/* ========================================================================= */
/*                      10. RESPONSIVE ΚΑΝΟΝΕΣ ΓΙΑ ΚΙΝΗΤΑ                      */
/* ========================================================================= */
@media (max-width: 992px) {
    .main-nav, .header-actions { display: none; }
    .hamburger { display: block; }
    #hero-section { grid-template-columns: 1fr; text-align: center; min-height: auto; }
    .hero-image-collage { height: 400px; margin-top: 40px; }
    .hero-text-content .hero-title { font-size: 2.8rem; }
    .hero-text-content .hero-subtitle { font-size: 1.1rem; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .action-hub { display: none; }
    /* Προσαρμογή για το floating book nook σε κινητά */
    .book-nook-floating {
        display: flex;
        bottom: 20px;
        left: 20px;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    .book-nook-floating .book-nook-label {
        display: block; /* Αλλαγή σε block για να φαίνεται η ετικέτα */
        margin-left: 10px; /* Προσαρμογή περιθωρίου για κινητά */
        padding: 8px 15px; /* Προσαρμογή padding για κινητά */
        font-size: 0.9rem; /* Ελαφρώς μικρότερη γραμματοσειρά για κινητά */
        flex-shrink: 0; /* Διασφαλίζει ότι η ετικέτα δεν συρρικνώνεται */
    }
}

@media (max-width: 576px) {
    .hero-text-content .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 2.2rem; }
    .category-grid { grid-template-columns: 1fr; }
    #kids-categories { padding: 40px 20px; }
    .book-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    #persephone-recommends .persephone-text h3 { font-size: 1.8rem; }
    #persephone-recommends .persephone-text p { font-size: 1.0rem; }
}

/* ========================================================================= */
/*                  11. STYLING ΓΙΑ ΤΟ FLOATING BOOK NOOK                    */
/* ========================================================================= */
@keyframes warm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 121, 63, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(255, 121, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 121, 63, 0); }
}
.book-nook-floating {
  position: fixed; bottom: 30px; left: 30px; z-index: 998;
  display: flex; align-items: center; text-decoration: none;
  transition: all 0.3s ease-out;
  pointer-events: auto;
}

.book-nook-button {
  width: 65px; height: 65px; border-radius: 50%;
  background: linear-gradient(135deg, #a4e5e0 0%, #4bc0c8 100%);
  display: grid; place-items: center; color: white;
  box-shadow: 0 5px 20px rgba(75, 192, 200, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: warm-pulse 2s infinite; cursor: pointer; flex-shrink: 0;
}
.book-nook-button i { font-size: 28px; transition: transform 0.3s ease; }
.book-nook-label {
  display: block;
  margin-left: 18px;
  padding: 10px 22px;
  background: linear-gradient(to right, #ADD8E6, #87CEEB); /* LightBlue σε SkyBlue */
  color: var(--primary-color);
  border-radius: 50px;
  white-space: nowrap;
  font-weight: bold;
  font-size: 1rem;
  transform: translateX(0);
  transition: all 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.book-nook-floating:hover .book-nook-button {
  animation-play-state: paused; transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(75, 192, 200, 0.6);
}
.book-nook-floating:hover .book-nook-button i { transform: rotate(-10deg) scale(1.1); }

/* ========================================================================= */
/*               12. STYLING ΓΙΑ ΤΟ HOVER SEARCH BOX                         */
/* ========================================================================= */
.search-container { position: relative; display: flex; align-items: center; }
.search-form { display: flex; align-items: center; }
.search-button {
    background: none; border: none; color: var(--primary-color);
    font-size: 1.2rem; cursor: pointer; padding: 5px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative; z-index: 11;
}
.search-button:hover { color: var(--secondary-color); }
.search-input {
    position: absolute; top: 50%; transform: translateY(-50%); right: 0;
    height: 42px; width: 0; opacity: 0; visibility: hidden; padding: 0;
    border-radius: 42px; border: 2px solid var(--secondary-color);
    background-color: white; color: var(--primary-color);
    font-family: var(--font-secondary); font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 10;
}
.search-input:focus { outline: none; }
.search-container:hover .search-input {
    width: 250px; opacity: 1; visibility: visible;
    padding: 0 45px 0 20px;
}

/* ========================================================================= */
/*                          13. PRODUCT DETAIL PAGE STYLES                   */
/* ========================================================================= */

/* ΝΕΟ: Στυλ για το background της σελίδας προϊόντος */
body.product-detail-body {
    position: relative; /* Απαραίτητο για τη σωστή τοποθέτηση των pseudo-elements */
    overflow-x: hidden; /* Αποφυγή οριζόντιου scroll από το blur */
    /* Το background-color του body ορίζεται ήδη στο γενικό CSS, αλλά μπορεί να υπερισχύσει το ::before */
}

/* Pseudo-element για το θολωμένο background image */
body.product-detail-body::before {
    content: '';
    position: fixed; /* Σταθερή θέση στο viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--product-detail-background-image); /* Η εικόνα από το PHP */
    background-size: cover;
    background-position: center;
    filter: blur(8px); /* Δύναμη θολώματος */
    z-index: -2; /* Πίσω από όλα */
    transform: scale(1.05); /* Ελαφρύ zoom για να καλύψει τις θολές άκρες */
}

/* Pseudo-element για ένα διακριτικό σκούρο overlay πάνω από το θολωμένο background */
body.product-detail-body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Σκούρο overlay */
    z-index: -1; /* Πάνω από τη θολωμένη εικόνα, πίσω από το περιεχόμενο */
}

/* Διασφάλιση ότι το κυρίως περιεχόμενο είναι πάνω από τα pseudo-elements */
main.product-page-main {
    position: relative; /* Δημιουργεί ένα νέο stacking context */
    z-index: 1; /* Διασφαλίζει ότι είναι πάνω από τα pseudo-elements */
    background-color: transparent !important; /* Απενεργοποιεί τυχόν background από το main */
    /* Οι υπόλοιποι κανόνες padding, margin κλπ. παραμένουν ίδιοι */
}

.product-page-main .section-padding {
    padding: 60px 0; /* Λίγο λιγότερο padding για το περιεχόμενο της σελίδας προϊόντος */
}

.section-padding-small {
    padding: 40px 0; /* Μικρότερο padding για υπο-ενότητες */
}
.section-title-small {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.product-hero-section {
    display: flex;
    flex-wrap: wrap; /* Για να σπάει γραμμή σε μικρές οθύνες */
    gap: 40px;
    /* ΝΕΟ: Ημιδιαφανές background */
    background-color: rgba(255, 255, 255, 0.88); /* Πολύ ελαφρά διαφανές λευκό */
    backdrop-filter: blur(5px); /* Εφέ θολώματος για ό,τι βρίσκεται πίσω από το κουτί */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    padding: 30px;
    align-items: flex-start; /* Ευθυγράμμιση στην κορυφή */
    margin-bottom: 40px;
}

.product-image-wrapper {
    flex: 0 0 400px; /* Σταθερό πλάτος για την εικόνα */
    max-width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease-in-out;
}
.product-image-wrapper:hover {
    transform: scale(1.02); /* Ελαφρύ zoom στο hover */
}

.product-cover {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Κρατάει τις αναλογίες */
    border-radius: 8px;
}

/* Εφέ μεγέθυνσης - overlay */
.magnify-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-in;
}
.product-image-wrapper:hover .magnify-overlay {
    opacity: 1;
}
.magnify-overlay i {
    color: white;
    font-size: 2.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}


.product-details-content {
    flex: 1; /* Παίρνει τον υπόλοιπο χώρο */
    min-width: 300px; /* Ελάχιστο πλάτος για να μην συμπιέζεται πολύ */
}

.product-title {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-author {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 15px;
}
.product-author span {
    font-weight: bold;
    color: var(--secondary-color);
}

.product-rating {
    margin-bottom: 20px;
    color: #FFD700; /* Χρυσό χρώμα για τα αστέρια */
    font-size: 1.1rem;
}
.product-rating i {
    margin-right: 3px;
}
.product-rating span {
    font-size: 0.9rem;
    color: #666;
    margin-left: 5px;
}

.product-price {
    margin-bottom: 25px;
}
.product-price .regular-price-strikethrough {
    text-decoration: line-through;
    color: #888;
    font-size: 1.2rem;
    margin-right: 10px;
}
.product-price .sale-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}
.product-price .current-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.product-short-description {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 30px;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Για responsive */
}

.qty-selector {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}
.qty-selector button {
    background-color: #f8f8f8;
    border: none;
    padding: 10px 15px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--primary-color);
}
.qty-selector button:hover {
    background-color: #e0e0e0;
}
.qty-selector input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    -moz-appearance: textfield; /* Αφαίρεση βελών για Firefox */
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Αφαίρεση βελών για Webkit browsers */
    margin: 0;
}
.qty-selector input:focus {
    outline: none;
}

.add-to-cart-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px; /* Pill shape */
    background: linear-gradient(to right, var(--secondary-color), #ff6347); /* Κόκκινο-Πορτοκαλί */
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: linear-gradient(to left, var(--secondary-color), #ff6347);
}

/* ΕΝΗΜΕΡΩΜΕΝΟ: Στυλ για το box "Βασικές Πληροφορίες" */
.product-specs {
    background-color: rgba(255, 255, 255, 0.88); /* Πολύ ελαφρά διαφανές λευκό */
    backdrop-filter: blur(5px); /* Εφέ θολώματος για ό,τι βρίσκεται πίσω από το κουτί */
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e0e0e0; /* Ένα διακριτικό περίγραμμα */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Πιο απαλή σκιά */
}
.product-specs h4 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 1.25rem; /* Ελαφρώς μεγαλύτερο τίτλο */
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px; /* Πρόσθετο padding κάτω από τον τίτλο */
    border-bottom: 1px solid #eee; /* Μια διαχωριστική γραμμή κάτω από τον τίτλο */
}
.product-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-specs li {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 10px; /* Λίγο περισσότερο κενό μεταξύ των στοιχείων */
    display: flex;
    gap: 8px;
    align-items: baseline; /* Καλύτερη ευθυγράμμιση κειμένου με το bullet */
}
.product-specs li span {
    font-weight: 600;
    color: var(--primary-color);
}
.product-specs li::before {
    content: "•";
    color: var(--secondary-color); /* Αλλαγή χρώματος bullet για περισσότερο ενδιαφέρον */
    margin-right: 5px;
    font-size: 1.2em; /* Ελαφρώς μεγαλύτερο bullet */
    line-height: 1; /* Καλύτερη ευθυγράμμιση bullet */
}
.product-specs li:last-child {
    margin-bottom: 0; /* Αφαίρεση περιθωρίου από το τελευταίο στοιχείο */
}


.product-full-description {
    /* ΝΕΟ: Ημιδιαφανές background */
    background-color: rgba(255, 255, 255, 0.88); /* Πολύ ελαφρά διαφανές λευκό */
    backdrop-filter: blur(5px); /* Εφέ θολώματος για ό,τι βρίσκεται πίσω από το κουτί */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    padding: 40px;
    margin-top: 40px;
}

.description-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}
.description-content p {
    margin-bottom: 1.2em;
}

/* Σχετικά Βιβλία - ΝΕΟ: Ημιδιαφανές background */
#related-books {
    background-color: rgba(255, 255, 255, 0.88); /* Πολύ ελαφρά διαφανές λευκό */
    backdrop-filter: blur(5px); /* Εφέ θολώματος για ό,τι βρίσκεται πίσω από το κουτί */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    padding: 40px;
    margin-top: 60px;
    text-align: center;
}
#related-books .book-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Ελαφρώς μεγαλύτερα από τις νέες αφίξεις */
    gap: 20px;
}


/* Responsive Anpassungen für Produktseite */
@media (max-width: 992px) {
    .product-hero-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .product-image-wrapper {
        flex: 0 0 auto; /* Αφήνουμε το πλάτος να προσαρμοστεί */
        width: 60%; /* Μικραίνουμε την εικόνα σε tablet */
        margin-bottom: 30px;
    }
    .product-details-content {
        min-width: unset;
        width: 100%;
    }
    .product-title {
        font-size: 2.4rem;
    }
    .product-price .sale-price,
    .product-price .current-price {
        font-size: 2rem;
    }
    .product-actions {
        justify-content: center;
    }
    .product-specs {
        text-align: left; /* Κρατάμε το κείμενο αριστερά */
    }
}

@media (max-width: 768px) {
    .product-hero-section {
        padding: 20px;
    }
    .product-image-wrapper {
        width: 70%; /* Ακόμα μικρότερη εικόνα σε μικρές οθύνες */
    }
    .product-title {
        font-size: 2rem;
    }
    .product-author {
        font-size: 1rem;
    }
    .product-price .sale-price,
    .product-price .current-price {
        font-size: 1.8rem;
    }
    .product-full-description {
        padding: 25px;
    }
    .section-title-small {
        font-size: 1.8rem;
    }
    #related-books .book-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); /* Μικρότερες κάρτες σε κινητά */
    }
}

@media (max-width: 576px) {
    .product-image-wrapper {
        width: 90%; /* Σχεδόν πλήρες πλάτος σε πολύ μικρές οθόνες */
    }
    .product-title {
        font-size: 1.8rem;
    }
    .product-short-description {
        font-size: 0.95rem;
    }
    .product-actions {
        flex-direction: column; /* Τα κουμπιά το ένα κάτω από το άλλο */
        width: 100%;
    }
    .add-to-cart-btn {
        width: 100%;
        justify-content: center;
    }
    .qty-selector {
        width: 100%; /* Πλήρες πλάτος για τον επιλογέα ποσότητας */
        justify-content: center;
    }
    .qty-selector input {
        flex-grow: 1; /* Το input να καταλαμβάνει τον διαθέσιμο χώρο */
    }
    .product-full-description {
        padding: 20px;
    }
    .description-content {
        font-size: 0.95rem;
    }
    .product-specs li {
        flex-direction: column; /* Οι προδιαγραφές να σπάνε γραμμή */
        align-items: flex-start;
    }
    .product-specs li::before {
        display: none; /* Αφαίρεση του bullet */
    }
}

/* ========================================================================= */
/*                          14. FLIP BOOK MODAL STYLES                       */
/* ========================================================================= */

.flip-book-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top (higher than header and action hub) */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    backdrop-filter: blur(8px); /* Blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.flip-book-modal.show-modal {
    display: flex; /* Flex to center content */
    opacity: 1;
    visibility: visible;
}

.flip-book-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flip-book-modal-close {
    color: #aaaaaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}
.flip-book-modal-close:hover,
.flip-book-modal-close:focus {
    color: #333;
    text-decoration: none;
}

.flip-book-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 15px;
}

.flip-book-image {
    max-width: 100%;
    max-height: 70vh; /* Control image height within modal */
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.flip-book-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}
.flip-book-nav button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.flip-book-nav button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}
.flip-book-nav button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.flip-book-nav span {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-color);
}

.flip-book-message {
    text-align: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 20px;
    font-family: var(--font-primary);
}

/* Style for disabled flip-book-btn */
.flip-book-btn.disabled {
    background: #ccc !important; /* Grey out the button */
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.7;
}
.flip-book-btn.disabled:hover {
    background: #ccc !important;
    transform: none;
    box-shadow: none;
}


/* ========================================================================= */
/*                          15. FLOATING SOCIAL MEDIA BUTTONS                */
/* ========================================================================= */
.social-floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 120px; /* Πάνω από το book-nook-floating και action-hub (αν εμφανίζονται και τα δύο) */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.social-btn.facebook-messenger {
    background: linear-gradient(to right, #0078FF, #00C6FF); /* Messenger blue */
}

.social-btn.instagram {
    background: linear-gradient(to top right, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); /* Instagram gradient */
}

/* Responsive adjustment for social buttons to avoid overlap with action hub on smaller screens */
@media (max-width: 992px) {
    .social-floating-buttons {
        bottom: 20px; /* Μετακίνηση προς τα πάνω αν το action hub κρύβεται */
    }
}
@media (max-width: 576px) {
    /* Εάν το action hub και το book nook floating εξαφανίζονται εντελώς,
       τότε τα social buttons μπορούν να πάνε χαμηλότερα. */
    .social-floating-buttons {
        bottom: 20px; /* Ελάχιστο περιθώριο από κάτω */
        right: 15px; /* Ελάχιστο περιθώριο από δεξιά */
        gap: 10px;
    }
    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
}

/* ========================================================================= */
/*                                2. HEADER & MENU                           */
/* ========================================================================= */

/* ... (όλοι οι υπάρχοντες κανόνες για .main-header, .logo, .main-nav, κλπ. παραμένουν ίδιοι) ... */

.main-nav ul { list-style: none; padding: 0; display: flex; gap: 25px; }
.main-nav a {
    display: flex; align-items: center; gap: 8px; text-decoration: none;
    color: var(--primary-color); font-weight: bold; transition: color 0.3s ease;
    font-size: 0.95rem; white-space: nowrap;
}
.main-nav a:hover { color: var(--secondary-color); }

/* --- ΝΕΟΙ/ΕΝΗΜΕΡΩΜΕΝΟΙ ΚΑΝΟΝΕΣ ΓΙΑ ΤΟ SUBMENU --- */

/* 1. Κάνουμε το li γονέα relative για να τοποθετήσουμε το submenu σε σχέση με αυτό */
.has-submenu {
    position: relative;
}

/* 2. Μορφοποιούμε το ίδιο το submenu (είναι κρυφό από προεπιλογή) */
.submenu {
    display: none;
    position: absolute;
    top: 100%; /* Εμφανίζεται ακριβώς κάτω από το στοιχείο του μενού */
    left: 0;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px; /* Στρογγυλεμένες γωνίες μόνο στο κάτω μέρος */
    padding: 10px 0; /* Padding πάνω-κάτω, καθόλου αριστερά-δεξιά */
    min-width: 220px; /* Ελάχιστο πλάτος για να χωράει το κείμενο */
    z-index: 1001; /* Διασφαλίζουμε ότι είναι πάνω από τα άλλα στοιχεία */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); /* Ξεκινάει λίγο πιο κάτω για το εφέ */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* 3. Όταν ο χρήστης περνάει το ποντίκι πάνω από το .has-submenu, το .submenu εμφανίζεται */
.has-submenu:hover .submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 4. Διασφαλίζουμε ότι η λίστα μέσα στο submenu είναι κάθετη */
.submenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    /* Η display: block είναι η προεπιλογή, οπότε τα li θα στοιχηθούν κάθετα */
    display: block; 
}

/* 5. Μορφοποιούμε κάθε link (<a>) μέσα στο submenu */
.submenu ul li a {
    display: block; /* Κάνει ολόκληρη την περιοχή του link κλικαριστή */
    padding: 10px 20px;
    color: var(--primary-color);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Αποτρέπει το κείμενο από το να σπάσει σε δύο γραμμές */
    font-size: 0.9rem; /* Ελαφρώς μικρότερο font */
}

/* 6. Εφέ hover για τα links του submenu */
.submenu ul li a:hover {
    background-color: var(--background-light);
    color: var(--secondary-color);
}

/* ========================================================================= */
/*                          1. ΓΕΝΙΚΕΣ ΡΥΘΜΙΣΕΙΣ & RESET                      */
/* ========================================================================= */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #1abc9c;
    --background-light: #ecf0f1;
    --text-color: #34495e;
    --font-primary: 'Lora', serif;
    --font-secondary: 'Nunito', sans-serif;
    --header-height: 80px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: #fdfcff;
    font-family: var(--font-secondary); color: var(--text-color); line-height: 1.6;
    padding-top: var(--header-height);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.section-title { text-align: center; font-family: var(--font-primary); font-size: 2.8rem; margin-bottom: 50px; color: var(--primary-color); }
.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(to right, #FF0000, #FFA500);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}
.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    background: linear-gradient(to left, #FF0000, #FFA500);
}

/* ========================================================================= */
/*                                2. HEADER & MENU                           */
/* ========================================================================= */
.main-header {
    background-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0,0,0,0.07); z-index: 1000;
}
.main-header .container {
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}
.logo img { max-height: 50px; width: auto; }
.main-nav { display: none; }
@media (min-width: 993px) {
    .main-nav { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
}
.main-nav ul { list-style: none; padding: 0; display: flex; gap: 25px; }
.main-nav a {
    display: flex; align-items: center; gap: 8px; text-decoration: none;
    color: var(--primary-color); font-weight: bold; transition: color 0.3s ease;
    font-size: 0.95rem; white-space: nowrap;
}
.main-nav a:hover { color: var(--secondary-color); }

.header-actions { display: none; }
@media (min-width: 993px) {
    .header-actions { display: flex; align-items: center; gap: 20px; }
}
.header-actions a { color: var(--primary-color); font-size: 1.2rem; transition: color 0.3s ease, transform 0.3s ease; text-decoration: none; }
.header-actions a:hover { color: var(--secondary-color); transform: scale(1.1); }
.hamburger { display: block; background: none; border: none; font-size: 1.5rem; color: var(--primary-color); cursor: pointer; }
@media (min-width: 993px) { .hamburger { display: none; } }

.has-submenu { position: relative; }
.submenu {
    display: none; position: absolute; top: 100%; left: 0;
    background-color: white; box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px; padding: 10px 0; min-width: 220px; z-index: 1001;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.has-submenu:hover .submenu { display: block; opacity: 1; visibility: visible; transform: translateY(0); }
.submenu ul { list-style: none; padding: 0; margin: 0; display: block; }
.submenu ul li a { display: block; padding: 10px 20px; color: var(--primary-color); text-decoration: none; transition: background-color 0.3s ease, color 0.3s ease; white-space: nowrap; font-size: 0.9rem; }
.submenu ul li a:hover { background-color: var(--background-light); color: var(--secondary-color); }


/* ========================================================================= */
/*                          3. HERO SECTION                                  */
/* ========================================================================= */
#hero-section {
    display: grid; grid-template-columns: 1fr; align-items: center; gap: 50px;
    min-height: calc(90vh - var(--header-height)); text-align: center;
}
@media (min-width: 993px) { #hero-section { grid-template-columns: 1fr 1fr; text-align: left; } }
.hero-text-content .hero-title { font-family: var(--font-primary); font-size: 2.8rem; line-height: 1.1; color: var(--primary-color); }
@media (min-width: 993px) { .hero-text-content .hero-title { font-size: 4.2rem; } }
.hero-text-content .hero-subtitle { font-size: 1.2rem; margin-top: 15px; margin-bottom: 30px; color: var(--text-color); }
.hero-image-collage { position: relative; width: 100%; height: 400px; margin-top: 40px; }
@media (min-width: 993px) { .hero-image-collage { height: 500px; margin-top: 0; } }
@keyframes float-animation { 0%, 100% { transform: translateY(0px) rotate(var(--initial-rotate)); } 50% { transform: translateY(-15px) rotate(var(--initial-rotate)); } }
.hero-image-wrapper { position: absolute; box-shadow: 0 10px 20px rgba(0,0,0,0.15); cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hero-image-wrapper img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.hero-image-wrapper:hover { transform: scale(1.05); z-index: 10; box-shadow: 0 15px 35px rgba(0,0,0,0.25); }
#image-1 { --initial-rotate: -8deg; width: 50%; top: 0; left: 10%; z-index: 1; animation: float-animation 6s ease-in-out infinite; }
#image-2 { --initial-rotate: 6deg; width: 45%; top: 25%; left: 45%; z-index: 2; animation: float-animation 8s ease-in-out infinite -2s; }
#image-3 { --initial-rotate: 4deg; width: 40%; top: 55%; left: 5%; z-index: 1; animation: float-animation 7s ease-in-out infinite -4s; }
#image-4 { --initial-rotate: -5deg; width: 55%; top: 50%; left: 40%; z-index: 3; animation: float-animation 6.5s ease-in-out infinite -1s; }


/* ========================================================================= */
/*                       4. BOOK GRID & CARDS                              */
/* ========================================================================= */
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.book-card { background-color: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); text-align: center; padding: 10px; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.book-card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.book-card-link-wrapper { display: block; text-decoration: none; color: inherit; }
.book-card-link-wrapper:hover h3 { color: var(--secondary-color); }
.book-card img { width: 100%; height: 180px; object-fit: cover; margin-bottom: 8px; border-radius: 4px; }
.book-card h3 { font-family: var(--font-primary); font-size: 0.95rem; color: var(--primary-color); margin-bottom: 3px; line-height: 1.3; }
.book-card .author { font-size: 0.8rem; color: #777; margin-bottom: 8px; }
.book-card .price { font-size: 0.95rem; font-weight: bold; color: var(--primary-color); display: block; margin-top: auto; padding-top: 10px; }
.sale-price-display { font-size: 0.8em; color: #888; font-weight: normal; text-decoration: line-through; margin-right: 5px; }
.book-card .btn-secondary { margin-top: 10px; }


/* ========================================================================= */
/*                       5. ΠΕΡΙΟΧΗ ΚΑΤΗΓΟΡΙΩΝ                               */
/* ========================================================================= */
.full-width-section { width: 100%; padding-left: 0; padding-right: 0; }
#kids-categories { position: relative; padding-top: 80px; padding-bottom: 80px; background-color: #e9ecef; overflow: hidden; }
#kids-categories .container { position: relative; z-index: 1; }
.category-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 25px; }
@media (min-width: 577px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 993px) { .category-grid { grid-template-columns: repeat(4, 1fr); } }
.glass-card {
    position: relative; padding: 40px 20px; border-radius: 15px; text-align: center;
    font-size: 1.4rem; font-weight: bold; color: var(--primary-color);
    text-decoration: none; text-shadow: 0 1px 2px rgba(255,255,255,0.5);
    background-color: rgba(255, 255, 255, 0.4); backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; overflow: hidden;
}
.glass-card:hover { transform: translateY(-10px) scale(1.03); }


/* ========================================================================= */
/*                   6. ACTION HUB & BOOK NOOK WIDGETS                       */
/* ========================================================================= */
.action-hub { display: none; }
@media (min-width: 993px) { .action-hub { position: fixed; bottom: 30px; right: 30px; z-index: 999; display: flex; flex-direction: column; align-items: center; } }
.hub-trigger { background-color: #FF6600; color: white; width: 65px; height: 65px; border-radius: 50%; border: none; font-size: 1.8rem; cursor: pointer; box-shadow: 0 5px 20px rgba(0,0,0,0.2); transition: transform 0.3s ease; }
.hub-trigger i { transition: transform 0.3s ease; }
.action-hub:hover .hub-trigger i { transform: rotate(135deg); }

.book-nook-floating { position: fixed; bottom: 30px; left: 30px; z-index: 998; display: flex; align-items: center; text-decoration: none; }
.book-nook-button { width: 65px; height: 65px; border-radius: 50%; background: linear-gradient(135deg, #a4e5e0 0%, #4bc0c8 100%); display: grid; place-items: center; color: white; box-shadow: 0 5px 20px rgba(75, 192, 200, 0.4); transition: all 0.3s ease; animation: warm-pulse 2s infinite; cursor: pointer; flex-shrink: 0; }
.book-nook-button i { font-size: 28px; }
.book-nook-label { display: none; }
@media (min-width: 993px) { .book-nook-label { display: block; margin-left: 18px; padding: 10px 22px; background: linear-gradient(to right, #ADD8E6, #87CEEB); color: var(--primary-color); border-radius: 50px; white-space: nowrap; font-weight: bold; font-size: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.2); } }
.book-nook-floating:hover .book-nook-button { animation-play-state: paused; transform: scale(1.15); box-shadow: 0 8px 25px rgba(75, 192, 200, 0.6); }
@keyframes warm-pulse { 0% { box-shadow: 0 0 0 0 rgba(75, 192, 200, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(75, 192, 200, 0); } 100% { box-shadow: 0 0 0 0 rgba(75, 192, 200, 0); } }


/* ========================================================================= */
/*                                 7. FOOTER                                 */
/* ========================================================================= */
.main-footer { background-color: var(--primary-color); color: rgba(255, 255, 255, 0.8); padding: 60px 0 20px 0; margin-top: 60px; border-top: 5px solid var(--accent-color); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-column h4 { font-family: var(--font-primary); color: #fff; margin-bottom: 20px; font-size: 1.3rem; }
.footer-column ul { list-style: none; padding: 0;}
.footer-column a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color 0.3s ease; }
.footer-column a:hover { color: #fff; }
.copyright { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 20px; font-size: 0.9rem; }


/* ========================================================================= */
/*    +++++++++++++++++++    ΝΕΕΣ ΠΡΟΣΘΗΚΕΣ CSS    +++++++++++++++++++    */
/* ========================================================================= */


/* ========================================================================= */
/*               8. ΕΦΕ ΚΑΤΗΓΟΡΙΩΝ, SEARCH & PAGE TRANSITION                */
/* ========================================================================= */
#kids-categories::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center center;
    background-image: var(--bg-image);
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 0;
}
#kids-categories.background-visible::before { opacity: 1; }

#page-transition-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; background-color: #4a3f35; transform-origin: top; transform: scaleY(0); transition: transform 0.7s cubic-bezier(0.86, 0, 0.07, 1); }
#page-transition-overlay.active { transform: scaleY(1); }

.search-container { position: relative; }
.search-form { display: flex; align-items: center; }
.search-button { background: none; border: none; color: var(--primary-color); font-size: 1.2rem; cursor: pointer; padding: 5px; transition: color 0.3s ease; z-index: 11; }
.search-input { position: absolute; top: 50%; transform: translateY(-50%); right: 0; height: 42px; width: 0; opacity: 0; visibility: hidden; padding: 0; border-radius: 42px; border: 2px solid var(--secondary-color); background-color: white; font-size: 0.95rem; transition: all 0.4s ease; z-index: 10; }
.search-input:focus { outline: none; }
.search-container:hover .search-input { width: 250px; opacity: 1; visibility: visible; padding: 0 45px 0 20px; }


/* ========================================================================= */
/*               9. ΣΕΛΙΔΕΣ LOGIN / REGISTER                                 */
/* ========================================================================= */
.auth-page-wrapper { position: relative; width: 100%; min-height: calc(100vh - var(--header-height)); display: flex; align-items: center; justify-content: center; padding: 40px 20px; overflow: hidden; }
.background-collage { position: absolute; top: 50%; left: 50%; width: 150vw; height: 150vh; z-index: -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 5px; filter: brightness(0.6) blur(1px); transform: translate(-50%, -50%) rotate(-20deg) scale(1.2); animation: slow-pan 60s linear infinite alternate; }
@keyframes slow-pan { from { transform: translate(-55%, -55%) rotate(-20deg) scale(1.2); } to { transform: translate(-45%, -45%) rotate(-18deg) scale(1.2); } }
.collage-image { width: 100%; padding-bottom: 140%; background-size: cover; background-position: center; border-radius: 4px; opacity: 0.8; }
.auth-form-container { max-width: 480px; width: 100%; z-index: 1; background-color: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.4); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1); padding: 30px 40px; border-radius: 12px; text-align: center; }
.auth-form .form-group { margin-bottom: 20px; text-align: left; }
.auth-form .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; }
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.2); }
.btn-submit { width: 100%; padding: 15px; font-size: 1.1rem; margin-top: 10px; }
.auth-switch { margin-top: 25px; color: #666; }
.auth-switch a { color: var(--primary-color); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.alert { padding: 15px; margin-bottom: 20px; border-radius: 8px; border: 1px solid transparent; }
.alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
.alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }

/* ========================================================================= */
/*               10. SIDE CART (ΜΑΓΙΚΟ ΣΕΝΤΟΥΚΙ)                            */
/* ========================================================================= */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(30, 25, 20, 0.4); z-index: 1050; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s 0.4s; }
.cart-overlay.open { opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0s 0s; }
.side-cart { position: fixed; top: 0; right: 0; width: 100%; max-width: 420px; height: 100%; background-color: #fdfaf6; z-index: 1051; display: flex; flex-direction: column; box-shadow: -5px 0 25px rgba(0,0,0,0.15); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1); }
.side-cart.open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; gap: 15px; padding: 15px 20px; border-bottom: 2px solid #eaddcf; flex-shrink: 0; }
.cart-mascot { width: 50px; height: 50px; }
.cart-header h3 { margin: 0; font-family: 'Lora', serif; font-size: 1.25rem; color: #4a3f35; flex-grow: 1; }
.close-cart-btn { background: none; border: none; font-size: 2.5rem; color: #aaa; cursor: pointer; line-height: 1; transition: transform 0.2s, color 0.2s; }
.close-cart-btn:hover { color: #333; transform: rotate(90deg); }
.cart-items-container { flex-grow: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; gap: 15px; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #f0e6da; }
.cart-item-image { width: 80px; height: 110px; object-fit: cover; border-radius: 4px; box-shadow: 2px 2px 8px rgba(0,0,0,0.1); flex-shrink: 0; }
.cart-item-details { display: flex; flex-direction: column; flex-grow: 1; }
.cart-item-title { margin: 0 0 5px 0; font-size: 1rem; font-weight: 600; color: var(--text-color); }
.cart-item-author { margin: 0 0 10px 0; font-size: 0.85rem; color: #888; }
.cart-item-quantity-controls { display: flex; align-items: center; margin-top: auto; }
.quantity-btn { background-color: #fff; border: 1px solid #ddd; width: 28px; height: 28px; font-size: 1.2rem; cursor: pointer; border-radius: 50%; line-height: 1; transition: background-color 0.2s; }
.quantity-btn:hover { background-color: #f5f5f5; }
.quantity-value { padding: 0 15px; font-weight: 700; }
.cart-item-price-section { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.cart-item-price { font-weight: 700; font-size: 1.1rem; margin-bottom: auto; color: var(--primary-color); }
.remove-item-btn { background: none; border: none; font-size: 1.5rem; color: #ccc; cursor: pointer; transition: color 0.2s, transform 0.2s; }
.remove-item-btn:hover { color: #e74c3c; transform: scale(1.2); }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%; padding: 20px; color: #888; }
.cart-empty img { width: 120px; margin-bottom: 20px; opacity: 0.7; }
.cart-empty h4 { font-family: 'Lora', serif; font-size: 1.2rem; margin-bottom: 10px; color: #666; }
.cart-footer { padding: 20px; border-top: 2px solid #eaddcf; background-color: #fdfaf6; box-shadow: 0 -4px 15px rgba(0,0,0,0.05); flex-shrink: 0; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; }
.btn-checkout { width: 100%; text-align: center; font-size: 1.1rem; padding: 15px; }
#cart-icon { position: relative; }
.cart-counter { position: absolute; top: -5px; right: -10px; background-color: #e74c3c; color: white; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; border: 2px solid #fff; }
#cart-icon.shake { animation: shake 0.5s ease; }
@keyframes shake { 10%, 90% { transform: translate3d(-1px, 0, 0); } 20%, 80% { transform: translate3d(2px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-4px, 0, 0); } 40%, 60% { transform: translate3d(4px, 0, 0); } }
.add-to-cart-btn.adding { pointer-events: none; background-color: #27ae60; color: white; }
.add-to-cart-btn.adding::after { content: " ✔"; }
@media (max-width: 480px) { .side-cart { max-width: 100%; } }

/* ========================================================================= */
/*               11. CART PAGE (cart.php)                                  */
/* ========================================================================= */
.cart-page-container { display: flex; flex-wrap: wrap; gap: 30px; }
.cart-items-list { flex: 2; min-width: 300px; }
.cart-summary { flex: 1; min-width: 280px; background-color: #fdfaf6; padding: 25px; border-radius: 12px; border: 1px solid #eaddcf; height: fit-content; }
.cart-summary h3 { margin-top: 0; margin-bottom: 20px; text-align: center; font-family: 'Lora', serif; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 15px 10px; text-align: left; border-bottom: 1px solid #f0e6da; }
.cart-table th { font-size: 0.9rem; text-transform: uppercase; color: #888; }
.product-image-cell img { width: 80px; height: auto; border-radius: 4px; }
.product-details-cell .product-title { font-weight: 600; text-decoration: none; color: #333; }
.product-details-cell .product-title:hover { color: var(--primary-color); }
.product-details-cell .product-author { font-size: 0.9rem; color: #888; margin: 5px 0 0 0; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; color: #555; }
.summary-row.total { font-size: 1.2rem; font-weight: 700; color: #333; }
.cart-summary hr { border: none; border-top: 1px dashed #ccc; margin: 15px 0; }
.cart-summary .btn-checkout { width: 100%; margin-top: 15px; text-align: center; }
.cart-empty-page { text-align: center; padding: 50px 20px; }
.cart-empty-page img { max-width: 150px; margin-bottom: 20px; }
.cart-empty-page h2 { font-family: 'Lora', serif; }
.cart-empty-page p { color: #666; max-width: 500px; margin: 0 auto 30px auto; }
@media (max-width: 992px) { .cart-page-container { flex-direction: column; } }

/* ========================================================================= */
/*               16. CHECKOUT PAGE (checkout.php)                            */
/* ========================================================================= */
.checkout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}
.checkout-forms {
    flex: 2;
    min-width: 320px;
}
.checkout-summary {
    flex: 1;
    min-width: 300px;
    background-color: #fdfaf6;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eaddcf;
    position: sticky; /* Κάνει τη σύνοψη να "ακολουθεί" καθώς ο χρήστης σκρολάρει */
    top: 100px; /* Απόσταση από την κορυφή (header + λίγο κενό) */
}
.checkout-step {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.checkout-step h2 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}
.checkout-step .step-content {
    padding: 20px;
}
.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group {
    flex: 1;
}
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.payment-option {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.payment-option:has(input:checked) {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}
.payment-option.disabled {
    background-color: #f8f8f8;
    cursor: not-allowed;
    color: #aaa;
}
.payment-option input[type="radio"] {
    margin-top: 5px;
    margin-right: 15px;
}
.payment-option p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: #777;
}
.payment-option.disabled p {
    color: #bbb;
}

.checkout-summary h3 {
    margin-top: 0;
    text-align: center;
    font-family: 'Lora', serif;
}
.summary-items {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px; /* Για το scrollbar */
    margin-bottom: 15px;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.summary-item .item-title {
    padding-right: 15px;
}
.summary-item .item-price {
    font-weight: 600;
    white-space: nowrap;
}

<style>
/* --- ΝΕΟΙ ΚΑΝΟΝΕΣ CSS ΓΙΑ ΤΟ "ΕΞΥΠΝΟ" HERO SECTION --- */

#hero-section {
    display: flex; /* Ενεργοποιούμε το flexbox για τη διάταξη σε στήλες */
    align-items: center; /* Στοιχίζουμε κάθετα τα περιεχόμενα στο κέντρο */
    min-height: 75vh; /* Ορίζουμε ένα ελάχιστο ύψος (π.χ. 75% της οθόνης), αντί για πλήρες ύψος */
    gap: 2rem; /* Προσθέτει ένα κενό ανάμεσα στο κείμενο και τις εικόνες */
}

/* Στήλη Κειμένου */
.hero-text-content {
    flex: 1 1 40%; /* Δίνει ευελιξία στη στήλη κειμένου (περίπου 40% του πλάτους) */
    text-align: left; /* Στοίχιση κειμένου αριστερά */
}

.hero-text-content .hero-title {
    font-size: 3.5rem; /* Μεγαλώνουμε λίγο τον τίτλο για έμφαση */
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Στήλη Slideshow */
.hero-slideshow-container {
    flex: 1 1 55%; /* Δίνει ευελιξία στη στήλη των εικόνων (περίπου 55% του πλάτους) */
    position: relative;
    height: 65vh; /* Ορίζουμε ένα σταθερό ύψος για το container των εικόνων */
    border-radius: 20px; /* Στρογγυλεύουμε τις γωνίες για μοντέρνα εμφάνιση */
    overflow: hidden; /* Κρύβει τις γωνίες των εικόνων που περισσεύουν */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); /* Προσθέτει μια διακριτική σκιά */
}

/* Το ίδιο το slideshow, γεμίζει το container του */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Κάθε slide (εικόνα) - Η λογική fade παραμένει η ίδια */
.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}


/* --- CSS ΓΙΑ RESPONSIVE ΣΕ ΚΙΝΗΤΑ & TABLET --- */
@media (max-width: 992px) {
    #hero-section {
        flex-direction: column; /* Οι στήλες γίνονται η μία κάτω από την άλλη */
        text-align: center; /* Κεντράρουμε όλο το περιεχόμενο */
        min-height: auto; /* Αφήνουμε το ύψος να προσαρμοστεί αυτόματα */
    }

    .hero-text-content {
        text-align: center; /* Κεντράρουμε το κείμενο */
        margin-bottom: 2rem; /* Προσθέτουμε κενό πριν τις εικόνες */
    }

    .hero-slideshow-container {
        width: 60%; /* Η στήλη των εικόνων πιάνει όλο το πλάτος */
        height: 50vh; /* Προσαρμόζουμε το ύψος για τις μικρότερες οθόνες */
    }
}

</style>