/* ===================================
   CP Deals - Combined Styles
   Deals Main Page + Deals Category Page
   =================================== */

/* ===================================
   CSS Variables
   =================================== */

:root {
    --cp-serif: 'Merriweather', serif;
    --cp-sans: 'Inter', sans-serif;
    --cp-dark: #121212;
    --cp-gray: #666;
    --cp-light-gray: #999;
    --cp-border-color: #e2e2e2;
    --cp-accent-red: #b12704;
    --cp-accent-blue: #2563eb;
    --cp-footer-bg: #1a1a1a;
    --cp-bg-light: #f8f9fa;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   DEALS MAIN PAGE STYLES
   =================================== */

/* ===================================
   Deals Hero Section
   =================================== */

.deals-hero {
    background: linear-gradient(135deg, var(--cp-dark) 0%, #2d2d2d 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.deals-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.02) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0;
}

.deals-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.deals-hero-title {
    font-family: var(--cp-serif);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.deals-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

.deals-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.deals-hero-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.deals-hero-meta .meta-item i {
    font-size: 1rem;
    opacity: 0.9;
}

/* Legacy stat styles for backward compatibility */
.deals-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--cp-serif);
    font-size: 2rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ===================================
   Filter Bar Section
   =================================== */

.deals-filter-section {
    background: white;
    border-bottom: 1px solid var(--cp-border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--cp-dark);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-toggle-btn:hover {
    background: var(--cp-accent-red);
}

.filter-pills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-pill {
    background: white;
    border: 1px solid var(--cp-border-color);
    color: var(--cp-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.filter-pill::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(177, 39, 4, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.filter-pill:hover::before {
    width: 200%;
    height: 200%;
}

.filter-pill:hover,
.filter-pill:focus {
    border-color: var(--cp-dark);
    background: var(--cp-dark);
    color: white;
}

.filter-pill:focus {
    outline: 2px solid var(--cp-accent-red);
    outline-offset: 2px;
}

.filter-right {
    display: flex;
    align-items: center;
}

.sort-select {
    min-width: 180px;
    border: 1px solid var(--cp-border-color);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.sort-select:focus {
    border-color: var(--cp-dark);
    box-shadow: 0 0 0 0.2rem rgba(18, 18, 18, 0.1);
}

/* ===================================
   Featured Deal Section
   =================================== */

.featured-deal-section {
    border-bottom: 1px solid var(--cp-border-color);
}

.featured-deal-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid var(--cp-border-color);
    transition: var(--transition-smooth);
    position: relative;
}

.featured-deal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.featured-deal-card:hover::after {
    left: 100%;
}

.featured-deal-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: var(--cp-accent-red);
}

.featured-deal-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f8f8 0%, #ececec 100%);
}

.featured-deal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.featured-deal-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #ccc;
    font-size: 5rem;
}

.featured-deal-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--cp-accent-red);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(177, 39, 4, 0.4);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.badge-percent {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.featured-deal-content {
    padding: 3rem 3.5rem;
}

.featured-label {
    display: inline-block;
    background: var(--cp-accent-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.featured-brand {
    font-size: 0.95rem;
    color: var(--cp-light-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-deal-title {
    font-family: var(--cp-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--cp-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.featured-deal-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.featured-deal-title a:hover {
    color: var(--cp-accent-red);
}

.featured-deal-excerpt {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--cp-gray);
    margin-bottom: 2rem;
}

.featured-deal-pricing-section {
    margin-bottom: 2rem;
}

.featured-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.featured-price-current {
    font-family: var(--cp-serif);
    font-size: 3rem;
    font-weight: 900;
    color: var(--cp-accent-red);
    line-height: 1;
    letter-spacing: -0.02em;
}

.featured-price-original {
    font-size: 1.5rem;
    color: var(--cp-light-gray);
    text-decoration: line-through;
    font-weight: 600;
}

.featured-savings-text {
    font-size: 1rem;
    color: #10b981;
    font-weight: 700;
    margin: 0;
}

.featured-coupon-box {
    background: linear-gradient(135deg, #fff9f0 0%, #fff3e0 100%);
    border: 2px dashed #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.coupon-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coupon-inner > i {
    font-size: 2rem;
    color: #f59e0b;
}

.coupon-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.coupon-label-small {
    font-size: 0.75rem;
    color: var(--cp-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.coupon-code-large {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cp-dark);
    letter-spacing: 0.05em;
}

.coupon-copy-btn-large {
    background: var(--cp-dark);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.coupon-copy-btn-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.coupon-copy-btn-large:active::before {
    width: 300%;
    height: 300%;
}

.coupon-copy-btn-large:hover {
    background: var(--cp-accent-red);
    transform: translateY(-2px);
}

.coupon-copy-btn-large.copied {
    background: #10b981;
}

.coupon-copy-btn-large:focus {
    outline: 2px solid var(--cp-accent-red);
    outline-offset: 2px;
}

.featured-deal-actions {
    margin-top: 2rem;
}

.btn-featured-deal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--cp-accent-red);
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(177, 39, 4, 0.3);
}

.btn-featured-deal:hover {
    background: var(--cp-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-featured-deal i:first-child {
    font-size: 1.25rem;
}

.btn-featured-deal i:last-child {
    transition: transform 0.3s ease;
}

.btn-featured-deal:hover i:last-child {
    transform: translateX(4px);
}

/* ===================================
   Deals Grid
   =================================== */

.deals-grid-section {
    background: var(--cp-bg-light);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.deals-section-title {
    font-family: var(--cp-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 900;
    color: var(--cp-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.deals-section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--cp-accent-red);
    border-radius: 2px;
}

.deals-section-subtitle {
    font-size: 1.125rem;
    color: var(--cp-gray);
    margin: 0;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.deal-card-modern {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--cp-border-color);
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
    animation: fadeInUp 0.5s ease-out backwards;
}

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

.deal-card-modern:nth-child(1) { animation-delay: 0.05s; }
.deal-card-modern:nth-child(2) { animation-delay: 0.1s; }
.deal-card-modern:nth-child(3) { animation-delay: 0.15s; }
.deal-card-modern:nth-child(4) { animation-delay: 0.2s; }
.deal-card-modern:nth-child(5) { animation-delay: 0.25s; }
.deal-card-modern:nth-child(6) { animation-delay: 0.3s; }
.deal-card-modern:nth-child(7) { animation-delay: 0.35s; }
.deal-card-modern:nth-child(8) { animation-delay: 0.4s; }
.deal-card-modern:nth-child(9) { animation-delay: 0.45s; }

.deal-card-modern::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--cp-accent-red), var(--cp-accent-blue));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.deal-card-modern:hover::before {
    opacity: 0.15;
}

.deal-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    border-color: var(--cp-dark);
}

.deal-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Image Section */
.deal-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
}

.deal-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.deal-card-modern:hover .deal-card-image {
    transform: scale(1.08);
}

.deal-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #999;
    font-size: 3rem;
}

.deal-badge-percent {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--cp-accent-red);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(177, 39, 4, 0.3);
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(177, 39, 4, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(177, 39, 4, 0.5);
    }
}

.deal-urgency-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    animation: pulse-urgency 2s ease-in-out infinite;
}

@keyframes pulse-urgency {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

.deal-urgency-badge i {
    font-size: 0.75rem;
}

.deal-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.deal-card-modern:hover .deal-card-overlay {
    opacity: 1;
}

.quick-view-text {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Content Section */
.deal-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.deal-card-brand {
    font-size: 0.85rem;
    color: var(--cp-light-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.deal-card-title {
    font-family: var(--cp-serif);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--cp-dark);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-card-modern:hover .deal-card-title {
    color: var(--cp-accent-red);
}

.deal-card-excerpt {
    font-size: 0.9rem;
    color: var(--cp-gray);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Pricing Section */
.deal-card-pricing {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0;
}

.price-group {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.price-current {
    font-family: var(--cp-serif), Georgia, serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cp-accent-red);
    line-height: 1;
    margin: 0;
}

.price-original {
    font-size: 1rem;
    color: var(--cp-light-gray);
    text-decoration: line-through;
    font-weight: 600;
    margin: 0;
}

.price-savings {
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 700;
    display: inline-block;
    margin: 0;
    padding: 0.125rem 0;
    line-height: 1.4;
}

.price-special {
    color: var(--cp-dark);
    font-weight: 700;
}

/* Coupon Box */
.deal-coupon-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fff9f0 0%, #fffbf5 100%);
    border: 1px dashed #f59e0b;
    padding: 0.625rem 0.875rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.deal-coupon-box::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--cp-bg-light);
    border-radius: 50%;
}

.deal-coupon-box::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--cp-bg-light);
    border-radius: 50%;
}

.coupon-label {
    font-size: 0.8rem;
    color: var(--cp-gray);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.coupon-label i {
    color: #f59e0b;
    font-size: 0.95rem;
}

.coupon-code {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cp-dark);
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
    flex: 1;
    text-align: center;
}

.coupon-copy-btn {
    background: var(--cp-dark);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.coupon-copy-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.coupon-copy-btn:active::before {
    width: 300%;
    height: 300%;
}

.coupon-copy-btn:hover {
    background: var(--cp-accent-red);
    transform: scale(1.05);
}

.coupon-copy-btn.copied {
    background: #10b981;
}

.coupon-copy-btn.copied::after {
    content: ' ✓';
}

.coupon-copy-btn:focus {
    outline: 2px solid var(--cp-accent-red);
    outline-offset: 2px;
}

/* Action Buttons */
.deal-card-actions {
    margin-top: auto;
}

.btn-primary-deal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: var(--cp-dark);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary-deal:focus {
    outline: 2px solid var(--cp-accent-red);
    outline-offset: 2px;
}

.deal-card-modern:hover .btn-primary-deal {
    background: var(--cp-accent-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(177, 39, 4, 0.3);
}

/* ===================================
   No Deals Message
   =================================== */

.no-deals-message {
    text-align: center;
    padding: 5rem 2rem;
}

.no-deals-message .btn {
    transition: all 0.3s ease;
}

.no-deals-message .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.no-deals-icon {
    font-size: 5rem;
    color: var(--cp-border-color);
    margin-bottom: 1.5rem;
}

.no-deals-title {
    font-family: var(--cp-serif);
    font-size: 2rem;
    font-weight: 900;
    color: var(--cp-dark);
    margin-bottom: 1rem;
}

.no-deals-text {
    font-size: 1.125rem;
    color: var(--cp-gray);
    margin-bottom: 2rem;
}

/* ===================================
   Filter Sidebar (Mobile)
   =================================== */

.filter-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--cp-border-color);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--cp-dark);
}

.filter-section-title i {
    margin-right: 0.5rem;
    color: var(--cp-accent-red);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 0.5rem;
}

.filter-list-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--cp-gray);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    text-decoration: none;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.filter-list-item i {
    font-size: 1rem;
    width: 20px;
}

.filter-list-item:hover {
    color: var(--cp-accent-red);
    border-left-color: var(--cp-accent-red);
    padding-left: 1.25rem;
}

.filter-list-item.active {
    color: var(--cp-accent-red);
    font-weight: 700;
    border-left-color: var(--cp-accent-red);
}

/* ===================================
   Pagination
   =================================== */

.deals-pagination {
    display: flex;
    justify-content: center;
}

.pagination .page-link {
    border-radius: 4px;
    margin: 0 0.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: var(--cp-accent-red);
    border-color: var(--cp-accent-red);
    transform: scale(1.1);
}

.pagination .page-link:hover:not(.active) {
    background: rgba(177, 39, 4, 0.1);
    border-color: var(--cp-accent-red);
    transform: translateY(-2px);
}

/* ===================================
   DEALS CATEGORY PAGE STYLES
   =================================== */

/* ===================================
   Category Hero Section
   =================================== */

.category-hero-section {
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.category-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,.08) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,.08) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.08) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0;
    opacity: 0.5;
}

.category-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.category-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: transform 0.3s ease;
}

.category-hero-section:hover .category-icon-large {
    transform: scale(1.1) rotate(5deg);
}

.category-icon-large i {
    font-size: 2.5rem;
    color: white;
}

.category-hero-title {
    font-family: var(--cp-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.category-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

.category-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.category-hero-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.category-hero-meta .meta-item i {
    font-size: 1rem;
    opacity: 0.9;
}

/* Legacy stat styles for backward compatibility */
.category-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.category-hero-stats .stat-item {
    text-align: center;
}

.category-hero-stats .stat-number {
    display: block;
    font-family: var(--cp-serif);
    font-size: 2rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.category-hero-stats .stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ===================================
   Category Filter Enhancements
   =================================== */

.dropdown-menu-categories {
    max-height: 500px;
    overflow-y: auto;
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: none;
    border-radius: 8px;
}

.dropdown-menu-categories .dropdown-item {
    padding: 0.625rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 0.125rem 0.5rem;
}

.dropdown-menu-categories .dropdown-item i {
    font-size: 1.125rem;
    width: 20px;
}

.dropdown-menu-categories .dropdown-item.active {
    background: var(--cp-accent-red);
    color: white;
}

.dropdown-menu-categories .dropdown-item:hover {
    background: rgba(177, 39, 4, 0.1);
    padding-left: 1.5rem;
}

.dropdown-menu-categories .dropdown-header {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cp-gray);
    padding: 0.75rem 1.25rem 0.5rem;
}

/* Subcategory Pills */
.subcategory-pills-wrapper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin-left: 0.75rem;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.subcategory-pills-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.subcategory-pills-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, white);
    pointer-events: none;
}

.filter-pill-sub {
    background: white;
    border: 1px solid var(--cp-border-color);
    color: var(--cp-dark);
    padding: 0.4rem 0.875rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.filter-pill-sub:hover,
.filter-pill-sub.active {
    border-color: var(--cp-accent-red);
    background: var(--cp-accent-red);
    color: white;
}

/* ===================================
   Category Breadcrumb
   =================================== */

.category-breadcrumb {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--cp-border-color);
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.25rem;
    color: var(--cp-light-gray);
}

.breadcrumb-item a {
    color: var(--cp-gray);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.breadcrumb-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cp-accent-red);
    transition: width 0.3s ease;
}

