/* ─── Shared Page Styles ──────────────────────────────────── */
/* Used by: about, size-guide, faq, contact, reviews         */

/* Page Header */
.jj-page-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.jj-page-header__title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--jj-charcoal);
    margin-bottom: var(--space-sm);
    line-height: var(--leading-tight);
}

.jj-page-header--lg .jj-page-header__title {
    font-size: var(--text-display);
}

.jj-page-header__subtitle {
    font-size: var(--text-lg);
    color: var(--jj-charcoal-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

/* Section Header */
.jj-section__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.jj-section__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--jj-charcoal);
    margin-bottom: var(--space-sm);
}

.jj-section__rule {
    width: 48px;
    height: 2px;
    background: var(--jj-mauve);
    margin: 0 auto;
    border-radius: var(--radius-pill);
}

.jj-section__footer {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* ─── About Page ──────────────────────────────────────────── */

/* Two-col Story */
.jj-about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (max-width: 768px) {
    .jj-about-story {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.jj-about-story__content p {
    margin-bottom: var(--space-md);
    color: var(--jj-charcoal-light);
    line-height: var(--leading-relaxed);
}

.jj-about-story__content p:last-child {
    margin-bottom: 0;
}

.jj-about-story__img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.jj-about-story__img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.jj-placeholder-img--tall {
    width: 100%;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jj-rose-lighter);
    border-radius: var(--radius-lg);
}

/* About Content (WP editor) */
.jj-about-content {
    font-size: var(--text-base);
    color: var(--jj-charcoal-light);
    line-height: var(--leading-relaxed);
}

.jj-about-content p {
    margin-bottom: var(--space-md);
}

.jj-about-content h2,
.jj-about-content h3 {
    font-family: var(--font-heading);
    color: var(--jj-charcoal);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

/* Steps (shared for about + home) */
.jj-step {
    text-align: center;
    padding: var(--space-lg);
}

.jj-step__icon {
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center;
}

.jj-step__number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--jj-mauve);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.jj-step__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    color: var(--jj-charcoal);
}

.jj-step__desc {
    font-size: var(--text-sm);
    color: var(--jj-charcoal-light);
    line-height: var(--leading-relaxed);
}

/* Value Cards */
.jj-value-card .jj-value-card__body {
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
}

.jj-value-card__icon {
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center;
}

.jj-value-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    color: var(--jj-charcoal);
}

.jj-value-card__desc {
    font-size: var(--text-sm);
    color: var(--jj-charcoal-light);
    line-height: var(--leading-relaxed);
}

/* Process steps (old classes kept for compat) */
.jj-about-process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.jj-about-process__step {
    padding: var(--space-xl);
}

.jj-about-process__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jj-rose-lighter);
    border-radius: var(--radius-circle);
    color: var(--jj-mauve);
}

.jj-about-process__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.jj-about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.jj-about-values__card {
    background: var(--jj-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.jj-about-values__card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

@media (max-width: 768px) {
    .jj-about-process,
    .jj-about-values {
        grid-template-columns: 1fr;
    }
}

/* ─── Size Guide Page ─────────────────────────────────────── */

.jj-sg-section {
    margin-bottom: var(--space-2xl);
}

.jj-sg-section--centered {
    text-align: center;
}

.jj-sg-section__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--jj-charcoal);
    margin-bottom: var(--space-lg);
}

/* Measurement Steps */
.jj-sg-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.jj-sg-step {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.jj-sg-step__number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-circle);
    background: var(--jj-mauve);
    color: var(--jj-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--text-sm);
}

.jj-sg-step__content h3 {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    color: var(--jj-charcoal);
    margin-bottom: var(--space-xs);
}

.jj-sg-step__content p {
    font-size: var(--text-sm);
    color: var(--jj-charcoal-light);
    line-height: var(--leading-relaxed);
}

/* Size Table */
.jj-sg-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.jj-sg-table {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--jj-rose-light);
}

