/*
Theme Name: Custom WooCommerce Theme
Theme URI: https://example.com
Author: Το όνομά σου ή το brand σου
Author URI: https://example.com
Description: Ένα προσαρμοσμένο θέμα WordPress με υποστήριξη WooCommerce, slider και widgets.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-woocommerce
Tags: woocommerce, responsive, custom-theme
*/

/* === Βασικό Στυλ === */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #fff;
    color: #333;
}

a {
    color: #000;
    text-decoration: none;
}

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

.site-header, .site-footer {
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
}

.site-title {
    margin: 0;
    font-size: 24px;
}

.main-nav .menu {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.main-nav .menu li {
    display: inline;
}

.main-nav .menu li a {
    color: #000;
    font-weight: bold;
}

/* === WooCommerce Προϊόντα === */
.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    padding: 0;
}

.woocommerce ul.products li.product {
    width: 23%;
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #fff;
    list-style: none;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.woocommerce ul.products li.product h2 {
    font-size: 16px;
    margin-top: 10px;
}

/* === Slider === */
.hero-slider img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 20px;
}

/* === Πτυσσόμενο Μενού Κατηγοριών === */
.category-menu-wrapper {
    position: relative;
    margin-top: 10px;
    text-align: center;
}

.category-toggle {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 99;
    max-width: 1200px;
    margin: 0 auto;
}

.category-menu li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.category-menu li a {
    text-decoration: none;
    color: #000;
    display: block;
}

.category-menu li:hover {
    background: #f9f9f9;
}

.category-toggle.active + .category-menu {
    display: block;
}

/* === Sidebar === */
.widget-area {
    margin-top: 30px;
}

.widget {
    margin-bottom: 30px;
    border: 1px solid #eee;
    padding: 15px;
    background: #f9f9f9;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 10px;
}

/* === Footer === */
.footer-widgets {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 0;
    flex-wrap: wrap;
}

.footer-column {
    width: 48%;
}

.footer-widget h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* === Responsive === */
@media screen and (max-width: 768px) {
    .woocommerce ul.products li.product {
        width: 48%;
    }

    .main-nav .menu {
        flex-direction: column;
        gap: 10px;
    }

    .category-menu {
        position: static;
    }

    .footer-column {
        width: 100%;
    }
}