.breadcrumb-item a:hover::after {
    width: 100%;
}

.breadcrumb-item a:hover {
    color: var(--cp-accent-red);
}

.breadcrumb-item.active {
    color: var(--cp-dark);
    font-weight: 600;
}

/* ===================================
   Category-specific Deal Cards
   =================================== */

.category-deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--cp-border-color);
}

.category-deals-title {
    font-family: var(--cp-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--cp-dark);
    margin: 0;
}

.category-deals-count {
    font-size: 1rem;
    color: var(--cp-gray);
}

/* Category Badge on Deal Cards */
.deal-category-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* ===================================
   Loading States
   =================================== */

.deals-loading {
    text-align: center;
    padding: 3rem;
}

.deals-loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid rgba(0,0,0,0.1);
    border-left-color: var(--cp-accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
    position: relative;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.deals-loading-spinner::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: rgba(177, 39, 4, 0.3);
    animation: spin-reverse 1.5s linear infinite;
}

@keyframes spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.deals-loading-text {
    color: var(--cp-gray);
    font-size: 1rem;
}

/* ===================================
   Empty State
   =================================== */

.category-empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.category-empty-icon {
    font-size: 4rem;
    color: var(--cp-border-color);
    margin-bottom: 1.5rem;
}

.category-empty-title {
    font-family: var(--cp-serif);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--cp-dark);
    margin-bottom: 1rem;
}

