/* Estilos para visualización de precios según Ley N° 27.743 */
/* Contenedor principal de precios */
.price-display-ecommerce {
    margin: 15px 0;
    font-family: Arial, sans-serif;
    text-align: left;
    padding: 0;
}

/* Precio Final - Debe ser el más prominente */
.price-display-ecommerce .final-price {
    margin-bottom: 12px;
    line-height: 1.2;
}

.price-display-ecommerce .final-price .price-legend {
    font-size: 0.75em;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.price-display-ecommerce .final-price .price-value {
    font-size: 2.2em;
    font-weight: 800;
    color: #2c3e50;
    display: block;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Precio sin impuestos - Debe ser menos prominente pero VISIBLE */
.price-display-ecommerce .price-without-tax {
    font-size: 1.1em;
    color: #666;
    line-height: 1.4;
    display: inline-block;
    margin-top: 12px;
    padding: 12px 16px;
    background: #d4e3f263;
    border-radius: 8px;
    max-width: fit-content;
    transition: all 0.3s ease;
    position: relative;
}

.price-display-ecommerce .price-without-tax .price-legend {
    font-size: 0.8em;
    color: #6c757d;
    font-weight: 600;
    display: inline;
    margin-right: 10px;
    font-style: italic;
}

.price-display-ecommerce .price-without-tax .price-value {
    font-size: 0.95em;
    font-weight: 700;
    color: #495057;
    display: inline;
}

/* Responsive */
@media (max-width: 768px) {
    .price-display-ecommerce .final-price .price-value {
        font-size: 1.5em;
    }
    
    .price-display-ecommerce .price-without-tax {
        font-size: 0.85em;
        padding: 6px 10px;
    }
    
    .price-display-ecommerce .price-without-tax .price-value {
        font-size: 0.85em;
    }
}

/* ======================================== */
/* ESTILOS PARA TARJETAS DE PRODUCTOS EN LISTA */
/* ======================================== */

/* Contenedor de precios para tarjetas de productos */
.price-display-product-card {
    margin: 8px 0;
    font-family: Arial, sans-serif;
    text-align: left;
    padding: 0;
}

/* Precio Final para tarjetas - Más sutil pero prominente */
.price-display-product-card .final-price {
    margin-bottom: 8px;
    line-height: 1.1;
}

.price-display-product-card .final-price .price-legend {
    font-size: 0.7em;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.price-display-product-card .final-price .price-value {
    font-size: 1.4em;
    font-weight: 700;
    color: #2c3e50;
    display: block;
    line-height: 1.1;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Precio sin impuestos para tarjetas - Más legible */
.price-display-product-card .price-without-tax {
    font-size: 0.85em;
    color: #666;
    line-height: 1.3;
    display: block;
    margin-top: 6px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.price-display-product-card .price-without-tax .price-legend {
    font-size: 0.8em;
    color: #666;
    font-weight: 500;
    display: inline;
    margin-right: 8px;
    font-style: italic;
}

.price-display-product-card .price-without-tax .price-value {
    font-size: 0.85em;
    font-weight: 600;
    color: #495057;
    display: inline;
}

/* ======================================== */
/* ESTILOS PARA LAS TARJETAS DE PRODUCTOS */
/* ======================================== */

.product-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #e0e0e0;
}

/* Enlace para toda la tarjeta */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.product-card-link:hover {
    text-decoration: none;
}

.product-card .product-image-container {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.product-card .product-image {
    max-height: 130px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-card .featured-badge,
.product-card .new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007bff;
    color: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.7em;
    font-weight: bold;
    z-index: 10;
}

.product-card .new-badge {
    background-color: #28a745;
    right: auto;
    left: 10px;
}

.product-card .product-content {
    padding: 12px 16px 0px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card .product-category {
    font-size: 0.7em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 1px;
    letter-spacing: 0.5px;
}

.product-card .product-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.product-card .product-title a {
    color: #333; /* Color sutil para el título */
    text-decoration: none;
}

.product-card .product-title a:hover {
    color: #007bff; /* Efecto hover sutil */
}

.product-card .price-container {
    margin-top: 1px;
    padding-top: 1px;
    border-top: 1px solid #f0f0f0;
    position: relative;
    z-index: 2;
}

/* Responsive para tarjetas */
@media (max-width: 768px) {
    .price-display-product-card .final-price .price-value {
        font-size: 1.2em;
    }
    
    .price-display-product-card .price-without-tax {
        font-size: 0.8em;
        padding: 5px 8px;
    }
    
    .price-display-product-card .price-without-tax .price-value {
        font-size: 0.8em;
    }
    
    .product-card .product-image-container {
        height: 160px;
    }
    
    .product-card .product-content {
        padding: 12px;
    }
}

/* ======================================== */
/* ESTILOS PARA CATÁLOGO QR */
/* ======================================== */

/* Contenedor principal de productos QR */
.qr-catalogue-container {
    margin: 20px 0;
}

/* Tarjetas de productos QR */
.qr-product-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    position: relative;
    height: 100%;
}

.qr-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #e0e0e0;
}

/* Enlace para toda la tarjeta QR */
.qr-product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.qr-product-card-link:hover {
    text-decoration: none;
}

/* Contenedor de imagen QR */
.qr-product-card .product-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 15px;
    border-radius: 8px;
}

.qr-product-card .product-image {
    max-height: 140px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Badges para catálogo QR */
.qr-product-card .featured-badge,
.qr-product-card .new-badge,
.qr-product-card .discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007bff;
    color: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.7em;
    font-weight: bold;
    z-index: 10;
}

.qr-product-card .new-badge {
    background-color: #28a745;
    right: auto;
    left: 10px;
}

.qr-product-card .discount-badge {
    background-color: #ffc107;
    color: #212529;
}

/* Contenido de la tarjeta QR */
.qr-product-card .product-content {
    padding: 0 15px 15px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.qr-product-card .product-category {
    font-size: 0.7em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.qr-product-card .product-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.qr-product-card .product-title a {
    color: #333;
    text-decoration: none;
}

.qr-product-card .product-title a:hover {
    color: #007bff;
}

/* Contenedor de precios QR */
.qr-product-card .price-container {
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px solid #f0f0f0;
    position: relative;
    z-index: 2;
}

/* Estilos de precios para catálogo QR */
.qr-price-display {
    margin: 8px 0;
    font-family: Arial, sans-serif;
    text-align: left;
    padding: 0;
}

.qr-price-display .final-price {
    margin-bottom: 8px;
    line-height: 1.1;
}

.qr-price-display .final-price .price-legend {
    font-size: 0.7em;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.qr-price-display .final-price .price-value {
    font-size: 1.4em;
    font-weight: 700;
    color: #2c3e50;
    display: block;
    line-height: 1.1;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qr-price-display .price-without-tax {
    font-size: 0.85em;
    color: #666;
    line-height: 1.3;
    display: block;
    margin-top: 6px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.qr-price-display .price-without-tax .price-legend {
    font-size: 0.8em;
    color: #666;
    font-weight: 500;
    display: inline;
    margin-right: 8px;
    font-style: italic;
}

.qr-price-display .price-without-tax .price-value {
    font-size: 0.85em;
    font-weight: 600;
    color: #495057;
    display: inline;
}

/* Responsive para catálogo QR */
@media (max-width: 768px) {
    .qr-product-card .product-image-container {
        height: 160px;
        padding: 15px;
        margin: 10px;
    }
    
    .qr-product-card .product-image {
        max-height: 120px;
    }
    
    .qr-product-card .product-content {
        padding: 0 12px 12px 12px;
    }
    
    .qr-price-display .final-price .price-value {
        font-size: 1.2em;
    }
    
    .qr-price-display .price-without-tax {
        font-size: 0.8em;
        padding: 5px 8px;
    }
    
    .qr-price-display .price-without-tax .price-value {
        font-size: 0.8em;
    }
}

/* ======================================== */
/* ESTILOS PARA PRECIOS EN MISMA FILA */
/* ======================================== */

/* Contenedor de precios en línea para tarjetas */
.price-display-inline {
    margin: 8px 0;
    font-family: Arial, sans-serif;
    text-align: left;
    padding: 0;
}

.price-display-inline .final-price {
    margin-bottom: 4px;
    line-height: 1.1;
}

.price-display-inline .final-price .price-legend {
    font-size: 0.65em;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    display: block;
}

.price-display-inline .final-price .price-value {
    font-size: 1.2em;
    font-weight: 700;
    color: #2c3e50;
    display: block;
    line-height: 1.1;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-display-inline .price-without-tax {
    font-size: 0.75em;
    color: #666;
    line-height: 1.2;
    display: inline-block;
    margin-top: 4px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    max-width: fit-content;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.price-display-inline .price-without-tax .price-legend {
    font-size: 0.7em;
    color: #666;
    font-weight: 500;
    display: inline;
    margin-right: 6px;
    font-style: italic;
}

.price-display-inline .price-without-tax .price-value {
    font-size: 0.7em;
    font-weight: 600;
    color: #495057;
    display: inline;
}

/* Responsive para precios en línea */
@media (max-width: 768px) {
    .price-display-inline .final-price .price-value {
        font-size: 1.1em;
    }
    
    .price-display-inline .price-without-tax {
        font-size: 0.7em;
        padding: 3px 6px;
    }
    
    .price-display-inline .price-without-tax .price-value {
        font-size: 0.65em;
    }
}

/* ======================================== */
/* MARGENES ENTRE TARJETAS DE PRODUCTOS */
/* ======================================== */

/* Margen para columnas del grid de productos */
.eq-height-col {
    padding: 0 10px; /* Espacio entre columnas */
    margin-bottom: 20px; /* Espacio entre filas */
}

/* Margen para tarjetas en grid responsive */
.col-md-3, .col-6, .col-md-4, .col-lg-3 {
    padding: 0 10px; /* Espacio entre columnas */
    margin-bottom: 20px; /* Espacio entre filas */
}

/* Margen específico para las columnas del catálogo QR */
.qr-product-card .eq-height-col {
    padding: 0 10px; /* Espacio entre columnas */
    margin-bottom: 20px; /* Espacio entre filas */
}
