/* ============================================
   OFFERTE PAGE - Vetrina Prodotti Amazon
   ============================================ */

/* Hero - stile identico a category-hero */
.offerte-hero {
    background: linear-gradient(135deg, #1A365D 0%, #0f2847 50%, #0a1929 100%);
    color: #fff;
    padding: var(--space-3xl, 3rem) 0 var(--space-2xl, 2.5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.offerte-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.offerte-hero::after {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(196,30,58,0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
}

.offerte-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.offerte-hero .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    margin-bottom: var(--space-lg, 1.5rem);
    flex-wrap: wrap;
    background: transparent;
    border-bottom: none;
    border: none;
    padding: 0;
}

.offerte-hero .breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.offerte-hero .breadcrumb a:hover {
    color: #fff;
}

.offerte-hero .breadcrumb .separator {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

.offerte-hero .breadcrumb .current {
    color: rgba(255,255,255,0.95);
    font-weight: 600;
}

.offerte-hero-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196,30,58,0.15);
    border: 1px solid rgba(196,30,58,0.3);
    border-radius: var(--radius-lg, 16px);
    margin: 0 auto var(--space-lg, 1.5rem);
}

.offerte-hero-icon svg {
    width: 40px;
    height: 40px;
    color: rgba(255,255,255,0.9);
}

.offerte-hero h1 {
    font-family: var(--font-serif, 'Merriweather', serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-lg, 1.5rem);
    letter-spacing: -0.02em;
}

.offerte-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    max-width: 650px;
    margin: 0 auto;
}

/* Banner Offerte del Giorno */
.offerte-deals-banner {
    padding: 1.5rem 0;
    background: #fafafa;
}

.deals-banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, #FF9900 0%, #FF6600 100%);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deals-banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 153, 0, 0.3);
}

.deals-banner-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 2rem;
}

.deals-banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deals-banner-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.deals-banner-text {
    flex: 1;
}

.deals-banner-text h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem;
}

.deals-banner-text p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.4;
}

.deals-banner-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.2s;
}

.deals-banner-link:hover .deals-banner-cta {
    background: rgba(255,255,255,0.3);
}

/* Layout a 2 colonne: sidebar + contenuto */
.offerte-products {
    padding: 2rem 0 3rem;
    background: #fafafa;
}

.offerte-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .offerte-layout {
        grid-template-columns: 260px 1fr;
    }
}

/* === SIDEBAR CATEGORIE (stile TOC articoli) === */
.offerte-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .offerte-sidebar {
        display: block;
    }
}

.offerte-sidebar-sticky {
    position: sticky;
    top: 180px;
}

.offerte-toc {
    background: #fff;
    border: 1px solid var(--color-border, #e5e5e5);
    border-radius: var(--radius-md, 10px);
    padding: var(--space-lg, 1.5rem);
}

.offerte-toc-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md, 1rem);
    padding-bottom: var(--space-sm, 0.5rem);
    border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.offerte-toc-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-700, #404040);
}

.offerte-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.offerte-toc-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    color: var(--color-gray-700, #404040);
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: var(--radius-sm, 6px);
    transition: all 0.15s ease;
    cursor: pointer;
    line-height: 1.3;
}

