/**
 * Product Card Styles
 * Styling for blog post product cards
 */

.dbi-short-code-product-item {
    display: flex;
    flex-direction: column;
    margin: 30px 0;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

@media (min-width: 768px) {
    .dbi-short-code-product-item {
        flex-direction: row;
    }
}

.dbi-short-code-product-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    padding: 20px;
}

@media (min-width: 768px) {
    .dbi-short-code-product-item img {
        width: 35%;
    }
}

.dbi-product-description {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dbi-product-description h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.productView-brand {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-weight: normal;
}

.price-section {
    margin-bottom: 15px;
}

.price--withTax {
    font-size: 24px;
    color: #d85959;
    font-weight: bold;
}

.dbi-button-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.dbi-button-actions .button {
    padding: 10px 15px;
    border-radius: 3px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    flex: 1;
    min-width: 120px;
}

.button--primary {
    background-color: #4a4a4a;
    color: #fff;
    border: 1px solid #4a4a4a;
}

.button--primary:hover {
    background-color: #333;
    color: #fff;
}

.dbi-button-actions .button:not(.button--primary) {
    background-color: #d85959;
    color: #fff;
    border: 1px solid #d85959;
}

.dbi-button-actions .button:not(.button--primary):hover {
    background-color: #c14545;
    color: #fff;
}

/* Error state */
.dbi-product-card-error {
    padding: 15px;
    border: 1px solid #d9534f;
    color: #d9534f;
    background-color: #f2dede;
    border-radius: 4px;
    margin: 15px 0;
}

.yith-wcwl-add-to-wishlist-modal .yith-wcwl-add-to-wishlist-modal__title .yith-wcwl-add-to-wishlist-modal__type_selection .yith-wcwl-add-to-wishlist-modal__type_option:before {
    content: none !important;
}
