@charset "UTF-8";

/* ========================================
   RILLA AUTOMOTRIZ DEL OCCIDENTE
   Estilos Principales
   ======================================== */

/* Variables CSS */
:root {
    --rojo-brillante: #E7473C;
    --rojo-oscuro: #c7362e;
    --gris-tenue: #6E6E6E;
    --gris-claro: #8a8a8a;
    --blanco: #FFFFFF;
    --blanco-oscuro: #f5f5f5;
    --footer-oscuro: #2d2d2d;
    --sombra: rgba(0, 0, 0, 0.1);
    --transicion: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--blanco);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========================================
   HEADER Y NAVEGACIÓN
   ======================================== */
.header {
    background: linear-gradient(135deg, var(--blanco) 0%, var(--blanco-oscuro) 100%);
    box-shadow: 0 2px 10px var(--sombra);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.company-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rojo-brillante);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.title-container {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.datetime-widget {
    text-align: right;
    min-width: 180px;
}

.clock {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gris-tenue);
    display: block;
}

.date {
    font-size: 0.9rem;
    color: var(--gris-claro);
}

/* Navegación Principal */
.main-nav {
    width: 100%;
    background-color: var(--rojo-brillante);
    margin-top: 15px;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 15px 25px;
    color: var(--blanco);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: var(--transicion);
}

.main-nav a:hover {
    background-color: var(--rojo-oscuro);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--blanco);
    min-width: 200px;
    box-shadow: 0 4px 15px var(--sombra);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transicion);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid var(--blanco-oscuro);
}

.dropdown-menu a {
    color: var(--gris-tenue);
    padding: 12px 20px;
    text-transform: none;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: var(--rojo-brillante);
    color: var(--blanco);
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* ========================================
   CARRUSEL
   ======================================== */
.carousel-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: var(--gris-tenue);
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(231, 71, 60, 0.9);
    color: var(--blanco);
    padding: 20px 40px;
    text-align: center;
    border-radius: 5px;
}

.carousel-caption h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 1.1rem;
}

/* Controles del Carrusel */
.carousel-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--gris-tenue);
    transition: var(--transicion);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--rojo-brillante);
    color: var(--blanco);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transicion);
}

.indicator.active {
    background: var(--rojo-brillante);
    transform: scale(1.2);
}

/* ========================================
   BLOQUES INFORMATIVOS
   ======================================== */
.info-section {
    background-color: var(--gris-tenue);
    padding: 60px 30px;
}

.info-blocks {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-block {
    background-color: var(--blanco);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--sombra);
    transition: var(--transicion);
    border-top: 4px solid var(--rojo-brillante);
}

.info-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--sombra);
}

.info-block h3 {
    color: var(--rojo-brillante);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.info-block p {
    color: var(--gris-tenue);
    line-height: 1.8;
}

.info-block .icon {
    font-size: 3rem;
    color: var(--rojo-brillante);
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

/* ========================================
   CATÁLOGO - TARJETAS DE PRODUCTOS
   ======================================== */
.catalog-section {
    background-color: var(--blanco);
    padding: 60px 30px;
}

.catalog-header {
    text-align: center;
    margin-bottom: 40px;
}

.catalog-header h2 {
    font-size: 2.5rem;
    color: var(--rojo-brillante);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.catalog-header p {
    color: var(--gris-tenue);
    font-size: 1.1rem;
}

/* Filtros */
.filters {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
    background: var(--blanco-oscuro);
    border-radius: 10px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: var(--gris-tenue);
}

.filter-group select,
.filter-group input {
    padding: 10px 15px;
    border: 2px solid var(--gris-tenue);
    border-radius: 5px;
    font-size: 1rem;
    min-width: 150px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--rojo-brillante);
}

.apply-filter-btn {
    padding: 10px 25px;
    background: var(--rojo-brillante);
    color: var(--blanco);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transicion);
}

.apply-filter-btn:hover {
    background: var(--rojo-oscuro);
}

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

.product-card {
    background: var(--blanco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--sombra);
    transition: var(--transicion);
    cursor: pointer;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--rojo-brillante);
    box-shadow: 0 15px 40px rgba(231, 71, 60, 0.2);
}

.product-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: contain !important;
    background: var(--blanco-oscuro) !important;
    padding: 10px !important;
}

.product-info {
    padding: 20px;
}

.product-brand {
    color: var(--rojo-brillante);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-size {
    color: var(--gris-claro);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.5rem;
    color: var(--rojo-brillante);
    font-weight: 700;
    margin-bottom: 15px;
}

.view-more-btn {
    width: 100%;
    padding: 12px;
    background: var(--rojo-brillante);
    color: var(--blanco);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transicion);
    text-transform: uppercase;
}

