.testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    background: var(--product-card-bg, #ffffff);
    border: 1px solid var(--b2c-line, #e5e7eb);
    border-radius: var(--b2c-radius-lg, 16px);
    box-shadow: var(--b2c-shadow-sm);
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    color: inherit;
}

.testimonial-stars {
    color: #f5b400;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.testimonial-comment {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1rem;
}

.testimonial-meta strong {
    color: #111827;
}

.brand-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.brand-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 110px;
    padding: 1.25rem 1rem;
    background: var(--product-card-bg, #ffffff);
    border: 1px solid var(--b2c-line, #e5e7eb);
    border-radius: var(--b2c-radius-md, 12px);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.brand-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--b2c-shadow-sm);
    border-color: var(--b2c-primary, #1d4ed8);
}

.brand-tile img {
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.75);
    transition: filter 0.2s ease;
}

.brand-tile:hover img {
    filter: grayscale(0) opacity(1);
}

.brand-tile-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    line-height: 1.3;
}

.brand-showcase-grid--large {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.brand-tile--large {
    min-height: 170px;
    padding: 2rem 1.5rem;
}

.brand-tile--large img {
    max-height: 90px;
}

.brand-tile--large .brand-tile-name {
    font-size: 1rem;
}

.brand-showcase-scroll {
    overflow: hidden;
    position: relative;
    background: var(--b2c-surface-muted, #f3f4f6);
    padding: 2rem 0;

    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.brand-scroll-track {
    display: flex;
    width: max-content;
    gap: 3rem;
    animation: brand-scroll-marquee 28s linear infinite;
}

.brand-showcase-scroll:hover .brand-scroll-track {
    animation-play-state: paused;
}

@keyframes brand-scroll-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.brand-scroll-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.brand-scroll-item:hover {
    opacity: 1;
}

.brand-scroll-item img {
    max-height: 42px;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter 0.2s ease;
}

.brand-scroll-item:hover img {
    filter: grayscale(0);
}

.brand-scroll-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .brand-scroll-track { animation: none; }
}

@media (max-width: 480px) {
    .brand-showcase-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-tile { min-height: 90px; padding: 1rem 0.75rem; }
    .brand-showcase-grid--large { grid-template-columns: repeat(2, 1fr); }
    .brand-tile--large { min-height: 130px; padding: 1.25rem 1rem; }
    .brand-tile--large img { max-height: 60px; }
    .brand-showcase-scroll { padding: 1.5rem 0; }
    .brand-scroll-track { gap: 2rem; animation-duration: 18s; }
}

.newsletter-signup-submit {
    padding-top: .6rem;
    padding-bottom: .6rem;
}

@media (min-width: 576px) {
    .newsletter-email-col { flex-grow: 1.6; }
    .newsletter-phone-col { flex-grow: 1.5; min-width: 210px; }
}
