/* =============================
   Global
============================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* =============================
   Navbar
============================= */
.navbar {
    transition: all 0.3s ease-in-out;
}

    .navbar .nav-link {
        color: #eaf6ee !important;
        margin-right: 6px;
        transition: 0.2s;
    }

        .navbar .nav-link:hover {
            color: #ffffff !important;
            transform: translateY(-1px);
        }

        .navbar .nav-link.active {
            color: #ffffff !important;
            font-weight: bold;
            border-bottom: 2px solid #ffffff;
        }

/* =============================
   Buttons
============================= */
.btn-success {
    background-color: #2e8b57;
    border-color: #2e8b57;
}

    .btn-success:hover {
        background-color: #257047;
        border-color: #257047;
    }

.btn-outline-success {
    color: #2e8b57;
    border-color: #2e8b57;
}

    .btn-outline-success:hover {
        background-color: #2e8b57;
        color: #fff;
    }

/* =============================
   Cards
============================= */
.card {
    border: none;
    border-radius: 12px;
    transition: all 0.25s ease-in-out;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

.card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* =============================
   Badges
============================= */
.badge {
    font-size: 0.8rem;
    padding: 6px 10px;
}

    .badge.bg-danger {
        background-color: #dc3545 !important;
    }

    .badge.bg-success {
        background-color: #2e8b57 !important;
    }

    .badge.bg-info {
        background-color: #e9f7ef !important;
        color: #2e8b57 !important;
    }

/* =============================
   Tables
============================= */
.table {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

    .table thead {
        background-color: #e9f7ef;
    }

        .table thead th {
            border-bottom: none;
            color: #2e8b57;
        }

    .table tbody tr:hover {
        background-color: #f2fbf6;
    }

/* =============================
   Forms
============================= */
.form-control,
.form-select {
    border-radius: 8px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #2e8b57;
        box-shadow: 0 0 0 0.2rem rgba(46,139,87,.25);
    }

/* =============================
   Alerts
============================= */
.alert-success {
    background-color: #e9f7ef;
    color: #2e8b57;
    border: none;
}

.alert-danger {
    background-color: #fdecea;
    color: #b02a37;
    border: none;
}

/* =============================
   Footer
============================= */
footer {
    font-size: 0.9rem;
    background-color: #ffffff;
}

/* =============================
   Animations
============================= */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* HomeWay Theme */
.btn-primary,
.btn-success {
    background-color: #f7931e;
    border-color: #f7931e;
}

    .btn-primary:hover,
    .btn-success:hover {
        background-color: #e68210;
        border-color: #e68210;
    }

.text-primary {
    color: #1f4f75 !important;
}

.bg-primary {
    background-color: #1f4f75 !important;
}


/* =============================
   Offer Product Card
============================= */

.offer-card {
    border-radius: 14px;
    overflow: hidden;
    transition: all .25s ease;
    background: #fff;
}

    .offer-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0,0,0,.15);
    }

.offer-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: #b3261e;
    color: white;
    padding: 8px 22px;
    border-radius: 999px; /* pill shape */
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 3;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.85rem;
}

.new-price {
    color: #dc3545;
    font-size: 1.1rem;
    font-weight: bold;
}