/* ============================================================
   ChairDeskExpert — Deals Page  (deals.css)
   Self-contained: tokens + reset + all component styles.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
    --teal: #31adad;
    --teal-2: #0b7e7e;
    --teal-light: rgba(49, 173, 173, .08);
    --pink: #ff2d8d;
    --pink-2: #ff4c9a;
    --dark: #0f172a;
    --muted: #64748b;
    --line: #e9edf3;
    --border: #e6edf2;
    --gradient: linear-gradient(135deg, #31adad 0%, #ff2d8d 100%);
    --ease: cubic-bezier(.4, 0, .2, 1);
    --t: .3s ease;
    --radius: 20px;
    --radius-btn: 12px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, .08);
    --shadow-hover: 0 20px 50px rgba(15, 23, 42, .12);
}

/* ---------- LAYOUT ---------- */
.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- HERO ---------- */
.dl-hero {
    background:
        radial-gradient(1200px 500px at 30% 10%, rgba(255, 45, 141, .10), transparent 60%),
        radial-gradient(900px 500px at 70% 40%, rgba(49, 173, 173, .10), transparent 60%), #fff;
    border-bottom: 1px solid var(--line);
}

.dl-hero-frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 380px;
    box-shadow: 0 18px 50px rgba(17, 24, 39, .10);
    margin: 20px 0;
}

.dl-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, .85) 0%, rgba(15, 23, 42, .4) 60%, transparent 100%);
}

.dl-hero-content {
    position: relative;
    z-index: 2;
    padding: 50px 40px;
    max-width: 640px;
}

.dl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 45, 141, .15);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(255, 45, 141, .3);
    margin-bottom: 16px;
}

.dl-hero-title {
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.6px;
    margin: 0 0 16px;
    font-size: clamp(32px, 4vw, 52px);
    color: #fff;
}

.dl-hero-title .pink {
    color: var(--pink);
}

.dl-hero-sub {
    color: rgba(255, 255, 255, .85);
    margin: 0 0 24px;
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.6;
    max-width: 50ch;
}

.dl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-hero-outline {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 2px solid rgb(0 255 132 / 30%);
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--t);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.dl-hero-chips {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dl-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.dl-hero-chip i {
    color: var(--teal);
}

/* ---------- DEAL CARD ---------- */
.deal-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--t);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.deal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(49, 173, 173, .3);
}

.deal-img {
    height: 240px;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Chair images — taller, portrait orientation */
.deal-card--chair .deal-img {
    height: 260px;
}

/* Desk images — shorter, landscape orientation */
.deal-card--desk .deal-img {
    height: 200px;
}

.deal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--t);
}

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

/* badges */
.badge-sale {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, .3);
}

.badge-sale.green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 4px 12px rgba(22, 163, 74, .3);
}

.badge-sale.teal {
    background: linear-gradient(135deg, var(--teal), #0fc1b8);
    box-shadow: 0 4px 12px rgba(49, 173, 173, .3);
}

.badge-sale.purple {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    box-shadow: 0 4px 12px rgba(139, 92, 246, .3);
}

.badge-sale.orange {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 4px 12px rgba(245, 158, 11, .3);
}

/* wishlist heart */
.wish-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .92);
    color: #94a3b8;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    transition: var(--t);
    cursor: pointer;
}

.wish-btn:hover,
.wish-btn.saved {
    color: var(--pink);
    transform: scale(1.1);
}

/* amazon hover-peek */
.amazon-peek {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: var(--dark);
    font-weight: 800;
    font-size: 13px;
    padding: 11px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    opacity: 0;
    transform: translateY(12px);
    transition: .28s var(--ease);
    text-decoration: none;
}

.amazon-peek i {
    color: var(--teal);
}

.deal-card:hover .amazon-peek {
    opacity: 1;
    transform: translateY(0);
}

/* card body */
.deal-meta {
    padding: 16px 16px 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.deal-brand {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal-2);
    margin-bottom: 6px;
}

.deal-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--dark);
    margin: 0 0 12px;
    line-height: 1.35;
}

.feature-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.feature-pills .pill {
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 5px 10px;
    border: 1px solid rgba(49, 173, 173, .2);
    background: var(--teal-light);
    color: var(--teal-2);
    text-transform: uppercase;
}

.rate-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.stars {
    color: #f59e0b;
    font-size: 13px;
    display: inline-flex;
    gap: 1px;
}

.rating-num {
    font-weight: 800;
    font-size: 13px;
    color: var(--dark);
}

.review-ct {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.low-tag {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #16a34a;
    background: rgba(22, 163, 74, .1);
    padding: 3px 8px;
    border-radius: 999px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.deal-price {
    font-weight: 900;
    color: var(--dark);
    font-size: 1.3rem;
}

.deal-price .old {
    text-decoration: line-through;
    color: #9ca3af;
    font-weight: 500;
    font-size: 14px;
    margin-right: 6px;
}

.deal-price small {
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
}

.save-pill {
    font-size: 11px;
    font-weight: 800;
    color: #16a34a;
    background: rgba(22, 163, 74, .1);
    padding: 5px 9px;
    border-radius: 8px;
    white-space: nowrap;
}

.deal-actions {
    padding: 0 16px 16px;
    display: flex;
    gap: 10px;
}

.btn-details {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--muted);
    text-align: center;
    transition: var(--t);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-details:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-light);
}

