@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&family=Roboto:ital,wght@0,700;1,100&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all .2s linear;
}

:root {
    --gray: rgb(197, 197, 196);
    --dark-color: rgba(139, 139, 138, 0.786);
    --black: #444;
    --light-color: #666;
    --box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    --primary: #583C77;
}

.Logo-text { color: var(--primary); }
.telegram { text-align: center; }

.heading {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.heading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: .01rem;
    background: rgba(0, 0, 0, .1);
    z-index: -1000;
}

.heading span {
    font-size: 3rem;
    padding: 1rem 1rem;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    color: var(--black);
    background: #fff;
    border: thick double var(--gray);
}

section { padding: 2rem 2%; }

.btn {
    margin-top: 1rem;
    display: inline-block;
    padding: .5rem 3rem;
    border-radius: .5rem;
    color: #fff;
    background: black;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: 500;
}

.btn:hover { background: var(--primary); }

html {
    width: 100%;
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-padding-top: 5rem;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar { width: 0.5rem; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: var(--primary); }

.header .header-1 {
    background: #fff;
    padding: 1.5rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header .header-1 .logo {
    font-size: 2.5rem;
    font-weight: bolder;
    color: var(--primary);
}

.header .header-1 .logo i { color: var(--primary); }

.header .header-1 span {
    font-size: 1.5rem;
    font-weight: bolder;
    color: var(--primary);
    text-transform: lowercase;
}

.header .header-1 .search-form {
    width: 30rem;
    height: 4rem;
    border: 1px solid #eee;
    box-shadow: var(--box-shadow);
    overflow: visible;
    background: #fff;
    display: flex;
    align-items: center;
    border-radius: .5rem;
    position: relative;
}

.header .header-1 .search-form input {
    font-size: 1.4rem;
    padding: 0 1.2rem;
    height: 100%;
    width: 100%;
    text-transform: none;
    color: var(--black);
    background: transparent;
}

.header .header-1 .search-form input::placeholder {
    color: #aaa;
}

.header .header-1 .search-form label {
    font-size: 1.5rem;
    padding-right: 1rem;
    color: var(--black);
    cursor: pointer;
}

.header .header-1 .search-form label:hover { color: var(--primary); }

.header .header-1 .icons div,
.header .header-1 .icons a {
    font-size: 1.7rem;
    margin-left: 1rem;
    color: var(--primary);
    cursor: pointer;
}

.header .header-1 .icons div:hover,
.header .header-1 .icons a:hover { color: var(--black); }

#search-btn { display: none; }

.header .header-2 {
    background: rgb(197, 197, 196);
    box-shadow: var(--box-shadow);
}

.header .header-2 .nav-header-2 { text-align: center; }

.header .header-2 .nav-header-2 a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-right: 1px solid rgba(230, 227, 227, 0.119);
}

.header .header-2 .nav-header-2 a:hover {
    color: black;
    border-right: 1px solid rgba(10, 10, 10, 0.119);
}

.header .header-2.active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

body { height: auto; }

.bottom-nav {
    text-align: center;
    background-color: var(--gray);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
}

.bottom-nav a {
    font-size: 3rem;
    padding: 2.5rem;
    color: #fff;
}

.bottom-nav a:hover { background: var(--primary); }

.login-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 2, 2, 0.14);
    position: fixed;
    top: 0;
    right: -105%;
    z-index: 10000;
    height: 100%;
    width: 100%;
    transition: all .6s ease-out;
}

.login-form-container.active { right: 0; }

.login-form-container form {
    background: #fff;
    border: 1px solid white;
    width: 40rem;
    height: auto;
    padding: 1rem;
    box-shadow: var(--box-shadow);
    border-radius: .5rem;
    margin: 2rem;
}

.login-form-container form h3 {
    font-size: 2.3rem;
    text-transform: uppercase;
    color: #444;
    text-align: center;
}

