/* Astur Pets Product Recommender - Frontend Styles */
/* Colores principales: Azul #24509C | Verde #C5D65F */

.astur-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #24509C;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(36, 80, 156, 0.15);
}

.astur-product-card:hover {
    box-shadow: 0 8px 24px rgba(36, 80, 156, 0.25);
    transform: translateY(-4px);
    border-color: #C5D65F;
}

.astur-product-image-link {
    display: block;
    width: 100%;
    height: auto;
    text-decoration: none;
    overflow: hidden;
    border-bottom: 3px solid #24509C;
    transition: all 0.3s ease;
}

.astur-product-image-link:hover {
    background: rgba(36, 80, 156, 0.05);
}

.astur-product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #ececec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.astur-product-card.astur-size-small .astur-product-image {
    height: 150px;
}

.astur-product-card.astur-size-large .astur-product-image {
    height: 300px;
}

.astur-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.astur-product-image-link:hover .astur-product-image img {
    transform: scale(1.08);
}

.astur-product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.astur-product-card.astur-size-small .astur-product-content {
    padding: 15px;
}

.astur-product-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
}

.astur-product-card.astur-size-small .astur-product-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.astur-product-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
}

.astur-product-card.astur-size-small .astur-product-description {
    display: none;
}

.astur-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.astur-product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.astur-price-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 500;
}

.astur-price-value {
    font-size: 24px;
    font-weight: 700;
    color: #24509C;
}

.astur-product-card.astur-size-small .astur-price-value {
    font-size: 20px;
}

.astur-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.astur-btn-primary {
    background: linear-gradient(135deg, #C5D65F 0%, #b8c955 100%);
    color: #24509C;
    font-weight: 700;
}

.astur-btn-primary:hover {
    background: linear-gradient(135deg, #b8c955 0%, #afc14f 100%);
    text-decoration: none;
    color: #24509C;
    box-shadow: 0 4px 12px rgba(197, 214, 95, 0.4);
}

.astur-product-card.astur-size-small .astur-btn {
    padding: 10px 15px;
    font-size: 13px;
}

.astur-product-link {
    flex-shrink: 0;
}

.astur-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.astur-products-grid .astur-product-card {
    margin: 0;
}

.astur-error {
    padding: 15px;
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
    border-radius: 4px;
    margin: 10px 0;
}

/* Responsivo */
@media (max-width: 768px) {
    .astur-product-content {
        padding: 15px;
    }
    
    .astur-product-title {
        font-size: 16px;
    }
    
    .astur-product-footer {
        flex-wrap: wrap;
    }
    
    .astur-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