.jj-sg-table th {
    background: var(--jj-mauve);
    color: var(--jj-white);
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.jj-sg-table td {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-sm);
    color: var(--jj-charcoal);
    border-bottom: 1px solid var(--jj-rose-lighter);
}

.jj-sg-table tbody tr:nth-child(odd) {
    background: var(--jj-rose-lighter);
}

.jj-sg-table tbody tr:nth-child(even) {
    background: var(--jj-white);
}

.jj-sg-table tbody tr:last-child td {
    border-bottom: none;
}

/* Old size table classes kept for compat */
.jj-size-table {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-2xl);
}

.jj-size-table th {
    background: var(--jj-mauve);
    color: var(--jj-white);
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.jj-size-table td {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--jj-rose-lighter);
}

.jj-size-table tr:nth-child(even) td {
    background: var(--jj-rose-lighter);
}

.jj-size-table tr:last-child td {
    border-bottom: none;
}

/* Need Help CTA */
.jj-sg-cta {
    background: var(--jj-rose-lighter);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    margin-top: var(--space-2xl);
}

.jj-sg-cta h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    color: var(--jj-charcoal);
}

.jj-sg-cta p {
    color: var(--jj-charcoal-light);
    margin-bottom: var(--space-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Size guide old classes */
.jj-size-guide__steps {
    margin-bottom: var(--space-2xl);
}

.jj-size-guide__steps ol {
    list-style: decimal;
    padding-left: var(--space-lg);
}

.jj-size-guide__steps li {
    padding: var(--space-sm) 0;
    line-height: var(--leading-relaxed);
}

/* ─── FAQ Page ────────────────────────────────────────────── */

/* Search */
.jj-faq-search {
    margin-bottom: var(--space-2xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.jj-faq-search__field {
    position: relative;
}

.jj-faq-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--jj-charcoal-lighter);
    pointer-events: none;
}

.jj-faq-search__input {
    padding-left: 44px;
}

/* FAQ Category */
.jj-faq-category {
    margin-bottom: var(--space-2xl);
}

.jj-faq-category__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--jj-charcoal);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--jj-rose);
}

/* Old FAQ classes kept for compat */
.jj-faq-group {
    margin-bottom: var(--space-2xl);
}

.jj-faq-group__title {
    font-size: var(--text-lg);
    color: var(--jj-mauve-dark);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--jj-rose-light);
}

/* No Results */
.jj-faq-no-results {
    text-align: center;
    padding: var(--space-2xl) 0;
    color: var(--jj-charcoal-light);
}

.jj-faq-no-results a {
    text-decoration: underline;
}

/* ─── Contact Page ────────────────────────────────────────── */

.jj-contact-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--space-2xl);
    align-items: flex-start;
}

@media (max-width: 768px) {
    .jj-contact-layout {
        grid-template-columns: 1fr;
    }
}

/* Contact Form */
.jj-contact-form {
    background: var(--jj-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
}

.jj-contact-form__msg {
    font-size: var(--text-sm);
    margin-top: var(--space-md);
    text-align: center;
    min-height: 1.4em;
}

.jj-contact-form__msg--success {
    color: var(--jj-success);
}

.jj-contact-form__msg--error {
    color: var(--jj-error);
}

/* Info Card */
.jj-contact-info__card {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

.jj-contact-info__body {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.jj-contact-info__item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.jj-contact-info__item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.jj-contact-info__label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--jj-charcoal-lighter);
    margin-bottom: var(--space-2xs);
}

.jj-contact-info__value {
    font-size: var(--text-base);
    color: var(--jj-charcoal);
}

a.jj-contact-info__value:hover {
    color: var(--jj-mauve-dark);
}

.jj-contact-info__divider {
    height: 1px;
    background: var(--jj-rose-light);
}

.jj-contact-info__social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.jj-contact-info__social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-circle);
    background: var(--jj-rose-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jj-charcoal);
    transition: background var(--duration-fast), color var(--duration-fast);
}

