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

:root {
    --primary-color: #0293d4;
    --primary-hover: #0b5b80;
    --primary-box-shadow: #0293d4b5;
    --secondary-color: #fed813;
    --secondary-hover: #816613;
    --secondary-box-shadow: #3d351c;
    /* --third-color: #ffa41d; */
    --third-color: #8bc34a;
    --third-color-hover: #496628;
}

body {
    background-color: #f4f5f7;
    font-family: "Roboto Condensed", sans-serif;
    font-style: normal;

    /* margin: 20px; */
}

/* product section  */
.product-row {
    display: flex;
    gap: 1rem;
}

.category-item > a {
    color: #000;
    text-decoration: none;
    font-weight: bold;

}

.category-item > img {
    max-width: 200px;
    max-height: 200px;

}

.category-item > p {
    padding-top: 10px;
}


.category-item > p > .product-image {
    width: 20rem;
    border: 1px solid gray;
    background-color: gray;
    background-size: cover;
    mix-blend-mode: darken;
    border-radius: 50%;
}

.category-item {
    margin-bottom: 20px;
    height: 45vh;
    border: 1px solid #ddd;
    box-shadow: 5px 5px 5px rgba(33, 33, 33, 0.1);
    padding: 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #f8f9fa;

    .category-item-p {
        font-size: 16px;
        color: #000;
        margin-bottom: 10px;
    }

    img {
        max-width: 100%;
        height: 80%;
        margin-bottom: 10px;
    }

    &:hover {
        transform: scale(1.02);
        box-shadow: 8px 8px 8px rgba(33, 33, 33, 0.2);
    }
}

/* In all css */

.panel {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.panel-heading {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    width: 100%;
}

.panel-heading .glyphicon {
    margin-right: 10px;
    font-size: 16px;
}

.panel-body {
    padding: 20px;
}

h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    margin: 4rem 0;
    font-size: 16px;
    text-align: left;
    box-shadow: 0 4px 8px #0000001a;
    overflow: hidden;
    font-weight: 500;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale;
}

/* --------  */

/* Hover Effect */

/* Text color changes on hover */

/* Caption Styling */

/* --------  */

th,
td {
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 2px solid #e0e0e0;
}

tr {
    border-bottom: 1px solid #e0e0e0;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #e3f2fd;
    transform: scale(1.02);
    box-shadow: 0 4px 10px var(--primary-box-shadow);
    transition: all 0.3s ease-in-out;
}

tr:hover td {
    color: var(--primary-hover);
}

td {
    transition: color 0.3s ease-in-out;
    background-color: #f8f9fa;
    font-size: 16px !important;
}

caption {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #555555;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--primary-box-shadow);
}

.btn-danger {
    background-color: #e64141 !important;
    border: none;
    /* border-radius: 30px; */
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff !important;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-success {
    background-color: var(--third-color);
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
    color: #ffffff;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-danger:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
}

.btn-success:hover {
    background-color: var(--third-color-hover);
    transform: translateY(-2px);
}

.form-control {
    border: 1px solid #ccc;
    /*border-radius: 30px;*/
    padding: 2px 5px;
    font-size: 14px;
    box-shadow: inset 0 2px 4px #0000000d;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px var(--primary-box-shadow);
}

/* .pull-right {
  margin-top: 15px;
} */

@media (max-width: 768px) {
    .panel-body {
        padding: 10px;
    }

    h4 {
        font-size: 16px;
    }

    .btn-primary {
        width: 100%;
    }

    .form-control {
        width: 100%;
    }
}

/* left sidebar  */

.left-navbar {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    width: 280px;
    margin: 20px auto;
}

.left-navbar > .text-center {
    text-align: center;
    margin-bottom: 20px;
}

.left-navbar > .text-center > .img-circle {
    object-fit: contain;
    border: 4px solid var(--primary-color);
    padding: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 120px;
    height: 120px;
}

.left-navbar > .img-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px var(--primary-box-shadow);
}

