﻿

@font-face {
    font-family: 'Vazirmatn';
    src: url('@Url.Content("~/font/vazirmatn/Vazirmatn%5Bwght%5D.woff2")') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --km-pink: #efc0c9;
    --km-pink-deep: #c97587;
    --km-pink-light: #fff4f6;
    --km-ink: #373239;
    --km-border: #f0e2e6;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fffafa;
    color: var(--km-ink);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        color: var(--km-pink-deep);
        text-decoration: none;
    }

.km-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.km-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: var(--km-pink);
    border-bottom: 1px solid rgba(130,70,82,.12);
    box-shadow: 0 4px 18px rgba(80,40,50,.06);
}

.km-header-inner {
    max-width: 1440px;
    width: calc(100% - 40px);
    margin: auto;
}

.km-header-top {
    display: grid;
    grid-template-columns: auto minmax(180px, 600px) auto;
    gap: 24px;
    align-items: center;
    padding: 12px 0;
}

.km-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 22px;
    font-weight: 900;
}

    .km-brand img {
        width: 52px;
        height: 52px;
        border-radius: 13px;
        object-fit: cover;
        border: 2px solid white;
        background: white;
    }

.km-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    min-width: 0;
    padding: 0 14px;
    border-radius: 12px;
    background: #fff;
}

    .km-search i {
        color: #8d7b81;
    }

    .km-search input {
        width: 100%;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        font: inherit;
        font-size: 13px;
    }

.km-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
}

.km-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(100,50,62,.13);
    border-radius: 11px;
    background: rgba(255,255,255,.8);
    color: #423238;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

    .km-action:hover {
        background: white;
        color: var(--km-pink-deep);
    }

.km-action-icon {
    width: 42px;
    padding: 0;
    font-size: 17px;
}

.km-nav-wrap {
    display: none !important;
}

.km-main {
    flex: 1 0 auto;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0 40px;
}

.km-footer {
    margin-top: auto;
    padding: 28px 0 18px;
    background: white;
    border-top: 1px solid var(--km-border);
}

.km-footer-inner {
    max-width: 1440px;
    width: calc(100% - 40px);
    margin: auto;
}

.km-benefits {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--km-border);
}

.km-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border-radius: 13px;
    background: var(--km-pink-light);
}

    .km-benefit i {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
        height: 38px;
        border-radius: 11px;
        background: white;
        color: var(--km-pink-deep);
        font-size: 18px;
    }

    .km-benefit strong {
        display: block;
        margin-bottom: 4px;
        font-size: 12px;
    }

    .km-benefit span {
        display: block;
        color: #817780;
        font-size: 11px;
    }

.km-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    color: #817780;
    font-size: 12px;
}

.km-footer-brand {
    color: var(--km-ink);
    font-size: 15px;
    font-weight: 900;
}

/* منوی کناری */

.km-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(20,15,18,.45);
}

    .km-drawer-backdrop.is-open {
        display: block;
    }

.km-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 5001;
    width: min(360px, 88vw);
    padding: 0;
    background: #fffafa;
    box-shadow: -10px 0 35px rgba(30,20,25,.18);
    overflow-y: auto;
    transform: translateX(110%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
}

    .km-drawer.is-open {
        transform: translateX(0);
        visibility: visible;
    }

.km-cart-drawer {
    z-index: 5002;
}

.km-drawer-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--km-pink);
    border-bottom: 1px solid var(--km-border);
}

    .km-drawer-head strong {
        font-size: 17px;
    }

.km-drawer-close {
    border: 0;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
}

.km-drawer-body {
    padding: 12px 16px 24px;
}

    .km-drawer-body .mobile-menu-list ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .km-drawer-body .mobile-menu-list li {
        position: relative;
        border-bottom: 1px solid var(--km-border);
    }

    .km-drawer-body .mobile-menu-list a {
        display: block;
        padding: 13px 8px;
        color: #332b30;
        font-weight: 600;
    }

    .km-drawer-body .mobile-menu-list ul ul {
        display: none !important;
        padding: 5px 12px 5px 0 !important;
        margin: 5px 0 8px !important;
        background: #fff4f6 !important;
        border-radius: 10px;
    }

        .km-drawer-body .mobile-menu-list ul ul.is-submenu-open {
            display: block !important;
        }

    .km-drawer-body .menu-arrow {
        float: left;
        font-size: 11px;
    }

.km-drawer-section {
    padding: 15px 0;
    border-top: 1px solid var(--km-border);
}

    .km-drawer-section h6 {
        margin: 0 0 12px;
        font-weight: 800;
    }

