:root{
    --farsan-primary:#E63946;
    --farsan-secondary:#FFB703;
    --farsan-bg-light:#FFF8D6;
    --farsan-bg-dark:#4A2E1B;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    height:100%;
    margin:0;
    padding:0;
}

body{
    font-family:'Hind Vadodara','Inter',sans-serif;
    background:#FFE08A;
    color:var(--farsan-bg-dark);
    min-height:100vh;
    
}

/* ================= DESKTOP ================= */

@media(min-width:992px){

    .company-logo{
        width:140px;
    }

    .display-4{
        font-size:2.3rem;
    }

    .lead,
    h5{
        font-size:1rem;
    }

    .card-custom{
        padding:1.25rem;
    }

    .mb-5{
        margin-bottom:1rem!important;
    }

    .mb-4{
        margin-bottom:1rem!important;
    }

    .py-4{
        padding-top:1rem!important;
        padding-bottom:1rem!important;
    }

}

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

@media(max-width:991px){

    body{
        overflow-x:hidden;
        overflow-y:auto;
    }

}

body.lang-en .lang-gu-only{
    display:none !important;
}

body.lang-gu .lang-en-only{
    display:none !important;
}

/* ================= NAVBAR ================= */

.navbar{
    min-height:58px;
}

.navbar-brand{
    font-weight:700;
    font-size:1.5rem;
    letter-spacing:.3px;
}

@media(max-width:576px){

    .navbar-brand{
        font-size:1.1rem;
    }

}

/* ================= APP VIEW ================= */

.app-view{

    min-height: 100dvh;

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

    align-items:stretch;

    padding:30px 0;

    animation:fadeIn .35s;

}



/* Desktop */

@media(min-width:992px){

    .app-view{

        min-height:calc(100vh - 58px);

        justify-content:flex-start;

        align-items:stretch;

        padding:30px 0;

    }

}

/* Mobile */

@media(max-width:991px){

    .app-view{

    
        
        min-height:calc(100dvh - 58px);

        justify-content:flex-start;

        align-items:stretch;

        padding:20px 0;

    }

}

/* ================= LOGO ================= */

.company-logo{

    width:200px;

    max-width:90%;

    height:auto;

}

@media(max-width:768px){

    .company-logo{

        width:200px;

    }

}

/* Navbar Logo */
.navbar-logo{
    width:42px;
    height:42px;
    object-fit:contain;
}

@media (max-width:768px){
    .navbar-logo{
        width:34px;
        height:34px;
    }

    .navbar-brand .fw-bold{
        font-size:1.1rem !important;
    }
}

/* ================= TEXT ================= */

.display-4{

    font-weight:700;

}

@media(max-width:768px){

    .display-4{

        font-size:2rem;

    }

}

.lead{

    font-size:1.2rem;

}

@media(max-width:768px){

    .lead{

        font-size:1rem;

    }

}

/* ================= CARD ================= */

.card-custom{

    background:#fff;

    border:none;

    border-radius:22px;

    box-shadow:0 10px 30px rgba(0,0,0,.12);

    padding:2rem;

    transition:all .25s ease;

}

.card-custom:hover{

    transform:translateY(-3px);

    box-shadow:0 14px 35px rgba(0,0,0,.16);

}

@media(max-width:768px){

    .card-custom{

        padding:1.5rem;

    }

}

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

.btn-authentic-red{

    background:#E63946;

    color:#fff;

    border:none;

    border-radius:50px;

    font-weight:700;

    transition:.25s;

}

.btn-authentic-red:hover{

    background:#cf2e3b;

    color:#fff;

}

.btn-authentic-red:focus{

    box-shadow:none;

}

.size-grid-btn{

    border:2px solid #FFB703;

    border-radius:16px;

    background:#fff;

    color:#E63946;

    font-weight:700;

    padding:20px;

    transition:.25s;

}

.size-grid-btn:hover{

    background:#FFF6D8;

}

