﻿/* ==========================================================================
   SarvSilver - Typography Configuration
   ========================================================================== */

:root {
    /* Persian Font */
    --sarv-font-fa: "IRANSansWeb", Tahoma, sans-serif;
    /* English Font */
    --sarv-font-en: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    /* Bootstrap Overrides */
    --bs-font-sans-serif: var(--sarv-font-fa);
    --bs-body-font-family: var(--sarv-font-fa);
}

/* ==========================================================================
   Global Typography
   ========================================================================== */

body {
    font-family: var(--sarv-font-fa);
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

button,
input,
select,
textarea {
    font-family: inherit;
}

/* ==========================================================================
   English Typography
   ========================================================================== */

.font-en {
    font-family: var(--sarv-font-en);
}

/* ==========================================================================
   Persian Typography
   ========================================================================== */

.font-fa {
    font-family: var(--sarv-font-fa);
}

/* ==========================================================================
   Font Weight Helpers
   ========================================================================== */

.sarv-font-light {
    font-weight: 300;
}

.sarv-font-regular {
    font-weight: 400;
}

.sarv-font-bold {
    font-weight: 700;
}
/* ==========================================================
   SarvSilver - Responsive Typography
   ========================================================== */

/* Tablets and small desktops */
@media (max-width: 1199.98px) {

    body {
        font-size: 15px;
        line-height: 25px;
    }
}

/* Mobile devices */
@media (max-width: 767.98px) {

    body {
        font-size: 14px;
        line-height: 24px;
    }
}

/* Small mobile devices */
@media (max-width: 359.98px) {

    body {
        font-size: 13px;
        line-height: 22px;
    }
}
/* ==========================================================
   SarvSilver - Hide RTL/LTR Toggle
   ========================================================== */

#toggle-rtl {
    display: none !important;
}
/* ==========================================================
   SarvSilver - Mobile Cart Recommendations
   ========================================================== */

@media (max-width: 767.98px) {

    /* Recommended products container */
    .modal-shopping-cart .tf-minicart-recommendations {
        overflow: hidden;
    }

        /* Product titles */
        .modal-shopping-cart .tf-minicart-recommendations
        .list-cart-item .name a {
            font-size: 11px;
            line-height: 1.6;
            font-weight: 400;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            overflow: hidden;
        }

        /* Product price */
        .modal-shopping-cart .tf-minicart-recommendations
        .list-cart-item .price {
            font-size: 10px;
            line-height: 1.5;
            font-weight: 400;
            overflow-wrap: break-word;
        }

        /* Add to cart button */
        .modal-shopping-cart .tf-minicart-recommendations
        .list-cart-item .cart-item-bot a {
            font-size: 10px;
            line-height: 1.5;
        }
}
/* ==========================================================================
   SarvSilver - Mobile Menu Bottom UI
   Reference: Approved Mobile Design
   Target: #mobileMenu
   ========================================================================== */

/* ----------------------------------------------------------
   01 - Design Tokens
   ---------------------------------------------------------- */

#mobileMenu {
    --sarv-mobile-primary: #000f61;
    --sarv-mobile-primary-hover: #077207;
    --sarv-mobile-text: #181818;
    --sarv-mobile-muted: #606060;
    --sarv-mobile-soft: #edefff;
    --sarv-mobile-card: #e8ebff;
    --sarv-mobile-border: #000f61;
    direction: rtl;
}


    /* ----------------------------------------------------------
   02 - Bottom Content
   ---------------------------------------------------------- */

    #mobileMenu .mb-other-content {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
        margin-top: auto;
        padding: 22px 16px 20px;
        background-color: #ffffff;
        border-top: 1px solid var(--sarv-mobile-border);
        direction: rtl;
        font-family: var( --sarv-font-fa, "IRANSansWeb", Tahoma, sans-serif );
    }


        /* ----------------------------------------------------------
   03 - Account Actions
   ---------------------------------------------------------- */

        #mobileMenu .mb-other-content .sarv-account-actions {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            width: 100%;
            margin: 0;
            padding: 0;
        }


    /* Account Buttons */

    #mobileMenu .sarv-account-actions .site-nav-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        gap: 7px;
        padding: 11px 8px;
        margin: 0;
        border: 0;
        /*border-radius: 999px;*/
        font-family: inherit;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        white-space: nowrap;
        text-decoration: none;
        box-shadow: none;
        transition: background-color 0.2s ease, color 0.2s ease;
    }


        /* Account Icons */

        #mobileMenu .sarv-account-actions .site-nav-icon svg {
            display: block;
            width: 20px;
            height: 20px;
            flex: 0 0 20px;
        }


    /* Login Button */

    #mobileMenu .sarv-account-actions .sarv-login-btn {
        order: 0;
        background-color: var(--sarv-mobile-primary);
        color: #ffffff;
    }


    /* Wishlist Button */

    #mobileMenu .sarv-account-actions .sarv-wishlist-btn {
        order: 1;
        background-color: #ffe1e1;
        color: #e81000;
        /*        order: 1;
        background-color: var(--sarv-mobile-soft);
        color: var(--sarv-mobile-text);*/
    }


