﻿body {
    /* font-family: 'Cairo', sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 0;*/
    background: #f9fafb;
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}
.nav-dropdown {
    position: relative;
}

    .nav-dropdown > a {
        display: flex;
        align-items: center;
        gap: 6px;
    }

/* Dropdown box */
.dropdown-menu {
    position: absolute;
    top: 130%;
    right: 0;
    background: #fff;
    border-radius: 10px;
    min-width: 180px;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .25s ease;
    z-index: 999;
}

/* Show on hover */
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    font-size: 14px;
    color: #111;
    font-weight: 600;
}   

    .dropdown-menu li a:hover {
        background: #f9fafb;
        color: #16a34a;
    }

.top-nav { 
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    direction: rtl;
}

.nav-container {
    max-width: 1300px;
    margin: auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 45px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
    .nav-menu .dropdown-menu {
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0,0,0,.15);
        border: none;
        text-align: right;
    }
    .nav-menu a {
        text-decoration: none;
        font-weight: 700;
        color: #111;
        font-size: 15px;
    }

        .nav-menu a.sale {
            color: #b91c1c;
        }

.nav-icons {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-icon {
    position: relative;
    font-size: 22px;
    color: #111;
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #b91c1c;
    color: #fff;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}


header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.pro-main-body {
    margin-top: 120px;
}

/* Main Bar */
.pro-main-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 10px 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.pro-main-logo img {
    height: 40px;
}

.pro-main-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f3f5;
    border-radius: 22px;
    padding: 8px 12px;
}

    .pro-main-search input {
        border: none;
        background: transparent;
        outline: none;
        font-size: 13px;
        width: 100%;
    }
.livestock-menu {
    padding: 6px 0;
}

/* الرابط */
.pro-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    font-weight: 700;
    color: #14532d;
    transition: background .25s ease, color .25s ease;
    border-radius: 12px;
}

    /* هوفر */
    .pro-dropdown-link:hover {
        background: linear-gradient(135deg,#dcfce7,#bbf7d0);
        color: #166534;
    }

/* الأيقونة */
.icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

/* حركة */
.pro-dropdown-link:hover .icon {
    transform: scale(1.15) rotate(-3deg);
    box-shadow: 0 10px 25px rgba(34,197,94,.45);
}

/* ===== أيقونات منفصلة ===== */
.sheep-harrah {
    background-color: #dcfce7;
    background-image: url('/icons/sheep-harrah.svg');
}

.sheep-white {
    background-color: #f0fdf4;
    background-image: url('/icons/sheep-white.svg');
}

.sheep-red {
    background-color: #fee2e2;
    background-image: url('/icons/sheep-red.svg');
}

.goat {
    background-color: #ecfeff;
    background-image: url('/icons/goat.svg');
}

.ram {
    background-color: #fef9c3;
    background-image: url('/icons/ram.svg');
}


.pro-brd {
    border: none;
    /*background: #0b03c6;*/
    background: linear-gradient(135deg, #14532d, #16a34a);
    color: white;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.pro-main-btn2 {
    border: none;
    /*background: #0b03c6;*/
    background: linear-gradient(135deg,#f59e0b,#f97316);
    color: white;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}
.pro-main-btn {
    border: none;
    background: #f1f3f5;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.pro-lang-btn {
    border-radius: 18px;
    padding: 0 12px;
    width: auto;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

.pro-icon-btn i {
    font-size: 16px;
}

.pro-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    border-radius: 50%;
    padding: 2px 6px;
}

.pro-main-footer {
    background: #f8f9fb;
    padding: 60px 0 20px;
    color: #1f2937;
    font-size: 14px;
}

.pro-footer-box h5 {
    font-weight: 800;
    margin-bottom: 20px;
}

.pro-footer-box p {
    line-height: 1.8;
    color: #4b5563;
}

.pro-footer-links {
    list-style: none;
    padding: 0;
}

    .pro-footer-links li {
        margin-bottom: 10px;
    }

    .pro-footer-links a {
        text-decoration: none;
        color: #374151;
    }

        .pro-footer-links a:hover {
            color: #f59e0b;
        }

.pro-contact-list {
    list-style: none;
    padding: 0;
}

    .pro-contact-list li {
        display: flex;
        align-items: center;
        margin-bottom: 14px;
        gap: 10px;
    }

    .pro-contact-list i {
        width: 34px;
        height: 34px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 5px 15px rgba(0,0,0,.1);
    }

.pro-social-icons {
    margin: 20px 0;
}

    .pro-social-icons a {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 8px;
        color: #111;
        box-shadow: 0 6px 15px rgba(0,0,0,.12);
    }

.pro-cr-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

    .pro-cr-box img {
        width: 45px;
    }

.pro-footer-bottom {
    border-top: 1px dashed #d1d5db;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.pro-payments img {
    height: 26px;
    margin: 0 6px;
}

.pro-whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 10px 25px rgba(0,0,0,.3);
    z-index: 999;
}
.pro-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px); /* under the button */
    right: 0;
    width: 230px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,.18);
    overflow-y: auto;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease;
}

    .pro-dropdown-menu.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

.pro-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pro-dropdown-item {
    border-bottom: 1px solid #f1f1f1;
}

.pro-dropdown-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .pro-dropdown-link i {
        font-size: 20px;
        flex-shrink: 0;
    }

    .pro-dropdown-link:hover {
        background-color: #0d6efd;
        color: #fff;
        border-radius: 8px;
        transform: translateX(5px);
    }

.pro-logout {
    color: #dc2626;
}

@media (max-width: 768px) {
    .pro-dropdown-menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px); /* under the button */
        right: 0;
        width: 230px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 15px 40px rgba(0,0,0,.18);
        overflow-y: auto;
        z-index: 9999;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity .25s ease, transform .25s ease;
    }

        .pro-dropdown-menu.show {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

    .pro-dropdown-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .pro-dropdown-item {
        border-bottom: 1px solid #f1f1f1;
    }

    .pro-dropdown-link {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 16px 20px;
        font-size: 16px;
        color: #333;
        text-decoration: none;
        transition: all 0.2s ease;
    }

        .pro-dropdown-link i {
            font-size: 20px;
            flex-shrink: 0;
        }

        .pro-dropdown-link:hover {
            background-color: #0d6efd;
            color: #fff;
            border-radius: 8px;
            transform: translateX(5px);
        }


}
