/*
Theme Name: MesDeals Pro
Theme URI: https://mesdeals.fr
Author: MesDeals
Description: Thème professionnel pour site de deals avec CPT Deals, taxonomie hiérarchique et page Hot Deals
Version: 3.2.0
License: GNU General Public License v2 or later
Text Domain: mesdeals-pro
*/

/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --md-primary: #2563EB;
    --md-primary-dark: #1D4ED8;
    --md-primary-light: #3B82F6;
    --md-hot: #DC2626;
    --md-hot-light: #FEE2E2;
    --md-accent: #059669;
    --md-accent-light: #D1FAE5;
    --md-orange: #F59E0B;
    --md-orange-light: #FEF3C7;
    --md-dark: #1E293B;
    --md-gray-900: #111827;
    --md-gray-800: #1F2937;
    --md-gray-700: #374151;
    --md-gray-600: #4B5563;
    --md-gray-500: #6B7280;
    --md-gray-400: #9CA3AF;
    --md-gray-300: #D1D5DB;
    --md-gray-200: #E5E7EB;
    --md-gray-100: #F3F4F6;
    --md-gray-50: #F9FAFB;
    --md-white: #FFFFFF;
    --md-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --md-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --md-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --md-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --md-radius: 12px;
    --md-radius-sm: 8px;
    --md-radius-lg: 16px;
    --md-font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--md-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--md-gray-800);
    background: var(--md-gray-100);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--md-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--md-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    background: var(--md-white);
    box-shadow: var(--md-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-branding {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--md-primary);
    line-height: 1.2;
}

.site-tagline {
    font-size: 13px;
    color: var(--md-gray-500);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav {
    display: flex;
    gap: 24px;
}

.header-nav a {
    color: var(--md-gray-700);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.header-nav a:hover {
    color: var(--md-primary);
}

.header-nav a.hot-deals-link {
    color: var(--md-hot);
    font-weight: 600;
}

.header-nav a.hot-deals-link::before {
    content: '🔥';
    margin-right: 4px;
}

.header-social {
    display: flex;
    gap: 12px;
}

.header-social a {
    color: var(--md-gray-500);
    transition: color 0.2s, transform 0.2s;
}

.header-social a:hover {
    color: var(--md-primary);
    transform: translateY(-2px);
}

/* Categories Navigation */
.categories-nav {
    background: var(--md-gray-900);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.categories-nav::-webkit-scrollbar {
    display: none;
}

.categories-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.categories-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.categories-menu li a {
    display: block;
    padding: 14px 20px;
    color: var(--md-gray-300);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.categories-menu li a:hover,
.categories-menu li.active a {
    color: var(--md-white);
    background: rgba(255,255,255,0.05);
    border-bottom-color: var(--md-primary);
}

.categories-menu li.hot a {
    color: var(--md-orange);
}

.categories-menu li.hot a:hover,
.categories-menu li.hot.active a {
    color: var(--md-orange);
    border-bottom-color: var(--md-orange);
}

/* =========================================
   MAIN CONTENT
   ========================================= */
.site-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* =========================================
   SECTIONS
   ========================================= */
.deals-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--md-gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title.hot {
    color: var(--md-hot);
}

.section-subtitle {
    color: var(--md-gray-600);
    font-size: 15px;
    margin-top: 4px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--md-primary);
}

.view-all-link:hover {
    gap: 10px;
}

/* =========================================
   CATEGORY FILTERS (HOT DEALS PAGE)
   ========================================= */
.category-filters {
    background: var(--md-white);
    border-radius: var(--md-radius);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--md-shadow);
}

.category-filters h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--md-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: var(--md-gray-100);
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    color: var(--md-gray-700);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.filter-tab:hover {
    background: var(--md-gray-200);
    color: var(--md-gray-900);
}

.filter-tab.active {
    background: var(--md-primary);
    color: var(--md-white);
    border-color: var(--md-primary);
}

.filter-tab.hot {
    background: var(--md-hot-light);
    color: var(--md-hot);
}

.filter-tab.hot.active {
    background: var(--md-hot);
    color: var(--md-white);
}

.filter-tab .count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 8px;
}

.filter-tab.active .count {
    background: rgba(255,255,255,0.2);
}

.subcategory-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--md-gray-200);
}

