@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    
    --accent-primary: #0f172a;
    --accent-secondary: #2563eb;
    --accent-blue-gradient: linear-gradient(135deg, #2563eb, #1d4ed8);
    --accent-deal-gradient: linear-gradient(135deg, #ef4444, #f97316);
    --accent-save-gradient: linear-gradient(135deg, #10b981, #059669);
    
    --accent-success: #16a34a;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --max-width: 1260px;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 16px 32px -6px rgba(15, 23, 42, 0.08), 0 6px 12px -3px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 22px 40px -10px rgba(37, 99, 235, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

html, body { 
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body { 
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
    background-color: var(--bg-base); 
    color: var(--text-main); 
    line-height: 1.5; 
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; width: 100%; }
a { text-decoration: none; color: inherit; transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1); }
img { max-width: 100%; height: auto; display: block; }
.container { 
    width: 100%; 
    max-width: var(--max-width); 
    margin: 0 auto; 
    padding: 0 16px; 
    box-sizing: border-box; 
}

/* Sticky Navbar on Desktop */
.navbar { 
    background: rgba(15, 23, 42, 0.96); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
    color: #fff; 
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    padding: 12px 0 0 0; 
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    box-sizing: border-box;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 12px; }
.logo { font-size: 1.45rem; font-weight: 900; color: #fff; letter-spacing: -0.6px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.logo span { background: linear-gradient(135deg, #60a5fa, #38bdf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.site-logo-img { max-height: 40px; max-width: 180px; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a { font-weight: 600; color: #94a3b8; font-size: 0.88rem; padding: 6px 12px; border-radius: 8px; transition: all 0.2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }

.btn-primary { 
    background: var(--accent-blue-gradient); 
    color: #fff; 
    padding: 9px 20px; 
    border-radius: var(--radius-sm); 
    font-weight: 700; 
    border: none; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35); 
    transition: all 0.25s ease;
}
.btn-primary:hover { 
    background: linear-gradient(135deg, #1d4ed8, #1e40af); 
    color: #fff; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45); 
}
.btn-outline { 
    background: #fff; 
    border: 1px solid var(--border-color); 
    color: var(--text-main); 
    padding: 8px 16px; 
    border-radius: var(--radius-sm); 
    cursor: pointer; 
    font-weight: 600; 
    transition: all 0.2s;
}
.btn-outline:hover { background: #f1f5f9; border-color: #cbd5e1; }

/* Sub-Navbar for Category Pills */
.sub-nav { 
    background: rgba(15, 23, 42, 0.5); 
    padding: 6px 0; 
    border-top: 1px solid rgba(255,255,255,0.06); 
    width: 100%;
    overflow: hidden;
}
.sub-nav .cat-nav { margin-bottom: 0; padding: 2px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sub-nav .cat-nav::-webkit-scrollbar { display: none; }
.sub-nav .cat-link { 
    background: rgba(255,255,255,0.06); 
    color: #cbd5e1; 
    border: 1px solid rgba(255,255,255,0.1); 
    font-size: 0.82rem; 
    font-weight: 600;
    padding: 5px 14px; 
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.2s;
}
.sub-nav .cat-link:hover { 
    background: rgba(255,255,255,0.15); 
    color: #fff; 
    border-color: rgba(255,255,255,0.25); 
}
.sub-nav .cat-link.active { 
    background: var(--accent-blue-gradient); 
    color: #fff; 
    border-color: transparent; 
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4); 
}

/* Header Search Bar */
.search-form { display: flex; width: 100%; max-width: 480px; position: relative; }
.search-input { 
    width: 100%; 
    padding: 9px 18px 9px 42px; 
    border-radius: 24px; 
    border: 1px solid rgba(255,255,255,0.15); 
    background: rgba(255,255,255,0.08); 
    color: #fff; 
    font-size: 0.88rem; 
    font-family: inherit;
    outline: none; 
    transition: all 0.25s; 
}
.search-form::before {
    content: "🔍";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    opacity: 0.6;
    pointer-events: none;
}
.search-input::placeholder { color: #94a3b8; }
.search-input:focus { 
    background: #ffffff; 
    color: #0f172a; 
    border-color: #3b82f6; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.2); 
}
.search-btn { 
    position: absolute; 
    right: 4px; 
    top: 4px; 
    bottom: 4px;
    background: var(--accent-blue-gradient); 
    color: #fff; 
    border: none; 
    padding: 0 16px; 
    border-radius: 20px; 
    cursor: pointer; 
    font-size: 0.8rem; 
    font-weight: 700; 
    transition: opacity 0.2s;
}
.search-btn:hover { opacity: 0.92; }

/* Hero Section on Homepage */
.hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    margin: 24px 0 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.08);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}
.hero-banner::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}
.hero-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 10px;
    color: #ffffff;
}
.hero-title span {
    background: linear-gradient(135deg, #60a5fa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 0.95rem;
    color: #cbd5e1;
    max-width: 620px;
    line-height: 1.5;
    margin-bottom: 18px;
}
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-feature-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Spacious & Scrollable Brand Showcase Slider */
.brand-showcase-section {
    margin: 24px 0 20px;
    width: 100%;
    box-sizing: border-box;
}
.brand-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 14px;
    gap: 10px;
}
.brand-showcase-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin: 0;
}
.brand-showcase-subtitle {
    font-size: 0.86rem;
    color: #64748b;
    margin: 3px 0 0;
}
.brand-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.swipe-hint-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    animation: pulseSwipe 2.5s infinite ease-in-out;
}
@keyframes pulseSwipe {
    0%, 100% { transform: translateX(0); opacity: 0.9; }
    50% { transform: translateX(3px); opacity: 1; border-color: #3b82f6; }
}
.brand-scroll-controls {
    display: flex;
    gap: 8px;
}
.brand-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}
.brand-nav-btn:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: scale(1.06);
}
.brand-track-wrapper {
    position: relative;
    width: 100%;
}
.brand-track-wrapper::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 0;
    bottom: 16px;
    width: 48px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(248, 250, 252, 0.95));
    pointer-events: none;
    border-radius: 0 14px 14px 0;
}
.brand-showcase-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 2px 16px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #93c5fd #f1f5f9;
}
.brand-showcase-track::-webkit-scrollbar {
    height: 5px;
}
.brand-showcase-track::-webkit-scrollbar-thumb {
    background: #93c5fd;
    border-radius: 10px;
}
.brand-showcase-track::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.brand-showcase-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 145px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    box-sizing: border-box;
}
.brand-showcase-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.14);
}
.brand-showcase-card.active {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18);
}
.brand-card-logo-wrap {
    height: 52px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.brand-card-logo-img {
    max-height: 48px;
    max-width: 95px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.04));
    transition: transform 0.2s;
}
.brand-showcase-card:hover .brand-card-logo-img {
    transform: scale(1.08);
}
.brand-card-text-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #1e293b;
    font-weight: 800;
    font-size: 1.1rem;
}
.brand-card-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    white-space: nowrap;
}
.brand-showcase-card.active .brand-card-name {
    color: #2563eb;
}

