﻿/* ==============================================
   1. دکمه‌ها و لینک‌های عمومی
   ============================================== */
.btn-shokofa, .btn-shokofablue, .btn-shokofawhite, .btn-shokofasuccess {
    border: none;
    border-radius: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 3px 6px rgba(4, 137, 201, 0.25);
    color: white;
}

.btn-shokofa {
    background: #E6511B;
}

    .btn-shokofa:hover {
        background: rgba(255,255,255,0);
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(4,137,201,0.35);
    }

    .btn-shokofa:focus {
        box-shadow: none;
    }

.btn-shokofablue {
    background: #085A72;
}

    .btn-shokofablue:hover {
        background: rgba(255,255,255,0);
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(4,137,201,0.35);
    }

    .btn-shokofablue:focus {
        box-shadow: none;
    }

.btn-shokofawhite {
    background: #fff;
    color: black;
}

    .btn-shokofawhite:hover {
        background: rgba(8,90,114);
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(4,137,201,0.35);
    }

    .btn-shokofawhite:focus {
        box-shadow: none;
    }

.btn-shokofasuccess {
    background: #008000;
}

    .btn-shokofasuccess:hover {
        background: rgba(255,255,255,0);
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(4,137,201,0.35);
    }

    .btn-shokofasuccess:focus {
        box-shadow: none;
    }

.my-link {
    text-decoration: none;
    color: white;
}

    .my-link:hover {
        font-weight: bold;
    }

/* ==============================================
   2. Navbar اصلی
   ============================================== */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-item {
    position: relative;
    margin-left: 20px;
}

.nav-link {
    font-weight: 600;
    color: #333;
}

.navbar .nav-link {
    color: white !important;
}

    .navbar .nav-link:hover, .navbar .nav-link:focus {
        color: #E6511B !important;
        font-weight: bold;
    }

/* ==============================================
   3. مگامنو سه‌سطحی
   ============================================== */
.dropdown-menu.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 900px;
    background: #fff;
    border: none;
    border-top: 3px solid #0d6efd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 0;
    margin-top: 0;
    z-index: 1000;
}

.mega-menu a {
    text-decoration: none;
}

#megaMenuParent:hover .dropdown-menu.mega-menu, .nav-item:hover .dropdown-menu.mega-menu {
    display: flex;
}

