/* ==========================================================================
   HOMEPAGE — Clean, minimal, conversion-focused
   ========================================================================== */

/* ===== HERO ===== */

.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50vh;
    padding: var(--space-16) 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-neutral-900) 0%, var(--color-primary-900) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 540px;
}

.hero-title {
    font-size: var(--text-4xl) !important;
    font-weight: var(--font-bold) !important;
    color: white !important;
    line-height: 1.15 !important;
    margin-bottom: var(--space-4) !important;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: var(--text-sm) !important;
    color: var(--color-neutral-300) !important;
    line-height: var(--leading-relaxed) !important;
    margin-bottom: var(--space-6) !important;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.hero-actions .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
}

.hero-actions .btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--color-neutral-900), transparent);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 40vh;
        padding: var(--space-10) 0;
    }

    .hero-title {
        font-size: var(--text-3xl) !important;
    }

    .hero-background {
        width: 100%;
        opacity: 0.15;
    }
}

/* ===== TRUST BAR ===== */

.trust-bar-section {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-3) 0;
}

@media (min-width: 768px) {
    .trust-bar {
        justify-content: space-between;
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: var(--text-xs) !important;
    font-weight: var(--font-medium);
}

.trust-item svg {
    width: 14px;
    height: 14px;
    color: var(--color-success);
    stroke: var(--color-success);
}

/* ===== SECTIONS ===== */

.section {
    padding: var(--space-12) 0;
    background-color: #ffffff;
}

.section-alt {
    background: var(--color-neutral-50);
    background-color: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-header h2 {
    font-size: var(--text-xl) !important;
    font-weight: var(--font-semibold) !important;
    margin-bottom: var(--space-2) !important;
    color: var(--color-neutral-900) !important;
}

.section-header p {
    font-size: var(--text-sm) !important;
    color: var(--color-text-muted) !important;
    margin: 0 !important;
}

.section-badge {
    display: inline-block;
    padding: 2px var(--space-3);
    background: var(--color-secondary-500);
    color: white;
    font-size: 10px !important;
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
}

.section-footer {
    text-align: center;
    margin-top: var(--space-6);
}

.section-footer .btn {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-5);
}

/* ===== CATEGORIES GRID ===== */

/* Categories Grid - Flexbox for Centering */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

.category-card {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--duration-fast) var(--ease-in-out);
    aspect-ratio: 1;
    width: calc(50% - var(--space-4));
    /* 2 per row mobile */
}

@media (min-width: 768px) {
    .categories-grid {
        gap: var(--space-6);
    }

    .category-card {
        width: calc(25% - var(--space-6));
        /* 4 per row tablet (approx size user liked) */
    }
}

@media (min-width: 1024px) {
    .category-card {
        width: calc(20% - var(--space-6));
        /* 5 per row desktop (approx size user liked) */
    }
}


.category-card:hover {
    transform: translateY(-2px);
}

.category-image {
    width: 100%;
    height: 100%;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-in-out);
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-100), var(--color-primary-200));
}

.category-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    text-align: center;
    padding: var(--space-3);
    transition: background var(--duration-fast) var(--ease-in-out);
}

.category-card:hover .category-info {
    background: rgba(0, 0, 0, 0.55);
}

.category-info h3 {
    font-size: var(--text-sm) !important;
    font-weight: var(--font-semibold) !important;
    margin: 0 0 2px !important;
    color: white !important;
}

.category-count {
    font-size: var(--text-xs) !important;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== UNIQUE ITEMS ===== */

.unique-items-section {
    background: var(--color-neutral-50);
}

/* ===== NEWSLETTER ===== */

.newsletter-section {
    background: var(--color-primary-700);
    color: white;
    text-align: center;
    padding: var(--space-10) 0;
}

.newsletter-content {
    max-width: 460px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: white !important;
    font-size: var(--text-xl) !important;
    margin-bottom: var(--space-2) !important;
}

.newsletter-content>p {
    color: var(--color-primary-100) !important;
    font-size: var(--text-sm) !important;
    margin-bottom: var(--space-5) !important;
}

.newsletter-form-large {
    display: flex;
    gap: var(--space-2);
    max-width: 420px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .newsletter-form-large {
        flex-direction: column;
    }
}

.newsletter-form-large input[type="email"] {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    font-size: var(--text-sm) !important;
    color: white;
}

.newsletter-form-large input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form-large input[type="email"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form-large .btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    flex-shrink: 0;
    background: white !important;
    color: var(--color-primary-700) !important;
    border: none !important;
}

.newsletter-form-large .btn:hover {
    background: var(--color-neutral-100) !important;
}

.newsletter-disclaimer {
    margin-top: var(--space-3);
    font-size: var(--text-xs) !important;
    color: var(--color-primary-200);
}