/**
 * Product Card Styles
 * 
 * This file contains styles for the custom product card template used in WooCommerce.
 */

/* Product Card Container */
.custom-product-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding: 0;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.custom-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Product Image */
.product-card-image {
    position: relative;
    overflow: hidden;
    padding-top: 30%; /* 1:1 Aspect Ratio */
    background-color: #f8f9fa;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    padding: 15px;
}

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

.custom-product-card:hover .product-card-image .main-image {
    opacity: 0;
}

.custom-product-card:hover .product-card-image .hover-image {
    opacity: 1;
}

/* Product Tags */
.wc-product-tags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
    justify-content: flex-end;
    padding: 5px;
    border-radius: 4px;
}

.wc-product-tag {
    background-color: #2A6478;
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Product Details */
.product-card-details {
    padding: 15px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.product-card-category a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card-category a:hover {
    color: #2A6478;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.product-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card-title a:hover {
    color: #2A6478;
}

/* Shipping Restrictions */
.product-card-shipping-restrictions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shipping-truck-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.shipping-restriction-tag {
    font-size: 0.7rem;
    color: #666;
}

.shipping-tooltip {
    cursor: help;
    position: relative;
}

.tooltip-text {
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    margin-bottom: 5px;
}

.tooltip-text:after {
    content: '';
    position: absolute;
    top: 100%;
    right: 10px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.shipping-tooltip:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .custom-product-card {
        margin-bottom: 20px;
    }
    
    .product-card-image {
        padding-top: 100%;
    }
    
    .product-card-details {
        padding: 12px;
    }
    
    .product-card-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .custom-product-card {
        margin-bottom: 15px;
    }
    
    .product-card-details {
        padding: 10px;
    }
    
    .product-card-title {
        font-size: 0.9rem;
    }
    
    .product-card-shipping-restrictions {
        padding: 3px 8px;
    }
} 