.offerte-toc-item:hover {
    background: var(--color-gray-50, #f9f9f9);
    color: var(--color-primary, #C41E3A);
}

.offerte-toc-item.active {
    background: rgba(196, 30, 58, 0.08);
    color: var(--color-primary, #C41E3A);
    font-weight: 600;
}

.offerte-toc-item .toc-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.offerte-toc-item .toc-icon svg {
    width: 18px;
    height: 18px;
}

.offerte-toc-item.active .toc-icon {
    opacity: 1;
}

.offerte-toc-item .toc-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--color-gray-400, #a3a3a3);
    font-weight: 400;
}

.offerte-toc-item.active .toc-count {
    color: var(--color-primary, #C41E3A);
}

/* === FILTRI MOBILE (chip orizzontali, solo sotto 1024px) === */
.offerte-filters-mobile {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
    .offerte-filters-mobile {
        display: none;
    }
}

.offerte-filters-mobile::-webkit-scrollbar {
    height: 3px;
}

.offerte-filters-mobile::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid #d4d4d4;
    border-radius: 100px;
    background: #fff;
    color: #525252;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.filter-chip:hover {
    border-color: #C41E3A;
    color: #C41E3A;
    background: #fef2f2;
}

.filter-chip.active {
    background: #C41E3A;
    color: #fff;
    border-color: #C41E3A;
}

.filter-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
}

.filter-icon svg {
    width: 16px;
    height: 16px;
}

.offerte-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.offerte-header h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.offerte-count {
    font-size: 0.9rem;
    color: #737373;
    margin: 0;
}

/* Griglia prodotti - riusa stili amazon-products */
.offerte-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.offerte-grid .offerte-card {
    border-bottom: 1px solid #e5e5e5;
}

.offerte-grid .offerte-card:last-child {
    border-bottom: none;
}

/* Price styling */
.offerte-price-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2px;
}

.offerte-price {
    font-weight: 700;
    color: #B12704;
    font-size: 0.95rem;
}

.offerte-original-price {
    font-size: 0.82rem;
    color: #737373;
    text-decoration: line-through;
}

.offerte-discount {
    display: inline-block;
    background: #CC0C39;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Rating */
.offerte-rating {
    display: inline-flex;
    gap: 1px;
    font-size: 0.82rem;
    margin-top: 2px;
}

.offerte-rating .star {
    color: #ccc;
}

.offerte-rating .star.filled {
    color: #FFA41C;
}

/* Category tag */
.offerte-category-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #525252;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Loading State */
.offerte-loading {
    text-align: center;
    padding: 3rem 0;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e5e5e5;
    border-top-color: #C41E3A;
    border-radius: 50%;
    animation: offerteSpin 0.7s linear infinite;
    margin: 0 auto 1rem;
}

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

.offerte-loading p {
    color: #737373;
    font-size: 0.95rem;
}

/* Empty State */
.offerte-empty {
    text-align: center;
    padding: 3rem 0;
    color: #737373;
}

.offerte-empty svg {
    margin-bottom: 1rem;
    opacity: 0.4;
}

/* Load More */
.offerte-load-more {
    text-align: center;
    margin-top: 2rem;
}

.offerte-load-more .load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: #C41E3A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: 'Inter', sans-serif;
}

.offerte-load-more .load-more-btn:hover {
    background: #A01830;
}

.offerte-counter {
    color: #737373;
    font-size: 0.88rem;
    margin-top: 0.75rem;
}

/* Disclosure & Updated */
.offerte-updated {
    text-align: center;
    color: #a3a3a3;
    font-size: 0.78rem;
    margin-top: 1.5rem;
}

/* Responsive Tablet */
@media (max-width: 768px) {
    .offerte-hero h1 {
        font-size: 1.6rem;
    }

    .deals-banner-content {
        flex-wrap: wrap;
        padding: 1rem 1.25rem;
    }

    .deals-banner-cta {
        width: 100%;
        justify-content: center;
    }

    .offerte-header {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Responsive Mobile */
@media (max-width: 480px) {
    .offerte-hero {
        padding: 2rem 0 1.5rem;
    }

    .offerte-hero h1 {
        font-size: 1.4rem;
    }

    .offerte-hero-subtitle {
        font-size: 0.92rem;
    }

    .deals-banner-icon {
        display: none;
    }

    .filter-chip {
        font-size: 0.8rem;
        padding: 0.4rem 0.85rem;
    }
}

.offerte-main {
    min-width: 0;
    overflow: hidden;
}

.offerte-grid {
    overflow: hidden;
    max-width: 100%;
}
