/* ================================================================
   Stuff Listings — Deal Cards  v3.0
   ================================================================ */

/* ── Page wrapper (adds left/right breathing room) ───────────────── */
.deals-page-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 28px 52px;
}
@media (max-width: 768px) {
    .deals-page-wrapper { padding: 14px 14px 36px; }
}

/* ── New-deals notification banner ──────────────────────────────── */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.deals-new-banner {
    display: none;
    background: #ff3b5c;
    color: #fff;
    text-align: center;
    padding: 13px 20px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    animation: slideDown 0.3s ease;
    letter-spacing: 0.2px;
}
.deals-new-banner:hover { background: #e02246; }

/* ── Hot deals section ───────────────────────────────────────────── */
.hot-deals-section {
    margin-bottom: 28px;
}
.hot-deals-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b00;
}
.hot-deals-header h2 {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.hot-deals-subtitle {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* Section divider between hot deals and all deals */
.deals-section-label {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* ── Category filter bar ─────────────────────────────────────────── */
.deal-categories-menu {
    margin: 10px 0 20px;
}
.deal-categories-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.deal-categories-menu ul li a {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #f2f2f2;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.deal-categories-menu ul li a:hover {
    background: #e8e8e8;
    color: #111;
    text-decoration: none;
}
.deal-categories-menu ul li a.active-category {
    background: #1d2b4f;
    color: #fff;
    border-color: #1d2b4f;
}
/* Hot Deals pill — orange accent when active */
.deal-categories-menu ul li a.hot-deals-pill.active-category {
    background: #ff6b00;
    border-color: #ff6b00;
    color: #fff;
}
.deal-categories-menu ul li a.hot-deals-pill:not(.active-category):hover {
    background: #fff0e6;
    color: #ff6b00;
    border-color: #ff6b00;
}

/* ── Grid — 6 desktop / 2 mobile ─────────────────────────────────── */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 4px 0 28px;
}
@media (max-width: 1200px) { .deals-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 960px)  { .deals-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px)  { .deals-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 480px)  { .deals-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ── Card shell ──────────────────────────────────────────────────── */
.deal-item {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.deal-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    border-color: #d8d8d8;
}
.deal-item.deal-hot {
    border-color: #ff6b00;
}

/* ── Top bar: discount (left) · source logo (centre) · time (right) */
.deal-top-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 9px 10px 7px;
    min-height: 38px;
    gap: 4px;
    flex-shrink: 0;
}
.deal-top-bar .deal-top-time {
    text-align: right;
}

/* Source badge */
.deal-source {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 3px 7px;
    flex-shrink: 0;
    max-width: 60%;
}
img.source-logo {
    height: 16px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
    display: block;
    vertical-align: middle;
}
.source-text {
    font-size: 10px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.1px;
    line-height: 1;
    white-space: nowrap;
}

/* Discount badge */
.deal-badge {
    background: #ff3b5c;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

/* Time shown top-right when no discount badge */
.deal-top-time {
    font-size: 10px;
    color: #aaa;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Product image ───────────────────────────────────────────────── */
.deal-image-wrap {
    display: block;
    background: #f5f6f8;
    height: 170px;
    overflow: hidden;
    text-decoration: none;
    flex-shrink: 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}
.deal-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    display: block;
    transition: transform 0.28s ease;
}
.deal-item:hover .deal-thumbnail {
    transform: scale(1.06);
}

/* ── Card body ───────────────────────────────────────────────────── */
.deal-body {
    padding: 8px 10px 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Title */
h2.deal-title,
.deal-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    margin: 3px 0 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1a1a1a !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    min-height: 2.9em;
}
.deal-title a            { color: inherit !important; text-decoration: none !important; }
.deal-title a:hover      { color: #1d2b4f !important; }

/* ── Pricing ─────────────────────────────────────────────────────── */
.deal-pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 5px;
}
.deal-price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    line-height: 1;
}
.deal-mrp {
    font-size: 12px !important;
    color: #b8b8b8 !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
    line-height: 1;
}

/* ── View count (card) ───────────────────────────────────────────── */
.deal-views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: #c0c0c0;
    margin-top: 4px;
    line-height: 1;
}
.deal-views svg {
    flex-shrink: 0;
    vertical-align: middle;
}

/* ── Get Deal button ─────────────────────────────────────────────── */
a.deal-button,
.deal-button {
    display: block !important;
    width: 100% !important;
    background: #FFD814 !important;
    color: #0F1111 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 12px 10px !important;
    border-radius: 0 0 13px 13px !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: background 0.15s ease !important;
    border: none !important;
    box-shadow: none !important;
    line-height: 1.3 !important;
    letter-spacing: 0.2px;
    margin-top: auto;
    box-sizing: border-box !important;
    cursor: pointer;
}
a.deal-button:hover,
.deal-button:hover {
    background: #F0C800 !important;
    color: #0F1111 !important;
    text-decoration: none !important;
}

/* ── Loader ──────────────────────────────────────────────────────── */
#load-more-spinner {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

/* ================================================================
   Single Deal Page
   ================================================================ */
.single-deal-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.single-deal-breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 22px;
    line-height: 1.5;
}
.single-deal-breadcrumb a { color: #999; text-decoration: none; }
.single-deal-breadcrumb a:hover { text-decoration: underline; }

/* Two-column layout */
.single-deal-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .single-deal-layout { grid-template-columns: 1fr; gap: 20px; }
}

/* Image column */
.single-deal-image-col {
    background: #f5f6f8;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 330px;
    border: 1px solid #eee;
    position: sticky;
    top: 90px;
}
.single-deal-image-col img {
    max-width: 100%;
    max-height: 330px;
    object-fit: contain;
    display: block;
}

/* Info column */
.single-deal-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.single-deal-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.single-deal-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #1a1a1a !important;
    margin: 0 !important;
}

/* Price block */
.single-deal-pricing {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.single-deal-price {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    line-height: 1;
}
.single-deal-mrp {
    font-size: 18px;
    color: #bbb;
    text-decoration: line-through;
    font-weight: 400;
}
.single-deal-savings-pill {
    font-size: 13px;
    font-weight: 700;
    color: #27ae60;
    background: #eafaf1;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

/* CTA */
.single-deal-cta-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
a.single-deal-cta,
.single-deal-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #FFD814 !important;
    color: #0F1111 !important;
    padding: 16px 44px !important;
    border-radius: 12px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: background 0.15s ease !important;
    align-self: flex-start;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    letter-spacing: 0.2px;
}
a.single-deal-cta:hover,
.single-deal-cta:hover {
    background: #F0C800 !important;
    color: #0F1111 !important;
    text-decoration: none !important;
}
.single-deal-cta-note {
    font-size: 12px;
    color: #bbb;
    margin: 0;
}

/* Meta */
.single-deal-meta {
    font-size: 13px;
    color: #aaa;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.single-deal-meta a { color: #aaa; text-decoration: underline; }
.single-deal-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.single-deal-views svg { vertical-align: middle; }

/* Description */
.single-deal-description {
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.single-deal-description h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 10px !important;
    text-transform: none !important;
}
.single-deal-description p {
    font-size: 14px;
    line-height: 1.75;
    color: #666;
    white-space: pre-line;
    margin: 0;
}

/* Related deals */
.single-deal-related {
    max-width: 1060px;
    margin: 44px auto 0;
    padding: 28px 20px 0;
    border-top: 1px solid #eee;
}
.single-deal-related h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 18px !important;
    text-transform: none !important;
}