@media screen and (max-width: 640px) {
    .brand-showcase-section {
        margin: 16px 0 18px;
    }
    .brand-showcase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .brand-showcase-title {
        font-size: 1.15rem;
    }
    .brand-showcase-subtitle {
        font-size: 0.78rem;
    }
    .brand-header-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 4px;
    }
    .swipe-hint-pill {
        font-size: 0.72rem;
        padding: 3px 8px;
    }
    .brand-showcase-track {
        gap: 12px;
        padding: 4px 2px 12px 2px;
    }
    /* Peeking card effect: 34vw width guarantees the 3rd card peeks out on any phone */
    .brand-showcase-card {
        flex: 0 0 34%;
        min-width: 110px;
        max-width: 125px;
        padding: 12px 10px;
        border-radius: 12px;
    }
    .brand-card-logo-wrap {
        height: 38px;
        width: 75px;
        margin-bottom: 6px;
    }
    .brand-card-logo-img {
        max-height: 36px;
        max-width: 70px;
    }
    .brand-card-name {
        font-size: 0.8rem;
    }
    .brand-scroll-controls {
        display: flex;
    }
    .brand-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
}

/* Page Header Banner for Category & Brand Pages */
.page-header-banner {
    background: #ffffff;
    padding: 24px 28px;
    border-radius: var(--radius-md);
    margin: 16px 0 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
}
.page-header-banner h1 {
    font-size: 1.85rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 4px;
}
.page-header-banner p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.5;
}
.brand-header-banner {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Dynamic "Search By Price" Box (Matching Reference Design) */
.search-by-price-box {
    background: #f2fbf5;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: 14px 18px 16px;
    margin: 14px 0 22px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.search-by-price-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    letter-spacing: -0.2px;
}

.price-cards-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
}

