﻿
body {
    font-family: "Poppins", sans-serif;
}

.modal {
    z-index: 9999 !important;
}
/* ===== PAGE ===== */
.ecommerce-page {
    background: #f5f7fb;
}

/* ===== SIDE NAV ===== */

.sidenav-wrapper {
    transition: transform 0.3s ease;
}

    .sidenav-wrapper:not(.open) {
        transform: translateX(-100%);
        position: absolute;
        z-index: 999;
    }

    .sidenav-wrapper.open {
        transform: translateX(0);
    }



.sidenav-header {
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    background: #0d338d;
    color: #fff;
    text-align: center;
    border-top: 2px solid #FFF;
}

.sidenav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidenav-list li {
        padding: 8px 8px;
        cursor: pointer;
        display: flex;
        gap: 5px;
        /*justify-content: space-between;*/
        align-items: center;
        transition: all .3s;
        border-left: 4px solid transparent;
        border-bottom: 1px solid #efefef;
    }

        .sidenav-list li:hover {
            background: #f0f3ff;
            border-left-color: #6a5acd;
        }

        .sidenav-list li.active {
            background: #eef0ff;
            border-left: 4px solid #6a5acd; /* change this line */
            font-weight: 600;
            color: #6a5acd;
        }

            .sidenav-list li.active span,
            .sidenav-list li.active i {
                color: #6a5acd;
            }

.help-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}



/* ===== PRODUCT CARD ===== */
.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,.05);
    transition: transform .3s, box-shadow .3s;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 30px rgba(0,0,0,.1);
    }

.product-img {
    height: 180px;
    overflow: hidden;
    background: #fff;
}

    .product-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.product-body {
    padding: 15px;
    min-height: 200px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.product-category {
    font-size: 12px;
    color: #777;
    margin: 4px 0 10px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 600;
    color: #6a5acd;
}

.validity {
    font-weight: 600;
    color: #1dbd20;
}

.details-link {
    font-size: 12px;
}

.product-actions {
    text-align: right;
    margin-top: 10px;
}



#rcorners2 {
    border-radius: 25px;
    border: 2px solid #73AD21;
    padding: 20px;
}

.items {
    font-size: 21px;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    border-radius: 9px;
    font-weight: 600;
}

.modal.left .modal-dialog, .modal.right .modal-dialog {
    position: fixed;
    margin: auto;
    width: 320px;
    height: 100%;
    -webkit-transform: translate3d(0%, 0, 0);
    -ms-transform: translate3d(0%, 0, 0);
    -o-transform: translate3d(0%, 0, 0);
    transform: translate3d(0%, 0, 0);
}

.modal.left .modal-content, .modal.right .modal-content {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal.left.fade .modal-dialog {
    left: -320px;
    -webkit-transition: opacity 0.3s linear, left 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, left 0.3s ease-out;
    -o-transition: opacity 0.3s linear, left 0.3s ease-out;
    transition: opacity 0.3s linear, left 0.3s ease-out;
}

.modal.left.fade.in .modal-dialog {
    left: 0;
}

.modal.right.fade .modal-dialog {
    right: -320px;
    -webkit-transition: opacity 0.3s linear, right 0.3s ease-out;
    -moz-transition: opacity 0.3s linear, right 0.3s ease-out;
    -o-transition: opacity 0.3s linear, right 0.3s ease-out;
    transition: opacity 0.3s linear, right 0.3s ease-out;
}

.modal.right.fade.in .modal-dialog {
    right: 0;
}

.modal-content {
    border-radius: 0;
    border: none;
}

.modal-header {
    border-bottom-color: #EEEEEE;
    background-color: #FAFAFA;
}

#cartModal.modal.right .modal-dialog {
    width: 900px;
}

#ProdDescriptionModal.modal.right .modal-dialog {
    width: 100%;
}

#textarea {
    border: 1px solid gray;
    background-color: white;
    min-height: 120px;
    padding: 10px;
    color: #d3d3d3;
}

    #textarea:focus {
        color: Black;
    }

#help {
    position: fixed;
    top: 3%;
    left: 15%;
    right: 15%;
    padding: 25px 25px;
    text-align: center;
    background: white;
    border: 2px solid steelblue;
    border-radius: 5px;
    margin: 10px;
}

.list-group-item {
    margin: 5px 0px;
}

/*---------------------------Mouse Hover Image-----------------------------------*/
.zoom_img img {
    margin: 50px;
    height: 100px;
    width: 100px;
    -moz-transition: -moz-transform 0.5s ease-in;
    -webkit-transition: -webkit-transform 0.5s ease-in;
    -o-transition: -o-transform 0.5s ease-in;
}

    .zoom_img img:hover {
        -moz-transform: scale(2);
        -webkit-transform: scale(2);
        -o-transform: scale(2);
    }
/*---------------------------Mouse Hover Image-----------------------------------*/



.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
    width: 70%;
    margin: auto;
}

.thumbnail .matImg img {
    height: 240px;
}

.carousel-control .glyphicon-chevron-left, .carousel-control .glyphicon-chevron-right, .carousel-control .icon-next, .carousel-control .icon-prev {
    color: steelblue;
}

.carousel-inner > .item > img, .carousel-inner > .item > a > img {
    height: 200px;
}

.carousel-control {
    opacity: 0.1
}

    .carousel-control:hover,
    .carousel-control:focus {
        opacity: 0.3
    }

.mytooltip {
    border: 1px solid cadetblue;
    width: 230px;
    margin-left: 10px;
    margin-top: 0px;
    background-color: white;
    border-radius: 4px;
    position: absolute;
}


