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

a {
    text-decoration: none;
    display: inline-block;
}

a:hover {
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
ul,
ol,
li,
span {
    margin: 0;
    padding: 0;
}

button {
    outline: 0 !important;
}


/*  ==================== Common CSS end ==================== */


.brand_color {
    color: var(--brand_color);
}

.brand_bg {
    background-color: var(--brand_color);
}
.brand_border {
    border-color: var(--brand_color) !important;
}

.msi-dark {
    color: #808080;
}

.msi-my-1 {
    margin-top: 1px !important;
    margin-bottom: 1px !important;
}

.msi-t-20 {
    font-size: 20px;
}

.msi-bold {
    font-weight: 700;
}

.username-box,
.cart-box {
    padding: 15px;
    color: #fff;
}

.username-box i,
.cart-box i {
    font-size: 20px;
}

.username-box a,
.cart-box a {
    color: #fff;
    padding: 0 5px;
    text-transform: capitalize;
}

/*  ==================== Extra Common CSS end ==================== */


.header {
    height: 80px;
}

.search-box {
    position: relative;
}

.search-box button {
    position: absolute;
    left: 45px;
    top: 33px;
}

.main_menu .navbar-nav .nav-link:hover,
.main_menu .navbar-nav .nav-link.active {
    background: #fff;
    border-radius: 5px;
}

.main_menu ul.navbar-nav {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    justify-content: center;
}

.main_menu .navbar-nav .nav-link {
    color: #fff;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: 20px;
    margin-right: 20px;
}



/*== cart-sidebar*/
.cart__sidebar__section{
    position: fixed;
    box-shadow: 3px 3px #444444;
    right:0;
    top: 0px; 
    background: var(--brand_color);
    bottom: 0;
    width: 90%;
    max-width: 360px;
    padding: 0 5px;
    z-index: 99999977;
}

.cart__sidebar__section_hide_class {
    transform: translateX(100%);
}

.cart__sidebar__section .main__row_section {
    height: 100%;
    overflow-y: auto;
}

.cart__sidebar__section .toggle__trigger__button {
    background: var(--brand_color);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    cursor: pointer;
    position: absolute;
    left: -35px;
    top: 50%;
    z-index: 99999988;
    text-align: center;
    padding: 12px 6px;
}

.cart__sidebar__section .toggle__trigger__button .bag__icon {
    width: 24px;
    height: 24px;
    color: #fff;
    z-index: 99999999;
}




#product_section .row,
#lecture_sheet_section .row,
#book_section .row {
    background: #fff;
    margin: 30px 0;
    border-radius: 5px;
    padding: 30px 0;
}

#product_section .row .box,
#lecture_sheet_section .row .box,
#book_section .row .box {
/*    background: #eee;*/
/*    border-radius: 5px;*/
}

#product_section .box .img,
#lecture_sheet_section .box .img,
#book_section .box .img {
    height: 230px;
    overflow: hidden;
    border-radius: 5px;
    margin: 5px 15px;
    position: relative;
}

#product_section .box .img .overly,
#lecture_sheet_section .box .img .overly,
#book_section .box .img .overly {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #929292;
    opacity: 0;
    left: 0;
    top: 0;
    -webkit-transition: all linear 0.2s;
    -moz-transition: all linear 0.2s;
    -ms-transition: all linear 0.2s;
    -o-transition: all linear 0.2s;
    transition: all linear 0.2s;
}

.details_btn {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 65%;
    transform: translate(-50%,-50%);
    padding: 0 10px;
    font-size: 12px;
    line-height: 31px;
    border-radius: 5px;
    background: var(--brand_color);
    color: #fff;
    text-align: center;
    font-weight: 700;
    z-index: 1;
    opacity: 0;
    -webkit-transition: all linear 0.2s;
    -moz-transition: all linear 0.2s;
    -ms-transition: all linear 0.2s;
    -o-transition: all linear 0.2s;
    transition: all linear 0.2s;
}

.details_btn:hover {
    background: var(--brand_color);
    color: #fff;
}

#product_section .box .img:hover .details_btn,
#lecture_sheet_section .box .img:hover .details_btn,
#book_section .box .img:hover .details_btn{
    opacity: 1;
}

#product_section .box .img:hover .overly,
#lecture_sheet_section .box .img:hover .overly,
#book_section .box .img:hover .overly {
    opacity: .5;
}

#product_section .box img ,
#lecture_sheet_section .box img ,
#book_section .box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product_heading {
    font-family: 'Roboto Slab', serif;
    font-size: 36px;
    color: #646464;
}