.price-card-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 18px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 105px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.price-card-top {
    font-size: 0.84rem;
    font-weight: 500;
    color: #0284c7;
    line-height: 1.2;
}

.price-card-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0284c7;
    line-height: 1.3;
    margin-top: 1px;
}

.price-card-btn:hover {
    border-color: #0284c7;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(2, 132, 199, 0.12);
}

.price-card-btn.active {
    border-color: #0284c7;
    border-width: 2px;
    background: #e0f2fe;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.18);
}

.price-card-btn.active .price-card-top,
.price-card-btn.active .price-card-val {
    color: #0369a1;
}

@media screen and (max-width: 640px) {
    .search-by-price-box {
        padding: 12px 14px;
        margin: 12px 0 18px;
    }
    .price-cards-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .price-card-btn {
        min-width: auto;
        padding: 6px 8px;
        text-align: center;
        align-items: center;
    }
    .price-card-top {
        font-size: 0.74rem;
    }
    .price-card-val {
        font-size: 0.88rem;
    }
}
.brand-header-logo {
    max-height: 50px;
    max-width: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Filter & Sorting Controls Toolbar */
.filter-bar { 
    display: flex; 
    flex-wrap: nowrap; 
    justify-content: space-between; 
    align-items: center; 
    gap: 16px; 
    margin: 16px 0 24px; 
    background: #ffffff; 
    padding: 12px 18px; 
    border-radius: var(--radius-md); 
    border: 1px solid var(--border-color); 
    box-shadow: var(--shadow-sm); 
    width: 100%; 
    box-sizing: border-box;
}
.brand-scroll-bar { 
    display: flex; 
    flex-wrap: nowrap; 
    gap: 8px; 
    overflow-x: auto; 
    padding: 4px 0; 
    scrollbar-width: none; 
    -webkit-overflow-scrolling: touch; 
    flex: 1; 
    min-width: 0; 
}
.brand-scroll-bar::-webkit-scrollbar { display: none; }
.brand-scroll-bar .cat-link { 
    flex-shrink: 0; 
    font-size: 0.85rem; 
    padding: 6px 16px; 
    font-weight: 700; 
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all 0.2s ease;
}
.brand-scroll-bar .cat-link:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}
.brand-scroll-bar .cat-link.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.filter-select { 
    padding: 8px 14px; 
    border-radius: var(--radius-sm); 
    border: 1px solid #cbd5e1; 
    font-family: inherit; 
    font-size: 0.85rem; 
    font-weight: 700; 
    color: #1e293b; 
    outline: none; 
    background: #f8fafc; 
    cursor: pointer; 
    transition: all 0.2s;
}
.filter-select:hover { background: #fff; border-color: #94a3b8; }
.filter-select:focus { border-color: #2563eb; background: #fff; }

/* ============================================================
   COOL & BEAUTIFUL DESKTOP DEALS GRID UI
   ============================================================ */
.deals-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 24px; 
    margin: 20px 0 50px; 
    width: 100%;
    box-sizing: border-box;
}

.deal-card { 
    background: #ffffff; 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); 
    display: flex; 
    flex-direction: column; 
    border: 1px solid #e2e8f0; 
    box-shadow: var(--shadow-sm); 
    position: relative; 
    box-sizing: border-box;
    width: 100%;
}
.deal-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover); 
    border-color: rgba(37, 99, 235, 0.35); 
}