.left-navbar > h3 {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    color: #333333;
}

.left-navbar > .nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.left-navbar > .nav > li {
    margin: 10px 0;
}

.left-navbar > .nav > li > a {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.left-navbar > .nav > li > a:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 4px 10px #5568fe4d;
}

.left-navbar > .nav > li > a > i {
    margin-right: 10px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .left-navbar > .panel-body {
        width: 100%;
        padding: 15px;
    }

    .left-navbar > h3 {
        font-size: 16px;
    }

    .left-navbar > .nav > li > a {
        font-size: 14px;
        padding: 10px 12px;
    }
}


/* ------------- */

/* search bar */
.search-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    animation: fadeIn 1s ease-out;
}

.search-row > .form-control {
    width: 350px;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-shadow: 0 2px 4px #0000001a;
}

.search-row > .form-control:focus {
    border-color: var(--primary-hover);
    box-shadow: 0 4px 8px var(--primary-box-shadow);
    transform: translateX(10px); /* Move right on focus */
    animation: slideIn 0.3s ease-out;
}


@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInBtn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(10px);
    }
}

/* Optional: Responsive Design */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-control {
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

.heading {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #333;
    line-height: 2.5;
}

.similar-products {
    width: 100% !important;
    min-width: 95vw;
    padding: 0;
    /* margin:0 60px; */
    font-size: 18px;
    position: relative;

    .row {
        width: 100vw;
    }

    h3 {
        font-weight: bold;
        margin-bottom: 20px;
        letter-spacing: 3px;
        font-size: 18px;
        margin-left: 20px;
    }

    .category-item {
        width: 100%;
        max-width: 20vw;
        margin-right: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        height: auto;
        min-height: 55vh;
        max-height: 55vh;
        overflow: hidden;
        padding-bottom: 30px;

        display: -webkit-box;
        /* -webkit-line-clamp: 3; Limits text to 3 lines */
        line-clamp: 3; /* Limits text to 3 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
        margin-bottom: 10px;

        a {
            img {
                width: 100%;
                height: 40%;
                object-fit: cover;
            }

            p {
                max-height: 10%;
                overflow: hidden;
            }
        }
    }
}

.scroll-button {
    position: absolute;
    /* bottom: 10px; */
    right: 10px;
    top: 50%;
    z-index: 10;
    width: 50px;
    height: 50px;
    background-color: #b4b4b4;
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.scroll-button.left {
    left: 10px;
}

.scroll-button.right {
    right: 10px;
}

.scroll-button:hover {
    background-color: #909090;
}

/* nav bar  */

.main-wrapper {
    width: 100%;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar {
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    width: 100vw !important;
    position: relative;
    align-items: center;
    height: 100%;
    min-height: 100%;
}

.navbar > .logo {
    height: 100%;
    min-height: 100%;
    margin-left: 30px;

    flex-grow: 1;
    padding: 0;

    display: flex;
    justify-content: center;
    align-items:  center;
}

.navbar > .logo > a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar > .logo > a > img {
    width: 120px;
    z-index: -1;
    object-fit: contain;
}

@media (max-width: 1080px) {
    .navbar > .logo > a {
        width: 100px;
        height: 100px;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .navbar > .logo > a {
        width: 80px;
        height: 80px;
        object-fit: contain;
        padding: 0;
    }


}

@media screen and  (max-width: 425px) {
    .navbar > .logo > a {
        width: 80px;
        height: 60px;
        object-fit: contain;
    }
}

@media (max-width: 350px) {
    .navbar > .logo {
        margin-left: 0;
    }
}

.icons {
    height: 100%;
    min-height: 100%;

    flex-grow: 1;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.icons > .nav-icons {
    display: flex;
    gap: 15px;
}

.icons > .nav-icons > a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icons > .nav-icons > a > img {
    width: 24px;
    height: auto;
}

@media (max-width: 767px) {
    .icons > .nav-icons > a > img {
        width: 24px;
    }
}

.icons > .nav-icons > .cart {
    position: relative;
}

.icons > .nav-icons > .cart > img {
    width: 30px;
}

@media (max-width: 767px) {
    .icons > .nav-icons > .cart > img {
        width: 24px;
    }
}

.icons > .nav-icons > .cart > .badge {
    padding-left: 20px;
    padding-right: 20px;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    border-radius: 9px;
}

.icons > .nav-icons > .cart > .label-warning[href],
.icons > .nav-icons > .cart > .badge-warning[href] {
    background-color: #c67605;
}

.icons > .nav-icons > .cart > #lblCartCount {
    position: absolute;
    top: 1px;
    right: -10px;
    font-size: 12px;
    background: #ff0000;
    color: #fff;
    padding: 5px 10px;
    vertical-align: top;
    margin-left: -6px;
}

.icons > .nav-icons > .nav-admin {
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 20%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
}

.icons > .nav-icons > .nav-admin > img {
    width: 30px;
}

@media (max-width: 767px) {
    .icons > .nav-icons > .nav-admin > img {
        width: 24px;
    }
}

.icons > .nav-icons > .nav-admin > span {
    font-size: 16px;
}

.icons > .nav-icons > .nav-admin:hover {
    border: 1px solid transparent;
    border-radius: 20%;
    text-decoration: none;
    transform: scale(1);
    box-shadow: 1px 1px 1px rgba(22, 20, 20, 0.1);
}

.icons > .nav-icons > .nav-admin:hover > img {
    mix-blend-mode: multiply;
}


#nabarNav {
    height: 100%;
    min-height: 100%;
    flex-grow: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-shrink: 2;
}

#nabarNav > .navbar-nav {
    list-style: none;
    height: 100%;
}

#nabarNav > .navbar-nav > .nav-item {
    padding: 0.5rem 0.8rem;
    border-radius: 8%;
    text-wrap: nowrap;
    height: 100%;
}

#nabarNav > .navbar-nav > .nav-item > .nav-link {
    position: relative;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    color: #000;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#nabarNav > .navbar-nav > .nav-item > .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1px;
    height: 2px;
    width: 0;
    background: var(--primary-color);
    transition: width 0.3s ease-out;
    transform-origin: left;
}

#nabarNav > .navbar-nav > .nav-item > .nav-link:hover::after {
    width: 100%;
}

