/**
 * Main Stylesheet - Tractoare Ieftine
 * Design modern și responsive
 */

/* Variables */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --border: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --radius: 8px;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.logo a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search {
    flex: 1;
    max-width: 500px;
    min-width: 200px;
}

.header-search form {
    display: flex;
    gap: 0;
}

.header-search input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
}

.header-search button {
    padding: 10px 20px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.header-search button:hover {
    background: #2980b9;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

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

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

.btn-icon {
    color: var(--white);
    padding: 8px 15px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.1);
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.nav-item {
    color: var(--white);
    padding: 15px 20px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    display: block;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--secondary);
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: visible;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    box-sizing: border-box;
}

.product-image img {
    max-width: 100% !important;
    max-height: 450px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: var(--transition);
}

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

.product-info {
    padding: 20px;
}

.product-code {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary);
    line-height: 1.4;
}

.product-price {
    margin-bottom: 10px;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
}

.old-price {
    font-size: 16px;
    color: var(--gray);
    text-decoration: line-through;
    margin-left: 10px;
}

.status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status.in-stock {
    background: #d4edda;
    color: #155724;
}

.status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary);
}

/* Footer */
.main-footer {
    background: var(--primary);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .header-top {
        flex-direction: column;
    }
    
    .header-search {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .section {
        padding: 40px 0;
    }
}