.km-user-line {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

    .km-user-line img {
        width: 36px;
        height: 36px;
        object-fit: cover;
        border-radius: 50%;
    }

.km-auth-buttons {
    display: grid;
    gap: 9px;
}

    .km-auth-buttons a {
        display: block;
        text-align: center;
        padding: 11px;
        border-radius: 9px;
        border: 1px solid var(--km-border);
        background: white;
    }

    .km-auth-buttons .km-btn-primary {
        color: white;
        background: var(--km-pink-deep);
        border-color: var(--km-pink-deep);
    }

/* دکمه افزودن آدرس */

.km-add-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 12px 14px;
    margin: 12px 0;
    border: 1px solid var(--km-pink-deep);
    border-radius: 10px;
    background: var(--km-pink-deep);
    color: white !important;
    font-family: Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}

    .km-add-address:hover {
        background: #b75d72;
        color: white !important;
        transform: translateY(-1px);
    }

.km-mobile-bottom {
    display: none;
}

/* لینک سفارش‌ها */

.rg-orders-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff0f5;
    color: #c45c83 !important;
    border: 1px solid #f0dce4;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    transition: all .2s ease;
}

    .rg-orders-link:hover {
        background: #c45c83;
        color: #fff !important;
        border-color: #c45c83;
        box-shadow: 0 4px 12px rgba(196,92,131,.15);
    }

    .rg-orders-link i {
        font-size: 16px;
    }

/* طراحی منوی دسته‌بندی‌ها */

.km-drawer .mobile-menu-list ul,
.km-drawer .mobile-menu-list li {
    list-style: none !important;
    list-style-type: none !important;
}

.km-drawer .mobile-menu-list {
    padding: 8px 0;
    direction: rtl;
}

    .km-drawer .mobile-menu-list li {
        margin: 5px 0;
        border: none !important;
    }

        .km-drawer .mobile-menu-list li > a {
            display: flex !important;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            min-height: 48px;
            padding: 12px 14px !important;
            border: 1px solid #f3e2e7;
            border-radius: 12px;
            background: #ffffff;
            color: #423238 !important;
            font-size: 13px;
            font-weight: 700;
            transition: background .2s ease, border-color .2s ease;
        }

            .km-drawer .mobile-menu-list li > a:hover {
                background: #fff0f4;
                border-color: #e8bac7;
                color: #c45c83 !important;
            }

    .km-drawer .mobile-menu-list ul ul {
        display: none;
        margin: 5px 0 8px !important;
        padding: 5px 12px 5px 0 !important;
        background: #fff4f6 !important;
        border-radius: 10px;
    }

        .km-drawer .mobile-menu-list ul ul.is-submenu-open {
            display: block !important;
        }

        .km-drawer .mobile-menu-list ul ul li > a {
            min-height: 42px;
            padding: 10px 12px !important;
            background: transparent;
            border: none;
            border-bottom: 1px solid #f1dfe5;
            border-radius: 0;
            font-size: 12px;
            font-weight: 500;
        }

    .km-drawer .mobile-menu-list .menu-arrow {
        float: none !important;
        flex-shrink: 0;
        font-size: 11px;
        color: #c45c83;
    }

#kmDrawer .mobile-menu-list li > ul {
    display: none !important;
    margin: 5px 0 8px !important;
    padding: 5px 12px 5px 0 !important;
    background: #fff4f6 !important;
    border-radius: 10px;
}

    #kmDrawer .mobile-menu-list li > ul.is-submenu-open {
        display: block !important;
    }

#kmDrawer .mobile-menu-list .menu-arrow {
    flex-shrink: 0;
    margin-right: 8px;
    font-size: 11px;
    color: #c45c83;
}

/* تنظیم هدر و جست‌وجو */

.km-header-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.km-search-wrapper {
    min-width: 0;
    width: 100%;
}

    .km-search-wrapper form {
        width: 100%;
        min-width: 0;
    }

    .km-search-wrapper input {
        min-width: 0;
        max-width: 100%;
    }