.subcategory-link {
    display: inline-block;
    padding: 6px 14px;
    background: var(--md-gray-50);
    border-radius: 20px;
    font-size: 13px;
    color: var(--md-gray-600);
    transition: all 0.2s;
}

.subcategory-link:hover {
    background: var(--md-primary-light);
    color: var(--md-white);
}

.subcategory-link.active {
    background: var(--md-primary);
    color: var(--md-white);
}

/* =========================================
   DEALS GRID
   ========================================= */
.deals-grid {
    display: grid;
    gap: 24px;
}

.deals-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.deals-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.deals-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .deals-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .deals-grid-3,
    .deals-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .deals-grid-2,
    .deals-grid-3,
    .deals-grid-4 { grid-template-columns: 1fr; }
}

/* =========================================
   DEAL CARD
   ========================================= */
.deal-card {
    background: var(--md-white);
    border-radius: var(--md-radius);
    overflow: hidden;
    box-shadow: var(--md-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--md-shadow-lg);
}

.deal-card.is-expired {
    opacity: 0.7;
}

.deal-card .deal-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--md-gray-100);
}

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

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

.deal-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.deal-badge-hot {
    background: var(--md-hot);
    color: var(--md-white);
    animation: pulse-hot 2s infinite;
}

@keyframes pulse-hot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.deal-badge-expired {
    background: var(--md-gray-600);
    color: var(--md-white);
}

.deal-badge-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--md-hot);
    color: var(--md-white);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    z-index: 2;
}

.deal-card .deal-content {
    padding: 16px;
}

.deal-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--md-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.deal-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-title a {
    color: var(--md-gray-900);
}

.deal-title a:hover {
    color: var(--md-primary);
}

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

.price-current {
    font-size: 22px;
    font-weight: 700;
    color: var(--md-hot);
}

.price-original {
    font-size: 16px;
    color: var(--md-gray-500);
    text-decoration: line-through;
}

.deal-merchant {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--md-gray-100);
    font-size: 13px;
    color: var(--md-gray-600);
}

.deal-shipping {
    color: var(--md-accent);
    font-weight: 500;
}

/* =========================================
   DEAL CARD LIST
   ========================================= */
.deals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.deal-card-list {
    display: flex;
    background: var(--md-white);
    border-radius: var(--md-radius);
    overflow: hidden;
    box-shadow: var(--md-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.deal-card-list:hover {
    transform: translateY(-2px);
    box-shadow: var(--md-shadow-md);
}

.deal-card-list .deal-image {
    position: relative;
    width: 280px;
    min-width: 280px;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--md-gray-100);
}

.deal-card-list .deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-card-list .deal-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}

.deal-card-list .deal-title {
    font-size: 18px;
    -webkit-line-clamp: 1;
    margin-bottom: 8px;
}

.deal-excerpt {
    color: var(--md-gray-600);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: auto;
    font-size: 13px;
    color: var(--md-gray-600);
}

.deal-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.coupon-tag {
    background: var(--md-orange-light);
    color: var(--md-orange);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
    font-size: 12px;
}

@media (max-width: 768px) {
    .deal-card-list {
        flex-direction: column;
    }
    .deal-card-list .deal-image {
        width: 100%;
        min-width: auto;
    }
}

/* =========================================
   FEATURED DEAL
   ========================================= */
.featured-deal {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--md-white);
    border-radius: var(--md-radius-lg);
    overflow: hidden;
    box-shadow: var(--md-shadow-lg);
}

.featured-deal .deal-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--md-gray-100);
}

.featured-deal .deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-deal .deal-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-deal .deal-category {
    font-size: 13px;
}

.featured-deal .deal-title {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 16px;
    -webkit-line-clamp: 3;
}

.featured-deal .deal-excerpt {
    font-size: 15px;
    margin-bottom: 20px;
    -webkit-line-clamp: 3;
}

.featured-deal .deal-pricing {
    margin-bottom: 24px;
}