/* Hover */

@media (hover: hover) and (pointer: fine) {

    #mobileMenu .sarv-account-actions .sarv-login-btn:hover {
        background-color: var(--sarv-mobile-primary-hover);
        color: #ffffff;
    }

    #mobileMenu .sarv-account-actions .sarv-wishlist-btn:hover {
        background-color: #f2dfe2;
        color: var(--sarv-mobile-text);
    }
}


/* ----------------------------------------------------------
   04 - Store Services
   ---------------------------------------------------------- */

#mobileMenu .sarv-mobile-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 3px;
    width: 100%;
    margin: 0;
    padding: 0;
}


/* Individual Service */

#mobileMenu .sarv-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: center;
    color: var(--sarv-mobile-text);
}


    /* Service Icons */

    #mobileMenu .sarv-service-item svg {
        display: block;
        width: 25px;
        height: 25px;
        flex: 0 0 25px;
        color: #181818;
    }


    /* Service Text */

    #mobileMenu .sarv-service-item span {
        display: block;
        width: 100%;
        margin: 0;
        font-family: inherit;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.6;
        white-space: nowrap;
        text-align: center;
    }


/* ----------------------------------------------------------
   05 - Support Card
   ---------------------------------------------------------- */

#mobileMenu .sarv-support-details {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}


    /* Support Card Layout */

    #mobileMenu .sarv-support-details > .mb-notice {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        min-height: 68px;
        margin: 0;
        padding: 12px 11px;
        background-color: var(--sarv-mobile-card);
        border: 0;
        border-radius: 16px;
        list-style: none;
        text-align: right;
        cursor: pointer;
    }


        /* Hide Native Details Marker */

        #mobileMenu .sarv-support-details > .mb-notice::marker {
            content: "";
        }

        #mobileMenu .sarv-support-details > .mb-notice::-webkit-details-marker {
            display: none;
        }


/* Support Icon */

#mobileMenu .sarv-support-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: var(--sarv-mobile-primary);
}


    /* Support SVG */

    #mobileMenu .sarv-support-icon svg {
        display: block;
        width: 30px;
        height: 30px;
    }


/* Support Text */

#mobileMenu .sarv-support-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 3px;
    text-align: right;
}


    /* Support Title */

    #mobileMenu .sarv-support-text strong {
        display: block;
        width: 100%;
        margin: 0;
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.6;
        color: var(--sarv-mobile-text);
    }


    /* Support Subtitle */

    #mobileMenu .sarv-support-text small {
        display: block;
        width: 100%;
        margin: 0;
        font-family: inherit;
        font-size: 12px;
        font-weight: 400;
        line-height: 1.6;
        color: var(--sarv-mobile-muted);
    }


/* Support Arrow */

#mobileMenu .sarv-support-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 14px;
    width: 14px;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    color: var(--sarv-mobile-primary);
    transition: transform 0.2s ease;
}


/* Arrow on Open */

#mobileMenu .sarv-support-details[open] .sarv-support-arrow {
    transform: rotate(-90deg);
}


/* ----------------------------------------------------------
   06 - Preserved Contact Information
   ---------------------------------------------------------- */

