/* Modal apaisada 800x600 */
.modal-content.modal-landscape {
    width: 800px;
    height: fit-content;
    display: flex;
    flex-direction: row;
    padding: 0;
    overflow: hidden;
}

.modal-landscape-inner {
    display: flex;
    width: 100%;
    height: 100%;
}

.modal-image-area {
    width: 33.33%;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.modal-product-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modal-info-area {
    width: 66.66%;
    padding: 32px 32px 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    box-sizing: border-box;
}

.modal-product-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.modal-product-price {
    font-size: 1.7rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 16px;
}

.modal-product-desc {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.modal-product-delivery {
    font-size: 1rem;
    margin-bottom: 18px;
    color: #555;
}

.modal-product-payment {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.modal-payment-list {
    margin: 8px 0 16px 0;
    padding-left: 18px;
}

.modal-payment-list li {
    font-size: 1rem;
    margin-bottom: 4px;
}

.modal-content .btn-primary {
    font-size: 1.1rem;
    padding: 10px 24px;
    border-radius: 6px;
}

/* Modal estilos básicos */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Centrado especial para modal apaisada */
.modal-content.modal-landscape {
    margin: calc(50vh - 300px) auto 0 auto !important;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 38px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

/* Ajuste para asegurar que el botón cierre esté sobre el contenido en modal apaisada */
.modal-content.modal-landscape .close-modal {
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 38px;
    z-index: 10;
}

.close-modal:hover {
    color: #e74c3c;
}

/* Estilos exclusivos para products.html (catálogo y filtros) */
.catalog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #e0f7fa 0%, #f7f7f7 100%);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #b2ebf2;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

.filters label {
    font-weight: 600;
    margin-right: 0.5rem;
    color: #00796b;
}

.filters select,
.filters input[type="text"],
.filters input[type="number"] {
    padding: 0.3rem 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.filters input[type="number"] {
    width: 90px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.shop-product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
    position: relative;
}

.shop-product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
}

.shop-product-card img {
    max-width: 140px;
    max-height: 140px;
    margin-bottom: 1rem;
    border-radius: 6px;
    background: #f2f2f2;
}

/* Ajustes para estructura real de las cards */
.shop-product-card .product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.shop-product-card .product-info h3 {
    margin: 0.5rem 0 0.2rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

/* --- Armonización y estilos faltantes para products.html --- */

.catalog-main {
    background: var(--background, #FBFBFC);
    min-height: 100vh;
    padding-top: 2.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.catalog-filters {
    background: linear-gradient(90deg, var(--primary, #C5E0E4) 0%, var(--light, #fff) 100%);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(41, 57, 87, 0.06);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    margin: 0 auto 2.5rem auto;
    max-width: 1200px;
    border: 1px solid var(--primary, #C5E0E4);
}

#filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: flex-end;
    margin-top: 1rem;
}

.catalog-products {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.shop-product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.product-img {
    max-width: 140px;
    max-height: 140px;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: var(--primary, #C5E0E4);
    box-shadow: 0 1px 6px rgba(41, 57, 87, 0.07);
    object-fit: contain;
}

/* --- Ajuste responsive para padding lateral en móviles --- */
@media (max-width: 600px) {
    .catalog-main {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .catalog-filters,
    .catalog-products {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
        max-width: 100%;
    }
}

/* --- Inputs y selects de filtros armonizados con el botón --- */
.filters select,
.filters input[type="text"],
.filters input[type="number"] {
    padding: 0.7rem 1.2rem;
    border: 1.5px solid var(--primary, #C5E0E4);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--light, #fff);
    color: var(--dark-blue, #293957);
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    height: 44px;
}

.filters select:focus,
.filters input[type="text"]:focus,
.filters input[type="number"]:focus {
    border-color: var(--accent, #F1FF66);
    box-shadow: 0 0 0 2px rgba(241, 255, 102, 0.18);
}

/* Corrección de clase mal escrita */
.shop-product-card .product-desc {
    font-size: 0.97rem;
    color: #555;
    margin-bottom: 1.1rem;
    margin-top: 0.5rem;
    text-align: center;
}

.shop-product-card .product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a7f3c;
    margin-bottom: 1rem;
    margin-top: 0.2rem;
    display: block;
}

.shop-product-card .btn-primary {
    background: var(--accent, #F1FF66);
    color: var(--dark-blue, #293957);
    padding: 0.7rem 1.2rem;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, filter 0.2s;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    font-family: inherit;
}

.shop-product-card .btn-primary:hover {
    filter: brightness(0.96);
    background: var(--dark-blue, #293957);
    color: var(--accent, #F1FF66);
}

.shop-product-card h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0 0.2rem 0;
    font-weight: 700;
    text-align: center;
}

.shop-product-card p {
    font-size: 0.97rem;
    color: #555;
    margin-bottom: 1.2rem;
    margin-top: 0.5rem;
    text-align: center;
}

.shop-product-card .price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a7f3c;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.shop-product-card .add-to-cart {
    background: #1a7f3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}

.shop-product-card .add-to-cart:hover {
    background: #145c2a;
}