.view-more-btn:hover {
    background: var(--rojo-oscuro);
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--blanco);
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--gris-tenue);
    cursor: pointer;
    z-index: 10;
    transition: var(--transicion);
    background: none;
    border: none;
}

.modal-close:hover {
    color: var(--rojo-brillante);
}

.modal-image {
    width: 100% !important;
    height: 350px !important;
    object-fit: contain !important;
    background: var(--blanco-oscuro) !important;
    padding: 20px !important;
}

.modal-body {
    padding: 30px;
}

.modal-brand {
    color: var(--rojo-brillante);
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.modal-title {
    font-size: 2rem;
    color: #333;
    margin: 10px 0;
}

.modal-description {
    color: var(--gris-tenue);
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-specs {
    background: var(--blanco-oscuro);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-specs h4 {
    color: var(--rojo-brillante);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--gris-tenue);
}

.spec-value {
    color: #333;
}

.modal-price {
    font-size: 2rem;
    color: var(--rojo-brillante);
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transicion);
}

.contact-btn.whatsapp {
    background: #25D366;
    color: var(--blanco);
}

.contact-btn.whatsapp:hover {
    background: #128C7E;
}

.contact-btn.phone {
    background: var(--rojo-brillante);
    color: var(--blanco);
}

.contact-btn.phone:hover {
    background: var(--rojo-oscuro);
}

/* ========================================
   FORMULARIOS
   ======================================== */
.form-section {
    background-color: var(--blanco);
    padding: 60px 30px;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--blanco);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--sombra);
    border-top: 4px solid var(--rojo-brillante);
}

.form-container h2 {
    color: var(--rojo-brillante);
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gris-tenue);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transicion);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--rojo-brillante);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--rojo-brillante);
    color: var(--blanco);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transicion);
}

.submit-btn:hover {
    background: var(--rojo-oscuro);
    transform: translateY(-2px);
}

/* Login Form */
.login-container {
    max-width: 400px;
    margin: 50px auto;
}

.login-box {
    background: var(--blanco);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--sombra);
    border-top: 4px solid var(--rojo-brillante);
}

.login-box h2 {
    color: var(--rojo-brillante);
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* ========================================
   PÁGINA NOSOTROS
   ======================================== */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../imagenes/nosotros-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
}

.about-hero h1 {
    font-size: 3rem;
    text-transform: uppercase;
}

.about-content {
    padding: 60px 30px;
    background: var(--gris-tenue);
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-card {
    background: var(--blanco);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--sombra);
    border-left: 4px solid var(--rojo-brillante);
}

.about-card h3 {
    color: var(--rojo-brillante);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-card p {
    color: var(--gris-tenue);
    line-height: 1.8;
}

.values-list {
    list-style: none;
}

.values-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--blanco-oscuro);
    color: var(--gris-tenue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.values-list li::before {
    content: "✔";
    color: var(--rojo-brillante);
    font-size: 1.1rem;
    font-weight: bold;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--footer-oscuro);
    color: var(--blanco);
    padding: 40px 30px 20px;
    margin-top: auto;
    border-top: 4px solid var(--rojo-brillante);
}

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

.footer-section h4 {
    color: var(--rojo-brillante);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section p {
    color: #aaa;
    line-height: 1.8;
}

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

.footer-section ul a {
    color: #aaa;
    transition: var(--transicion);
}

.footer-section ul a:hover {
    color: var(--rojo-brillante);
    padding-left: 5px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blanco);
    font-size: 1.2rem;
    transition: var(--transicion);
}

.social-icon:hover {
    background: var(--rojo-brillante);
    transform: translateY(-5px);
}

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

/* ========================================
   ADMIN - GESTIÓN DE PRODUCTOS
   ======================================== */
.admin-section {
    padding: 40px 30px;
    background: var(--blanco-oscuro);
    min-height: calc(100vh - 200px);
}

.admin-header {
    max-width: 1400px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 {
    color: var(--rojo-brillante);
    text-transform: uppercase;
}

.admin-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transicion);
}

.btn-primary {
    background: var(--rojo-brillante);
    color: var(--blanco);
}

.btn-primary:hover {
    background: var(--rojo-oscuro);
}

.btn-secondary {
    background: var(--gris-tenue);
    color: var(--blanco);
}

.btn-danger {
    background: #dc3545;
    color: var(--blanco);
}

.btn-success {
    background: #28a745;
    color: var(--blanco);
}

.admin-table {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--blanco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--sombra);
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--blanco-oscuro);
}

