/* ============================================
   Lonbuy Homepage Styles v2
   ============================================ */

:root {
    --lonbuy-primary: #1A237E;
    --lonbuy-accent: #2979FF;
    --lonbuy-dark: #0D1B2A;
    --lonbuy-light: #F5F5F5;
    --lonbuy-white: #FFFFFF;
    --lonbuy-text: #333333;
    --lonbuy-gray: #9E9E9E;
}

html { scroll-behavior: smooth; }

.lonbuy-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Header --- */
.lonbuy-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.lonbuy-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--lonbuy-dark);
    margin-bottom: 8px;
}
.lonbuy-section-desc {
    font-size: 1.1rem;
    color: var(--lonbuy-gray);
}
.lonbuy-section-footer {
    text-align: center;
    margin-top: 40px;
}

/* --- Buttons --- */
.lonbuy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.lonbuy-btn svg { flex-shrink: 0; }
.lonbuy-btn--primary {
    background: var(--lonbuy-accent);
    color: #fff;
}
.lonbuy-btn--primary:hover {
    background: var(--lonbuy-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 35, 126, 0.3);
}
.lonbuy-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.lonbuy-btn--outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.lonbuy-btn--white {
    background: #fff;
    color: var(--lonbuy-primary);
}
.lonbuy-btn--white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.lonbuy-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
    background: linear-gradient(135deg, #0D1B2A 0%, #1A237E 50%, #0D1B2A 100%);
}
.lonbuy-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(41, 121, 255, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(26, 35, 126, 0.2) 0%, transparent 60%);
}
.lonbuy-hero__content {
    position: relative;
    z-index: 1;
    max-width: 1290px;
    margin: 0 auto;
    padding: 100px 24px 80px;
    width: 100%;
}
.lonbuy-hero__text {
    max-width: 680px;
}
.lonbuy-hero__badge {
    display: inline-block;
    background: rgba(41, 121, 255, 0.18);
    color: #64B5F6;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(41, 121, 255, 0.3);
}
.lonbuy-hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.lonbuy-hero__highlight {
    color: #64B5F6;
}
.lonbuy-hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
}
.lonbuy-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.lonbuy-hero__stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}
.lonbuy-stat__number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}
.lonbuy-stat__label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ===== CATEGORIES ===== */
.lonbuy-categories {
    padding: 80px 0;
    background: #fff;
}
.lonbuy-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.lonbuy-cat-card {
    background: var(--lonbuy-light);
    border-radius: 16px;
    padding: 36px 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.lonbuy-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--lonbuy-accent);
}
.lonbuy-cat-icon {
    margin-bottom: 20px;
    width: 56px;
    height: 56px;
    background: rgba(41, 121, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.lonbuy-cat-card:hover .lonbuy-cat-icon {
    background: rgba(41, 121, 255, 0.15);
}
.lonbuy-cat-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lonbuy-dark);
    margin-bottom: 8px;
}
.lonbuy-cat-card p {
    font-size: 0.9rem;
    color: var(--lonbuy-gray);
    margin-bottom: 16px;
    line-height: 1.5;
    flex: 1;
}
.lonbuy-cat-link {
    font-size: 0.9rem;
    color: var(--lonbuy-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.lonbuy-cat-link::after {
    content: "?";
    transition: transform 0.2s;
}
.lonbuy-cat-card:hover .lonbuy-cat-link::after {
    transform: translateX(3px);
}

/* ===== BEST SELLERS ===== */
.lonbuy-bestsellers {
    padding: 80px 0;
    background: var(--lonbuy-light);
}
.lonbuy-products-grid .products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.lonbuy-products-grid .product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lonbuy-products-grid .product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.lonbuy-products-grid .product .woocommerce-loop-product__title {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ===== WHY CHOOSE ===== */
.lonbuy-why {
    padding: 80px 0;
    background: #fff;
}
.lonbuy-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.lonbuy-feature {
    text-align: center;
    padding: 24px 16px;
}
.lonbuy-feature-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}
.lonbuy-feature h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lonbuy-dark);
    margin-bottom: 10px;
}
.lonbuy-feature p {
    font-size: 0.92rem;
    color: var(--lonbuy-gray);
    line-height: 1.6;
}

/* ===== CTA ===== */
.lonbuy-cta {
    padding: 80px 0;
    text-align: center;
    margin: 0 calc(-50vw + 50%);
    width: 100vw;
    background: linear-gradient(135deg, #1A237E 0%, #2979FF 100%);
}
.lonbuy-cta__content {
    max-width: 600px;
    margin: 0 auto;
}
.lonbuy-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.lonbuy-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .lonbuy-cat-grid,
    .lonbuy-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lonbuy-products-grid .products {
        grid-template-columns: repeat(2, 1fr);
    }
    .lonbuy-hero__title { font-size: 2.5rem; }
    .lonbuy-section-title { font-size: 1.75rem; }
}
@media (max-width: 640px) {
    .lonbuy-cat-grid,
    .lonbuy-features-grid,
    .lonbuy-products-grid .products {
        grid-template-columns: 1fr;
    }
    .lonbuy-hero { min-height: auto; }
    .lonbuy-hero__content { padding: 50px 16px; }
    .lonbuy-hero__title { font-size: 1.9rem; }
    .lonbuy-hero__stats { gap: 24px; }
    .lonbuy-cta h2 { font-size: 1.75rem; }
    .lonbuy-container { padding: 0 16px; }
}
