
/* GOOGLE FONT (OPTIONAL FOR PREMIUM LOOK) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

/* RESET */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f0fdf4;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #065f46, #16a34a);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* CONTAINER */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
}

/* LOGO */
.logo img {
    height: 51px;
}

/* MENU */
.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #ecfdf5;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding-bottom: 5px;
    transition: 0.3s;
}

/* UNDERLINE EFFECT */
.nav-menu a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 3px;
    left: 0;
    bottom: 0;
    background: #bbf7d0;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #bbf7d0;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* BUTTONS */
.auth-buttons {
    display: flex;
    gap: 12px;
}

.login-btn {
    padding: 8px 18px;
    border-radius: 30px;
    border: 2px solid #bbf7d0;
    color: #bbf7d0;
    font-weight: 600;
    text-decoration: none;
    transition: 0.5s;
}
.login-btn:hover {
    background: #b1eec6;
    color: #065f46;
}

.signup-btn {
    padding: 9px 22px;
    border-radius: 30px;
    background: #ffffff;
    color: #065f46;
    font-weight: 700;
    text-decoration: none;
}

/* HAMBURGER */
.hamburger {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* MOBILE AUTH */
.mobile-auth {
    display: none;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .hamburger {
        display: block;
    }

    .auth-buttons {
        display: none;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: linear-gradient(135deg, #065f46, #16a34a);
        text-align: center;
        padding: 20px 0;
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
}

/* HERO */
.hero {
    position: relative;
    height: 66vh;
    overflow: hidden;
}

/* SLIDES */
.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-size: cover;
    background-position: center;
}

/* BACKGROUNDS */
.hero-slide:nth-child(1) {
    background: url("/static/images/hero.jpg") center/cover no-repeat;
}
.hero-slide:nth-child(2) {
    background: url("/static/images/hero_vet.jpg") center/cover no-repeat;
}
.hero-slide:nth-child(3) {
    background: url("/static/images/farmer.png") center/cover no-repeat;
}

/* ACTIVE */
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* OVERLAY */
.hero-slide::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 80, 40, 0.6); */
    top: 0;
    left: 0;
}

/* TEXT */
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
}

.hero p {
    font-size: 20px;
}