.featured-deal .price-current {
    font-size: 32px;
}

.featured-deal .price-original {
    font-size: 20px;
}

@media (max-width: 768px) {
    .featured-deal {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   CTA BUTTONS
   ========================================= */
.deal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--md-primary);
    color: var(--md-white);
    padding: 14px 28px;
    border-radius: var(--md-radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.deal-cta:hover {
    background: var(--md-primary-dark);
    color: var(--md-white);
    transform: translateY(-2px);
    box-shadow: var(--md-shadow-md);
}

.deal-cta-hot {
    background: var(--md-hot);
}

.deal-cta-hot:hover {
    background: #B91C1C;
}

.deal-cta-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* =========================================
   SINGLE DEAL PAGE
   ========================================= */
.single-deal-page {
    background: var(--md-white);
    border-radius: var(--md-radius-lg);
    overflow: hidden;
    box-shadow: var(--md-shadow);
}

.single-deal-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.single-deal-gallery {
    background: var(--md-gray-100);
    aspect-ratio: 4/3;
    overflow: hidden;
}

.single-deal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-deal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.single-deal-category {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--md-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.single-deal-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--md-gray-900);
    margin-bottom: 16px;
}

.single-deal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--md-gray-600);
}

.single-deal-pricing {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--md-gray-50);
    border-radius: var(--md-radius-sm);
}

.single-deal-pricing .price-current {
    font-size: 36px;
}

.single-deal-pricing .price-original {
    font-size: 22px;
}

.coupon-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--md-orange-light);
    border: 2px dashed var(--md-orange);
    border-radius: var(--md-radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.coupon-code {
    font-family: monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--md-orange);
    letter-spacing: 2px;
}

.copy-btn {
    background: var(--md-orange);
    color: var(--md-white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #D97706;
}

.single-deal-actions {
    margin-top: auto;
}

.single-deal-content {
    padding: 40px;
    border-top: 1px solid var(--md-gray-200);
}

.single-deal-content h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--md-gray-900);
}

@media (max-width: 900px) {
    .single-deal-header {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   HOT DEALS HERO
   ========================================= */
.hot-deals-hero {
    background: var(--md-white);
    padding: 40px;
    border-radius: var(--md-radius-lg);
    margin-bottom: 32px;
    text-align: center;
    box-shadow: var(--md-shadow);
    border: 1px solid var(--md-gray-200);
}

.hot-deals-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--md-gray-900);
    margin-bottom: 8px;
}

.hot-deals-hero p {
    font-size: 16px;
    color: var(--md-gray-600);
}

.hot-deals-count {
    display: inline-block;
    background: var(--md-gray-100);
    color: var(--md-gray-700);
    padding: 8px 20px;
    border-radius: 50px;
    margin-top: 16px;
    font-weight: 600;
    font-size: 14px;
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--md-white);
    border-radius: var(--md-radius-sm);
    font-weight: 500;
    color: var(--md-gray-700);
    box-shadow: var(--md-shadow-sm);
}

.pagination a:hover {
    background: var(--md-primary);
    color: var(--md-white);
}

.pagination .current {
    background: var(--md-primary);
    color: var(--md-white);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--md-gray-900);
    color: var(--md-gray-400);
    margin-top: 64px;
}

.footer-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px 48px;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
}

.footer-brand .site-title {
    color: var(--md-white);
    margin-bottom: 12px;
}

.footer-brand p {
    line-height: 1.7;
    max-width: 300px;
}

.footer-column h4 {
    color: var(--md-white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--md-gray-400);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--md-white);
}

.footer-bottom {
    border-top: 1px solid var(--md-gray-800);
    padding: 24px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .footer-main {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   NO DEALS MESSAGE
   ========================================= */
.no-deals {
    text-align: center;
    padding: 80px 24px;
    background: var(--md-white);
    border-radius: var(--md-radius-lg);
}

.no-deals-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-deals h2 {
    font-size: 24px;
    color: var(--md-gray-900);
    margin-bottom: 12px;
}

.no-deals p {
    color: var(--md-gray-600);
    margin-bottom: 24px;
}

/* =========================================
   UTILITIES
   ========================================= */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }

/* =========================================
   DEALS CAROUSEL SECTION
   ========================================= */
.deals-carousel-section {
    background: var(--md-white);
    border-radius: var(--md-radius-lg);
    padding: 28px;
    margin-bottom: 48px;
    box-shadow: var(--md-shadow);
    border: 1px solid var(--md-gray-200);
}

.deals-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.deals-carousel {
    flex: 1;
    overflow: hidden;
}

.deals-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
}

