/* WP Specification Plugin Styles */

:root {
    --wp-spec-primary: #2563eb;
    --wp-spec-primary-hover: #1d4ed8;
    --wp-spec-secondary: #64748b;
    --wp-spec-bg-light: #f8fafc;
    --wp-spec-border: #e2e8f0;
    --wp-spec-text: #1e293b;
    --wp-spec-text-muted: #64748b;
}

.wp-spec-single-product {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--wp-spec-text);
    line-height: 1.6;
}

.wp-spec-row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.wp-spec-col-half {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 15px;
}

@media (max-width: 768px) {
    .wp-spec-col-half {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Gallery and Summary */
.product-gallery {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.product-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.product-summary {
    background: var(--wp-spec-bg-light);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Rating Bars */
.rating-bar-wrapper {
    margin-bottom: 15px;
}

.rating-label {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

.rating-label span {
    color: var(--wp-spec-primary);
}

.rating-bar-bg {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    background: linear-gradient(90deg, var(--wp-spec-primary), #60a5fa);
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specification Tables */
.spec-group {
    margin-top: 30px;
}

.spec-group h3 {
    border-bottom: 2px solid var(--wp-spec-primary);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--wp-spec-border);
}

.spec-table td {
    padding: 12px;
}

.spec-label {
    width: 30%;
    background: #f1f5f9;
    font-weight: 600;
    color: var(--wp-spec-secondary);
}

/* Forms */
.wp-spec-user-rating-form {
    background: #fff;
    border: 1px solid var(--wp-spec-border);
    padding: 25px;
    border-radius: 12px;
}

.rating-input-field {
    margin-bottom: 15px;
}

.rating-input-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.rating-input-field input[type="range"] {
    width: 100%;
    accent-color: var(--wp-spec-primary);
}

.mt-4 {
    margin-top: 2rem;
}

/* Buttons */
.add-to-compare {
    background: var(--wp-spec-primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.add-to-compare:hover {
    background: var(--wp-spec-primary-hover);
}