/*
Theme Name: SmartVibe WP
Theme URI: https://smartvibe.tech
Author: SmartVibe Team
Description: Tema WordPress per SmartVibe.tech - Recensioni e Affiliazioni Amazon
Version: 1.0.0
License: GPL v2 or later
Text Domain: smartvibe-wp
*/

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

body {
    background-color: #EAEDED;
    color: #111111;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   HEADER - STILE AMAZON
   ============================================ */
.site-header {
    background-color: #131921;
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== LOGO ===== */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo .logo-icon {
    background: #FF9900;
    color: #131921;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}

.site-logo .logo-text .brand {
    font-size: 24px;
    font-weight: 700;
    color: #FF9900;
    letter-spacing: -0.5px;
}

.site-logo .logo-text .brand span {
    color: #FFFFFF;
    font-weight: 300;
}

.site-logo .logo-text .tagline {
    font-size: 11px;
    color: #AAAAAA;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== SEARCH ===== */
.search-form {
    flex: 1;
    min-width: 200px;
    max-width: 650px;
    display: flex;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border 0.2s;
}

.search-form:focus-within {
    border-color: #FF9900;
}

.search-form select {
    background: #F0F0F0;
    border: none;
    padding: 10px 14px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    outline: none;
    border-right: 1px solid #DDDDDD;
    min-width: 130px;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 15px;
    outline: none;
    min-width: 100px;
}

.search-form button {
    background: #FF9900;
    border: none;
    padding: 0 20px;
    color: #131921;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form button:hover {
    background: #E68A00;
}

/* ===== HEADER RIGHT ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header-right .account {
    font-size: 13px;
    line-height: 1.2;
}

.header-right .account strong {
    font-size: 15px;
    display: block;
    font-weight: 700;
}

.header-right .account a {
    color: white;
    text-decoration: none;
}

.header-right .account a:hover {
    color: #FF9900;
}

/* ============================================
   NAVIGAZIONE - STILE AMAZON
   ============================================ */
.main-nav {
    background: #232F3E;
    color: white;
    padding: 6px 0;
    font-size: 14px;
    position: sticky;
    top: 60px;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
    font-weight: 500;
    font-size: 14px;
}

.main-nav ul li a:hover {
    color: #FF9900;
}

/* ============================================
   HERO - STILE AMAZON
   ============================================ */
.hero {
    background: linear-gradient(135deg, #131921 0%, #1E2B3A 100%);
    color: white;
    padding: 80px 20px;
    margin: 0 0 30px;
    border-radius: 0;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #FFFFFF;
}

.hero h1 strong {
    color: #FF9900;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: #CCCCCC;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 500px;
}

/* ============================================
   PULSANTI
   ============================================ */
.btn-primary {
    display: inline-block;
    background: #FF9900;
    color: #131921;
    padding: 16px 48px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #E68A00;
    transform: scale(1.02);
}

/* ============================================
   CATEGORIE
   ============================================ */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #232F3E;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E7E7E7;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid #DDDDDD;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    border-color: #FF9900;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-card i {
    font-size: 2rem;
    color: #FF9900;
    margin-bottom: 8px;
    display: block;
}

.category-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #232F3E;
    margin-bottom: 4px;
}

.category-card span {
    font-size: 0.8rem;
    color: #666;
}

/* ============================================
   PRODOTTI - STILE AMAZON
   ============================================ */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E7E7E7;
}

.products-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #232F3E;
    margin: 0;
}

.products-header .count {
    font-size: 0.85rem;
    color: #666;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===== CARD PRODOTTO ===== */
.product-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #DDDDDD;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: #FF9900;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-card .product-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    background: #F7F7F7;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-card .product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 5px;
    line-height: 1.3;
    min-height: 40px;
}

.product-card .product-title a {
    color: #232F3E;
    text-decoration: none;
}

.product-card .product-title a:hover {
    color: #FF9900;
}

.product-card .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #B12704;
    margin: 5px 0 10px;
}

.product-card .price .old-price {
    font-size: 0.85rem;
    font-weight: 400;
    color: #555;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-card .btn-affiliate {
    background: #FF9900;
    color: #131921;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: block;
    margin-top: auto;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.product-card .btn-affiliate:hover {
    background: #E68A00;
}

/* ============================================
   BANNER AFFILIAZIONE
   ============================================ */
.affiliate-banner {
    background: #232F3E;
    color: white;
    padding: 35px 40px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    margin: 50px auto;
    padding: 35px 40px;
}

.affiliate-banner h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 5px;
}

.affiliate-banner h3 span {
    color: #FF9900;
}

.affiliate-banner p {
    color: #CCCCCC;
    font-size: 0.95rem;
    margin: 0;
}

.affiliate-banner .btn-banner {
    background: #FF9900;
    color: #131921;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.affiliate-banner .btn-banner:hover {
    background: #E68A00;
}

/* ============================================
   SINGOLO PRODOTTO
   ============================================ */
.single-product-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.single-product-wrapper .product-gallery {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single-product-wrapper .product-gallery img {
    width: 100%;
    border-radius: 4px;
}

.single-product-wrapper .product-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #232F3E;
}

.single-product-wrapper .product-info .price {
    font-size: 30px;
    font-weight: 700;
    color: #B12704;
    margin-bottom: 20px;
}

.single-product-wrapper .product-info .description {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* ===== RECENSIONI PRO/CONTRO ===== */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.review-box {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-top: 4px solid #DDDDDD;
}

.review-box.pro {
    border-top-color: #28A745;
}

.review-box.pro h3 {
    color: #28A745;
}

.review-box.contro {
    border-top-color: #DC3545;
}

.review-box.contro h3 {
    color: #DC3545;
}

.review-box.verdetto {
    border-top-color: #FF9900;
}

.review-box.verdetto h3 {
    color: #FF9900;
}

.review-box h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-box ul {
    list-style: none;
    padding: 0;
}

.review-box ul li {
    padding: 8px 0;
    border-bottom: 1px solid #F0F0F0;
}

/* ============================================
   FOOTER - STILE AMAZON
   ============================================ */
.site-footer {
    background: #131921;
    color: #DDDDDD;
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 3px solid #FF9900;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 30px;
}

.footer-grid h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 14px;
    font-weight: 600;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-grid ul li a {
    color: #AAAAAA;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-grid ul li a:hover {
    color: #FF9900;
}

.footer-bottom {
    border-top: 1px solid #2A3A4A;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #888;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 0;
}

.footer-bottom .logo-footer {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FF9900;
}

.footer-bottom .logo-footer span {
    color: white;
}

/* ============================================
   SIDEBAR
   ============================================ */
.widget-area {
    margin: 30px 0;
}

.widget {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #DDDDDD;
    margin-bottom: 20px;
}

.widget h4 {
    color: #232F3E;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FF9900;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid #F0F0F0;
}

.widget ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.widget ul li a:hover {
    color: #FF9900;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .review-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .hero {
        padding: 50px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .main-nav {
        overflow-x: auto;
        white-space: nowrap;
        position: sticky;
        top: 60px;
    }
    
    .main-nav ul {
        flex-wrap: nowrap;
        gap: 12px;
        font-size: 13px;
        padding: 0 20px;
    }
    
    .affiliate-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .product-card .product-title {
        font-size: 0.85rem;
        min-height: 36px;
    }
    
    .product-card .price {
        font-size: 1.1rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn-primary {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

/* ============================================
   UTILITY
   ============================================ */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.bg-white {
    background: white;
}

.rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}