@media (max-width: 991.98px) {
    .km-header-inner,
    .km-footer-inner {
        width: calc(100% - 24px);
    }

    .km-header-top {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px 0;
    }

    /* نمایش نام لوتوس گالری در موبایل و تبلت */
    .km-brand {
        font-size: 16px;
        font-weight: 900;
        gap: 7px;
        color: #000 !important;
    }

        .km-brand img {
            width: 44px;
            height: 44px;
        }

    .km-action-text {
        display: none;
    }

    .km-action {
        width: 40px;
        padding: 0;
    }

    .km-main {
        padding-top: 12px;
        padding-bottom: 24px;
    }

    .km-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



@media (max-width: 767.98px) {
    .km-header-inner {
        width: calc(100% - 16px);
    }

    .km-header-top {
        display: grid;
        grid-template-columns: minmax(0,1fr) auto;
        grid-template-areas:
            "brand actions"
            "search search";
        gap: 10px;
        padding: 10px 0;
    }

    .km-brand {
        grid-area: brand;
        justify-self: start;
        min-width: 0;
    }

    .km-header-actions {
        grid-area: actions;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
        min-width: 0;
    }

    .km-search-wrapper {
        grid-area: search;
        width: 100%;
        min-width: 0;
    }

        .km-search-wrapper > * {
            max-width: 100%;
        }

        .km-search-wrapper form {
            display: flex;
            align-items: center;
            width: 100%;
            min-width: 0;
        }

        .km-search-wrapper input[type="text"],
        .km-search-wrapper input[type="search"] {
            flex: 1 1 auto;
            width: 100%;
            min-width: 0;
        }

    .km-header-actions .km-action {
        flex: 0 0 36px;
        width: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0;
    }

    .km-brand img {
        width: 38px;
        height: 38px;
    }

    .km-drawer {
        width: min(340px, 88vw);
    }

    .km-drawer-body {
        padding: 12px;
    }
}

@media (max-width: 575.98px) {
    .km-header-inner,
    .km-footer-inner {
        width: calc(100% - 16px);
    }

    .km-header-top {
        gap: 7px;
    }

    .km-brand img {
        width: 38px;
        height: 38px;
    }

    .km-search {
        height: 38px;
        padding: 0 9px;
        gap: 6px;
    }

        .km-search input {
            font-size: 11px;
        }

    .km-action {
        width: 35px;
        min-height: 35px;
    }

    .km-header-actions {
        gap: 5px;
    }

    .km-benefits {
        gap: 7px;
    }

    .km-benefit {
        padding: 9px 7px;
        gap: 7px;
    }

        .km-benefit strong {
            font-size: 10px;
        }

        .km-benefit span {
            font-size: 9px;
        }

    .km-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .km-header-top {
        gap: 8px;
    }

    .km-header-actions {
        gap: 4px;
    }

        .km-header-actions .km-action {
            flex-basis: 32px;
            width: 32px;
            min-width: 32px;
            min-height: 34px;
        }

    .km-search-wrapper {
        overflow: visible;
    }
}

/* رنگ مشکی نام لوتوس گالری در هدر */
.km-header .km-brand,
.km-header .km-brand:hover,
.km-header .km-brand:focus {
    color: #000 !important;
    text-decoration: none !important;
}

/* اندازه نام فروشگاه در موبایل */
@media (max-width: 767.98px) {
    .km-header .km-brand {
        font-size: 15px !important;
        gap: 6px;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .km-header .km-brand {
        font-size: 13px !important;
        gap: 5px;
    }

        .km-header .km-brand img {
            width: 34px;
            height: 34px;
        }
}
/* =========================================
   دکمه ورود و ثبت‌نام داخل منوی کناری
   ========================================= */

.km-drawer .km-auth-buttons > a:not(.km-btn-primary) {
    display: block;
    background: #fff4f6 !important;
    color: #8f465b !important;
    border: 1px solid #c97587 !important;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

    /* هاور دکمه ورود */
    .km-drawer .km-auth-buttons > a:not(.km-btn-primary):hover {
        background: #c97587 !important;
        color: #ffffff !important;
        border-color: #c97587 !important;
    }

/* دکمه ثبت‌نام */
.km-drawer .km-auth-buttons > a.km-btn-primary {
    display: block;
    background: #c97587 !important;
    color: #ffffff !important;
    border: 1px solid #c97587 !important;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

    /* هاور دکمه ثبت‌نام */
    .km-drawer .km-auth-buttons > a.km-btn-primary:hover {
        background: #a94f66 !important;
        color: #ffffff !important;
        border-color: #a94f66 !important;
    }

/* =========================================
   دکمه خروج داخل منوی کناری
   ========================================= */

.km-drawer .km-drawer-section > a[href*="SignOut"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: #fff0f3 !important;
    color: #b74761 !important;
    border: 1px solid #e8b8c4 !important;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

    /* آیکون خروج */
    .km-drawer .km-drawer-section > a[href*="SignOut"] i {
        color: #b74761 !important;
    }

    /* هاور خروج */
    .km-drawer .km-drawer-section > a[href*="SignOut"]:hover {
        background: #c97587 !important;
        color: #ffffff !important;
        border-color: #c97587 !important;
    }

        /* آیکون خروج هنگام هاور */
        .km-drawer .km-drawer-section > a[href*="SignOut"]:hover i {
            color: #ffffff !important;
        }



/* ==============================
   لینک صفحات قانونی در فوتر
   Lotus Gallery
   ============================== */

.km-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    padding: 28px 0;
    margin: 25px 0;
    border-top: 1px solid #f0e2e6;
    border-bottom: 1px solid #f0e2e6;
}

.km-footer-links-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

    .km-footer-links-column h4 {
        margin: 0 0 8px;
        color: #c97587;
        font-size: 15px;
        font-weight: 700;
    }

    .km-footer-links-column a {
        color: #373239;
        font-size: 13px;
        text-decoration: none;
        line-height: 1.9;
        transition: color 0.2s ease;
    }

        .km-footer-links-column a:hover {
            color: #c97587;
        }

@media (max-width: 575px) {
    .km-footer-links {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .km-footer-links-column {
        gap: 10px;
    }
}