.login-form-container form span {
    display: block;
    font-size: 1.2rem;
    padding-top: 1rem;
}

.login-form-container form .box {
    margin: .3rem 0;
    font-size: 1.2rem;
    border: 1px solid rgba(102, 102, 102, 0.416);
    border-radius: .5rem;
    padding: 1rem 1.2rem;
    width: 100%;
    text-transform: none;
}

.login-form-container form .check-box {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 1rem 0;
}

.login-form-container form .check-box label {
    font-size: 1.2rem;
    color: var(--light-color);
    cursor: pointer;
}

.login-form-container form .btn {
    text-align: center;
    width: 100%;
    margin: 1.5rem 0;
}

.login-form-container form p {
    padding-top: .8rem;
    color: var(--light-color);
    font-size: 1.2rem;
}

.login-form-container form p a {
    color: var(--gray);
    text-decoration: underline;
}

.login-form-container form #close-login-btn {
    position: relative;
    right: -93%;
    top: -2%;
    width: 28px;
    text-align: center;
    font-size: 3rem;
    color: #444;
    cursor: pointer;
}

.Home-books {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 60vh;
}

.Home-books .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.Home-books .row .content { flex: 25rem; }

.Home-books .row .books-slider {
    flex: 1 1 40rem;
    text-align: center;
    margin-top: 2rem;
}

.Home-books .row .books-slider a img { height: 20rem; }
.Home-books .row .books-slider a:hover img { transform: scale(.9); }

.Home-books .row .books-slider .stand {
    width: 100%;
    margin-top: -2rem;
}

.Home-books .row .content h3 {
    color: var(--black);
    font-size: 3.5rem;
}

.Home-books .row .content p {
    color: var(--light-color);
    font-size: 1rem;
    line-height: 2;
    padding: 1rem 0;
}

.icon-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

.icon-container .icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2rem;
    border: 0.2px solid var(--light-color);
    box-shadow: var(--box-shadow);
    background: #fff;
}

.icon-container .icons i {
    font-size: 2.3rem;
    color: var(--primary);
}

.icon-container .icons h3 {
    font-size: 1.5rem;
    color: var(--black);
    padding-bottom: .5rem;
}

.icon-container .icons p {
    font-size: 1rem;
    color: var(--light-color);
}

.New-books .New-slider .box {
    width: 20rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    border: 0.5px solid var(--gray);
    border-radius: 3px;
    text-align: center;
    background: #fff;
}

.New-books .New-slider .box:hover { border: 1px solid black; }

