/* ============================================
   MODERN HOMEPAGE STYLES
   ============================================ */

/* Modern Hero Section */
.hero-modern {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a5f3f 0%, #2d6a4f 50%, #40916c 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(82, 183, 136, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(214, 163, 115, 0.2) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-hero-primary {
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition-base);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: var(--primary);
}

.btn-hero-secondary {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    color: var(--white);
}

.stat-item strong {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-item span {
    font-size: 0.875rem;
    opacity: 0.9;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
    border-radius: var(--radius-xl);
}

.hero-badge-float {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #52b788, #40916c);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.hero-badge-float i {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    fill: var(--white);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Modern Sections */
.section-header-modern {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title-modern {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Modern Categories */
.categories-modern {
    padding: 5rem 0;
    background: var(--gray-50);
}

.categories-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card-modern {
    position: relative;
    padding: 2.5rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.category-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.category-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: all var(--transition-base);
}

.category-card-modern:hover .category-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.category-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.category-desc {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--primary);
    transition: all var(--transition-base);
}

.category-card-modern:hover .category-arrow {
    background: var(--primary);
    color: var(--white);
    transform: translateX(5px);
}

.category-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(50%, -50%);
}

/* Modern Products */
.products-modern {
    padding: 5rem 0;
}

.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card-modern {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-badge-bio {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.5rem 1rem;
    background: var(--success);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-image-wrapper {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-50);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-base);
}

.product-card-modern:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 106, 79, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-base);
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
}

.quick-view {
    color: var(--white);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-info-modern {
    padding: 1.5rem;
}

.product-category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-name-modern {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-name-modern a {
    color: var(--gray-900);
}

.product-name-modern a:hover {
    color: var(--primary);
}

.product-desc-modern {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-footer-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price-modern {
    display: flex;
    flex-direction: column;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-unit {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.btn-add-modern {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-add-modern:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(45, 106, 79, 0.4);
}

.section-cta {
    text-align: center;
}

/* Benefits Section */
.benefits-modern {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    margin-bottom: 3rem;
}

.product-card-modern {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-badge-bio {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.5rem 1rem;
    background: var(--success);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-image-wrapper {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-50);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-base);
}

.product-card-modern:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 106, 79, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-base);
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
}

.quick-view {
    color: var(--white);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-info-modern {
    padding: 1.5rem;
}

.product-category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-name-modern {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-name-modern a {
    color: var(--gray-900);
}

.product-name-modern a:hover {
    color: var(--primary);
}

.product-desc-modern {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-footer-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price-modern {
    display: flex;
    flex-direction: column;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-unit {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.btn-add-modern {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-add-modern:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(45, 106, 79, 0.4);
}

.section-cta {
    text-align: center;
}

/* Benefits Section */
.benefits-modern {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image-wrapper {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .section-title-modern {
        font-size: 2rem;
    }

    .categories-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 640px) {
    .hero-modern {
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    /* 2 Column Product Grid on Mobile */
    .products-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-info-modern {
        padding: 1rem;
    }

    .product-name-modern {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .product-desc-modern {
        display: none;
        /* Hide description on mobile to save space */
    }

    .price-amount {
        font-size: 1.1rem;
    }

    .btn-add-modern {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .product-badge-bio {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
        top: 0.5rem;
        left: 0.5rem;
    }

    .category-card-modern {
        padding: 1.5rem;
    }

    .category-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .category-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 380px) {
    .products-grid-modern {
        grid-template-columns: 1fr;
    }
}