.product_name {
    height: 30px;
    overflow: hidden;
}

.product_name h5 {
    text-align: center;
    font-size: 12px;
    width: 100%;
}

.product_price {
    font-size: 14px;
    font-weight: 700;
}

.add_to_cart_wrapper {
    text-align: center;
    padding: 5px 0;
}

.add_to_cart_wrapper a {
    padding: 0 10px;
    font-size: 12px;
    line-height: 31px;
    border-radius: 5px;
    border: 1px solid var(--brand_color);
    color: var(--brand_color);
    text-align: center;
    font-weight: 600;
    -webkit-transition: all linear 0.3s;
    -moz-transition: all linear 0.3s;
    -ms-transition: all linear 0.3s;
    -o-transition: all linear 0.3s;
    transition: all linear 0.3s;
}

.add_to_cart_wrapper i {
    font-size: 15px;
    padding-right: 5px;
}

.add_to_cart_wrapper a:hover {
    background: var(--brand_color);
    color: #fff;
}






.side_bar_menu .profile_box {
    width: 70px;
    margin-right: 5px;
}

.side_bar_menu .profile_text {
    width: calc(100% - 70px);
    margin-right: 5px;
}

.side_bar_ul li {
    position: relative;
    z-index: 1;
    
}

.side_bar_ul li:hover a,
.side_bar_ul li:hover i,
.side_bar_ul li.active a,
.side_bar_ul li.active i {
    color: #fff;
}

.side_bar_ul li:hover::after,
.side_bar_ul li.active::after {
    position: absolute;
    content: '';
    left: 2px;
    top: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: var(--brand_color);
    border-radius: 5px;
    z-index: -1;
}















footer .footer_text {
    font-size: 16px;
    line-height: 22px;
    color: #707070;
    padding: 5px;
}

footer .footer_text span {
    display: block;
    padding-bottom: 5px;
}

footer .footer_menu li a {
    font-size: 16px;
    line-height: 30px;
    color: #707070;
    font-weight: 600;
}

footer .footer_menu li a:hover,
footer .footer_menu li a.active {
    color: var(--brand_color);
}

footer .footer_need_help li a {
    font-size: 16px;
    line-height: 30px;
    color: #707070;
}

footer .footer_need_help li a:hover {
    color: var(--brand_color);
}

footer .heading {
    font-size: 20px;
    font-weight: 700;
    line-height: 40px;
}

footer .flow_us a i {
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    color: #fff;
    background: var(--brand_color);
    margin-left: 15px;
}

footer .lower_footer {
    background: #fff;
    padding: 30px 0;
}

.top_footer + .lower_footer {
    background: #eee;
}

footer .lower_footer p {
    color: #B3B3B3;
}

footer .hotline i {
    color: var(--brand_color);
}

footer .lower_footer .number,
footer .lower_footer a {
    color: #707070;
}

footer .payment_method img {
    height: 25px;
    margin: 0 10px 15px;
}

footer .payment_method span {
    font-size: 20px;
    font-weight: 600;
    margin-right: 15px;
}


/* Profile Page */

.profile_body {
    position: relative;
}

.profile_body #submit_btn {
    position: absolute;
    right: 20px;
    top: 20px;
}

#submit_btn {
    font-size: 14px;
    border-radius: 16px;
    font-weight: 600;
    padding: 3px 10px;
}

.profile_body .title {
    color: var(--brand_color);
    font-size: 14px;
}

.profile_body .table th {
    font-size: 20px;
    color: #787878;
    font-weight: 500;
}

.profile_body .table td {
    font-size: 20px;
    color: #000;
    font-weight: 500;
}

.profile_body input[type='date'],
.profile_body input[type='file'],
.profile_body input[type='text'] {
    border: 0;
    border: 1px solid #787878;
    border-radius: 5px;
    padding: 3px 7px;
    width: 90%;
    max-width: 380px;
}




















.product_details .img {
    overflow: hidden;
    border-radius: 5px;
    margin: 5px 15px;
    position: relative;
}

.product_heading_wrapper {
    height: 150px;
}

.product_heading_wrapper .product_heading {
    font-family: 'Roboto Slab', serif;
    font-size: 29px;
    color: #1A1A1A;
    padding: 0;
}

.product_details .writer {
    font-family: 'Roboto', sans-serif;
    font-size: 23px;
    color: #1A1A1A;
    padding: 0;
}

