/**
 * Commercial Enhancements Styles
 * Additional styles for a more commercial, professional appearance
 *
 * @package CrowdOrigin_Product_Display
 */

/* Global Enhancements - Apply to all pages */
body {
    background: #f8f9fa !important;
    color: #333 !important;
}

/* Ensure content is visible */
.site-content,
.content-area,
.entry-content,
.page-content {
    background: #fff !important;
    color: #333 !important;
    padding: 20px !important;
}

/* Make sure text is visible */
h1, h2, h3, h4, h5, h6 {
    color: #333 !important;
}

p, div, span {
    color: #333 !important;
}

body.woocommerce-page,
body.woocommerce-shop {
    background: #f8f9fa;
}

/* Product Grid Enhancements */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 15px 15px 10px;
    color: #333;
}

.woocommerce ul.products li.product .price {
    font-size: 1.3em;
    font-weight: bold;
    color: #0073aa;
    margin: 0 15px 15px;
}

.woocommerce ul.products li.product .price del {
    color: #999;
    font-size: 0.9em;
    margin-right: 8px;
}

.woocommerce ul.products li.product .button {
    margin: 0 15px 15px;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    width: calc(100% - 30px);
    text-align: center;
}

.woocommerce ul.products li.product .button:hover {
    background: #005a87;
    transform: scale(1.02);
}

/* Shop Page Header */
.woocommerce-products-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 20px;
    margin: -20px -20px 30px;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.woocommerce-products-header h1 {
    color: #fff;
    font-size: 2.5em;
    margin: 0 0 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.woocommerce-products-header .woocommerce-result-count,
.woocommerce-products-header .woocommerce-ordering {
    color: rgba(255, 255, 255, 0.9);
}

/* Product Filters Enhancement */
.co-product-filters {
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.co-product-filters-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.co-filter-group {
    margin-bottom: 20px;
}

.co-filter-title {
    font-size: 1em;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
}

.co-filter-list li {
    padding: 8px 0;
}

.co-filter-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95em;
    color: #666;
    transition: color 0.2s;
}

.co-filter-list label:hover {
    color: #0073aa;
}

.co-filter-list input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Product Attribute Badges */
.co-product-attributes-list {
    margin: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.co-product-attribute-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f8ff;
    border: 1px solid #0073aa;
    border-radius: 12px;
    font-size: 0.85em;
    color: #0073aa;
    font-weight: 500;
}

/* Member Price Badge */
.co-member-price-badge {
    margin: 8px 15px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.co-member-price-badge .co-member-price-label {
    font-size: 0.85em;
    color: #333;
    margin-right: 6px;
    font-weight: 600;
}

.co-member-price-badge .co-member-price-value {
    font-size: 1.1em;
    color: #d63638;
    font-weight: bold;
}

/* Navigation Menu Enhancement */
.main-navigation {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0 20px;
}

.main-navigation ul li a {
    font-weight: 500;
    color: #333;
    padding: 15px 20px;
    transition: color 0.2s;
}

.main-navigation ul li a:hover {
    color: #0073aa;
}

/* Homepage Hero Section */
div[class*="co-homepage-hero"],
.co-homepage-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    padding: 60px 30px !important;
    text-align: center !important;
    margin: -20px -20px 40px !important;
    border-radius: 0 0 20px 20px !important;
}

div[class*="co-homepage-hero"] h1,
.co-homepage-hero h1 {
    color: #fff !important;
    font-size: 3em !important;
    margin: 0 0 20px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

div[class*="co-homepage-hero"] p,
.co-homepage-hero p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.2em !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Page Content Enhancement */
.entry-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
}

.entry-content h1,
.entry-content h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0073aa;
}

.entry-content h3 {
    color: #555;
    font-size: 1.5em;
    margin: 25px 0 15px;
}

.entry-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Site Container */
.site-content {
    background: #f8f9fa;
    padding: 20px 0;
}

.content-area {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    max-width: 1200px;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .woocommerce-products-header h1 {
        font-size: 1.8em;
    }
    
    .co-product-filters {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}