.category-empty-text {
    font-size: 1.125rem;
    color: var(--cp-gray);
    margin-bottom: 2rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 992px) {
    .deals-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.25rem;
    }

    .featured-deal-image-wrap {
        min-height: 350px;
    }

    .featured-deal-content {
        padding: 2.5rem;
    }

    .featured-price-current {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    /* Main Deals Hero */
    .deals-hero {
        padding: 3rem 0 2.5rem;
    }

    .deals-hero-meta {
        gap: 1rem;
    }

    .deals-hero-meta .meta-item {
        font-size: 0.85rem;
    }

    .deals-hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* Category Hero */
    .category-hero-section {
        padding: 3rem 0 2.5rem;
    }

    .category-icon-large {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .category-icon-large i {
        font-size: 2rem;
    }

    .category-hero-title {
        font-size: 2rem;
    }

    .category-hero-meta {
        gap: 1rem;
    }

    .category-hero-meta .meta-item {
        font-size: 0.85rem;
    }

    .category-hero-stats {
        gap: 2rem;
    }

    .category-hero-stats .stat-number {
        font-size: 1.5rem;
    }

    /* Featured Deal Mobile */
    .featured-deal-image-wrap {
        min-height: 300px;
    }

    .featured-deal-badge {
        top: 1rem;
        left: 1rem;
        padding: 0.75rem 1rem;
    }

    .badge-percent {
        font-size: 1.5rem;
    }

    .badge-text {
        font-size: 0.75rem;
    }

    .featured-deal-content {
        padding: 2rem 1.5rem;
    }

    .featured-deal-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .featured-deal-excerpt {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .featured-price-current {
        font-size: 2rem;
    }

    .featured-price-original {
        font-size: 1.25rem;
    }

    .featured-coupon-box {
        padding: 1rem;
    }

    .coupon-inner {
        flex-wrap: wrap;
    }

    .coupon-copy-btn-large {
        width: 100%;
        justify-content: center;
    }

    .btn-featured-deal {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Filter Bar */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-left,
    .filter-right {
        width: 100%;
    }

    .filter-pills {
        display: none;
    }

    .sort-select {
        width: 100%;
    }

    /* Subcategory Pills */
    .subcategory-pills-wrapper {
        display: none; /* Hide on mobile, use offcanvas instead */
    }

    .dropdown-menu-categories {
        max-height: 400px;
    }

    /* Deals Grid */
    .deals-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .deal-card-content {
        padding: 1rem;
    }

    .deal-card-title {
        font-size: 1rem;
    }

    .price-current {
        font-size: 1.25rem;
    }

    .price-original {
        font-size: 0.95rem;
    }

    .deal-urgency-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 576px) {
    /* Main Deals Hero */
    .deals-hero-meta {
        gap: 0.75rem;
    }

    .deals-hero-meta .meta-item {
        font-size: 0.8rem;
    }

    .deals-hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    /* Category Hero */
    .category-hero-section {
        padding: 2.5rem 0 2rem;
    }

    .category-hero-meta {
        gap: 0.75rem;
    }

    .category-hero-meta .meta-item {
        font-size: 0.8rem;
    }

    .category-hero-stats {
        gap: 1.5rem;
    }

    .category-hero-stats .stat-number {
        font-size: 1.25rem;
    }

    .category-deals-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Featured Deal */
    .featured-deal-image-wrap {
        min-height: 250px;
    }

    .featured-deal-content {
        padding: 1.5rem 1rem;
    }

    .featured-label {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    .featured-deal-title {
        font-size: 1.5rem;
    }

    .featured-deal-excerpt {
        font-size: 0.95rem;
    }

    .featured-price-current {
        font-size: 1.75rem;
    }

    .featured-price-original {
        font-size: 1.125rem;
    }

    .featured-deal-badge {
        padding: 0.6rem 0.8rem;
        top: 0.75rem;
        left: 0.75rem;
    }

    .badge-percent {
        font-size: 1.25rem;
    }

    .badge-text {
        font-size: 0.7rem;
    }

    .coupon-inner > i {
        font-size: 1.5rem;
    }

    .coupon-code-large {
        font-size: 1rem;
    }

    .btn-featured-deal {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Section Header */
    .section-header {
        margin-bottom: 2rem;
    }

    .deals-section-title {
        font-size: 1.5rem;
    }

    .deals-section-subtitle {
        font-size: 1rem;
    }

    /* Deals Grid */
    .deals-grid {
        grid-template-columns: 1fr;
    }

    .deal-badge-percent {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        top: 0.5rem;
        left: 0.5rem;
    }

    .deal-urgency-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .btn-primary-deal {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    .deal-coupon-box {
        padding: 0.5rem 0.75rem;
    }

    .coupon-label {
        font-size: 0.75rem;
    }

    .coupon-code {
        font-size: 0.85rem;
    }

    /* No Deals Message */
    .no-deals-message {
        padding: 3rem 1rem;
    }

    .no-deals-icon {
        font-size: 3.5rem;
    }

    .no-deals-title {
        font-size: 1.5rem;
    }

    .no-deals-text {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .filter-toggle-btn {
        display: none;
    }
}
