*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    background-color: rgba(0, 0, 0, 0.8); /* Το δικό σου cinematic dark background */
}

#head {
    background-color: rgba(0, 0, 0, 0.5);
    height: 90px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#menu {
    display: flex;
    justify-content: space-around; 
    align-items: center;           
    max-width: 1400px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-top: 25px;              
}

.modern-logo-icon {
    width: 38px;
    height: 38px;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-family: 'Montserrat', sans-serif, system-ui;
    color: #010101;                
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 3px;
}

.logo-subtext {
    font-family: 'Montserrat', sans-serif, system-ui;
    font-size: 13px;
    font-weight: 500;
    color: #4CAF50; 
    letter-spacing: 5px;
    margin-top: 2px;
}   

/* Search Bar */
.search-container {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px; 
    padding: 6px 16px;
    margin-top: 25px; 
    width: 320px;
    transition: all 0.3s ease;
}

.search-input {
    background: none;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: sans-serif;
    font-size: 15px;
    width: 100%;
}

.search-input::placeholder { color: #cccccc; }
.search-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; padding-left: 8px;}

.search-container:focus-within {
    background-color: rgba(255, 255, 255, 0.95); 
    border-color: #4CAF50; 
    width: 360px; 
}
.search-container:focus-within .search-input { color: #1a1a1a; }

/* Καλάθι */
.cart-container { margin-top: 25px; position: relative; display: flex; align-items: center; }
.cart-btn { display: flex; align-items: center; text-decoration: none; }
.cart-badge {
    position: absolute; top: -6px; right: -10px; background-color: #4CAF50; color: #ffffff;
    font-family: sans-serif; font-size: 11px; font-weight: bold; border-radius: 50%;
    width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
}

/* Links Μενού */
#menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;        
    gap: 60px;   
    justify-content: center;
    margin-top: 25px;              
}

#menu ul li a {
    text-decoration: none;
    color: #fdeded;         
    font-family: sans-serif;
    font-size: 18px;
    font-weight: 100;
    padding-bottom: 6px;
    background-image: linear-gradient(to right, transparent, #4CAF50, transparent);
    background-repeat: no-repeat;
    background-position: center bottom; 
    background-size: 0% 1px; 
    transition: color 0.3s ease, background-size 0.3s ease; 
}

#menu ul li a:hover {
    color: rgba(255, 255, 255, 0.3);       
    background-size: 100% 2px;  
}

/* Υπογράμμιση για την ενεργή σελίδα Products */
#menu ul li a.active {
    color: #4CAF50;
    background-size: 100% 1px;
}

/* ==========================================================================
   PRODUCTS GRID & CARD STYLING
   ========================================================================== */

.products-main {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
    font-family: sans-serif;
}

.products-header {
    margin-bottom: 45px;
}

.products-header h2 {
    font-size: 32px;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.products-header p {
    color: #b3b3b3;
    font-size: 16px;
    font-weight: 300;
}

/* Layout του Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
}

/* Η κάρτα του προϊόντος */
.product-card {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #4CAF50;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* Το box της εικόνας */
.product-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
}

/* Πληροφορίες προϊόντος */
.product-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.supplier-tag {
    font-size: 12px;
    text-transform: uppercase;
    color: #4CAF50;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.product-info h3 {
    font-size: 18px;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.3;
    height: 48px; /* Κλειδώνει το ύψος για να είναι στοιχισμένα τα κουμπιά */
    overflow: hidden;
}

.product-price {
    font-size: 20px;
    font-weight: 300;
    color: #e0e0e0;
    margin-bottom: 10px;
}

/* Διακριτικό Add to Cart κουμπί */
.btn-add-cart {
    width: 100%;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background-color: #4CAF50;
    border-color: #4CAF50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    width: 100%; background-color: rgba(0, 0, 0, 0.9); padding: 60px 40px 30px 40px; margin-top: 100px;
}
.footer-container { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.footer-links { list-style-type: none; padding: 0; margin: 0; display: flex; gap: 50px; justify-content: center; flex-wrap: wrap; }
.footer-links li a { text-decoration: none; color: rgba(255, 255, 255, 0.4); font-size: 16px; font-weight: 100; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s ease; }
.footer-links li a:hover { color: #4CAF50; }
.footer-bottom { width: 100%; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 30px; }
.footer-bottom p { font-size: 13px; color: rgba(255, 255, 255, 0.2); font-weight: 300; }
/* ==========================================================================
   RESPONSIVE MEDIA QUERIES ΓΙΑ ΚΙΝΗΤΑ (products.css)
   ========================================================================== */
@media (max-width: 992px) {
    #menu {
        flex-direction: column;
        gap: 15px;
        padding: 20px 10px;
    }

    #head {
        height: auto;
    }

    .logo a, .search-container, .cart-container, #menu ul {
        margin-top: 0;
    }

    .search-container {
        width: 100%;
        max-width: 400px;
    }

    #menu ul {
        gap: 25px;
        flex-wrap: wrap;
    }

    .products-main {
        padding: 0 20px;
        margin: 40px auto;
    }

    .products-header {
        text-align: center;
    }

    .products-header h2 {
        font-size: 26px;
    }

    /* Το grid προσαρμόζεται για μικρές οθόνες */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}
