/**
 * WooCommerce Custom Fields Styles
 * Honey.am Theme - Custom Product Fields Styling
 */

/* Admin Styles for Product Edit Page */
.honey-custom-fields {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.honey-custom-fields .form-field {
    margin-bottom: 15px;
}

.honey-custom-fields .form-field label {
    font-weight: 600;
    color: #333;
}

.honey-custom-fields .form-field input,
.honey-custom-fields .form-field select,
.honey-custom-fields .form-field textarea {
    border: 2px solid #fdbd0a;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
}

.honey-custom-fields .form-field input:focus,
.honey-custom-fields .form-field select:focus,
.honey-custom-fields .form-field textarea:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 2px rgba(253, 189, 10, 0.2);
    outline: none;
}

/* Single Product Page Styles */
.honey-product-details {
    background: #fff;
    border: 1px solid #fdbd0a;
    border-radius: 16px;
    padding: 24px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.honey-details-title {
    color: #000;
    font: 700 24px/1.2 'Inter', sans-serif;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #fdbd0a;
}

.honey-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.honey-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(253, 189, 10, 0.05);
    border-radius: 8px;
    border-left: 4px solid #fdbd0a;
}

.honey-detail-label {
    font: 600 14px/1.2 'Inter', sans-serif;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.honey-detail-value {
    font: 500 16px/1.2 'Inter', sans-serif;
    color: #000;
    font-weight: 600;
}

.honey-detail-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.honey-detail-section-title {
    color: #000;
    font: 600 18px/1.2 'Inter', sans-serif;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
}

.honey-detail-section-title::before {
    content: '🍯';
    margin-right: 8px;
    font-size: 20px;
}

.honey-detail-text {
    color: #555;
    font: 400 16px/1.6 'Inter', sans-serif;
    margin: 0;
}

/* Product Loop Badges */
.honey-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.honey-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font: 500 12px/1.2 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.honey-badge-weight {
    background: #fdbd0a;
    color: #000;
}

.honey-badge-natural {
    background: #27ae60;
    color: #fff;
}

.honey-badge-sugar {
    background: #e74c3c;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .honey-details-grid {
        grid-template-columns: 1fr;
    }
    
    .honey-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .honey-product-badges {
        justify-content: center;
    }
}

/* Integration with existing WooCommerce styles */
.woocommerce div.product .honey-product-details {
    margin-top: 30px;
}

.woocommerce ul.products li.product .honey-product-badges {
    margin-top: 8px;
}

/* Filter integration styles */
.honey-filter-by-weight {
    margin-bottom: 16px;
}

.honey-filter-by-weight label {
    display: block;
    font: 600 14px/1.2 'Inter', sans-serif;
    color: #000;
    margin-bottom: 8px;
}

.honey-filter-by-weight select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
}

.honey-filter-by-natural {
    margin-bottom: 16px;
}

.honey-filter-by-natural label {
    display: block;
    font: 600 14px/1.2 'Inter', sans-serif;
    color: #000;
    margin-bottom: 8px;
}

.honey-filter-by-natural .honey-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.honey-filter-by-natural .honey-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.honey-filter-by-natural .honey-checkbox-item input[type="checkbox"] {
    margin: 0;
}

.honey-filter-by-natural .honey-checkbox-item label {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
}
