
.treesal-product-style-13.product-card {
    background: var(--minimog-color-box-bg, #fff);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--minimog-color-box-border, rgba(0,0,0,0.05));
    height: 100%; /* Make each card take full height of container */
}

.treesal-product-style-13.product-card:hover
 {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    border-color: var(--minimog-color-primary, #333);
}

/* Add this new style to ensure the parent container of cards aligns them */


.treesal-product-style-13.product-card .product-variable-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 160px;
    text-align: center;
    font-weight: 500;
}

.treesal-product-style-13.product-card .product-variable-label .label-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    line-height: 1.2;
    white-space: nowrap;
}

.treesal-product-style-13.product-card .product-variable-label .label-text span {
    margin: 0 1px;
}

.treesal-product-style-13.product-card .product-variable-label .grid-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.treesal-product-style-13.product-card .product-variable-label .grid-icon svg {
    width: 16px;
    height: 16px;
}

.treesal-product-style-13.product-card .product-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--minimog-color-box-bg-secondary, #f8f8f8);
    flex-shrink: 0;
    margin-bottom: 10px;
}

.treesal-product-style-13.product-card .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Default aspect ratio if none specified */
.treesal-product-style-13.product-card .product-image-wrapper,
.treesal-product-style-13.product-card .product-image {
    aspect-ratio: 1/1;
}

/* Custom aspect ratios */
.treesal-product-style-13.product-card.aspect-ratio-2-3 .product-image-wrapper,
.treesal-product-style-13.product-card.aspect-ratio-2-3 .product-image {
    aspect-ratio: 2/3;
}

.treesal-product-style-13.product-card.aspect-ratio-3-4 .product-image-wrapper,
.treesal-product-style-13.product-card.aspect-ratio-3-4 .product-image {
    aspect-ratio: 3/4;
}

.treesal-product-style-13.product-card.aspect-ratio-16-9 .product-image-wrapper,
.treesal-product-style-13.product-card.aspect-ratio-16-9 .product-image {
    aspect-ratio: 16/9;
}

.treesal-product-style-13.product-card.aspect-ratio-1-1 .product-image-wrapper,
.treesal-product-style-13.product-card.aspect-ratio-1-1 .product-image {
    aspect-ratio: 1/1;
}

.treesal-product-style-13.product-card .product-image-main {
    opacity: 1;
}

.treesal-product-style-13.product-card .product-image-hover {
    opacity: 0;
}

/* Placeholder for products without images */
.treesal-product-style-13.product-card .product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    color: #888;
    padding: 15px;
    text-align: center;
}

.treesal-product-style-13.product-card .product-image-placeholder svg {
    opacity: 0.6;
}

.treesal-product-style-13.product-card:hover .product-image-main {
    opacity: 0;
}

.treesal-product-style-13.product-card:hover .product-image-hover {
    opacity: 1;
}

/* If there's no second image, keep the main image visible */
.treesal-product-style-13.product-card:hover .product-image-main:only-of-type {
    opacity: 1;
}

.treesal-product-style-13.product-card .product-title .woocommerce-loop-product__title {
    padding: 0px 12px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.treesal-product-style-13.product-card .product-info-cat {
    padding: 0px 12px;
  
}

.treesal-product-style-13.product-card .product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 12px;
    margin-top: auto;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.treesal-product-style-13.product-card .product-price {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    min-height: 32px;
    max-width: calc(100% - 40px);
}

.treesal-product-style-13.product-card .add-to-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    
    background-color: var(--minimog-color-button-background, #333);
    color: #fff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.treesal-product-style-13.product-card .treesal-add-to-cart-icon {
    display: flex;
    align-items: center;
}

.treesal-product-style-13.product-card .add-to-cart-icon:hover {
    transform: scale(1.1);
    background-color: var(--minimog-color-primary-hover, #555);
}

.treesal-product-style-13.product-card .add-to-cart-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    color: #fff;
}

.treesal-product-style-13.product-card .product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.product-title.custom-product-title{
    height: 100%;
    min-height: 36px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .treesal-product-style-13.product-card .product-title
    {
        font-size: 13px;
        margin: 10px 10px 6px;
    }
    
    .treesal-product-style-13.product-card .product-footer {
        padding: 0 10px 10px;
    }
    
    .treesal-product-style-13.product-card .product-price {
        font-size: 14px;
    }

    .minimog-product .price {
        --font-size: 15px !important;
    }
    
    .treesal-product-style-13.product-card .add-to-cart-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    
    .treesal-product-style-13.product-card .add-to-cart-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .treesal-product-style-13.product-card .product-variable-label {
        font-size: 10px;
        padding: 5px 10px;
        bottom: 8px;
        min-width: 140px;
        gap: 5px;
    }
    
    .treesal-product-style-13.product-card .product-variable-label .grid-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .treesal-product-style-13.product-card .product-variable-label .label-text {
        line-height: 1.2;
    }
    
    .treesal-product-style-13.product-card .product-image-placeholder {
        padding: 10px;
    }
    
    .treesal-product-style-13.product-card .product-image-placeholder svg {
        width: 40px;
        height: 40px;
    }
} 
