﻿/* ========== RESET & GENERAL ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #f2f8f4 0, #f7f7f7 45%, #f9f9f9 100%);
    color: #222;
}

/* ========== ACTIVE NAV UNDERLINE ========== */
.active-nav {
    position: relative;
    font-weight: 700 !important;
    color: #0b7b3a !important;
}

    .active-nav::after {
        content: "";
        position: absolute;
        bottom: -3px;
        left: 0;
        right: 0;
        height: 3px;
        background-color: #0b7b3a;
        border-radius: 10px;
    }

/* ========== SECTION TITLES ========== */
.section-title {
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

/* ========== HERO SECTION (Index) ========== */
.hero-section {
    background: linear-gradient(135deg, #0b7b3a, #0f9960);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

    .hero-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 55%);
        opacity: 0.7;
        pointer-events: none;
    }

    .hero-section .container {
        position: relative;
        z-index: 1;
    }

.hero-title {
    font-weight: 700;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    background: rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.hero-badge-icon {
    font-size: 1.2rem;
}

/* Hero buttons */
.hero-btn-primary {
    background: #ffb03b;
    color: #ffffff !important;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

    .hero-btn-primary:hover {
        background: #ffa326;
        color: #ffffff !important;
    }

.hero-btn-ghost {
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.10);
}

    .hero-btn-ghost:hover {
        background: rgba(255, 255, 255, 0.20);
        color: #ffffff !important;
    }

/* Hero carousel */
.hero-carousel {
    border-radius: 1.5rem;
    overflow: hidden;
}

.hero-slide-img {
    height: 320px;
    object-fit: cover;
}

.hero-carousel-control {
    width: 3rem;
    height: 3rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
}

.hero-carousel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 1.4rem;
}

.hero-carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background-color: rgba(255, 255, 255, 0.4);
}

.hero-carousel-indicators .active {
    background-color: #0b7b3a;
}

/* ========== SCROLL ANIMATION ========== */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ========== PRODUCT CATEGORY CARDS (Herbs/Spices/Seeds) ========== */
.product-category-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.4s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-category-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 30px rgba(0,0,0,0.12);
    }

.product-category-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.product-category-body {
    padding: 18px 20px 20px 20px;
    text-align: center;
}

    .product-category-body h3 {
        font-size: 1.2rem;
        font-weight: 700;
        color: #0b7b3a;
        margin-bottom: 0.4rem;
    }

    .product-category-body p {
        font-size: 0.9rem;
        color: #6c757d;
    }

/* ========== GREEN CARD (Why BIOHERBANOVA) & FEATURES ========== */
.bio-green-card {
    background: linear-gradient(135deg, #0b7b3a, #0f9960);
    color: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

    .bio-green-card a {
        color: #ffebc2;
        font-weight: 600;
        text-decoration: none;
    }

        .bio-green-card a:hover {
            text-decoration: underline;
        }

.home-feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

/* ========== SIMPLE PRODUCT BOX (لو استخدمناها) ========== */
.product-box {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.4s ease;
    cursor: pointer;
}

    .product-box:hover {
        transform: translateY(-8px);
        box-shadow: 0 14px 30px rgba(0,0,0,0.12);
    }

    .product-box .product-img img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

.product-content {
    padding: 20px;
    text-align: center;
}

    .product-content h3 {
        color: #0b7b3a;
        font-weight: 700;
    }

/* ========== FLIP CARDS (لوحات التصنيفات / المنتجات المتقلبة) ========== */

/* لينك حوالين الكارت */
.category-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

/* الحاوية الأساسية */
.flip-card {
    perspective: 1200px;
}

/* العنصر الداخلي اللي بيتقلب */
.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.9s ease;
}

.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}

/* الواجهتين */
.flip-front,
.flip-back {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
    background-color: #ffffff;
}

/* الوجه الخلفي */
.flip-back {
    position: absolute;
    top: 0;
    left: 0;
    padding: 1.5rem;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ====== Category flip cards backgrounds ====== */
.category-card {
    min-height: 260px;
}

.category-front {
    background-size: cover;
    background-position: center;
    position: relative;
}

/* الخلفيات */
.category-front-herbs {
    background-image: url("/images/herbs.jpg");
}

.category-front-spices {
    background-image: url("/images/spices.jpg");
}

.category-front-seeds {
    background-image: url("/images/seeds.jpg");
}

/* Overlay */
.category-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(0, 90, 60, 0.88), rgba(9, 121, 80, 0.82));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.category-text {
    font-size: 0.9rem;
    opacity: 0.92;
}

/* ظهر كارت التصنيف */
.category-back {
    background: linear-gradient(135deg, #0b7b3a, #0f9960);
    color: #fff;
}

.category-back-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.category-back-text {
    font-size: 0.95rem;
    opacity: 0.95;
}

.category-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    background-color: #ffffff;
    color: #0b7b3a;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ====== Product flip cards (لو استخدمت نفس الفكرة) ====== */

.product-card {
    height: 100%;
}

.product-front {
    padding: 1rem;
    text-align: center;
}

.product-back {
    background: #f4faf6;
    color: #16452c;
    font-size: 0.9rem;
}

    .product-back h5 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }

/* صورة المنتج جوه كارت المنتج */
.product-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    background-color: #e7f0ea;
    aspect-ratio: 4 / 3;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

.product-card:hover .product-img {
    transform: scale(1.06);
}

/* ====== FOOTER ====== */
.site-footer {
    background-color: #0b7b3a;
    color: #ffffff;
}

    .site-footer a {
        color: #d1e7dd;
        text-decoration: none;
    }

        .site-footer a:hover {
            text-decoration: underline;
        }

.footer-links a {
    padding: 0 0.35rem;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 55vh;
    }
}
