/* =====================================================
   MASTER PAGE
   Ported from Site.master inline <style> block
   ===================================================== */

.master-page {
    min-height: 100vh;
    background: #fff;
    color: #171717;
}

.master-nav-fix {
    position: relative;
    z-index: 20;
}

.master-footer-fix {
    margin-top: 0;
}


/* =====================================================
   FSSAI
   ===================================================== */

.fssai-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    font-size: 10px;
    color: #777;
}

.fssai-logo {
    width: 45px;
    height: auto;
    display: block;
}


/* =====================================================
   HEADER ACTIONS
   ===================================================== */

.v10-actions.master-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}


/* =====================================================
   SEARCH BUTTON
   ===================================================== */

.v10-actions.master-actions .v10-search {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}


/* =====================================================
   MY ACCOUNT
   ===================================================== */

.v10-actions.master-actions .master-account-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 94px !important;
    max-width: none !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    border: 1px solid #44371f !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #eee !important;
    text-decoration: none !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 9px !important;
    font-weight: bold !important;
    letter-spacing: .5px !important;
    line-height: 36px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    opacity: 1 !important;
}


/* =====================================================
   LOGOUT
   ===================================================== */

.v10-actions.master-actions .master-logout-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 68px !important;
    max-width: none !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    border: 1px solid #44371f !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: #eee !important;
    text-decoration: none !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 9px !important;
    font-weight: bold !important;
    letter-spacing: .5px !important;
    line-height: 36px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    opacity: 1 !important;
}


/* =====================================================
   ACCOUNT / LOGOUT HOVER
   ===================================================== */

.v10-actions.master-actions .master-account-link:hover,
.v10-actions.master-actions .master-logout-link:hover {
    background: #c49a3b !important;
    border-color: #c49a3b !important;
    color: #111 !important;
}


/* =====================================================
   CART

   IMPORTANT:
   v10-home-final.css may create its own cart icon
   using ::before / ::after.

   We completely disable those old symbols here.
   ===================================================== */

.v10-actions.master-actions .v10-cart::before,
.v10-actions.master-actions .v10-cart::after {
    content: none !important;
    display: none !important;
    background: none !important;
    border: none !important;
}


/* =====================================================
   CART CONTAINER
   ===================================================== */

.v10-actions.master-actions .v10-cart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    margin: 0 0 0 2px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    color: #c49a3b !important;
    background: transparent !important;
    text-decoration: none !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}


/* =====================================================
   NEW CART SVG
   ===================================================== */

.v10-actions.master-actions .v10-cart .master-cart-icon {
    display: block !important;
    width: 25px !important;
    height: 25px !important;
    margin: 0 !important;
    padding: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}


/* =====================================================
   CART HOVER
   ===================================================== */

.v10-actions.master-actions .v10-cart:hover {
    background: rgba(196,154,59,.12) !important;
    color: #d6ae55 !important;
    transform: translateY(-1px);
}

.v10-actions.master-actions .v10-cart:hover .master-cart-icon {
    transform: scale(1.08) !important;
    stroke-width: 2 !important;
}


/* =====================================================
   CART NUMBER
   ===================================================== */

.v10-actions.master-actions .v10-cart b {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 17px !important;
    width: 17px !important;
    height: 17px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    background: #e00000 !important;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 8px !important;
    font-weight: bold !important;
    line-height: 17px !important;
    text-align: center !important;
    z-index: 20 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.35) !important;
}


/* =====================================================
   SOCIAL ICONS
   ===================================================== */

.master-social-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.master-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #c49a3b;
    text-decoration: none;
    transition: all .2s ease;
}

.master-social-icons a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.master-social-icons svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}


/* =====================================================
   TOPBAR SOCIAL ICONS
   ===================================================== */

.v10-social .master-social-icons {
    display: inline-flex;
}


/* =====================================================
   FOOTER SOCIAL ICONS
   ===================================================== */

.v10-footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.v10-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #c49a3b;
    text-decoration: none;
    transition: all .2s ease;
}

.v10-footer-social a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.v10-footer-social svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}


/* =====================================================
   FLOATING WHATSAPP
   ===================================================== */

.master-whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,.30);
    z-index: 9999;
    transition: transform .2s ease, box-shadow .2s ease;
}

.master-whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.40);
    color: #fff;
}

.master-whatsapp-float svg {
    width: 31px;
    height: 31px;
    fill: #fff;
}


/* =====================================================
   HIDE WHATSAPP ON INVOICE
   ===================================================== */

body.invoice-page-active .master-whatsapp-float {
    display: none !important;
}


/* =====================================================
   PRINT
   ===================================================== */

@media print {
    .master-whatsapp-float {
        display: none !important;
    }
}


/* =====================================================
   MOBILE
   ===================================================== */

@media(max-width:900px) {
    .v10-actions.master-actions {
        gap: 5px !important;
    }

    .v10-actions.master-actions .master-account-link {
        min-width: 86px !important;
        height: 34px !important;
        padding: 0 8px !important;
        font-size: 8px !important;
        line-height: 34px !important;
    }

    .v10-actions.master-actions .master-logout-link {
        min-width: 62px !important;
        height: 34px !important;
        padding: 0 8px !important;
        font-size: 8px !important;
        line-height: 34px !important;
    }

    .v10-actions.master-actions .v10-cart {
        flex-basis: 38px !important;
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        height: 38px !important;
    }

    .v10-actions.master-actions .v10-cart .master-cart-icon {
        width: 23px !important;
        height: 23px !important;
    }

    .master-whatsapp-float {
        right: 16px;
        bottom: 18px;
        width: 54px;
        height: 54px;
    }

    .master-whatsapp-float svg {
        width: 29px;
        height: 29px;
    }
}


/* =====================================================
   SMALL MOBILE
   ===================================================== */

@media(max-width:500px) {
    .v10-actions.master-actions {
        gap: 4px !important;
    }

    .v10-actions.master-actions .master-account-link {
        min-width: 78px !important;
        padding: 0 6px !important;
        font-size: 7px !important;
    }

    .v10-actions.master-actions .master-logout-link {
        min-width: 56px !important;
        padding: 0 6px !important;
        font-size: 7px !important;
    }

    .v10-actions.master-actions .v10-cart {
        flex-basis: 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
    }

    .v10-actions.master-actions .v10-cart .master-cart-icon {
        width: 22px !important;
        height: 22px !important;
    }
}


/* =====================================================
   IFRAME PAGE MODE (Admin)
   Pages loaded INSIDE admin iframe
   ===================================================== */

body.admin-iframe-mode {
    margin: 0 !important;
    padding: 0 !important;
    overflow: auto !important;
}

body.admin-iframe-mode .admin-sidebar {
    display: none !important;
}

body.admin-iframe-mode .admin-topbar {
    display: none !important;
}

body.admin-iframe-mode .admin-footer {
    display: none !important;
}

body.admin-iframe-mode .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
}

body.admin-iframe-mode .admin-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =====================================================
   ADMIN IFRAME
   ===================================================== */

.admin-page-frame {
    width: 100%;
    height: calc(100vh - 95px);
    border: 0;
    display: block;
    background: #fff;
}

@media(max-width:800px) {
    .admin-page-frame {
        height: calc(100vh - 70px);
    }
}