#nabarNav > .navbar-nav >.nav-item>ul {
    width: 100%;
    height: 200%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}


.navbar::before,
.navbar::after {
    content: none !important;
    display: none !important;
}

.smallDeviceNav {
    display: none;
}

@media (max-width: 767px) {
    #sidebarmenu-open {
        display: block !important;
        margin-left: 15px;
    }

    .navbar > .logo > a {
        justify-content: center;
        align-items: center;
    }

    .navbar > #nabarNav {
        display: none;
    }

    .smallDeviceNav {
        display: flex;
        border-bottom: 1px solid rgba(0, 0, 0, 0.212);
        margin-bottom: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: space-around;
        align-items: center;
    }

    .smallDeviceNav > ul {
        display: flex;
    }

    .smallDeviceNav > .navbar-nav {
        list-style: none;
    }



    .smallDeviceNav > .navbar-nav > .nav-item {
        padding: 0.5rem 0.8rem;
        margin-right: 10px;
        border-radius: 8%;
        text-wrap: nowrap;
    }

    .smallDeviceNav > ul > .navbar-nav > .nav-item > .nav-link {
        position: relative;
        text-decoration: none;
        font-weight: bold;
        font-size: 14px;
        text-transform: uppercase;
        color: #000;
    }

    .smallDeviceNav > ul > .navbar-nav > .nav-item > .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 1px;
        height: 2px;
        width: 0;
        background: var(--primary-color);
        transition: width 0.3s ease-out;
        transform-origin: left;
    }

    .smallDeviceNav > ul > .navbar-nav > .nav-item > .nav-link:hover::after {
        width: 100%;
    }
}