.menu-container {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.category-column {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    border-left: 1px solid #eee;
    padding: 15px;
}

.category-item {
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    background: #fff;
    border-radius: 4px;
    transition: background 0.2s;
}

    .category-item:hover, .category-item.active {
        background: #f2f2f2;
        color: #000;
    }

.second-column {
    display: flex;
    flex-direction: column;
    min-width: 180px;
    border-left: 1px solid #eee;
    padding: 15px;
}

.second-level {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.second-item {
    padding: 8px 10px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    background: #fff;
    border-radius: 4px;
    transition: background 0.2s;
}

    .second-item:hover, .second-item.active {
        background: #f2f2f2;
        color: #000;
    }

.third-column {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    max-height: 70px;
    overflow-y: auto;
}

.third-level {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
}

.card-item {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s,color 0.2s,border-color 0.2s;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

    .card-item:hover {
        background: #f2f2f2;
        color: #000;
        border-color: #0d6efd;
        text-decoration: none;
    }

    .card-item img {
        flex-shrink: 0;
    }

    .card-item > div {
        flex: 1;
        min-width: 0;
    }

/* ==============================================
   4. فیلتر کناری (sidebar)
   ============================================== */
.filter-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(8,90,114,0.45);
    backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255,255,255,0.2);
    box-shadow: -4px 0 25px rgba(0,0,0,0.4);
    color: #fff;
    padding: 25px 20px;
    transition: right 0.4s ease;
    z-index: 1050;
}

    .filter-sidebar.active {
        right: 0;
    }

.filter-tab {
    position: absolute;
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    background: rgba(8,90,114,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

    .filter-tab:hover {
        background: rgba(8,90,114,0.9);
        transform: translateY(-50%) scale(1.05);
    }

    .filter-tab span {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: 0.9rem;
        color: #fff;
        letter-spacing: 1px;
    }

/* ==============================================
   5. افکت شیشه‌ای عمومی
   ============================================== */
.glass {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 20px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

/* ==============================================
   6. لینک‌های دسته‌بندی موبایل
   ============================================== */
.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #085A72;
    font-weight: 600;
    margin-top: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    cursor: pointer;
}

    .category-link:hover {
        background: #f2f2f2;
        color: #085A72;
    }

    .category-link.active, .category-link[aria-expanded="true"] {
        background: #085A72;
        color: #fff;
    }

.category-items a {
    display: block;
    background: #fff;
    margin-top: 4px;
    padding: 8px 25px;
    border-radius: 6px;
    text-decoration: none;
    color: #085A72;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
}

    .category-items a:hover, .category-items a.active {
        background: #085A72;
        color: #fff;
    }

.category-items .category-items a {
    padding-left: 40px;
    font-weight: 500;
}

.category-link span {
    transition: transform 0.3s;
}

.category-link[aria-expanded="true"] span {
    transform: rotate(180deg);
}

/* ==============================================
   7. کارت محصولات
   ============================================== */
.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

    .product-card img {
        width: 100%;
        height: 240px;
        object-fit: cover;
    }

.product-card-body {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
}

    .product-card-body h5 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .product-card-body p {
        font-size: 0.85rem;
        color: #555;
        margin-bottom: 4px;
    }

.product-card-footer {
    padding: 10px 16px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.products-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* ==============================================
   8. Pagination
   ============================================== */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

    .pagination .page-item {
        border-radius: 50%;
        overflow: hidden;
        transition: transform 0.2s, box-shadow 0.2s;
    }

        .pagination .page-item .page-link {
            color: #085A72;
            background: #fff;
            border: none;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            transition: all 0.25s ease;
            padding: 0;
        }

            .pagination .page-item .page-link:hover {
                background: #085A72;
                color: #fff;
                transform: translateY(-2px);
                box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            }

        .pagination .page-item.active .page-link {
            background: #085A72;
            color: #fff;
            font-weight: bold;
            box-shadow: 0 3px 10px rgba(0,0,0,0.12);
        }

        .pagination .page-item.disabled .page-link {
            background: #f1f1f1;
            color: #ccc;
            cursor: not-allowed;
            pointer-events: none;
        }

        .pagination .page-item:first-child .page-link, .pagination .page-item:last-child .page-link {
            border-radius: 6px;
            width: auto;
            min-width: 40px;
            height: 36px;
            padding: 0 8px;
        }

@media (max-width:576px) {
    .pagination .page-item .page-link {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .pagination .page-item:first-child .page-link, .pagination .page-item:last-child .page-link {
        height: 28px;
        min-width: 36px;
        padding: 0 6px;
    }
}

/* ==============================================
   9. کارت لاگین ریسپانسیو
   ============================================== */
.login-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    border-radius: 12px;
}

    .login-card .form-control {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }

    .login-card .btn {
        font-weight: 600;
    }

@media (max-width:576px) {
    .login-card {
        padding: 0;
    }
}

/* ==============================================
   10. سبد خرید
   ============================================== */
.cart-page {
    max-width: 100vw;
    direction: rtl;
}

    .cart-page .col-md-8 .card-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cart-page .col-md-8 .d-flex.align-items-center {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

@media (max-width:768px) {
    .cart-page table tbody tr {
        display: block;
        border: 1px solid #eaeaea;
        border-radius: 10px;
        padding: 10px;
        margin-bottom: 10px;
        background: #fff;
    }

    .cart-page table tbody td {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: none !important;
    }

    .cart-page table thead {
        display: none;
    }
}



/* ==============================================
   10. ارتباط با ما
   ============================================== */

.contact-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

    .contact-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    }

    .contact-card .card-body p {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }

.map-container iframe {
    border-radius: 0 0 15px 15px;
}

.card-footer .btn {
    min-width: 100px;
    font-weight: 600;
}

@media (max-width:768px) {
    .map-container {
        height: 200px;
    }

    .card-footer {
        flex-direction: column;
        gap: 10px;
    }
}