/* ===================================
   GUIITMARKET - TEMU Brand Styles
   Load order: styles.css → brands.css → temu.css
   =================================== */

/* ── Hero overrides ── */
.brand-hero { background: #fb7701; }

.hero-brand-image { max-width: 160px; }

.hero-promo { color: #c2410c; }

.hero-promo-label { opacity: 0.6; }

/* Ghost variant — used for secondary hero button */
.hero-promo-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

/* ── Info box overrides ── */
.info-box { border-left: 3px solid #fb7701; }

.info-box-text strong { color: #c2410c; }

/* ── Products overrides ── */
.product-link { color: #fb7701; }

/* ── Featured banner overrides ── */
.featured-banner {
    background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
}

.featured-banner-btn {
    background: #fb7701;
    color: white;
}

/* ── Benefits Modal ── */
.benefits-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 500;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.benefits-modal-overlay.is-open { display: flex; }

.benefits-modal {
    background: var(--background-white);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 600px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: benefitModalIn 0.22s cubic-bezier(0.34, 1.1, 0.64, 1);
}

@keyframes benefitModalIn {
    from { transform: translateY(20px) scale(0.98); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.benefits-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    gap: 1rem;
}

.benefits-modal-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.benefits-modal-subtitle {
    font-size: 0.775rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    line-height: 1.4;
}

.benefits-modal-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--text-secondary);
    transition: background 0.15s ease, color 0.15s ease;
}

.benefits-modal-close:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

.benefits-modal-body {
    overflow-y: auto;
    padding: 1rem 1.5rem 1.5rem;
    flex: 1;
}

/* ── Benefit Cards ── */
.benefits-section { margin-bottom: 0; }

.benefits-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.benefits-header h2 {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.2rem;
}

.benefits-header p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.benefits-list { display: flex; flex-direction: column; gap: 0.625rem; }

.benefit-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
}

.benefit-card.benefit-disabled { opacity: 0.38; }

.benefit-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.125rem 0.5rem;
    gap: 0.75rem;
}

.benefit-meta { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
.benefit-icon-wrap { font-size: 1.375rem; line-height: 1; flex-shrink: 0; }
.benefit-labels { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }

.benefit-badge {
    display: inline-block;
    background: #fb7701;
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.benefit-audience {
    font-size: 0.675rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.benefit-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.275rem 0.7rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.15s ease;
    background: transparent;
    white-space: nowrap;
}

.benefit-toggle.is-enabled { border: 1.5px solid #10b981; color: #10b981; }
.benefit-toggle.is-disabled { border: 1.5px solid #9ca3af; color: #9ca3af; }

.benefit-card-body { padding: 0 1.125rem 1rem; }

.benefit-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.benefit-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.benefit-note {
    font-size: 0.725rem;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 0.625rem;
}

/* Promo code row inside benefit card */
.benefit-code-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.625rem;
    flex-wrap: wrap;
}

.benefit-code-label {
    font-size: 0.725rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.benefit-code-val {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 4px;
    padding: 0.1rem 0.45rem;
    letter-spacing: 0.5px;
}

/* Share buttons */
.benefit-share { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.benefit-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: opacity 0.15s ease;
    white-space: nowrap;
    line-height: 1;
}

.benefit-share-btn:hover { opacity: 0.8; }
.benefit-share-btn.wa { background: #25d366; color: white; }
.benefit-share-btn.tg { background: #229ed9; color: white; }
.benefit-share-btn.ms { background: #0078ff; color: white; }
.benefit-share-btn.em { background: #6b7280; color: white; }
.benefit-share-btn.cp { background: #f3f4f6; color: var(--text-primary); border: 1px solid var(--border-color); }
.benefit-share-btn.cc { background: #f0fdf4; color: #065f46; border: 1px solid #6ee7b7; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-brand-image { max-width: 120px; }

    .benefits-modal { max-height: 90vh; }
    .benefits-modal-header { padding: 1rem; }
    .benefits-modal-body { padding: 0.875rem 1rem 1rem; }
}
