/**
 * Contrast and Visibility Fixes
 */

/* Fix product card text visibility */
.woocommerce ul.products li.product .product-info {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 0 0 8px 8px !important;
}

/* Ensure all text is readable */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
    color: #2C3E50 !important;
    font-weight: 600 !important;
}

.woocommerce ul.products li.product .price {
    color: #E74C3C !important;
    font-weight: 700 !important;
}

.woocommerce ul.products li.product .price del {
    color: #7F8C8D !important;
}

/* Category pills contrast */
.category-pill {
    background: #2C3E50 !important;
    color: white !important;
    font-weight: 500 !important;
}

/* Rating stars */
.star-rating {
    color: #F39C12 !important;
}

.star-rating span {
    color: #F39C12 !important;
}

.rating-count {
    color: #7F8C8D !important;
}

/* Button contrast */
.woocommerce ul.products li.product .button {
    background: #2C3E50 !important;
    color: white !important;
    border: 2px solid #2C3E50 !important;
}

.woocommerce ul.products li.product .button:hover {
    background: #E74C3C !important;
    border-color: #E74C3C !important;
    color: white !important;
}

/* Quick action buttons */
.quick-action-btn {
    background: white !important;
    color: #2C3E50 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.quick-action-btn:hover {
    background: #F39C12 !important;
    color: white !important;
}

/* Hero text contrast */
.shop-hero {
    position: relative !important;
    z-index: 1 !important;
}

.shop-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.shop-hero h1,
.shop-hero p,
.shop-hero .stat-number,
.shop-hero .stat-label {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Filter buttons */
.filter-btn {
    background: white !important;
    color: #2C3E50 !important;
    border: 2px solid #E0E0E0 !important;
    font-weight: 500 !important;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2C3E50 !important;
    color: white !important;
    border-color: #2C3E50 !important;
}

/* Features section */
.shop-features {
    background: white !important;
}

.feature h3 {
    color: #2C3E50 !important;
}

.feature p {
    color: #7F8C8D !important;
}

/* Navigation contrast */
.main-navigation a {
    color: #2C3E50 !important;
    font-weight: 500 !important;
}

.main-navigation a:hover {
    background: #F8F9FA !important;
    color: #E74C3C !important;
}

/* Dropdown menus */
.main-navigation ul ul {
    background: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.main-navigation ul ul a {
    color: #2C3E50 !important;
}

.main-navigation ul ul a:hover {
    background: #F8F9FA !important;
    color: #E74C3C !important;
}

/* Site title */
.site-branding .site-title a {
    color: #2C3E50 !important;
    font-weight: 700 !important;
}

/* Messages contrast */
.woocommerce-message,
.woocommerce-info {
    background: #D4EDDA !important;
    color: #155724 !important;
    border: 1px solid #C3E6CB !important;
}

.woocommerce-error {
    background: #F8D7DA !important;
    color: #721C24 !important;
    border: 1px solid #F5C6CB !important;
}

/* Sale badge */
.woocommerce span.onsale {
    background: #E74C3C !important;
    color: white !important;
    font-weight: 600 !important;
}

/* Product overlay text */
.product-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%) !important;
}

/* Ensure header has good contrast */
.site-header {
    background: white !important;
    border-bottom: 1px solid #E0E0E0 !important;
}

/* Footer contrast */
.site-footer {
    background: #1A1A1A !important;
    color: white !important;
}

.site-footer a {
    color: #BDC3C7 !important;
}

.site-footer a:hover {
    color: white !important;
}