/**
 * FASP Trust Signals — Styles
 * Matches the Swiss-industrial design system of FireAlarmSpareParts.com
 * Uses the existing CSS custom properties from the child theme.
 */

/* ─── Variables (fallbacks if child theme vars aren't loaded yet) ─── */
:root {
    --fasp-trust-red: #b11f24;
    --fasp-trust-red-deep: #7f1217;
    --fasp-trust-ink: #151515;
    --fasp-trust-ink-soft: #525252;
    --fasp-trust-bg: #f5f3ef;
    --fasp-trust-surface: #ffffff;
    --fasp-trust-line: #d7d0c8;
}

/* ═══════════════════════════════════════════════
   1. PHONE NUMBER TOP BAR
   ═══════════════════════════════════════════════ */

.fasp-topbar {
    background: var(--fasp-trust-ink, #151515);
    color: #ffffff;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.01em;
    padding: 8px 0;
    position: relative;
    z-index: 1000;
}

.fasp-topbar__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fasp-topbar__left,
.fasp-topbar__right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fasp-topbar__icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.fasp-topbar__label {
    opacity: 0.7;
}

.fasp-topbar__phone {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: opacity 0.2s ease;
}

.fasp-topbar__phone:hover {
    opacity: 0.85;
    color: #ffffff;
}

.fasp-topbar__sep {
    opacity: 0.3;
    margin: 0 4px;
}

.fasp-topbar__right span {
    opacity: 0.7;
}

/* Mobile: stack and simplify */
@media (max-width: 768px) {
    .fasp-topbar__inner {
        flex-direction: column;
        gap: 4px;
        padding: 0 16px;
    }
    .fasp-topbar__right {
        display: none;
    }
    .fasp-topbar {
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════
   2. TRUST BANNER (below header)
   ═══════════════════════════════════════════════ */

.fasp-trust-banner {
    background: var(--fasp-trust-surface, #ffffff);
    border-bottom: 1px solid var(--fasp-trust-line, #d7d0c8);
    padding: 14px 0;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.fasp-trust-banner__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.fasp-trust-banner__item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.fasp-trust-banner__icon {
    display: flex;
    align-items: center;
    color: var(--fasp-trust-red, #b11f24);
    flex-shrink: 0;
}

.fasp-trust-banner__icon svg {
    width: 22px;
    height: 22px;
}

.fasp-trust-banner__text {
    font-size: 14px;
    font-weight: 600;
    color: var(--fasp-trust-ink, #151515);
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .fasp-trust-banner__inner {
        gap: 16px 24px;
        justify-content: center;
    }
    .fasp-trust-banner__text {
        font-size: 12px;
    }
    .fasp-trust-banner__icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .fasp-trust-banner__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 16px;
    }
}

/* ═══════════════════════════════════════════════
   3. PRODUCT PAGE — Security Badges (near add-to-cart)
   ═══════════════════════════════════════════════ */

.fasp-product-trust {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--fasp-trust-line, #d7d0c8);
}

.fasp-product-trust__row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.fasp-product-trust__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fasp-trust-ink-soft, #525252);
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.fasp-product-trust__badge svg {
    color: var(--fasp-trust-red, #b11f24);
    flex-shrink: 0;
}

.fasp-product-trust__badge--link {
    text-decoration: none;
    color: var(--fasp-trust-ink-soft, #525252);
    transition: color 0.2s ease;
}

.fasp-product-trust__badge--link:hover {
    color: var(--fasp-trust-red, #b11f24);
}

.fasp-product-trust__payments {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fasp-product-trust__pay-label {
    font-size: 12px;
    color: var(--fasp-trust-ink-soft, #525252);
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.fasp-pay-icon {
    height: 22px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.fasp-pay-icon:hover {
    opacity: 1;
}

/* ═══════════════════════════════════════════════
   4. PRODUCT PAGE — Warranty Badge
   ═══════════════════════════════════════════════ */

.fasp-warranty-badge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 16px;
    background: #faf8f5;
    border: 1px solid var(--fasp-trust-line, #d7d0c8);
    border-radius: 8px;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.fasp-warranty-badge svg {
    color: var(--fasp-trust-red, #b11f24);
    flex-shrink: 0;
    margin-top: 1px;
}

.fasp-warranty-badge__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fasp-warranty-badge__text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--fasp-trust-ink, #151515);
}

.fasp-warranty-badge__text a {
    font-size: 13px;
    color: var(--fasp-trust-red, #b11f24);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.fasp-warranty-badge__text a:hover {
    opacity: 0.8;
}

/* ═══════════════════════════════════════════════
   5. FOOTER TRUST BADGES
   ═══════════════════════════════════════════════ */

.fasp-footer-trust {
    background: var(--fasp-trust-surface, #ffffff);
    border-top: 1px solid var(--fasp-trust-line, #d7d0c8);
    border-bottom: 1px solid var(--fasp-trust-line, #d7d0c8);
    padding: 28px 0;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.fasp-footer-trust__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.fasp-footer-trust__badge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.fasp-footer-trust__badge svg {
    color: var(--fasp-trust-red, #b11f24);
    flex-shrink: 0;
    margin-top: 2px;
}

.fasp-footer-trust__badge div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fasp-footer-trust__badge strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--fasp-trust-ink, #151515);
}

.fasp-footer-trust__badge span {
    font-size: 12px;
    color: var(--fasp-trust-ink-soft, #525252);
}

.fasp-footer-trust__badge a {
    font-size: 12px;
    color: var(--fasp-trust-red, #b11f24);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.fasp-footer-trust__badge a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .fasp-footer-trust__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 24px;
    }
}

@media (max-width: 480px) {
    .fasp-footer-trust__inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ═══════════════════════════════════════════════
   6. WooCommerce Reviews Tab Enhancement
   ═══════════════════════════════════════════════ */

.woocommerce-Reviews .star-rating {
    color: var(--fasp-trust-red, #b11f24);
}

.woocommerce #reviews #comments ol.commentlist li .comment-text .star-rating {
    color: var(--fasp-trust-red, #b11f24);
}

.woocommerce p.stars a {
    color: var(--fasp-trust-red, #b11f24);
}

.woocommerce p.stars a:hover ~ a::before,
.woocommerce p.stars.selected a.active ~ a::before {
    color: var(--fasp-trust-red, #b11f24);
}

/* Make the reviews tab more inviting when empty */
.woocommerce-Reviews .woocommerce-noreviews {
    padding: 20px;
    background: #faf8f5;
    border: 1px solid var(--fasp-trust-line, #d7d0c8);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: var(--fasp-trust-ink-soft, #525252);
}