.deal-carousel-item {
    flex: 0 0 calc((100% - 64px) / 5);
    min-width: calc((100% - 64px) / 5);
    background: var(--md-gray-50);
    border-radius: var(--md-radius);
    overflow: hidden;
    box-shadow: var(--md-shadow-sm);
    border: 1px solid var(--md-gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
}

.deal-carousel-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--md-shadow-lg);
    border-color: var(--md-primary);
}

/* Carousel Arrows */
.carousel-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--md-white);
    border-radius: 50%;
    box-shadow: var(--md-shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-gray-700);
    transition: all 0.2s;
    z-index: 2;
    border: 1px solid var(--md-gray-200);
}

.carousel-arrow:hover {
    background: var(--md-primary);
    color: var(--md-white);
    transform: scale(1.1);
    border-color: var(--md-primary);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-arrow:disabled:hover {
    background: var(--md-white);
    color: var(--md-gray-700);
    transform: none;
}

/* Responsive Carousel */
@media (max-width: 1200px) {
    .deal-carousel-item {
        flex: 0 0 calc((100% - 48px) / 4);
        min-width: calc((100% - 48px) / 4);
    }
}

@media (max-width: 900px) {
    .deal-carousel-item {
        flex: 0 0 calc((100% - 32px) / 3);
        min-width: calc((100% - 32px) / 3);
    }
}

@media (max-width: 600px) {
    .deal-carousel-item {
        flex: 0 0 calc((100% - 16px) / 2);
        min-width: calc((100% - 16px) / 2);
    }
    .deals-carousel-section {
        padding: 20px;
    }
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
}

/* =========================================
   DEAL CAROUSEL ITEM STYLES
   ========================================= */
.deal-carousel-item .deal-image-square {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: var(--md-gray-100);
}

.deal-carousel-item .deal-image-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.deal-carousel-item:hover .deal-image-square img {
    transform: scale(1.05);
}

.deal-carousel-item .deal-content {
    padding: 14px;
    background: var(--md-white);
}

.deal-carousel-item .deal-boutique {
    font-size: 11px;
    color: var(--md-primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.deal-carousel-item .deal-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    color: var(--md-gray-900);
}

.deal-carousel-item .deal-title a {
    color: var(--md-gray-900);
}

.deal-carousel-item .deal-title a:hover {
    color: var(--md-primary);
}

.deal-carousel-item .deal-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.deal-carousel-item .price-promo {
    font-size: 20px;
    font-weight: 700;
    color: var(--md-hot);
}

.deal-carousel-item .price-normal {
    font-size: 13px;
    color: var(--md-gray-400);
    text-decoration: line-through;
}

.deal-carousel-item .price-reduction {
    font-size: 12px;
    font-weight: 700;
    color: var(--md-white);
    background: var(--md-hot);
    padding: 2px 6px;
    border-radius: 4px;
}

/* =========================================
   DEAL BUTTON (CTA)
   ========================================= */
.deal-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--md-hot);
    color: var(--md-white);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}

.deal-btn:hover {
    background: #B91C1C;
    color: var(--md-white);
    transform: translateY(-1px);
}

.deal-btn-secondary {
    background: var(--md-primary);
}

.deal-btn-secondary:hover {
    background: var(--md-primary-dark);
}

/* =========================================
   ARTICLES GRID (WordPress Posts)
   ========================================= */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.article-card {
    background: var(--md-white);
    border-radius: var(--md-radius);
    overflow: hidden;
    box-shadow: var(--md-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--md-shadow-lg);
}

.article-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--md-gray-100);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.article-content {
    padding: 16px;
}