.admin-table th {
    background: var(--rojo-brillante);
    color: var(--blanco);
    text-transform: uppercase;
    font-weight: 600;
}

.admin-table tr:hover {
    background: var(--blanco-oscuro);
}

.table-image {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    border-radius: 5px !important;
    background: var(--blanco-oscuro) !important;
    padding: 5px !important;
}

.action-btns {
    display: flex;
    gap: 10px;
}

.action-btns button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Modal para agregar/editar producto */
.product-modal {
    max-width: 600px;
}

.product-modal .modal-body {
    padding: 30px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: var(--rojo-brillante);
    color: white;
    border: none;
    padding: 12px 15px;
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 5px;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: var(--rojo-oscuro);
}

/* Responsive: Tablets */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: wrap;
        padding: 10px 20px;
    }

    .company-title {
        font-size: 1.4rem;
    }

    .carousel-section {
        height: 400px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    /* Header */
    .header {
        position: relative;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
        padding: 10px 15px;
    }

    .logo-section {
        flex-direction: column;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .title-container {
        order: -1;
        padding: 10px 0;
        width: 100%;
    }

    .company-title {
        font-size: 1.1rem;
        word-wrap: break-word;
    }

    .datetime-widget {
        text-align: center;
        margin-top: 10px;
        width: 100%;
    }

    .clock {
        font-size: 1.2rem;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
    }

    /* Navigation */
    .main-nav {
        width: 100%;
        display: none;
        margin-top: 0;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0;
    }

    .main-nav > ul > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav a {
        padding: 15px 20px;
        text-align: left;
    }

    .main-nav a span {
        display: inline;
    }

    /* Dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
    }

    .dropdown-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu a {
        padding-left: 40px;
    }

    .dropdown-arrow {
        float: right;
    }

    /* Dropdown active state for mobile */
    .dropdown.active .dropdown-menu {
        display: block;
    }

    /* Carousel */
    .carousel-section {
        height: 250px;
    }

    .carousel-caption {
        padding: 12px 15px;
        bottom: 30px;
        width: 90%;
        max-width: 300px;
    }

    .carousel-caption h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .carousel-caption p {
        font-size: 0.85rem;
    }

    .carousel-controls {
        bottom: 10px;
        right: 10px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Info Blocks */
    .info-section {
        padding: 40px 15px;
    }

    .info-blocks {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-block {
        padding: 25px 20px;
    }

    .info-block h3 {
        font-size: 1.2rem;
    }

    /* Products Grid */
    .catalog-section {
        padding: 40px 15px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .product-card {
        margin: 0;
    }

    .product-image {
        height: 120px;
    }

    .product-info {
        padding: 12px;
    }

    .product-brand {
        font-size: 0.7rem;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-size {
        font-size: 0.75rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .view-more-btn {
        padding: 8px;
        font-size: 0.75rem;
    }

    /* Filters */
    .filters {
        padding: 15px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
        min-width: unset;
    }

    /* Modal */
    .modal-content {
        margin: 10px;
        max-height: 85vh;
    }

    .modal-image {
        height: 180px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-price {
        font-size: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
    }

    /* Forms */
    .form-section {
        padding: 40px 15px;
    }

    .form-container {
        padding: 25px 15px;
        margin: 0 10px;
    }

    /* Footer */
    .footer {
        padding: 30px 15px 15px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .social-icons {
        justify-content: center;
    }

    /* Admin */
    .admin-section {
        padding: 20px 15px;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .admin-header h2 {
        font-size: 1.3rem;
    }

    .admin-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .admin-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }

    .action-btns {
        flex-direction: column;
        gap: 5px;
    }

    /* About Page */
    .about-hero {
        height: 200px;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-content {
        padding: 40px 15px;
    }

    .about-grid {
        gap: 20px;
    }

    .about-card {
        padding: 25px 20px;
    }

    .about-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .company-title {
        font-size: 0.95rem;
    }

    .datetime-widget {
        font-size: 0.85rem;
    }

    .clock {
        font-size: 1rem;
    }

    .date {
        font-size: 0.75rem;
    }

    .carousel-section {
        height: 200px;
    }

    .carousel-caption {
        padding: 10px;
        bottom: 20px;
    }

    .carousel-caption h3 {
        font-size: 0.9rem;
    }

    .carousel-caption p {
        font-size: 0.75rem;
        display: none;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-image {
        height: 100px;
    }

    .product-info {
        padding: 8px;
    }

    .info-block {
        padding: 20px 15px;
    }

    .form-container {
        padding: 20px 15px;
    }

    /* Login */
    .login-box {
        padding: 25px 20px;
    }

    /* Contact info */
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .company-title {
        font-size: 0.85rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}
