/**
 * CrowdOrigin Product Display Styles
 */

/* Product Detail Page */
.co-member-price {
    margin: 15px 0;
    padding: 15px;
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.co-member-price-label {
    font-weight: bold;
    margin-right: 10px;
}

.co-member-price-value {
    font-size: 1.5em;
    color: #0073aa;
    font-weight: bold;
}

.co-member-price-savings {
    display: block;
    margin-top: 5px;
    color: #d63638;
    font-size: 0.9em;
}

.co-product-attributes {
    margin: 20px 0;
}

.co-product-attributes-title {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.co-product-attributes-list {
    list-style: none;
    padding: 0;
}

.co-product-attribute-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.co-product-attribute-label {
    font-weight: bold;
    margin-right: 10px;
}

.co-product-number {
    margin: 10px 0;
    font-size: 0.9em;
    color: #666;
}

.co-product-number-label {
    font-weight: bold;
    margin-right: 5px;
}

.co-specifications-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.co-specifications-table th,
.co-specifications-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.co-specifications-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.co-related-products {
    margin: 40px 0;
    clear: both;
}

.co-related-products-title {
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* Product List Page */
.co-product-filters {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.co-product-filters-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}

.co-filter-group {
    margin-bottom: 15px;
}

.co-filter-title {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.co-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.co-filter-list li {
    padding: 5px 0;
}

.co-filter-list label {
    cursor: pointer;
}

.co-product-attributes-list {
    margin: 10px 0;
}

.co-product-attribute-badge {
    display: inline-block;
    padding: 3px 8px;
    margin-right: 5px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 0.85em;
    color: #666;
}

.co-member-price-badge {
    margin: 5px 0;
    padding: 5px 10px;
    background: #e8f4f8;
    border-radius: 3px;
    display: inline-block;
}

.co-member-price-badge .co-member-price-label {
    font-size: 0.85em;
    margin-right: 5px;
}

.co-member-price-badge .co-member-price-value {
    font-size: 1em;
    color: #0073aa;
    font-weight: bold;
}

/* Product Search */
.co-product-search {
    position: relative;
}

.co-search-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.co-search-submit {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.co-search-submit:hover {
    background: #005a87;
}

.co-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.co-search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.co-search-suggestions li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.co-search-suggestions li:last-child {
    border-bottom: none;
}

.co-search-suggestions a {
    text-decoration: none;
    color: #333;
}

.co-search-suggestions a:hover {
    color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .co-product-filters {
        padding: 15px;
    }
    
    .co-member-price {
        padding: 10px;
    }
    
    .co-member-price-value {
        font-size: 1.2em;
    }
}