.size-grid-btn.active{

    background:#FFE7A3;

    border-color:#FFB703;

}

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

.admin-sidebar{

    background:#2b2d42;

    color:#fff;

    min-height:100vh;

}

.admin-sidebar .nav-link{

    color:#d0d0d0;

    padding:12px 18px;

    border-radius:10px;

    transition:.25s;

}

.admin-sidebar .nav-link:hover,

.admin-sidebar .nav-link.active{

    background:#E63946;

    color:#fff;

}

/* ================= RECEIPT ================= */

.receipt-card{

    background:#fff;

    border:2px solid #000;

    border-radius:10px;

    font-family:Courier New,Courier,monospace;

}

.dashed-divider{

    border-top:2px dashed #555;

}

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

.cart-sticky-bar{

    position:fixed;

    left:0;

    right:0;

    bottom:0;

    background:#E63946;

    color:#fff;

    z-index:999;

    padding:12px 20px;

}

/* ================= UTILITIES ================= */

.rounded-20{

    border-radius:20px;

}

.shadow-soft{

    box-shadow:0 10px 25px rgba(0,0,0,.10);

}

.text-primary-red{

    color:#E63946;

}

.bg-light-yellow{

    background:#FFF8D6;

}

/* ================= ANIMATION ================= */

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(15px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.page-header-fixed{
    position: fixed;
    top: 65px;              /* Adjust to match your navbar height */
    left: 0;
    right: 0;
    z-index: 1020;
    background: #FFE08A;
    margin: 0;
    padding: 8px 5px;
}

.page-content{
    padding-top: 50px;
}

/* Hide scrollbar but keep scrolling */
html,
body{
    overflow-y: auto;
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE/Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar{
    width: 0;
    display: none;
}

#weightInput::placeholder {
    font-size: 1.1rem;
    font-weight: bold;
}




/* =============================================================================
                    Admin Pages CSS Start From Here
================================================================================ */


/* =====================================
   ADMIN SIDEBAR
===================================== */

#adminSidebar {
    width: 260px;
    flex-shrink: 0;
    background: #6F4E37;
    border-radius: 16px;
    transition: width .3s ease;
    overflow: hidden;
}

.admin-sidebar {
    background: #6F4E37;
    min-height: 100vh;
    padding: 1rem;
}

#mainContent {
    flex: 1;
    min-width: 0;
    padding: 1rem;
}


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

#toggleSidebar {
    cursor: pointer;
    user-select: none;
}

.sidebar-arrow {
    transition: transform .3s ease;
}


/* =====================================
   NORMAL MENU
===================================== */

#adminSidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
    color: #fff;
    text-decoration: none;
}


/* Menu icons */

#adminSidebar .nav-link i {
    width: 24px;
    min-width: 24px;
    margin-right: 12px;
    text-align: center;
    font-size: 20px;
}


/* =====================================
   NORMAL MENU HOVER
===================================== */

#adminSidebar .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .10) !important;
}


/* =====================================
   NORMAL MENU FOCUS
===================================== */

#adminSidebar .nav-link:focus {
    color: #fff !important;
    box-shadow: none !important;
    outline: none !important;
}


/* =====================================
   NORMAL MENU ACTIVE / SELECTED
===================================== */

#adminSidebar .nav-link.active {
    color: #fff !important;
    background: #dc3545 !important;
    border-radius: 8px;
}


/* Keep selected item RED on hover */

#adminSidebar .nav-link.active:hover {
    color: #fff !important;
    background: #dc3545 !important;
}


/* Keep selected item RED when clicked */

#adminSidebar .nav-link.active:active {
    color: #fff !important;
    background: #dc3545 !important;
}


/* =============================================================================
   REPORTS
================================================================================ */


/* =====================================
   REPORTS MAIN BUTTON
===================================== */

#adminSidebar .reports-main {
    color: #fff !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    cursor: pointer;
}


/* Reports hover */