.New-books .New-slider .box .image {
    padding: 1rem;
    background: linear-gradient(15deg, #eee 30%, #fff 30.1%);
}

.New-books .New-slider .box .image img { height: 25rem; }
.New-books .New-slider .box:hover .image { transform: translateY(6rem); }

.New-books .New-slider .box .icons {
    border-bottom: 1px solid var(--gray);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(155, 152, 152, 0.158);
    color: black;
    z-index: 1;
    transform: translateY(-105%);
}

.New-books .New-slider .box:hover .icons { transform: translateY(0%); }

.New-books .New-slider .box .icons a {
    color: var(--black);
    font-size: 2.2rem;
    padding: 1.3rem 1.5rem;
}

.New-books .New-slider .box .icons a:hover {
    background: var(--gray);
    color: #fff;
}

.New-books .New-slider .box .content {
    background: #eee;
    padding: 1.5rem;
}

.New-books .New-slider .box .content h3 {
    font-size: 2rem;
    color: black;
}

.New-books .New-slider .box .content .price {
    font-size: 2.2rem;
    color: black;
    padding-top: 1rem;
}

.New-books .New-slider .box .content .price span {
    font-size: 1.5rem;
    color: var(--light-color);
    text-decoration: line-through;
}

.swiper-button-next,
.swiper-button-prev { color: black; }

.swiper-button-next::after,
.swiper-button-prev::after { font-size: 2rem; }

.swiper-button-next:hover,
.swiper-button-prev:hover { color: var(--primary); }

.newsletter {
    background: linear-gradient(135deg, var(--primary), #7c5aa0);
}

.newsletter form {
    max-width: 55rem;
    margin-left: auto;
    text-align: center;
    padding: 5rem 0;
}

.newsletter form h3 {
    font-size: 2.2rem;
    color: #fff;
    padding-bottom: .7rem;
    font-weight: normal;
}

.newsletter form .box {
    width: 100%;
    margin: .7rem 0;
    padding: 1rem 1.2rem;
    font-size: 1.6rem;
    color: var(--black);
    border-radius: .5rem;
    text-transform: none;
}

.arrivals .arrivals-slider .box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
    border: 1px solid var(--gray);
    margin: 1rem 0;
    background: #fff;
}

.arrivals .arrivals-slider .box:hover { border-color: var(--primary); }

.arrivals .arrivals-slider .box .image img { height: 15rem; }

.arrivals .arrivals-slider .box .content h3 {
    font-size: 2rem;
    color: var(--black);
}

.arrivals .arrivals-slider .box .content .price {
    font-size: 2.2rem;
    color: var(--black);
    padding-bottom: .5rem;
}

.arrivals .arrivals-slider .box .content .price span {
    font-size: 1.5rem;
    color: var(--light-color);
    text-decoration: line-through;
}

.arrivals .arrivals-slider .box .content .stars i {
    font-size: 1.5rem;
    color: var(--primary);
}

.deal {
    background: #f3f3f3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.deal .content { flex: 42rem; }
.deal .image { flex: 1 1 30rem; }
.deal .image img { width: 100%; }

.deal .content h3 {
    color: var(--primary);
    font-size: 2.5rem;
    padding-bottom: .5rem;
}

.deal .content h1 {
    color: var(--black);
    font-size: 4rem;
}

.deal .content p {
    padding: 1rem 0;
    color: var(--light-color);
    font-size: 1.2rem;
    line-height: 2;
}

.reviews .reviews-slider .box {
    border: 1px solid var(--gray);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    border-radius: 3px;
    background: #fff;
}

.reviews .reviews-slider .box:hover { border: 1px solid var(--primary); }

.reviews .reviews-slider .box img {
    height: 7rem;
    width: 7rem;
    border-radius: 50%;
    object-fit: cover;
}

.reviews .reviews-slider .box h3 {
    color: var(--black);
    font-size: 2.2rem;
    padding: .5rem 0;
}

.reviews .reviews-slider .box p {
    color: var(--light-color);
    font-size: 1.4rem;
    padding: 1rem 0;
    line-height: 2;
}

.reviews .reviews-slider .box .stars { padding-top: .5rem; }

.reviews .reviews-slider .box .stars i {
    font-size: 1.7rem;
    color: gold;
}

.blogs .blogs-slider .box {
    margin: 2rem 0;
    border: 1px solid var(--gray);
    background: #fff;
}

.blogs .blogs-slider .box:hover { border: 1px solid var(--primary); }

.blogs .blogs-slider .box .image {
    height: 25rem;
    width: 100%;
    overflow: hidden;
}

.blogs .blogs-slider .box .image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.blogs .blogs-slider .box:hover .image img { transform: scale(1.1); }

.blogs .blogs-slider .box .content { padding: 1.5rem; }

.blogs .blogs-slider .box .content h3 {
    font-size: 2.2rem;
    color: var(--black);
}

.blogs .blogs-slider .box .content p {
    font-size: 1.4rem;
    color: var(--light-color);
    padding: 1rem 0;
    line-height: 2;
}

.footer .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1rem;
}

.footer .box-container .box h3 {
    font-size: 2.2rem;
    color: var(--black);
    padding: 1rem 0;
}

.footer .box-container .box a {
    display: block;
    font-size: 1.2rem;
    color: var(--light-color);
    padding: 1rem 0;
}

.footer .box-container .box a i {
    color: var(--primary);
    padding-right: .5rem;
}

.footer .box-container .box a:hover i { padding-right: 2rem; }

.footer .box-container .box .map { width: 100%; }

.footer .share {
    padding: 1rem 0;
    text-align: center;
}

.footer .share a {
    height: 5rem;
    width: 5rem;
    line-height: 5rem;
    font-size: 2rem;
    color: #fff;
    background: var(--primary);
    margin: 0 .3rem;
    border-radius: 50%;
}

.footer .share a:hover { background: var(--black); }

.footer .credit {
    border-top: 1px solid gray;
    margin-top: 2rem;
    padding: 0 1rem;
    padding-top: 2.5rem;
    font-size: 2rem;
    color: var(--light-color);
    text-align: center;
}

.footer .credit span { color: var(--primary); }

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 10000;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-container.active { display: none; }
.loader-container img { height: 10rem; }

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 .5rem .5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    border: 1px solid #eee;
    border-top: none;
}