/* filter form  */
.filter-form {
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-form > .btn {
    /* height: 5vh; */
    width: 200px;
    font-size: 16px;
    /* border-radius: 30px; */
    background-color: var(--primary-color) !important;
}

.filter-form > .btn:hover {
    background-color: var(--primary-hover) !important;
    color: #fff;
}


.form-row > input,
.form-row > select {
    padding: 10px;
    width: 100%;
    height: 5vh;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    margin-bottom: 10px;
}


.label {
    padding: 5px 20px !important;
    font-size: 12px !important;
}

.search-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.search-container > .search-box {
    width: 100%;
    padding: 10px 15px;
    border-radius: 7px;
    border: transparent;
    border-bottom: 2px solid #ddd;
    outline: none;
    font-size: 16px;
    transition: border 0.3s;
}

.search-container > .search-box:focus {
    border-color: var(--primary-hover);
}

.search-container > .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    z-index: 1000;
}

.search-container > .search-results > div {
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-container > .search-results > div:hover {
    background: #f1f1f1;
}

.search-container > .search-results > .no-results {
    padding: 10px;
    color: #666;
}


.search-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-item:hover {
    background: #f0f0f0;
}

/* media query for admin side bar */
@media (max-width: 1440px) {
    .col-md-10 {
        width: 100%;
    }

    .panel {
        margin-left: 15px;
    }

    .panel > form {
        padding: 0;
    }

    .panel > form > .panel {
        margin-left: 0;
    }

    .leftbar-panel {
        /* width: 40vw; */
        padding: 0;
        margin: 0;
        z-index: 10;
    }

    .menu {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        height: auto;
        position: absolute;
        top: -20px;
        left: 10px;
        cursor: pointer;
    }

    .menu > .bar-icon {
        z-index: 5;
        display: block !important;
    }

    .menu > .left-navbar {
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: -15px;
        left: -5px;
        z-index: 2;
        border-radius: 0;
    }

    .left-navbar {
        display: none;
    }

    .left-navbar.open {
        display: block;
    }
}


/* Style for the navbar and dropdown */

.dropdown {
    position: inherit;
}

.dropdown-menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    z-index: 1000;
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 10px 20px;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;


}

.dropdown-item > img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.main-sidebar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    color: #111;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-250px);
    z-index: 100;
}

.main-sidebar > .cross-close {
    color: #000000;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.main-sidebar > .main-sidebar-items {
    width: 100%;
    margin: 10px 15px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-sidebar > .main-sidebar-items > .logo {
    height: 100px;
    width: 100px;
    border-radius: 50%;
}

.main-sidebar > .main-sidebar-items > .logo > a > img {
    object-fit: contain;
    color: #000;
}

.main-sidebar > .main-sidebar-items > .groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.main-sidebar > .main-sidebar-items > .groups > .group {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    background-color: #f8f6f6;
    padding: 10px 0;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

.main-sidebar > .main-sidebar-items > .groups > .group > .group-name {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.main-sidebar > .main-sidebar-items > .groups > .group > .group-img {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 60px;
    height: 50px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.main-sidebar > .main-sidebar-items > .groups > .group:hover {
    background-color: #ddd;
}

.main-sidebar > .logout {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    background-color: #f8f6f6;
    padding: 10px 0;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: red;
}


.row {
    margin-left: 0;
    margin-right: 0;
}



/*accordion*/
.accordion {
    margin-right: 50px;
    margin-top: 20px;

}

.accordion-item {
    /*border-bottom: 1px solid #ccc;*/
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: white;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.7s;
}

.accordion-header:hover {
    background: #ccc;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background: #fafafa;
    padding: 0 15px;
    font-size: 16px;
    transition: max-height 0.7s ease-in-out, padding 0.7s ease-in-out;
}

.accordion-content.open {
    max-height: fit-content; /* Adjust based on content */
    padding: 15px;
}

.accordion-header svg {
    transition: transform 0.7s ease;
}

.accordion-header svg.up {
    transform: rotate(180deg);
}