#adminSidebar .reports-main:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .10) !important;
}


/* Reports focus */

#adminSidebar .reports-main:focus {
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}


/* Reports click */

#adminSidebar .reports-main:active {
    color: #fff !important;
    background: rgba(255, 255, 255, .10) !important;
}


/* =====================================
   REPORTS ACTIVE MAIN BUTTON
===================================== */

/*
   When any report page is selected,
   PHP adds reports-active to Reports.
*/

#adminSidebar .reports-main.reports-active {
    color: #fff !important;
    background: #dc3545 !important;
    border-radius: 8px;
}


/* Keep Reports red when hovering */

#adminSidebar .reports-main.reports-active:hover {
    color: #fff !important;
    background: #dc3545 !important;
}


/* =====================================
   REPORTS ARROW
===================================== */

#adminSidebar .reports-arrow {
    transition: transform .25s ease;
}


/* Arrow down */

#adminSidebar .reports-main[aria-expanded="false"] .reports-arrow {
    transform: rotate(0deg);
}


/* Arrow up */

#adminSidebar .reports-main[aria-expanded="true"] .reports-arrow {
    transform: rotate(180deg);
}


/* =============================================================================
   REPORTS SUBMENU
================================================================================ */


/* =====================================
   REPORTS SUBMENU CLOSED
===================================== */

#adminSidebar .reports-submenu {
    display: none;
    width: 100%;
}


/* =====================================
   REPORTS SUBMENU OPEN
===================================== */

#adminSidebar .reports-submenu.reports-open {
    display: block;
}


/* =====================================
   REPORT SUBMENU LINKS
===================================== */

#adminSidebar .reports-submenu .nav-link {
    display: flex;
    align-items: center;
    color: #fff !important;
    background: transparent !important;
    text-decoration: none !important;
    padding: 10px 16px;
}


/* Submenu icons */

#adminSidebar .reports-submenu .nav-link i {
    width: 24px;
    min-width: 24px;
    margin-right: 12px;
    font-size: 17px;
}


/* =====================================
   REPORT SUBMENU HOVER
===================================== */

#adminSidebar .reports-submenu .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .10) !important;
}


/* =====================================
   REPORT SUBMENU FOCUS
===================================== */

#adminSidebar .reports-submenu .nav-link:focus {
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}


/* =====================================
   REPORT SUBMENU ACTIVE / SELECTED
===================================== */

#adminSidebar .reports-submenu .nav-link.active {
    color: #fff !important;
    background: #dc3545 !important;
    border-radius: 8px;
}


/* Keep report selected RED on hover */

#adminSidebar .reports-submenu .nav-link.active:hover {
    color: #fff !important;
    background: #dc3545 !important;
}


/* =============================================================================
   DESKTOP
================================================================================ */