.jj-contact-info__social-link:hover {
    background: var(--jj-mauve);
    color: var(--jj-white);
}

/* Old contact classes kept for compat */
.jj-contact-info {
    background: var(--jj-rose-lighter);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
}

.jj-contact-info__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jj-white);
    border-radius: var(--radius-circle);
    flex-shrink: 0;
    color: var(--jj-mauve);
}

.jj-contact-info h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.jj-contact-info p {
    font-size: var(--text-sm);
    color: var(--jj-charcoal-light);
}

.jj-contact-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--jj-rose);
}

.jj-contact-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-circle);
    border: 1.5px solid var(--jj-rose);
    color: var(--jj-charcoal);
    transition: all var(--duration-fast);
}

.jj-contact-social a:hover {
    background: var(--jj-mauve);
    border-color: var(--jj-mauve);
    color: var(--jj-white);
}

/* ─── Reviews Page ────────────────────────────────────────── */

/* Aggregate Stats */
.jj-reviews-stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-2xl);
    background: var(--jj-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    align-items: center;
}

@media (max-width: 600px) {
    .jj-reviews-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.jj-reviews-stats__score {
    text-align: center;
}

.jj-reviews-stats__number {
    font-family: var(--font-heading);
    font-size: var(--text-display);
    font-weight: 700;
    color: var(--jj-charcoal);
    display: block;
    line-height: 1;
}

.jj-reviews-stats__stars {
    margin-top: var(--space-sm);
}

.jj-reviews-stats__count {
    font-size: var(--text-sm);
    color: var(--jj-charcoal-lighter);
    display: block;
    margin-top: var(--space-xs);
}

/* Star distribution bars */
.jj-reviews-stats__bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.jj-reviews-stats__bar-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.jj-reviews-stats__bar-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--jj-charcoal);
    width: 14px;
    text-align: right;
    flex-shrink: 0;
}

.jj-reviews-stats__bar-track {
    flex: 1;
    height: 8px;
    background: var(--jj-rose-lighter);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.jj-reviews-stats__bar-fill {
    height: 100%;
    background: var(--jj-gold);
    border-radius: var(--radius-pill);
    transition: width var(--duration-slow) var(--ease-out);
    min-width: 0;
}

.jj-reviews-stats__bar-count {
    font-size: var(--text-xs);
    color: var(--jj-charcoal-lighter);
    width: 28px;
    text-align: right;
    flex-shrink: 0;
}

/* Old stat classes for compat */
.jj-reviews-stats__avg {
    text-align: center;
    flex-shrink: 0;
}

.jj-reviews-stats__bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

/* Filter Pills */
.jj-reviews-filters,
.jj-reviews-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

/* Review Cards */
.jj-review-card .jj-review-card__body {
    padding: var(--space-lg);
}

.jj-review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-sm);
}

.jj-review-card__name,
.jj-review-card__author {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--jj-charcoal);
}

.jj-review-card__date {
    font-size: var(--text-xs);
    color: var(--jj-charcoal-lighter);
}

.jj-review-card .jj-stars {
    margin-bottom: var(--space-sm);
}

.jj-review-card__text {
    font-size: var(--text-sm);
    color: var(--jj-charcoal-light);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-sm);
}

.jj-review-card__product {
    font-size: var(--text-xs);
    color: var(--jj-mauve);
    font-weight: 500;
    display: inline-block;
}

.jj-review-card__product:hover {
    color: var(--jj-mauve-dark);
    text-decoration: underline;
}

.jj-review-card__verified {
    font-size: var(--text-xs);
    color: var(--jj-success);
    font-weight: 500;
}

/* Empty State (shared) */
.jj-empty-state {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.jj-empty-state svg {
    margin: 0 auto var(--space-lg);
}

.jj-empty-state h2 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.jj-empty-state p {
    color: var(--jj-charcoal-light);
    margin-bottom: var(--space-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
