/* Variables Globales */
:root {
    --primary-color: #08C;
    --secondary-color: #1613a9;
    --highlight-color: #ff5501;
    --light-gray: #eaeaea;
    --dark-gray: #2f2727;
    --font-family-base: 'Poppins', sans-serif;
    --font-size-base: 14px;
    --font-size-large: 1.3rem;
    --font-size-small: 0.9rem;
    --font-size-smaller: 0.8rem;
    --transition-base: 0.2s;
    --border-radius: 12px;
    --box-shadow-base: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* General Resets and Base Styles */
img {
    max-width: 100%;
    height: auto;
}

.imgcover {
    width: 100%; /* Se ajusta al ancho del contenedor */
    height: 240px; /* Define una altura fija */
    object-fit: cover; /* Asegura que la imagen se recorte sin deformarse */
}

.img-effect {
    width: 100%;
    height: 240px; /* Ajusta según necesites */
    overflow: hidden; /* Evita desbordes */
    display: flex;
    align-items: center;
    justify-content: center;
}

.imgcoversmall {
    width: 100%; /* Se ajusta al ancho del contenedor */
    height: 220px; /* Define una altura fija */
    object-fit: cover; /* Asegura que la imagen se recorte sin deformarse */
}

.img-effectsmall {
    width: 100%;
    height: 220px; /* Ajusta según necesites */
    overflow: hidden; /* Evita desbordes */
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
}

/* Buttons */
.aniadir-carrito, .add-cart {
    position: absolute;
    padding: 0.8rem 1.4rem;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff !important;
    background-color: var(--primary-color);
    font-size: var(--font-size-large);
    font-weight: 400;
    text-transform: uppercase;
    visibility: visible;
    opacity: 0.8;
    border: none;
    line-height: 1.82;
    font-family: var(--font-family-base);
    transition: opacity var(--transition-base), padding var(--transition-base);
    z-index: 2;
}

.aniadir-carrito:before {
    content: "";
    margin-right: 7px;
    font-family: "Porto";
    font-size: 1.8rem;
    font-weight: 600;
}

.aniadir-carrito:hover, .add-cart:hover {
    opacity: 1;
}

/* Product Cards */
.producto {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.producto img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
    position: relative;
}

.producto:hover {
    transform: scale(1.05);
    transition: 1.5s;
}

/* Degradado azul para mejorar la lectura del texto */
.producto::after {
    content: "";
    position: absolute;
    bottom: 0.8em;
    border-radius: var(--border-radius);
    left: 0;
    width: 100%;
    height: 40%; /* Ajusta la altura del degradado */
    background: linear-gradient(to top, rgba(0, 101, 159, 1), rgba(0, 101, 159, 0));
    z-index: 2;
}

/* Degradado de la imagen hacia transparente */
.producto::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Ajusta la altura del degradado */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    z-index: 1;
}


/* Ajustar la posición del título */
.producto h3 {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    z-index: 3;
}

.producto {
    transition: transform 0.3s ease;
    transform: scale(1);
}

.producto:hover {
    transform: scale(1.05);
}

.seccion a {
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

.producto:hover h3.seccion a {
    color: #fff !important; /* Forzar color blanco */
}



/* Media Queries */
@media (max-width: 575px) {
    .product-list .product-action > a {
        padding: 12px;
        width: inherit;
        height: inherit;
    }
}

@media screen and (min-width: 768px) {
    .shipping-address-box {
        width: 33.33%;
    }
}

@media screen and (min-width: 576px) {
    .shipping-address-box {
        width: 50%;
    }
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-decoration: line-through; /* Aplica el tachado al texto */
}

.selected {
    background-color: rgba(0, 101, 159, 0.3) !important;
    font-weight: bold;
    color: rgba(0, 101, 159, 1);
    text-align: center;
}

.tablemedidas {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.thmedidas, .tdmedidas {
    padding: 15px;
    text-align: left;
}
.thmedidas {
    background-color: #f7f7f7;
    color: #00659f;
    text-align: center;
}

.trmedidas:nth-child(even) {
    background-color: #f9f9f9;
}
.trmedidas:hover {
    background-color: #f1f1f1;
}
.thmedidas i {
    font-size: 1.2rem;
    color: #333;
}
.tdmedidas {
    border-bottom: 1px solid #ddd;
    text-align: center;
    cursor: pointer;
}
.tdmedidas:last-child {
    text-align: center;
}

.tdmedidas input[type="number"] {
    width: 100px;
    padding: 5px;
    font-size: 1.3rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

.thmedidas, .tdmedidas {
    padding: 8px; /* Ajustado para filas más pequeñas */
}

.action-icons i {
    margin: 0 5px;
    cursor: pointer;
    color: #007bff;
}
.action-icons i:hover {
    color: #0056b3;
}
.progress-bar {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    height: 16px;
}

.progress-bar-stock div {
    height: 100%;
    border-radius: 4px;
    text-align: center;
    color: white;
    font-size: 0.0rem;
    line-height: 16px;
}
.progress-low-stock {
    background-color: #dc3545; /* Rojo */
}
.progress-medium-stock {
    background-color: #ffc107; /* Amarillo */
}
.progress-high-stock {
    background-color: #28a745; /* Verde */
}

.price-box-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 20px;
}
.price-box {
    display: inline-block;
    min-width: 150px;
    min-height: 80px;
    padding: 10px 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}

.price-box-normal {
    border-color: #a60000;
}
.price-box-40 {
    border-color: #ff8c42;
}
.price-box-60 {
    border-color: #00659f;
}
.discount-percentage {
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
    display: inline-block;
}
.price-value {
    color: #000;
    margin: 0 !important;
}

.price-value-total {
    color: #000;
    margin: 0 !important;
}

.price-box-normal {
    padding-top: 2.2rem;
}

.price-box-total {
    padding-top: 2.2rem;
    min-height: 95px;
    align-content: center;
}

.icono {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

a:hover .price-box {
    background-color: #28adf3; /* Cambia el fondo */
    color: #000; /* Cambia el color del texto */
    transition: 0.3s; /* Suaviza la transición */
}

