/* responsive.css */

/* Asigurarea că imaginile sunt responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ajustarea containerelor */
.container, .content, .products-section, .login-form, .register-form, .scheduling-form, .pricing-table, .product-details {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
}

/* Optimizarea fonturilor */
body, p, li, .nav a, .footer p {
    font-size: 16px;
}

h1, .hero-overlay h1 {
    font-size: 2rem;
}

h2, .content h2 {
    font-size: 1.5rem;
}

h3, .content .section h3 {
    font-size: 1.2rem;
}

/* Stilizare header și navigare */
.header {
    flex-wrap: wrap;
    padding: 10px;
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg, #1a73e8, #0d47a1);
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.header .logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #fff;
}

.nav-toggle {
    display: none;
    font-size: 1.5em;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

.nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.nav a:hover, .nav a.active {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
}

/* Ajustarea butoanelor */
.cta-button, .product-card button, .login-form button, .register-form button, .scheduling-form button, .add-to-cart, .buy-button {
    padding: 8px 16px;
    font-size: 1em;
    touch-action: manipulation;
}

/* Optimizarea grilei de produse */
.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

/* Ajustarea formularelor */
.login-form input, .register-form input, .scheduling-form input,
.login-form textarea, .register-form textarea, .scheduling-form textarea,
.login-form select, .scheduling-form select {
    font-size: 1em;
    padding: 8px;
}

/* Optimizarea tabelelor */
.pricing-table table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

/* Ajustarea layout-ului pentru product.php */
.product-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.product-image, .product-info {
    flex: 1 1 100%;
}

@media (min-width: 768px) {
    .product-image, .product-info {
        flex: 1 1 45%;
    }
}

/* Media queries pentru ecrane mici */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .nav.active {
        display: flex;
    }

    .header {
        padding: 10px;
    }

    .hero-overlay h1 {
        font-size: 1.5rem;
    }

    .hero-overlay p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 150px;
    }

    .footer-links a {
        margin: 0 5px;
        font-size: 0.9rem;
    }
}

/* Îmbunătățirea performanței pentru dispozitive cu rezoluție mare */
@media (min-resolution: 2dppx) {
    img {
        image-rendering: optimizeQuality;
    }
}