.card-left-col {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Image Container */
.card-img-wrap { 
    position: relative; 
    padding: 24px 20px 16px; 
    background: radial-gradient(circle at center, #ffffff 60%, #f8fafc 100%); 
    text-align: center; 
    border-bottom: 1px solid #f1f5f9; 
    overflow: hidden;
}
.card-img { 
    width: 100%; 
    height: 185px; 
    object-fit: contain; 
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); 
}
.deal-card:hover .card-img { 
    transform: scale(1.08); 
}

/* Smart Badges */
.discount-badge { 
    position: absolute; 
    top: 14px; 
    left: 14px; 
    background: var(--accent-deal-gradient); 
    color: #ffffff; 
    padding: 4px 10px; 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    gap: 3px; 
    font-size: 0.76rem; 
    font-weight: 800; 
    letter-spacing: 0.3px; 
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35); 
    z-index: 10; 
}

.coupon-pill { 
    position: absolute; 
    bottom: 10px; 
    left: 14px; 
    background: linear-gradient(135deg, #f59e0b, #d97706); 
    color: #ffffff; 
    padding: 3px 9px; 
    border-radius: 6px; 
    font-size: 0.68rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    z-index: 10;
}

/* ============================================================
   SHOWSTOPPING PRICE DROP BADGES & BANNERS
   ============================================================ */
.price-drop-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
    z-index: 15;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1.5px solid #a7f3d0;
    animation: priceDropGlow 2.5s infinite ease-in-out;
}

.price-drop-ribbon .pulse-dot {
    width: 7px;
    height: 7px;
    background: #facc15;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #facc15;
}

.price-drop-ribbon .drop-val {
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.74rem;
    color: #fef08a;
}

@keyframes priceDropGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.7);
    }
}

.card-drop-tag {
    font-size: 0.74rem;
    font-weight: 800;
    color: #047857;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #6ee7b7;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15);
}

/* Eye-Catching Product Page Price Drop Hero Banner */
.product-price-drop-hero {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 60%, #a7f3d0 100%);
    border: 2px solid #34d399;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.drop-hero-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drop-hero-icon-box {
    width: 44px;
    height: 44px;
    background: #059669;
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
}

.drop-hero-title {
    font-size: 0.96rem;
    font-weight: 900;
    color: #065f46;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.drop-hero-desc {
    font-size: 0.88rem;
    color: #047857;
    margin-top: 2px;
}

