/*
===============================================================================
BIG TEXAN D2C - SHARED COMPONENT STYLES
===============================================================================
Reusable component styles used across multiple pages.
Product cards, trust bar, section headings, etc.

AGENT RULE: Add new shared component styles here, not in page CSS.
===============================================================================
*/

/* --- TRUST BAR --- */
.trust-bar {
    background: var(--bg-surface);
    border-bottom: var(--border-light);
    padding: 1rem 0;
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--brand-maroon-soft);
}

/* --- SECTION HEADERS --- */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: var(--text-4xl);
    color: var(--brand-maroon);
    margin-bottom: 0.5rem;
    line-height: 1.42;
    overflow: visible;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- PRODUCT CARD --- */
.product-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.product-card-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.product-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--texan-yellow);
    color: var(--brand-maroon);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.product-badge.sale {
    background: var(--color-error);
    color: white;
}

.product-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--brand-maroon-soft);
    margin-bottom: 0.5rem;
    line-height: 1.42;
    overflow: visible;
}

.product-card-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex: 1;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.product-card-price {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    line-height: 1.08;
    min-width: 0;
    color: var(--brand-maroon-soft);
}

.product-card-price[data-shopforge-price-state="discounted"] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.product-card-price[data-shopforge-price-state="discounted"] .sf-sub-price-discounted {
    order: 1;
}

.product-card-price[data-shopforge-price-state="discounted"] .sf-sub-price-original {
    order: 2;
    margin-right: 0;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.1;
    text-decoration: line-through;
}

.product-card-price[data-shopforge-price-state="subscription-renewal-discount"] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.product-card-price[data-shopforge-price-state="subscription-renewal-discount"] .sf-sub-price-renewal {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 800;
    line-height: 1.2;
}

.product-card-price[data-shopforge-price-state="subscription-renewal-discount"] .sf-sub-price-renewal-original {
    text-decoration: line-through;
}

.product-card-price .original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-right: 0.5rem;
}

.product-card .btn {
    padding: 0.6rem 1rem;
    font-size: var(--text-sm);
    max-width: 100%;
    text-align: center;
    white-space: nowrap;
}

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* --- FEATURE CARDS --- */
.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--brand-maroon-soft);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* --- TESTIMONIAL CARD --- */
.testimonial-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-primary);
}

.testimonial-location {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* --- STARS RATING --- */
.stars {
    display: flex;
    gap: 0.125rem;
    color: var(--texan-yellow);
}

.stars svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* --- ACCORDION / FAQ --- */
.accordion {
    border: var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-item {
    border-bottom: var(--border-light);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--bg-surface);
    border: none;
    text-align: left;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.accordion-header:hover {
    background: var(--brand-cream);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.accordion-item.open .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 1.25rem 1.5rem;
    background: var(--bg-surface);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
    padding: 1rem 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.breadcrumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--brand-maroon);
}

.breadcrumbs span {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.breadcrumbs .current {
    color: var(--text-primary);
    font-weight: 600;
}

.page-neon .breadcrumbs a {
    color: var(--brand-cream);
    opacity: 1;
}

.page-neon .breadcrumbs a:hover {
    color: var(--texan-yellow);
}

.page-neon .breadcrumbs span {
    color: rgba(245, 239, 227, 0.7);
    opacity: 1;
}

.page-neon .breadcrumbs .current {
    color: var(--texan-yellow);
}

/* --- NOTIFICATION / TOAST --- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-surface);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(120%);
    opacity: 0;
    transition: all var(--transition-base);
    z-index: var(--z-modal);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--color-success);
}

.toast.error {
    border-left: 4px solid var(--color-error);
}

/* --- LOADING SPINNER --- */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--brand-tan);
    border-top-color: var(--brand-maroon);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .trust-bar-inner {
        gap: 1rem;
    }

    .trust-item {
        font-size: var(--text-xs);
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}
