/**
 * Custom Loop Price Styling
 * Styles for the custom WooCommerce price template
 */

.custom-price-container {
    margin: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.custom-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
}

.price-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-price {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.custom-price .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* Sale pricing styles */
.custom-price .price del {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    margin-right: 8px;
}

.custom-price .price ins {
    color: #333;
    text-decoration: none;
    font-weight: 700;
}

/* Sale badge - HIDDEN */
.sale-badge {
    display: none !important;
}

.sale-text {
    display: none !important;
}

/* Savings info */
.savings-info {
    font-size: 12px;
    color: #27ae60;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.savings-amount {
    color: #27ae60;
}

.savings-percent {
    color: #27ae60;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    .custom-price-wrapper {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .price-label {
        font-size: 12px;
    }
    
    .custom-price {
        font-size: 16px;
    }
    
    .savings-info {
        font-size: 11px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .price-label {
        color: #bbb;
    }
    
    .custom-price {
        color: #ecf0f1;
    }
    
    .custom-price .price del {
        color: #777;
    }
}

/* Integration with existing theme styles */
.woocommerce ul.products li.product .custom-price-container,
.woocommerce-page ul.products li.product .custom-price-container {
    margin: 10px 0 15px 0;
}

/* Ensure proper spacing in different layouts */
.woocommerce .products .product .custom-price-container {
    text-align: left;
}

.woocommerce .products.columns-1 .product .custom-price-container {
    text-align: left;
}

.woocommerce .products.columns-2 .product .custom-price-container,
.woocommerce .products.columns-3 .product .custom-price-container,
.woocommerce .products.columns-4 .product .custom-price-container {
    text-align: center;
}

/* Hover effects */
.woocommerce ul.products li.product:hover .custom-price {
    color: #34495e;
    transition: color 0.3s ease;
}

.woocommerce ul.products li.product:hover .sale-text {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}