#mobileMenu .sarv-support-extra {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    padding: 12px;
    background-color: #fafafa;
    border: 1px solid var(--sarv-mobile-border);
    border-radius: 12px;
}


    /* Address */

    #mobileMenu .sarv-support-extra .mb-contact {
        display: block;
        margin: 0;
        padding: 0;
        text-align: right;
    }


        /* Address Text */

        #mobileMenu .sarv-support-extra .mb-contact p {
            margin: 0 0 7px;
            font-family: inherit;
            font-size: 10px;
            line-height: 1.8;
            color: var(--sarv-mobile-muted);
        }


    /* Direction Link */

    #mobileMenu .sarv-support-extra .tf-btn-default {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-family: inherit;
        font-size: 10px;
        font-weight: 600;
        color: var(--sarv-mobile-primary);
    }


    /* Contact List */

    #mobileMenu .sarv-support-extra .mb-info {
        display: flex;
        flex-direction: column;
        gap: 9px;
        margin: 0;
        padding: 0;
        list-style: none;
    }


        /* Contact Row */

        #mobileMenu .sarv-support-extra .mb-info li {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 8px;
            margin: 0;
            padding: 0;
        }


            /* Contact Icon */

            #mobileMenu .sarv-support-extra .mb-info li i {
                font-size: 15px;
                color: var(--sarv-mobile-primary);
            }


            /* Contact Text */

            #mobileMenu .sarv-support-extra .mb-info li p {
                margin: 0;
                font-family: inherit;
                font-size: 10px;
                line-height: 1.8;
                color: var(--sarv-mobile-muted);
                overflow-wrap: anywhere;
            }


/* ----------------------------------------------------------
   07 - Language & Currency
   Existing HTML is preserved
   ---------------------------------------------------------- */

#mobileMenu .mb-bottom {
    background-color: #ffffff;
    border-top: 1px solid var(--sarv-mobile-border);
}


#mobileMenu .bottom-bar-language {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
}


    #mobileMenu .bottom-bar-language select {
        font-family: var( --sarv-font-fa, "IRANSansWeb", Tahoma, sans-serif );
        font-size: 10px;
    }


/* ----------------------------------------------------------
   08 - Accessibility
   ---------------------------------------------------------- */

#mobileMenu .sarv-login-btn:focus-visible,
#mobileMenu .sarv-wishlist-btn:focus-visible,
#mobileMenu .sarv-support-details > summary:focus-visible {
    outline: 2px solid var(--sarv-mobile-primary);
    outline-offset: 3px;
}


/* ==========================================================================
   09 - Mobile Layout
   ========================================================================== */

@media (max-width: 767.98px) {

    #mobileMenu .mb-other-content {
        gap: 22px;
        padding: 20px 14px 18px;
    }

    #mobileMenu .sarv-account-actions .site-nav-icon {
        min-height: 44px;
        padding: 10px 6px;
        font-size: 13px;
    }

    #mobileMenu .sarv-mobile-services {
        gap: 2px;
    }

    #mobileMenu .sarv-service-item span {
        font-size: 11px;
    }
}


/* ==========================================================================
   10 - Small Mobile Devices
   ========================================================================== */

@media (max-width: 359.98px) {

    #mobileMenu .mb-other-content {
        gap: 17px;
        padding: 16px 10px;
    }

    #mobileMenu .sarv-account-actions {
        gap: 7px;
    }

        #mobileMenu .sarv-account-actions .site-nav-icon {
            font-size: 9px;
            gap: 5px;
        }

            #mobileMenu .sarv-account-actions .site-nav-icon svg {
                width: 17px;
                height: 17px;
                flex-basis: 17px;
            }

    #mobileMenu .sarv-service-item svg {
        width: 22px;
        height: 22px;
    }

    #mobileMenu .sarv-service-item span {
        font-size: 8px;
    }

    #mobileMenu .sarv-support-details > .mb-notice {
        padding: 10px 8px;
    }
}


/* ==========================================================================
   11 - Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    #mobileMenu .sarv-account-actions .site-nav-icon,
    #mobileMenu .sarv-support-arrow {
        transition: none;
    }
}