

.treesal-product-style-16.product-card {
    background: var(--minimog-color-box-bg, #fff);
    border-radius: 0px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.treesal-product-style-16.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;
    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-16.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-16.product-card .product-variable-label .grid-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

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

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

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

.inner-border-effect {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
    border-radius: 4px;
}

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

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

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

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

.treesal-product-style-16.product-card:hover .product-image-main:only-of-type {
    opacity: 1;
}

.treesal-product-style-16.product-card .product-title .woocommerce-loop-product__title {
    padding: 0px 0px;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    text-align: center;
}

.treesal-product-style-16.product-card .product-info-cat {
    padding: 0px 0px;
    text-align: center;
}

.treesal-product-style-16.product-card .product-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0;
    margin: 10px 0px 0px 0px;
    gap: 10px;
}

.treesal-product-style-16.product-card .product-footer .product-info {
    padding: 0;
    width: 100%;
    text-align: center;
}

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

.treesal-product-style-16.product-card .add-to-cart-icon {
    width: 100%;
}

.treesal-product-style-16.product-card .treesal-add-to-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 5px;
    color: var(--minimog-color-button-text, #fff);
    background-color: var(--minimog-color-button-background, #000);
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
}

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

.treesal-product-style-16.product-card .treesal-add-to-cart-icon svg {
    width: 20px;
    height: 20px;
    color: var(--minimog-color-button-text, #fff);
}

.treesal-product-style-16.product-card .add-to-cart-text {
    display: inline-block;
    color: var(--minimog-color-button-text, #fff);
    font-size: 14px;
}

/* Loading state styles */
.treesal-product-style-16.product-card .treesal-add-to-cart-icon.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.treesal-product-style-16.product-card .treesal-add-to-cart-icon.loading .add-to-cart-text,
.treesal-product-style-16.product-card .treesal-add-to-cart-icon.loading svg {
    visibility: hidden;
}

.treesal-product-style-16.product-card .treesal-add-to-cart-icon.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border-radius: 50%;
    border: 2px solid var(--minimog-color-button-text, #fff);
    border-top-color: transparent;
    animation: treesal-spin 0.8s linear infinite;
}

@keyframes treesal-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .inner-border-effect {
        top: 8px;
        right: 8px;
        bottom: 8px;
        left: 8px;
    }

    .treesal-product-style-16.product-card .product-footer {
        padding: 0;
        margin: 5px;
        gap: 8px;
    }

    .treesal-product-style-16.product-card .product-footer .product-info {
        padding: 0px 5px 0px 0;
    }

    .treesal-product-style-16.product-card .product-title .woocommerce-loop-product__title {
        padding: 0px 5px;
    }

    .treesal-product-style-16.product-card .product-price {
        font-size: 14px;
    }

    .treesal-product-style-16.product-card .treesal-add-to-cart-icon {
        padding: 6px 12px;
        gap: 6px;
    }

    .treesal-product-style-16.product-card .treesal-add-to-cart-icon svg {
        width: 18px;
        height: 18px;
    }

    .treesal-product-style-16.product-card .add-to-cart-text {
        font-size: 12px;
    }

    .treesal-product-style-16.product-card .product-variable-label {
        font-size: 10px;
        padding: 5px 10px;
        bottom: 8px;
        min-width: 140px;
        gap: 5px;
    }
} 