.article-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--md-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a {
    color: var(--md-gray-900);
}

.article-title a:hover {
    color: var(--md-primary);
}

.article-excerpt {
    font-size: 14px;
    color: var(--md-gray-600);
    line-height: 1.5;
    margin-bottom: 12px;
}

.article-meta {
    font-size: 12px;
    color: var(--md-gray-500);
}

/* =========================================
   SQUARE IMAGES
   ========================================= */
.deal-image-square {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: var(--md-gray-100);
    border-radius: var(--md-radius);
}

.deal-image-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

/* =========================================
   STANDARD DEAL CARD
   ========================================= */
.deal-card {
    background: var(--md-white);
    border-radius: var(--md-radius);
    overflow: hidden;
    box-shadow: var(--md-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--md-shadow-lg);
}

.deal-card .deal-content {
    padding: 14px;
}

.deal-card .deal-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.deal-card .deal-title a {
    color: var(--md-gray-900);
}

.deal-card .deal-title a:hover {
    color: var(--md-primary);
}

.deal-card .deal-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.deal-card .price-promo {
    font-size: 18px;
    font-weight: 700;
    color: var(--md-hot);
}

.deal-card .price-normal {
    font-size: 14px;
    color: var(--md-gray-500);
    text-decoration: line-through;
}

.deal-card .deal-boutique {
    font-size: 12px;
    color: var(--md-gray-600);
    margin-bottom: 12px;
}

/* Badge reduction */
.deal-badge-reduction {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--md-hot);
    color: var(--md-white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

/* =========================================
   FEED / TIMELINE (HOT DEALS PAGE)
   ========================================= */
.deals-feed {
    max-width: 800px;
    margin: 0 auto;
}

.feed-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--md-hot);
    margin-bottom: 24px;
}

.feed-timeline {
    position: relative;
    padding-left: 32px;
}

.feed-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--md-hot) 0%, var(--md-gray-200) 100%);
    border-radius: 3px;
}

.deal-feed-item {
    position: relative;
    margin-bottom: 24px;
}

.feed-timeline-dot {
    position: absolute;
    left: -27px;
    top: 24px;
    width: 14px;
    height: 14px;
    background: var(--md-hot);
    border: 3px solid var(--md-white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--md-hot-light);
    z-index: 1;
}

.feed-card {
    display: flex;
    gap: 20px;
    background: var(--md-white);
    border-radius: var(--md-radius);
    overflow: hidden;
    box-shadow: var(--md-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feed-card:hover {
    transform: translateX(4px);
    box-shadow: var(--md-shadow-md);
}

.feed-image {
    position: relative;
    width: 160px;
    min-width: 160px;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--md-gray-100);
}

.feed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-content {
    flex: 1;
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
}

.feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--md-gray-500);
}

.feed-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.feed-boutique {
    color: var(--md-primary);
    font-weight: 500;
}

.feed-category {
    background: var(--md-gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--md-gray-600);
}

.feed-category:hover {
    background: var(--md-primary);
    color: var(--md-white);
}

.feed-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.feed-title a {
    color: var(--md-gray-900);
}

.feed-title a:hover {
    color: var(--md-hot);
}

.feed-excerpt {
    font-size: 14px;
    color: var(--md-gray-600);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.feed-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.feed-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feed-pricing .price-promo {
    font-size: 20px;
    font-weight: 700;
    color: var(--md-hot);
}

.feed-pricing .price-normal {
    font-size: 14px;
    color: var(--md-gray-500);
    text-decoration: line-through;
}

.feed-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--md-hot);
    color: var(--md-white);
    padding: 10px 18px;
    border-radius: var(--md-radius-sm);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.feed-cta:hover {
    background: #B91C1C;
    color: var(--md-white);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .feed-timeline {
        padding-left: 0;
    }
    .feed-timeline::before,
    .feed-timeline-dot {
        display: none;
    }
    .feed-card {
        flex-direction: column;
    }
    .feed-image {
        width: 100%;
        min-width: auto;
        aspect-ratio: 16/10;
    }
    .feed-content {
        padding: 16px;
    }
}

