/**
 * Fabify 26.2 - Clean Homepage Styles
 * Conversion-focused design based on Amazon/Target/eBay patterns
 */

/* ============================================
   HERO SECTION
   ============================================ */
.hero-clean {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(32px, 5vw, 52px);
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.1;
    font-family: 'Playfair Display', serif;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--accent, #00ff88);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #00e67a;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-products {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.hero-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.hero-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-product-card img {
    width: 160px;
    height: 160px;
    object-fit: cover;
}

.hero-product-price {
    display: block;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 16px;
    color: var(--accent, #00ff88);
    background: #fff;
    text-align: center;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    background: var(--bg-card, #fff);
    padding: 20px 0;
    border-bottom: 1px solid var(--border, #e5e5e5);
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted, #666);
    font-size: 14px;
    font-weight: 500;
}

.trust-item svg {
    color: var(--accent, #00ff88);
    flex-shrink: 0;
}

/* ============================================
   CATEGORY NAVIGATION
   ============================================ */
.category-nav {
    padding: 60px 0;
    background: var(--bg-body, #f5f5f5);
}

.category-nav h2 {
    text-align: center;
    font-size: 28px;
    margin: 0 0 40px;
    color: var(--text-main, #121212);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: var(--bg-card, #fff);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-card:hover {
    border-color: var(--accent, #00ff88);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.category-card .cat-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.category-card .cat-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main, #121212);
    text-align: center;
}

.category-card .cat-count {
    font-size: 12px;
    color: var(--text-muted, #666);
    margin-top: 4px;
}

.category-card-highlight {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-color: transparent;
}

.category-card-highlight .cat-name,
.category-card-highlight .cat-count {
    color: #fff;
}

.category-card-highlight:hover {
    transform: scale(1.02);
}

/* ============================================
   FEATURED PRODUCTS
   ============================================ */
.featured-products {
    padding: 60px 0 80px;
    background: var(--bg-card, #fff);
}

.featured-products .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.featured-products .section-header h2 {
    font-size: 28px;
    margin: 0;
    color: var(--text-main, #121212);
}

.view-all {
    font-weight: 600;
    color: var(--text-main, #121212);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.view-all:hover {
    color: var(--accent, #00ff88);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card, #fff);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border, #e5e5e5);
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent, #00ff88);
}

.product-image {
    position: relative;
    background: #f9f9f9;
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.product-image .no-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    background: #f0f0f0;
}

.badge-popular {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info {
    padding: 16px;
}

.product-info h3 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--text-main, #333);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent, #10b981);
}

.product-price del {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    margin-right: 8px;
}

.product-price ins {
    text-decoration: none;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted, #666);
}

.product-rating .star-rating {
    font-size: 13px;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-box h2 {
    font-size: 32px;
    color: #fff;
    margin: 0 0 12px;
}

.newsletter-box > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    font-size: 16px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 280px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent, #00ff88);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-note {
    margin-top: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   DARK MODE OVERRIDES
   ============================================ */
[data-theme="dark"] .hero-clean {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
}

[data-theme="dark"] .category-nav {
    background: var(--bg-body);
}

[data-theme="dark"] .category-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .featured-products {
    background: var(--bg-body);
}

[data-theme="dark"] .product-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .product-image {
    background: #222;
}

[data-theme="dark"] .newsletter-section {
    background: #0d0d0d;
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-products {
        justify-content: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .trust-bar-inner {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-clean {
        padding: 40px 0 60px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-products {
        flex-wrap: wrap;
    }

    .hero-product-card img {
        width: 120px;
        height: 120px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 16px 12px;
    }

    .category-card .cat-icon {
        font-size: 28px;
    }

    .category-card .cat-name {
        font-size: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image img {
        height: 160px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 13px;
    }

    .product-price {
        font-size: 16px;
    }

    .trust-bar-inner {
        gap: 20px;
        padding: 0 20px;
    }

    .trust-item {
        font-size: 12px;
    }

    .newsletter-box h2 {
        font-size: 24px;
    }

    .newsletter-input {
        min-width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .featured-products .section-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-product-card:nth-child(3) {
        display: none;
    }

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