.drop-hero-tag {
    background: #059669;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

@media (max-width: 640px) {
    .product-price-drop-hero {
        padding: 10px 12px !important;
        margin-bottom: 14px !important;
        border-radius: 10px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .drop-hero-left {
        gap: 8px !important;
        width: 100% !important;
    }
    .drop-hero-icon-box {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.1rem !important;
        border-radius: 8px !important;
    }
    .drop-hero-title {
        font-size: 0.8rem !important;
        line-height: 1.25 !important;
    }
    .drop-hero-desc {
        font-size: 0.74rem !important;
        line-height: 1.35 !important;
    }
    .drop-hero-tag {
        font-size: 0.68rem !important;
        padding: 3px 10px !important;
        align-self: flex-start !important;
    }
}

.card-compare-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    height: 28px;
    padding: 0 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 12;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    max-width: fit-content;
}
.card-compare-btn svg {
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    max-width: 13px !important;
    stroke: currentColor;
    flex-shrink: 0;
    display: inline-block;
}
.card-compare-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.card-compare-btn:hover svg {
    transform: scale(1.15);
}

/* Card Content Body */
.card-body { 
    padding: 18px 20px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
    background: #ffffff; 
    min-width: 0;
    box-sizing: border-box;
}

.card-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.card-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 800;
}
.card-rating-badge span { color: #b45309; font-weight: 500; font-size: 0.7rem; }
.card-cat-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title { 
    font-size: 1.02rem; 
    font-weight: 700; 
    color: #0f172a; 
    margin-bottom: 12px; 
    line-height: 1.4; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    height: 44px; 
    transition: color 0.2s; 
    word-break: break-word;
}
.deal-card:hover .card-title { color: #2563eb; }

/* 3-Bullet Points Specs List (Key: Value Format) */
.card-specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
}
.card-specs-list li {
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}
.card-specs-list li .spec-bullet {
    color: #2563eb;
    font-weight: 900;
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
}
.card-specs-list li strong {
    color: #1e293b;
    font-weight: 700;
    flex-shrink: 0;
}
.card-specs-list li span {
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Pricing Section */
.card-price-container {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    margin-bottom: 14px;
    width: 100%;
}
.card-price-row { 
    display: flex; 
    align-items: baseline; 
    gap: 8px; 
    margin-bottom: 4px; 
    flex-wrap: wrap; 
}
.card-price { 
    font-size: 1.55rem; 
    font-weight: 900; 
    color: #16a34a; 
    letter-spacing: -0.6px; 
}
.card-old-price { 
    font-size: 0.85rem; 
    color: #94a3b8; 
    font-weight: 500; 
}
.card-old-price del { text-decoration: line-through; }
.card-save-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 7px;
    border-radius: 4px;
}

/* Card Action Footer */
.card-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 10px;
    width: 100%;
}
.store-pill { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 20px;
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.store-pill img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.store-pill span { font-size: 0.75rem; font-weight: 700; color: #334155; overflow: hidden; text-overflow: ellipsis; }
.store-pill-extra { font-size: 0.72rem; color: #64748b; font-weight: 600; margin-left: 2px; flex-shrink: 0; }

.card-btn { 
    background: var(--accent-primary); 
    color: #ffffff; 
    font-size: 0.78rem; 
    font-weight: 800; 
    padding: 9px 18px; 
    border-radius: 10px; 
    text-transform: uppercase; 
    letter-spacing: 0.6px; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15); 
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.card-btn:hover { 
    background: var(--accent-secondary); 
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4); 
    transform: translateY(-2px); 
}

/* Product Single Page Modern UI (25% Image Left / 75% Info Right Ratio) */
.product-layout { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; margin: 20px 0 50px; align-items: start; width: 100%; box-sizing: border-box; }
.product-image-sticky-col { position: sticky; top: 80px; }
.product-gallery-box { background: #ffffff; border-radius: var(--radius-lg); padding: 30px; text-align: center; border: 1px solid #e2e8f0; box-shadow: var(--shadow-sm); position: relative; }
.product-gallery-box img { max-width: 100%; max-height: 400px; object-fit: contain; }

.badge-tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-cat { background: #dbeafe; color: #1e40af; }
.badge-brand { background: #fef3c7; color: #b45309; }

/* Coupon Box */
.coupon-box { background: #fef3c7; border: 2px dashed #f59e0b; border-radius: 14px; padding: 18px 22px; margin: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; box-shadow: var(--shadow-sm); }
.coupon-code { font-size: 1.2rem; font-weight: 800; color: #b45309; letter-spacing: 1.5px; font-family: monospace; background: #fff; padding: 6px 14px; border-radius: 8px; border: 1px solid #fcd34d; }
.copy-btn { background: #d97706; color: #fff; border: none; padding: 9px 20px; border-radius: 8px; font-weight: 800; cursor: pointer; transition: all 0.2s; box-shadow: 0 3px 8px rgba(217, 119, 6, 0.3); }
.copy-btn:hover { background: #b45309; transform: translateY(-1px); }

/* Price Comparison Block */
.price-comparison-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: var(--radius-lg); margin-top: 24px; overflow: hidden; box-shadow: var(--shadow-md); width: 100%; box-sizing: border-box; }
.price-header { background: #0f172a; color: #fff; padding: 16px 22px; font-weight: 800; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border-color); transition: background 0.2s; }
.price-row:hover { background: #f8fafc; }
.price-row:last-child { border-bottom: none; }
.store-name { font-size: 1.05rem; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 12px; }
.store-price { font-size: 1.5rem; font-weight: 900; color: var(--accent-success); letter-spacing: -0.5px; }
.store-btn { background: var(--accent-warning); color: #fff; padding: 10px 22px; border-radius: 8px; font-weight: 800; font-size: 0.9rem; display: inline-block; transition: all 0.2s; box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25); }
.store-btn:hover { background: #d97706; transform: translateY(-1px); }

/* Specs Table */
.specs-table { width: 100%; border-collapse: collapse; margin-top: 16px; background: #ffffff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.specs-table th, .specs-table td { padding: 14px 18px; border-bottom: 1px solid var(--border-color); text-align: left; font-size: 0.9rem; }
.specs-table th { width: 35%; color: var(--text-muted); font-weight: 600; background: #f8fafc; border-right: 1px solid var(--border-color); }
.specs-table td { font-weight: 600; color: var(--text-main); }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }

/* Interactive Price History Graph (Matching Reference Design) */
.price-history-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
}

.price-history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.price-history-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.price-history-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    margin: 4px 0 0;
}

.chart-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    margin: 10px 0;
}

.chart-hint-text {
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
    margin: 14px 0 16px;
}

.price-history-stats-row {
    display: flex;
    gap: 40px;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    flex-wrap: wrap;
}

.hist-stat-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hist-stat-label {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
}

.hist-stat-val {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.hist-stat-val.current-val {
    color: #0f172a;
}

.hist-stat-val.lowest-val {
    color: #16a34a;
}

.hist-stat-val.highest-val {
    color: #ef4444;
}

@media screen and (max-width: 640px) {
    .price-history-card {
        padding: 16px 14px;
    }
    .chart-canvas-wrapper {
        height: 200px;
    }
    .price-history-stats-row {
        gap: 20px;
        justify-content: space-between;
    }
    .hist-stat-label {
        font-size: 0.8rem;
    }
    .hist-stat-val {
        font-size: 1rem;
    }
}

/* Clean Responsive Numbered Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 30px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    flex-wrap: wrap;
    gap: 16px;
}

.pagination-info {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
}

.pagination-info strong {
    color: #0f172a;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.page-btn:hover:not(.disabled):not(.active) {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
    transform: translateY(-1px);
}

.page-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.page-btn.disabled {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-prev, .page-next {
    padding: 0 16px;
    font-weight: 800;
}

.page-ellipsis {
    color: #94a3b8;
    padding: 0 4px;
    font-weight: 700;
}

@media screen and (max-width: 640px) {
    .pagination-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px;
        gap: 12px;
    }
    .pagination-nav {
        width: 100%;
        justify-content: space-between;
    }
    .page-numbers {
        gap: 4px;
    }
    .page-btn {
        min-width: 32px;
        height: 34px;
        font-size: 0.8rem;
        padding: 0 8px;
    }
    .page-prev, .page-next {
        padding: 0 10px;
        font-size: 0.78rem;
    }
}

/* Breadcrumb Styling */
.breadcrumb { font-size: 0.85rem; color: #64748b; font-weight: 500; display: flex; align-items: center; gap: 6px; margin: 16px 0; flex-wrap: wrap; width: 100%; box-sizing: border-box; }
.breadcrumb a { color: var(--accent-secondary); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #0f172a; font-weight: 700; }

/* Admin Forms */
.admin-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 28px; margin: 24px 0; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--text-main); font-weight: 700; font-size: 0.88rem; }
.form-control { width: 100%; padding: 10px 14px; background: #fff; border: 1px solid #cbd5e1; color: var(--text-main); border-radius: 8px; font-family: inherit; font-size: 0.9rem; transition: all 0.2s; }
.form-control:focus { outline: none; border-color: var(--accent-secondary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
table.admin-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
table.admin-table th { background: #f8fafc; font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.5px; }
table.admin-table th, table.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-color); text-align: left; font-size: 0.9rem; }

/* Modern Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 45px 0 25px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 30px;
    width: 100%;
}
.footer-brand h4 { color: #fff; font-size: 1.25rem; font-weight: 900; margin-bottom: 10px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; color: #94a3b8; max-width: 380px; }
.footer-col h5 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: #60a5fa; }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.82rem;
    color: #64748b;
}

/* ============================================================
   MOBILE RESPONSIVE OVERRIDES (@media max-width: 640px)
   ============================================================ */
@media screen and (max-width: 640px) {
    .container { 
        padding: 0 12px !important; 
        width: 100% !important; 
        max-width: 100% !important; 
        box-sizing: border-box !important; 
    }

    /* 1. NON-STICKY HEADER ON MOBILE */
    .navbar { 
        position: relative !important; 
        top: auto !important; 
        padding: 10px 0 0 0 !important; 
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .nav-container { 
        flex-direction: column !important; 
        gap: 8px !important; 
        align-items: stretch !important; 
        padding-bottom: 8px !important; 
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .logo { font-size: 1.25rem !important; text-align: center !important; justify-content: center !important; }
    .search-form { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
    .search-input { width: 100% !important; padding: 8px 14px 8px 36px !important; font-size: 0.82rem !important; box-sizing: border-box !important; }
    .nav-links { justify-content: center !important; gap: 12px !important; font-size: 0.82rem !important; }

    /* 2. FULLY RESPONSIVE HERO BANNER ON MOBILE (NO OUT-OF-BOX OVERFLOW) */
    .hero-banner { 
        padding: 18px 14px !important; 
        margin: 12px 0 16px !important; 
        border-radius: 14px !important; 
        width: 100% !important; 
        max-width: 100% !important;
        box-sizing: border-box !important; 
        overflow: hidden !important;
    }
    .hero-banner::after { 
        display: none !important; /* Prevents decorative radial glow from triggering horizontal scroll */
    }
    .hero-pill { 
        font-size: 0.68rem !important; 
        padding: 4px 10px !important; 
        white-space: normal !important; 
        line-height: 1.35 !important; 
        display: inline-block !important; 
        word-break: break-word !important; 
        max-width: 100% !important; 
        margin-bottom: 8px !important; 
        box-sizing: border-box !important;
    }
    .hero-title { 
        font-size: 1.3rem !important; 
        line-height: 1.25 !important; 
        margin-bottom: 8px !important; 
        word-break: break-word !important; 
    }
    .hero-subtitle { 
        font-size: 0.8rem !important; 
        line-height: 1.45 !important; 
        margin-bottom: 12px !important; 
    }
    .hero-features { 
        display: grid !important; 
        grid-template-columns: 1fr 1fr !important; 
        gap: 6px !important; 
        width: 100% !important; 
        box-sizing: border-box !important;
    }
    .hero-feature-chip { 
        font-size: 0.7rem !important; 
        padding: 5px 6px !important; 
        justify-content: center !important; 
        text-align: center !important; 
        white-space: nowrap !important; 
        overflow: hidden !important; 
        text-overflow: ellipsis !important; 
        box-sizing: border-box !important;
    }

    /* Page Header Banner for Category & Brand */
    .page-header-banner {
        padding: 16px !important;
        margin: 12px 0 14px !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-header-banner h1 {
        font-size: 1.3rem !important;
        word-break: break-word !important;
    }
    .page-header-banner p {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
    }
    .brand-header-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .brand-header-logo {
        max-height: 38px !important;
    }

    /* Sub-Nav Mobile */
    .sub-nav .cat-link { font-size: 0.76rem !important; padding: 4px 10px !important; }

    /* Filter Bar Mobile */
    .filter-bar { 
        padding: 10px !important; 
        margin: 10px 0 !important; 
        gap: 10px !important; 
        flex-direction: column !important; 
        align-items: stretch !important; 
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .brand-scroll-bar { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
    .filter-select { width: 100% !important; box-sizing: border-box !important; }

    /* Mobile Horizontal Card List View (Full Constrained Width) */
    .deals-grid { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 12px !important; 
        margin: 12px 0 30px !important; 
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .deal-card { 
        display: flex !important; 
        flex-direction: row !important; 
        align-items: stretch !important; 
        border-radius: 14px !important; 
        padding: 10px !important; 
        gap: 10px !important; 
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        min-width: 0 !important;
    }
    
    .card-left-col {
        width: 95px !important;
        min-width: 95px !important;
        max-width: 95px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }

    .card-img-wrap { 
        width: 95px !important; 
        min-width: 95px !important; 
        max-width: 95px !important;
        height: 85px !important; 
        padding: 4px !important; 
        border-bottom: none !important; 
        border-radius: 10px !important; 
        border: 1px solid #f1f5f9 !important; 
        display: flex !important; 
        align-items: center !important; 
        justify-content: center !important; 
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
        position: relative !important;
    }

    .card-img { 
        height: 75px !important; 
        width: 75px !important;
        object-fit: contain !important; 
    }
    
    .card-left-col .card-compare-btn {
        position: static !important;
        width: 100% !important;
        height: 24px !important;
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        padding: 0 4px !important;
        border-radius: 6px !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        background: #f1f5f9 !important;
        color: #334155 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        box-sizing: border-box !important;
    }
    .card-left-col .card-compare-btn svg {
        width: 11px !important;
        height: 11px !important;
        min-width: 11px !important;
    }
    .card-left-col .card-compare-btn:hover {
        background: #2563eb !important;
        color: #ffffff !important;
        border-color: #2563eb !important;
    }
    
    .heart-icon { width: 22px !important; height: 22px !important; font-size: 0.75rem !important; top: 3px !important; right: 3px !important; }
    .discount-badge { top: 3px !important; left: 3px !important; font-size: 0.6rem !important; padding: 2px 5px !important; }
    .coupon-pill { font-size: 0.52rem !important; padding: 1px 4px !important; bottom: 2px !important; left: 3px !important; }
    .price-drop-ribbon {
        top: auto !important;
        bottom: 3px !important;
        right: 3px !important;
        left: auto !important;
        padding: 2px 5px !important;
        font-size: 0.56rem !important;
        border-radius: 5px !important;
        gap: 2px !important;
        max-width: 88px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }
    .price-drop-ribbon .pulse-dot { width: 4px !important; height: 4px !important; }
    .price-drop-ribbon .drop-val { font-size: 0.54rem !important; padding: 0 3px !important; }
    .card-drop-tag { font-size: 0.62rem !important; padding: 1px 4px !important; }

    .card-body { 
        padding: 0 !important; 
        flex: 1 1 auto !important; 
        background: transparent !important; 
        display: flex !important; 
        flex-direction: column !important; 
        justify-content: center !important; 
        min-width: 0 !important; 
        width: 0 !important; /* Crucial for nested flex truncation */
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .card-title { 
        font-size: 0.84rem !important; 
        font-weight: 700 !important; 
        line-height: 1.25 !important; 
        height: auto !important; 
        max-height: 34px !important; 
        margin-bottom: 3px !important; 
        white-space: normal !important;
        word-break: break-word !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    .card-rating-row { margin-bottom: 3px !important; }
    
    .card-specs-list { 
        display: block !important; 
        margin: 0 0 5px 0 !important; 
        font-size: 0.7rem !important; 
        line-height: 1.3 !important; 
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .card-specs-list li { 
        margin-bottom: 1px !important; 
        display: flex !important;
        align-items: baseline !important;
        gap: 3px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }
    .card-specs-list li .spec-bullet { font-size: 0.75rem !important; flex-shrink: 0 !important; }
    .card-specs-list li strong { flex-shrink: 0 !important; }
    .card-specs-list li span { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; min-width: 0 !important; }

    .card-price-container { 
        padding-top: 3px !important; 
        margin-bottom: 5px !important; 
        border-top: none !important; 
        width: 100% !important;
    }
    .card-price { font-size: 1.15rem !important; }
    .card-old-price { font-size: 0.7rem !important; }
    .card-save-badge { display: none !important; }

    .card-footer { 
        padding-top: 0 !important; 
        flex-direction: row !important; 
        justify-content: space-between !important; 
        align-items: center !important; 
        width: 100% !important;
        gap: 6px !important;
    }

    .store-pill { padding: 2px 6px !important; max-width: 55% !important; }
    .store-pill span { font-size: 0.68rem !important; }
    .card-btn { 
        padding: 5px 10px !important; 
        font-size: 0.68rem !important; 
        border-radius: 6px !important; 
    }

    /* 3. NON-STICKY PRODUCT IMAGE ON MOBILE */
    .product-layout { grid-template-columns: 1fr !important; gap: 20px !important; margin: 16px 0 40px !important; }
    .product-image-sticky-col { position: static !important; top: auto !important; }
    .product-gallery-box { padding: 20px !important; border-radius: 12px !important; }
    .product-gallery-box img { max-height: 240px !important; }
    .product-info h1 { font-size: 1.35rem !important; }

    .coupon-box { flex-direction: column !important; align-items: stretch !important; text-align: center !important; padding: 14px !important; gap: 10px !important; }
    .coupon-code { display: inline-block !important; margin-top: 4px !important; }

    .price-row { padding: 14px 16px !important; }
    .store-name { font-size: 0.92rem !important; }
    .store-price { font-size: 1.25rem !important; }
    .store-btn { padding: 8px 14px !important; font-size: 0.8rem !important; }

    .specs-table th, .specs-table td { padding: 10px 12px !important; font-size: 0.82rem !important; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
}