.btn-deal {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 45, 134, .25);
    transition: var(--t);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.btn-deal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 45, 134, .35);
    color: #fff;
}

/* deal grid */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ---------- CATEGORY HUB TILES ---------- */
.hub-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
}

.hub-intro .eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--teal-2);
}

.hub-intro h2 {
    font-weight: 900;
    font-size: clamp(28px, 4vw, 40px);
    margin: 10px 0 12px;
    letter-spacing: -.6px;
}

.hub-intro p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tile {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
    transition: var(--t);
    cursor: pointer;
    min-height: 240px;
}

.tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .13);
    border-color: rgba(49, 173, 173, .3);
}

.tile-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.tile-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.tile-icon.ergonomic {
    background: linear-gradient(135deg, rgba(49, 173, 173, .15), rgba(49, 173, 173, .05));
    color: var(--teal);
}

.tile-icon.gaming {
    background: linear-gradient(135deg, rgba(139, 92, 246, .15), rgba(139, 92, 246, .05));
    color: #8b5cf6;
}

.tile-icon.standing {
    background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(59, 130, 246, .05));
    color: #3b82f6;
}

.tile-icon.accessories {
    background: linear-gradient(135deg, rgba(255, 45, 141, .15), rgba(255, 45, 141, .05));
    color: var(--pink);
}

.tile h3 {
    font-weight: 900;
    font-size: 21px;
    margin: 0 0 6px;
    letter-spacing: -.4px;
    color: var(--dark);
}

.tile .blurb {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0 0 16px;
}

.tile-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: auto;
    margin-bottom: 16px;
}

.tile-stats .s b {
    display: block;
    font-weight: 900;
    font-size: 20px;
    color: var(--dark);
    line-height: 1.1;
}

.tile-stats .s span {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.tile-stats .s.save b {
    color: #16a34a;
}

.tile-go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 14px;
    color: var(--teal-2);
    background: 0;
    border: 0;
    padding: 0;
    text-decoration: none;
    cursor: pointer;
}

.tile:hover .tile-go i {
    transform: translateX(5px);
}

.tile-go i {
    transition: transform .2s ease;
}

.tile-media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fffe, #fce8f4);
}

.tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s ease;
}

.tile:hover .tile-media img {
    transform: scale(1.06);
}

.tile-media .frm {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, .94);
    color: var(--dark);
    font-weight: 800;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

/* ---------- TOP DEALS STRIP ---------- */
.strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.strip-head h2 {
    font-weight: 900;
    font-size: clamp(22px, 3vw, 30px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-badge {
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.live-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(.7);
    }
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--teal);
    padding: 10px 18px;
    border-radius: 10px;
    transition: var(--t);
    text-decoration: none;
}

.view-all-link:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

.view-all-link i {
    transition: transform .2s ease;
}

.view-all-link:hover i {
    transform: translateX(4px);
}

/* ---------- SECTIONS ---------- */
.sect {
    padding: 44px 0;
}

.sect.alt {
    background: linear-gradient(180deg, rgba(49, 173, 173, .04), #fff);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ---------- CATEGORY PAGE ---------- */
.catpage-head {
    background: linear-gradient(180deg, rgba(49, 173, 173, .06), #fff);
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
}

.catpage-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 14px;
    background: 0;
    border: 0;
    transition: color .2s;
    padding: 0;
    text-decoration: none;
    cursor: pointer;
}

.catpage-back:hover {
    color: var(--teal);
}

.catpage-title {
    font-weight: 900;
    font-size: clamp(26px, 4vw, 38px);
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 14px;
}

.catpage-sub {
    color: var(--muted);
    margin: 8px 0 0;
    font-size: 15px;
    font-weight: 500;
}

/* filter bar */
.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 8px;
    flex-wrap: wrap;
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    padding: 9px 16px;
    border-radius: 999px;
    border: 2px solid var(--line);
    background: #fff;
    color: #444;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--t);
    text-decoration: none;
    display: inline-block;
}

.chip:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.chip.on {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

.sort-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-row label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.sort-row select {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    background: #fff;
    cursor: pointer;
}

.result-ct {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 700;
    padding: 4px 0 18px;
}

.result-ct b {
    color: var(--dark);
}

.btn-loadmore {
    display: block;
    margin: 32px auto 0;
    padding: 13px 30px;
    border: 2px solid var(--teal);
    background: #fff;
    color: var(--teal);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    transition: var(--t);
    text-decoration: none;
    text-align: center;
}

.btn-loadmore:hover {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

/* no results */
.no-results-wrap {
    text-align: center;
    padding: 80px 20px;
}

.no-results-wrap .icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(49, 173, 173, .08), rgba(255, 45, 141, .08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .dl-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tiles {
        grid-template-columns: 1fr;
    }

    .tile {
        grid-template-columns: 1.2fr 1fr;
    }
}

@media (max-width: 768px) {
    .dl-hero-content {
        padding: 30px 24px;
    }

    .dl-hero-frame {
        min-height: 440px;
    }

    .dl-hero-overlay {
        background: linear-gradient(180deg, rgba(15, 23, 42, .7) 0%, rgba(15, 23, 42, .9) 100%);
    }

    .tile {
        grid-template-columns: 1fr;
    }

    .tile-media {
        min-height: 180px;
        order: -1;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 575px) {
    .dl-grid {
        grid-template-columns: 1fr;
    }
}
