/* =========================================
   AGROCENTER - PREMIUM CSS
   ========================================= */

/* --- CSS Variables για εύκολη αλλαγή χρωμάτων --- */
:root {
    --primary-color: #2e7d32;     /* Σκούρο Πράσινο */
    --primary-hover: #1b5e20;     /* Πιο σκούρο πράσινο */
    --accent-color: #d32f2f;      /* Κόκκινο για τιμές/κουμπιά */
    --accent-hover: #b71c1c;      /* Πιο σκούρο κόκκινο */
    --text-main: #333333;         /* Βασικό κείμενο */
    --text-light: #666666;        /* Δευτερεύον κείμενο */
    --bg-body: #f4f6f8;           /* Φόντο σελίδας */
    --bg-card: #ffffff;           /* Φόντο καρτών */
    --border-color: #e2e8f0;      /* Χρώμα περιγράμματος */
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.08);
}

/* --- Βασικό Reset --- */
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.6; 
}
.container { width: 92%; max-width: 1350px; margin: 0 auto; }

/* --- Top Bar --- */
.top-bar { background-color: var(--primary-hover); color: #fff; padding: 8px 0; font-size: 13px; font-weight: 500; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar i { color: #a5d6a7; margin-right: 6px; }

/* --- Header & Navigation --- */
.main-header { background: #fff; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); padding: 15px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 28px; font-weight: 800; color: var(--primary-color); letter-spacing: -1px; }
.logo span { color: var(--text-main); }

.main-nav { display: flex; gap: 30px; }
.main-nav a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 15px; transition: color 0.3s ease; }
.main-nav a:hover { color: var(--primary-color); }

/* --- Buttons --- */
.btn-primary { background: var(--primary-color); color: #fff; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: 0.3s; display: inline-block; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary { background: var(--accent-color); color: #fff; padding: 10px; border-radius: 4px; text-decoration: none; font-weight: 600; display: block; text-align: center; transition: 0.3s; font-size: 14px; }
.btn-secondary:hover { background: var(--accent-hover); }

/* --- Layout --- */
.layout-wrapper { display: flex; gap: 40px; margin-top: 40px; margin-bottom: 60px; align-items: flex-start; }

/* --- Sidebar --- */
.sidebar { width: 260px; flex-shrink: 0; position: sticky; top: 100px; }
.sidebar-box { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 25px; margin-bottom: 25px; box-shadow: var(--shadow-sm); }
.sidebar-box h3 { font-size: 16px; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-bottom: 15px; color: var(--text-main); }
.category-list { list-style: none; }
.category-list li { border-bottom: 1px solid #f0f0f0; }
.category-list li:last-child { border-bottom: none; }
.category-list a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-light); padding: 12px 0; font-size: 14px; font-weight: 500; transition: 0.3s; }
.category-list a:hover { color: var(--primary-color); padding-left: 5px; }

.support-box h4 { font-size: 16px; margin-bottom: 10px; }
.support-box p { font-size: 13px; color: var(--text-light); margin-bottom: 15px; }
.support-link { color: var(--primary-color); font-weight: 700; text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; border-bottom: 1px solid var(--primary-color); padding-bottom: 2px; }

/* --- Main Content Area --- */
.main-content { flex-grow: 1; min-width: 0; }

/* --- About Section (Premium Design) --- */
.premium-about { background: #fff; border-radius: 12px; padding: 40px; display: flex; gap: 50px; align-items: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.about-image { flex: 1; position: relative; }
.about-image img { width: 100%; border-radius: 8px; display: block; }
.badge { position: absolute; bottom: -20px; right: -20px; background: var(--primary-color); color: #fff; padding: 20px; border-radius: 8px; text-align: center; box-shadow: var(--shadow-md); border: 4px solid #fff; }
.badge-number { display: block; font-size: 28px; font-weight: 800; line-height: 1; }
.badge-text { font-size: 11px; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }

.about-info { flex: 1.2; }
.subtitle { color: var(--primary-color); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; display: block; margin-bottom: 10px; }
.about-info h2 { font-size: 32px; color: var(--text-main); margin-bottom: 15px; line-height: 1.2; font-weight: 800; }
.about-info p { color: var(--text-light); font-size: 16px; margin-bottom: 25px; }
.about-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.about-features li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--text-main); }
.about-features i { color: var(--primary-color); font-size: 18px; }

.divider { border: 0; height: 1px; background: var(--border-color); margin: 60px 0; }

/* --- Product Sections --- */
.section-header { margin-bottom: 30px; }
.section-header h2 { font-size: 28px; font-weight: 800; color: var(--text-main); margin-bottom: 5px; }
.section-header p { color: var(--text-light); font-size: 15px; }

/* --- CSS Grid για τα Προϊόντα --- */
.product-grid { display: grid; gap: 25px; }
/* Τα μηχανήματα να είναι πιο μεγάλα (2-3 σε μια σειρά) */
.machinery-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
/* Τα ανταλλακτικά να είναι πιο μικρά (3-4 σε μια σειρά) */
.parts-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* --- Product Cards (Κουτάκια) --- */
.product-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-color); }

.card-image { position: relative; height: 220px; background: #fff; padding: 15px; border-bottom: 1px solid #f0f0f0; }
.card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.product-card:hover .card-image img { transform: scale(1.05); }

.brand-tag { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 4px; letter-spacing: 1px; }

.card-details { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.card-details h3 { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 10px; line-height: 1.4; }
.price { font-size: 22px; font-weight: 800; color: var(--accent-color); margin-bottom: 15px; }

/* --- Footer --- */
.main-footer { background: #111; color: #999; padding: 50px 0 30px; text-align: center; }
.footer-logo { font-size: 24px; font-weight: 800; color: var(--primary-color); margin-bottom: 15px; }
.footer-logo span { color: #fff; }
.designer-credit { margin-top: 15px; font-size: 12px; color: #555; }

/* --- Responsive Design (Για Κινητά & Tablets) --- */
@media (max-width: 992px) {
    .layout-wrapper { flex-direction: column; }
    .sidebar { width: 100%; position: static; }
    .premium-about { flex-direction: column; padding: 30px; }
    .badge { right: 20px; bottom: -20px; }
}
@media (max-width: 768px) {
    .top-bar-inner { flex-direction: column; gap: 5px; text-align: center; }
    .header-inner { flex-direction: column; gap: 15px; }
    .main-nav { gap: 15px; flex-wrap: wrap; justify-content: center; }
}