@media (min-width: 992px) {


    /* =================================
       COLLAPSED SIDEBAR
    ================================= */

    #adminSidebar.collapsed {
        width: 70px;
    }


    /* =================================
       HIDE TEXT
    ================================= */

    #adminSidebar.collapsed .menu-text,
    #adminSidebar.collapsed .sidebar-title,
    #adminSidebar.collapsed .sidebar-arrow {
        display: none !important;
    }


    /* =================================
       ADMIN CONSOLE TOGGLE
    ================================= */

    #adminSidebar.collapsed #toggleSidebar {
        display: flex;
        justify-content: center;
        align-items: center;
    }


    #adminSidebar.collapsed #toggleSidebar .bi-shield-lock-fill {
        margin: 0 !important;
        font-size: 24px;
    }


    /* =================================
       SIDEBAR PADDING
    ================================= */

    #adminSidebar.collapsed .admin-sidebar {
        padding-left: 0;
        padding-right: 0;
    }


    #adminSidebar.collapsed .nav {
        padding: 0;
    }


    /* =================================
       NORMAL MENU ICONS
    ================================= */

    #adminSidebar.collapsed .nav-link {
        justify-content: center;
        padding: 14px 0;
    }


    #adminSidebar.collapsed .nav-link i {
        margin: 0 !important;
        min-width: auto;
        width: auto;
        font-size: 22px;
    }


    /* =================================
       ACTIVE MENU - COLLAPSED
    ================================= */

    #adminSidebar.collapsed .nav-link.active {
        background: #dc3545 !important;
        color: #fff !important;
        border-radius: 8px;
    }


    /* =============================================================================
       REPORTS - COLLAPSED SIDEBAR
    ============================================================================= */


    /* =================================
       REPORTS MAIN ICON
    ================================= */

    #adminSidebar.collapsed .reports-main {
        justify-content: center !important;
        padding: 14px 0 !important;
    }


    #adminSidebar.collapsed .reports-main > span {
        display: flex;
        align-items: center;
        justify-content: center;
    }


    #adminSidebar.collapsed .reports-main > span > i {
        margin: 0 !important;
        width: auto !important;
        min-width: auto !important;
        font-size: 22px !important;
    }


    /* =================================
       REPORTS ACTIVE - COLLAPSED
    ================================= */

    #adminSidebar.collapsed .reports-main.reports-active {
        color: #fff !important;
        background: #dc3545 !important;
        border-radius: 8px;
    }


    /* =================================
       HIDE REPORTS ARROW
    ================================= */

    #adminSidebar.collapsed .reports-arrow {
        display: none !important;
    }


    /* =================================
       REPORTS SUBMENU CLOSED
    ================================= */

    #adminSidebar.collapsed .reports-submenu {
        display: none;
    }


    /* =================================
       REPORTS SUBMENU OPEN
    ================================= */

    #adminSidebar.collapsed .reports-submenu.reports-open {
        display: block !important;
    }


    /* =================================
       REPORT SUBMENU ICONS
    ================================= */

    #adminSidebar.collapsed .reports-submenu .nav-link {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 12px 0 !important;
    }


    #adminSidebar.collapsed .reports-submenu .nav-link i {
        display: block !important;
        margin: 0 !important;
        width: auto !important;
        min-width: auto !important;
        font-size: 20px !important;
    }


    /* =================================
       HIDE REPORT TEXT
    ================================= */

    #adminSidebar.collapsed .reports-submenu .menu-text {
        display: none !important;
    }


    /* =================================
       REPORT ACTIVE ICON - COLLAPSED
    ================================= */

    #adminSidebar.collapsed .reports-submenu .nav-link.active {
        color: #fff !important;
        background: #dc3545 !important;
        border-radius: 8px;
    }


    /* =================================
       COLLAPSED REPORT HOVER
    ================================= */

    #adminSidebar.collapsed .reports-main:hover,
    #adminSidebar.collapsed .reports-submenu .nav-link:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, .10) !important;
    }


    /* Keep active red even on hover */

    #adminSidebar.collapsed .reports-main.reports-active:hover,
    #adminSidebar.collapsed .reports-submenu .nav-link.active:hover {
        color: #fff !important;
        background: #dc3545 !important;
    }

}


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