.navbar-nav > li > a {
    color: #fff !important;
}

    .navbar-nav > li > a:hover {
        background-color: #5cb85c;
        color: #fff;
    }

.navbar-text {
    margin-right: 15px;
}
/* Desktop polish */
#mobileMenu .navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#mobileMenu .navbar-nav {
    margin: 0 !important;
    padding: 5px 12px;
}

    #mobileMenu .navbar-nav > li > a {
        color: #FFF !important;
    }

#mobileMenu .navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Offcanvas menu */
.offcanvas-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: #0d338d;
    padding-top: 60px;
    transition: all 0.3s ease-in-out;
    z-index: 1050;
}

    .offcanvas-menu.active {
        left: 0;
    }

    .offcanvas-menu a,
    .offcanvas-menu .btn,
    .offcanvas-menu .username {
        color: #fff;
        display: block;
        padding: 8px 16px;
    }

        .offcanvas-menu a:hover {
            background: rgba(255,255,255,0.1);
        }



/* Backdrop overlay */
.offcanvas-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1040;
}

    .offcanvas-backdrop-custom.active {
        opacity: 1;
        visibility: visible;
    }


/* Open Button (Demo) */
.open-btn {
    margin: 20px;
    padding: 10px 15px;
    background: #232f3e;
    color: white;
    border: none;
    cursor: pointer;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 0;
    left: -320px;
    /*width: 320px;*/
    height: 100%;
    background: #fff;
    overflow-y: auto;
    /*box-shadow: 2px 0 8px rgba(0,0,0,0.3);*/
    transition: left 0.3s ease;
}

    .sidebar.active {
        left: 0;
    }

.overlay.active {
    display: block;
}

/* Header */
.sidebar-header {
    background: #0d338d;
    color: #fff;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .sidebar-header .icon {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #fff;
    }

/* Sections */
.section {
    padding: 16px;
    border-bottom: 1px solid #ddd;
}

.section-title {
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 18px;
}

.menu-item {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #111;
}

    .menu-item:hover {
        background: #f7f7f7;
    }

.arrow {
    font-size: 18px;
    color: #888;
}

/* Close Icon (Outside Sidebar like Amazon) */
.close-btn {
    position: fixed;
    top: 15px;
    left: 330px;
    width: 36px;
    height: 36px;
    background: #0d338d;
    color: #fff;
    font-size: 22px;
    text-align: center;
    line-height: 36px;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    transition: left 0.3s ease;
}

    .close-btn.active {
        display: block;
    }



body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.slider {
    margin-top: -7px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
}

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 35px;
    color: #333;
 /*   background: #fff;*/
    padding: 0px 12px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
}

    .arrow.left {
        left: 20px;
    }

    .arrow.right {
        right: 20px;
    }

    .arrow:hover {
        background: white;
    }

/* Dots */
.dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    cursor: pointer;
}

    .dot.active {
        background: white;
    }

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

    .menu-btn span {
        width: 25px;
        height: 3px;
        background-color: white;
        display: block;
        border-radius: 2px;
    }

.navbar-brand {
    color: white !important;
    text-decoration: none;
    font-size: 18px;
}


/*product detail*/
.sidebar-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 60px;
}

    .sidebar-strip img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        cursor: pointer;
        border-radius: 6px;
        border: 2px solid transparent;
        transition: border 0.3s ease, transform 0.2s ease;
    }

        .sidebar-strip img:hover {
            transform: scale(1.05);
        }

        .sidebar-strip img.active {
            border-color: #0d6efd;
        }

#mainImage {
    width: 100%;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.thumb {
    cursor: pointer;
    margin-bottom: 10px;
    border: 2px solid transparent;
}

    .thumb.active,
    .thumb:hover {
        border-color: #ffc107;
    }


.image-zoom-container {
    position: relative;
    width: 100%;
}

.zoom-image {
    width: 100%;
    display: block;
    cursor: crosshair;
}

/* Zoom lens */
#zoomLens {
    position: absolute;
    border: 2px dotted #2e6da4;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.3);
    display: none;
    pointer-events: none;
    overflow: hidden;
}

/* Zoom result box */
#zoomResult {
    width: 500px;
    height: 500px;
    border: 1px solid #ddd;
    background-repeat: no-repeat;
    display: none;
}

.zoom-out {
    z-index: 2
}

.product-detail-zindex {
    z-index: 1;
}


.productname {
    border-bottom: 1px solid #ddd;
}

/* ===== MOBILE DRAWER ===== */
@media (max-width: 767px) {
    .sidenav-wrapper {
        position: fixed;
        left: -260px;
        top: 0;
        width: 260px;
        z-index: 999;
        transition: left .35s ease;
    }

        .sidenav-wrapper.open {
            left: 0;
            background: #fff;
        }

    .content-wrapper {
        padding-top: 15px;
    }

    .sidenav-toggle {
        margin: 10px;
    }

    .zoom-image {
        height: 250px;
    }
}


/* smooth scrollbar (optional but looks modern) */
@media (max-width: 767px) {
    .sidenav-wrapper {
        position: fixed;
        top: 0;
        left: -260px;
        height: 100vh;
        overflow-y: auto;
        z-index: 9999;
        transition: left .35s ease;
        border-right: 0px;
        box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.2);
    }

        .sidenav-wrapper.open {
            left: 0;
        }

    .menu-btn {
        display: none;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .arrow {
        font-size: 14px;
        padding: 0px 6px;
    }

    .dots {
        display: none;
    }
}

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}


.cutoff-table {
    max-height: 150px; /* keeps table compact */
    overflow-y: auto; /* scroll if too many rows */
}

.table-sm th,
.table-sm td {
    padding: 4px 6px;
    font-size: 12px;
}