/* OVERLAY CONTENT */
.hero-overlay {
    position: absolute;
    bottom: 60px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

/* SEARCH */
.search-box {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.search-box form {
    width: 100%;
    display: flex;
}

/* INPUT */
.search-box input {
    padding: 14px 16px;
    width: 100%;
    border-radius: 30px 0 0 30px;
    border: none;
    outline: none;
    font-size: 14px;
    min-width: 0;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* BUTTON */
.search-box button {
    padding: 12px 18px;
    border-radius: 0 30px 30px 0;
    border: none;
    background: #16a34a;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 90px;
    box-shadow: 0 10px 25px rgba(22,163,74,0.18);
}

/* BUTTONS */
.btn {
    padding: 10px 22px;
    border-radius: 25px;
    margin: 5px;
}

.primary {
    background: #16a34a;
    color: #fff;
}

.secondary {
    border: 1px solid #fff;
    color: #fff;
}

/* STATS */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.hero-stats h3 {
    color: #22c55e;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    .search-box {
        max-width: 100%;
        padding: 0 16px;
    }

    .search-box input {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* ================= SECTION ================= */
.category-strip {
    background: #f9fafb;
    padding: 20px 0;
}

/* ================= CONTAINER ================= */
.category-container {
    display: flex;
    gap: 50px;
    padding: 10px 20px;

    /* 🔥 Horizontal scroll for mobile */
    overflow-x: auto;
    scroll-behavior: smooth;

    /* hide scrollbar */
    scrollbar-width: none;
}

.category-container::-webkit-scrollbar {
    display: none;
}

/* ================= ITEM ================= */
.category-item {
    flex: 0 0 auto;
    width: 90px;
    text-align: center;
    cursor: pointer;
}

/* ICON BOX */
.category-item img {
    width: 97px;
    height: 97px;
    border-radius: 50%;
    object-fit: cover;
    padding: 12px;
    background: #ffffff;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

/* HOVER EFFECT */
.category-item:hover img {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* TEXT */
.category-item span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

/* ================= DESKTOP CENTER ALIGN ================= */
@media (min-width: 768px) {
    .category-container {
        justify-content: center;
        overflow-x: hidden;
    }
}

/* ================= TABLET ================= */
@media (max-width: 768px) {
    .category-item {
        width: 80px;
    }

    .category-item img {
        width: 65px;
        height: 65px;
    }
}

/* ================= SMALL MOBILE ================= */
@media (max-width: 480px) {
    .category-item {
        width: 75px;
    }

    .category-item img {
        width: 60px;
        height: 60px;
    }

    .category-item span {
        font-size: 12px;
    }
}

/* ================= SECTION ================= */
.product-section-container {
    padding: 20px 30px;
}

.product-section {
    padding: 30px 20px;
}

/* ================= HEADER ================= */
/* HEADER */
.section-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 25px;
}

/* HEADING */
.section-header h3 {
    font-size: 28px;              
    font-weight: 900;             
    color: #064e3b;
    text-align: center;
    letter-spacing: 0.8px;
    position: relative;
    padding-bottom: 10px;
    text-transform: capitalize;
}

/* GLOW + UNDERLINE */
.section-header h3::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    margin: 8px auto 0;
    border-radius: 10px;
}

/* ICON */
.section-header h3 i {
    margin-right: 10px;
    color: #22c55e;
    font-size: 24px;
    background: #ecfdf5;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(34,197,94,0.3);
}

/* ACTION (RIGHT SIDE) */
.section-header .actions {
    position: absolute;
    right: 0;
}

.section-header .actions a {
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
    text-decoration: none;
    transition: 0.3s;
}

.section-header .actions a:hover {
    color: #064e3b;
    transform: translateX(5px);
}

/* ACTIONS */
.actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.actions a {
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
}

/* ================= SLIDER ================= */
.card-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

/* 🔥 MAIN FIX */
.product-card {
    flex: 0 0 calc(20% - 12px); /* 5 cards per row */
    max-width: calc(20% - 12px);
}
.card-slider {
    display: flex;
    gap: 15px; /* reduced gap */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 2px;
}

/* hide scrollbar */
.card-slider::-webkit-scrollbar {
    display: none;
}

/* edge spacing fix */
.card-slider::before,
.card-slider::after {
    content: "";
    min-width: 10px;
}

/* ================= CARD ================= */
.product-card {
    min-width: 230px; /* reduced from 260 */
    background: #fff;
    border-radius: 15px;
    min-height: 340px;
    padding: 10px; /* compact */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    border: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* ================= IMAGE ================= */
.image-box {
    position: relative;
}

.image-box img {
    width: 100%;
    height: 260px; /* reduced height */
    border-radius: 10px;
    object-fit: cover;
}

/* ================= TAG ================= */
.tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #facc15;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 5px;
}

/* ================= DISCOUNT ================= */
.discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 5px;
}

/* ================= TEXT ================= */
.product-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 10px 0 5px;
    color: #064e3b;
}

/* PRICE */
.price {
    font-size: 16px;
    font-weight: 800;
    color: #16a34a;
}

.price span {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
}

/* LOCATION */
.location {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

/* ================= META ================= */
.meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    margin: 5px 0;
    color: #374151;
}

/* ================= BUTTON ================= */
.buy-btn {
    width: 70%;              
    padding: 8px 12px;       
    font-size: 13px;         
    border: none;
    background: #16a34a;
    color: #fff;
    border-radius: 8px;      
    margin: 8px auto 0;      
    display: block;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.buy-btn:hover {
    background: #15803d;
}

/* ================= GREEN CARD ================= */
.product-card.green {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

/* ================= SCROLL BUTTON ================= */
.scroll-btn {
    border: none;
    background: #16a34a;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* ================= RESPONSIVE ================= */

/* TABLET */
@media (max-width: 768px) {
    .product-section-container {
        padding: 15px 15px;
    }

    .product-card {
        min-width: 200px;
    }

    .image-box img {
        height: 140px;
    }
}

/* MOBILE */
@media (max-width: 480px) {
    .product-card {
        min-width: 180px;
    }

    .image-box img {
        height: 130px;
    }

    .section-header h3 {
        font-size: 16px;
    }
}


/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #555;
}

.close-btn:hover {
    color: #000;
}

/* ================= LOGO ================= */
.modal-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.modal-logo img {
    width: 70px;
}

.modal-logo h3 {
    color: #065f46;
    font-weight: 700;
}

/* ================= TEXT ================= */
.modal-right h4 {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 700;
}

.modal-right p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

/* ================= INPUT ================= */
.input-group input {
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

/* focus effect */
.input-group input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
}

/* ================= BUTTON ================= */
.otp-btn {
    width: 100%;
    margin-top: 15px;
    padding: 13px;
    background: linear-gradient(135deg, #16a34a, #22c55e); 
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

/* hover */
.otp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34,197,94,0.4);
}

/* ================= ANIMATION ================= */
@keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .modal-box {
        flex-direction: column;
    }

    .modal-left {
        display: none;
    }

    .modal-right {
        width: 100%;
        padding: 25px;
    }
}