@media (max-width: 991px) {


    /* =================================
       LAYOUT
    ================================= */

    .app-view > .d-flex {
        display: block !important;
    }


    /* =================================
       SIDEBAR
    ================================= */

    #adminSidebar {
        width: 100%;
        border-radius: 12px;
        margin-bottom: 10px;
        overflow: hidden;
    }


    .admin-sidebar {
        min-height: auto;
        padding: 0;
    }


    /* =================================
       MAIN CONTENT
    ================================= */

    #mainContent {
        width: 100%;
        padding: 8px !important;
    }


    .container,
    .container-fluid {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }


    /* =================================
       CARDS
    ================================= */

    .card {
        margin: 0 !important;
        border-radius: 12px;
    }


    .card.card-custom {
        padding: 12px !important;
    }


    /* =================================
       ADMIN CONSOLE HEADER
    ================================= */

    #toggleSidebar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        margin: 0;
        cursor: pointer;
        user-select: none;
        border-bottom: none;
    }


    /* =================================
       MOBILE MENU CLOSED
    ================================= */

    #adminSidebar .nav {
        display: none;
        flex-direction: column;
        padding: 10px;
    }


    /* =================================
       MOBILE MENU OPEN
    ================================= */

    #adminSidebar.mobile-open .nav {
        display: flex;
    }


    /* =================================
       MOBILE SIDEBAR ARROW
    ================================= */

    #adminSidebar.mobile-open .sidebar-arrow {
        transform: rotate(180deg);
    }


    /* =================================
       MOBILE MENU LINKS
    ================================= */

    #adminSidebar .nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 15px;
    }


    #adminSidebar .nav-link i {
        width: 24px;
        min-width: 24px;
        margin-right: 12px;
        font-size: 18px;
        text-align: center;
    }


    /* =================================
       ACTIVE MENU - MOBILE
    ================================= */

    #adminSidebar .nav-link.active {
        color: #fff !important;
        background: #dc3545 !important;
        border-radius: 8px;
    }


    /* =============================================================================
       REPORTS - MOBILE
    ============================================================================= */


    /* Reports main */

    #adminSidebar .reports-main {
        width: 100%;
        justify-content: space-between;
    }


    /* Reports active */

    #adminSidebar .reports-main.reports-active {
        color: #fff !important;
        background: #dc3545 !important;
        border-radius: 8px;
    }


    /* =================================
       REPORTS SUBMENU CLOSED
    ================================= */

    #adminSidebar .reports-submenu {
        display: none;
        width: 100%;
    }


    /* =================================
       REPORTS SUBMENU OPEN
    ================================= */

    #adminSidebar .reports-submenu.reports-open {
        display: block !important;
    }


    /* =================================
       MOBILE REPORT LINKS
    ================================= */

    #adminSidebar .reports-submenu .nav-link {
        padding-left: 45px !important;
    }


    #adminSidebar .reports-submenu .nav-link i {
        font-size: 17px;
    }


    /* =================================
       REPORT ACTIVE MOBILE
    ================================= */

    #adminSidebar .reports-submenu .nav-link.active {
        color: #fff !important;
        background: #dc3545 !important;
        border-radius: 8px;
    }


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

    #adminSidebar.collapsed {
        width: 100%;
    }


    #adminSidebar.collapsed .sidebar-title,
    #adminSidebar.collapsed .menu-text,
    #adminSidebar.collapsed .sidebar-arrow {
        display: inline;
    }


    #adminSidebar.collapsed .nav {
        display: none;
    }


    #adminSidebar.collapsed.mobile-open .nav {
        display: flex;
    }


    /* =================================
       REPORTS MOBILE COLLAPSED
    ================================= */

    #adminSidebar.collapsed .reports-submenu {
        display: none;
    }


    #adminSidebar.collapsed .reports-submenu.reports-open {
        display: block !important;
    }


    #adminSidebar.collapsed .reports-submenu .nav-link {
        justify-content: flex-start;
        padding-left: 45px !important;
    }


    #adminSidebar.collapsed .reports-submenu .menu-text {
        display: inline !important;
    }


    #adminSidebar.collapsed .reports-arrow {
        display: inline !important;
    }

}



/* mobile scroll  */

/* =====================================================
   MOBILE CART / BOTTOM SPACE FIX
===================================================== */

@media (max-width: 991px) {

    html,
    body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .app-view {
        min-height: calc(100dvh - 58px);
        height: auto;
        padding-bottom: 110px !important;
    }

    /* Give page content enough space above fixed cart */
    .app-view > .container,
    .app-view > .container-fluid {
        padding-bottom: 100px !important;
    }

    /* Fixed Add To Cart bar */
    .cart-sticky-bar {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
    }
}