.ditails_product_price p {
    font-family: 'Roboto', sans-serif;
    font-size: 25px;
    color: #1A1A1A;
}

.ditails_product_price p span {
    font-weight: 700;
}

.product_details_form,
.product_details_btn {
    border-radius: 5px;
    width: 100%;
    padding: 10px 10px;
    background: transparent;
    border: 1px solid  var(--brand_color);
    line-height: 30px;
    color: var(--brand_color);
    font-weight: 600;
    -webkit-transition: all linear 0.2s;
    -moz-transition: all linear 0.2s;
    -ms-transition: all linear 0.2s;
    -o-transition: all linear 0.2s;
    transition: all linear 0.2s;
}

.product_details_form {
    padding: 0;
    overflow: hidden;
}

.product_details_form .input_field {
    width: calc(100% - 70px);
    margin: 0 10px;
}

.product_details_btn:hover {
    border: 1px solid #fff;
    color: var(--brand_color);
    box-shadow: 0 0 5px var(--brand_color);
}

.product_details_form i {
    background: var(--brand_color);
    width: 45px;
    height: 50px;
    font-size: 28px;
    color: #fff;
    transform: translateX(1px);
}

















/* Sidebar */

.sidebar_menu {
    padding: 5px 0;
    background: #fff;
    width: 100%;
    max-width: 360px;
}

.book_ditail_main_body {
    width: calc(100% - 360px);
    margin-left: auto;
}

.sidebar_menu > details > summary {
    background: #fff;
    margin: 0px 0;
    padding: 10px 15px;
    border-top: 1px solid #707070;
    border-bottom: 1px solid #707070;
    position: relative;
}

.sidebar_menu > details > summary::after {
    position: absolute;
    content: '+';
    right: 10px;
    top: 50%;
    font-size: 30px;
    font-weight: 700;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
}

.sidebar_menu > details > summary.msi-active,
.sidebar_menu > details > summary:hover,
.sidebar_menu > details > summary:focus {
    background: #707070;
    color: #fff;
}

.sidebar_menu > details > summary.msi-active::after,
.sidebar_menu > details > summary:hover::after,
.sidebar_menu > details > summary:focus::after {
    content: '-';
    font-size: 50px;
    font-weight: 400;
    right: 12px;
    top: 40%;
}

.sidebar_menu > details > summary::-webkit-details-marker {
    display:none;
}

.sidebar_menu details > details > summary {
    padding: 5px 5px 5px 15px;
    position: relative;
}

.sidebar_menu details > details > summary:hover,
.sidebar_menu details > details > summary:focus {
    background: #707070;
    color: #fff;
}

.sidebar_menu details details a {
    padding: 5px 5px 5px 45px;
    display: block;
    color: #000;
    -webkit-transition: all linear 0.2s;
    -moz-transition: all linear 0.2s;
    -ms-transition: all linear 0.2s;
    -o-transition: all linear 0.2s;
    transition: all linear 0.2s;
    position: relative;
}

.sidebar_menu details details a::after {
    content: '\2605';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
}


/* li:has(> a.active) { styles to apply to the li tag } */

.sidebar_menu details details a.msi-active,
.sidebar_menu details details a:hover {
    color: #fff;
    background: #707070;
}


.pagination li a {
    padding: 5px 10px;
    border: 1px solid #707070bf;
    display: inline;
}

.pagination li span {
    padding: 5px 10px;
    border: 1px solid #707070bf;
    background: #70707070;
    color: #ff4040;
}

/* preloader */

#loader .loader-wrapper {
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #99999999;
    z-index: 9999999999;
}

@keyframes book-bounce {
0% { transform: translateY(0); }
40% { transform: translateY(-10px); }
80% { transform: translateY(0); }
100% { transform: translateY(0); }
}

@keyframes shelf-lift {
0% { transform: translateY(0) rotate(0); }
20% { transform: translateY(-4px) rotate(10deg); }
40% { transform: translateY(-4px) rotate(0); }
40% { transform: translateY(-4px) rotate(-10deg); }
80% { transform: translateY(0); }
100% { transform: translateY(0); }
}

.book-shelf
.book-shelf__book {
    animation: book-bounce .5s ease infinite;
}
.book-shelf
.book-shelf__book--two {
    animation-delay: 0.04s;
}
.book-shelf
.book-shelf__book--three {
    animation-delay: 0.08s;
}
.book-shelf
.book-shelf__shelf {
    animation: shelf-lift .5s ease infinite;
    transform-origin: 50% 50%;
}