/*
 * TheTopDeal Hero — Redesign v3.0.0
 * Editorial layout: brand band → primary deal + 3 minis → section heading
 * No more dark navy, no more "headline competing with deal"
 */

.ttd-hero-v3 {
    background: #faf8f3;
    border-bottom: 1px solid #e8e6e0;
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ─── 1. Top brand band ───────────────────────────────── */
.ttd-hero-v3__brand {
    background: #1a1a18;
    padding: 12px 0;
}
.ttd-hero-v3__brand-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.ttd-hero-v3__logo {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
}
.ttd-hero-v3__logo span {
    color: #e84f2b;
    margin: 0 2px;
}
.ttd-hero-v3__tagline {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.04em;
}

/* ─── 2. Main content row ─────────────────────────────── */
.ttd-hero-v3__main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 56px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    align-items: stretch;
}

/* ─── 3. Primary deal card (LARGE, left) ──────────────── */
.ttd-hero-v3__primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid #e8e6e0;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    min-height: 380px;
}
.ttd-hero-v3__primary:hover {
    border-color: #e84f2b;
    box-shadow: 0 16px 48px rgba(232, 79, 43, 0.14);
    transform: translateY(-2px);
}
.ttd-hero-v3__primary-media {
    position: relative;
    background: #f8f7f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    overflow: hidden;
}
.ttd-hero-v3__primary-media img {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.ttd-hero-v3__primary:hover .ttd-hero-v3__primary-media img {
    transform: scale(1.04);
}
.ttd-hero-v3__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #e84f2b;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(232, 79, 43, 0.3);
    font-variant-numeric: tabular-nums;
}
.ttd-hero-v3__primary-body {
    padding: 36px 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.ttd-hero-v3__eyebrow-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.ttd-hero-v3__eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #e84f2b;
}
.ttd-hero-v3__cat {
    font-size: 11px;
    font-weight: 500;
    color: #888780;
    background: #f0efea;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ttd-hero-v3__primary-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a18;
    margin: 0;
    letter-spacing: -0.015em;
    /* Cap at 3 lines so longer titles still fit */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ttd-hero-v3__pricing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}
.ttd-hero-v3__price {
    font-size: 38px;
    font-weight: 800;
    color: #1a1a18;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.ttd-hero-v3__orig {
    font-size: 18px;
    color: #888780;
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}
.ttd-hero-v3__save {
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
    background: #dcfce7;
    padding: 5px 10px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
}
.ttd-hero-v3__cta {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1a1a18;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 8px;
    width: fit-content;
    transition: background 0.2s ease, transform 0.15s ease;
}
.ttd-hero-v3__primary:hover .ttd-hero-v3__cta {
    background: #e84f2b;
}
.ttd-hero-v3__cta svg {
    transition: transform 0.2s ease;
}
.ttd-hero-v3__primary:hover .ttd-hero-v3__cta svg {
    transform: translateX(3px);
}

/* ─── 4. Secondary deals (mini cards, right column) ──── */
.ttd-hero-v3__secondary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 380px;
}
.ttd-hero-v3__mini {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e6e0;
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    flex: 1;
    align-items: center;
}
.ttd-hero-v3__mini:hover {
    border-color: #e84f2b;
    box-shadow: 0 6px 18px rgba(232, 79, 43, 0.1);
    transform: translateX(-2px);
}
.ttd-hero-v3__mini-media {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    background: #f8f7f4;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
}
.ttd-hero-v3__mini-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.ttd-hero-v3__mini-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #e84f2b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
}
.ttd-hero-v3__mini-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ttd-hero-v3__mini-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a18;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ttd-hero-v3__mini-price {
    font-size: 14px;
    color: #1a1a18;
    font-variant-numeric: tabular-nums;
}
.ttd-hero-v3__mini-price strong {
    font-weight: 800;
}
.ttd-hero-v3__mini-orig {
    color: #888780;
    text-decoration: line-through;
    font-size: 12px;
    margin-left: 4px;
}

/* ─── 5. Section heading at the bottom of the hero ───── */
.ttd-hero-v3__section-head {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px 32px;
    border-top: 1px solid #e8e6e0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}
.ttd-hero-v3__section-head h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a18;
    margin: 0;
    letter-spacing: -0.02em;
}
.ttd-hero-v3__see-all {
    font-size: 14px;
    font-weight: 600;
    color: #e84f2b;
    text-decoration: none;
    transition: opacity 0.15s;
}
.ttd-hero-v3__see-all:hover {
    opacity: 0.75;
}

/* ─── 6. Responsive ──────────────────────────────────── */
@media (max-width: 960px) {
    .ttd-hero-v3__main {
        grid-template-columns: 1fr;
        padding: 32px 20px;
        gap: 20px;
    }
    .ttd-hero-v3__primary {
        min-height: auto;
    }
    .ttd-hero-v3__primary-title {
        font-size: 22px;
    }
    .ttd-hero-v3__price {
        font-size: 30px;
    }
    .ttd-hero-v3__section-head {
        padding: 20px;
    }
    .ttd-hero-v3__section-head h2 {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .ttd-hero-v3__brand-inner {
        padding: 0 16px;
    }
    .ttd-hero-v3__brand-inner {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    .ttd-hero-v3__primary {
        grid-template-columns: 1fr;
    }
    .ttd-hero-v3__primary-media {
        padding: 24px;
    }
    .ttd-hero-v3__primary-media img {
        max-height: 220px;
    }
    .ttd-hero-v3__primary-body {
        padding: 24px 24px 28px;
        gap: 12px;
    }
    .ttd-hero-v3__primary-title {
        font-size: 19px;
        -webkit-line-clamp: 4;
    }
    .ttd-hero-v3__price {
        font-size: 26px;
    }
    .ttd-hero-v3__mini {
        padding: 10px;
    }
    .ttd-hero-v3__mini-media {
        width: 72px;
        height: 72px;
    }
    .ttd-hero-v3__cta {
        width: 100%;
    }
}