.search-results::-webkit-scrollbar { width: 6px; }
.search-results::-webkit-scrollbar-track { background: #f1f1f1; }
.search-results::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), #7c5aa0);
    color: #fff;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

.search-results-header i { margin-right: 0.5rem; }

.search-results-header .clear-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-results-header .clear-btn:hover { background: rgba(255,255,255,0.4); }

.search-results-list { padding: 0.5rem; }

.search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: .5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover,
.search-result-item.selected {
    background: linear-gradient(135deg, rgba(88, 60, 119, 0.1), rgba(124, 90, 160, 0.1));
}

.search-result-item img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: .3rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-result-info { flex: 1; }

.search-result-info h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1.4rem;
    color: var(--black);
    text-transform: none;
}

.search-result-info h4 mark {
    background: linear-gradient(135deg, rgba(88, 60, 119, 0.3), rgba(124, 90, 160, 0.3));
    color: var(--primary);
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-info p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--light-color);
    text-transform: none;
}

.search-result-info p i {
    margin-right: 0.3rem;
    color: var(--primary);
}

.read-btn {
    background: var(--primary);
    color: #fff;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.read-btn:hover {
    background: var(--black);
    transform: scale(1.1);
}

.no-results {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--light-color);
}

.no-results i {
    font-size: 4rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.no-results small {
    font-size: 1.2rem;
    color: var(--light-color);
}

.book-section { scroll-margin-top: 100px; }

.search-highlight {
    border: 3px solid var(--primary) !important;
    box-shadow: 0 0 20px rgba(88, 60, 119, 0.5) !important;
    transform: scale(1.02);
    z-index: 10;
}

@media(max-width: 991px) {
    html { font-size: 55%; }
    .header .header-1 { padding: 2rem; }
    section { padding: 3rem 2rem; }
}

@media(max-width: 768px) {
    html { scroll-padding-top: 0; }
    body { padding-bottom: 6rem; }
    .header .header-2 { display: none; }
    .bottom-nav { display: block; }
    .header .header-1 {
        box-shadow: var(--box-shadow);
        position: relative;
        flex-wrap: wrap;
    }
    #search-btn { display: inline-block; }
    .header .header-1 .search-form {
        position: absolute;
        border-radius: 2px;
        top: 105%;
        right: 2rem;
        left: 2rem;
        width: auto;
        box-shadow: var(--box-shadow);
        transform: scaleY(0);
        transform-origin: top;
        z-index: 1000;
    }
    .header .header-1 .search-form.active { transform: scaleY(1); }
    .Home-books .row .content { text-align: center; }
    .Home-books .row .content h3 { font-size: 3.5rem; }
    .newsletter { background-position: right; }
    .newsletter form {
        margin: 0;
        width: 100%;
    }
}

@media(max-width: 450px) {
    html { font-size: 50%; }
    .header .header-1 .search-form {
        right: 1rem;
        left: 1rem;
    }
}
