* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
}

:root {
    --primary-color: #d0b25a;
    --background-image: url('images/background.jpg');
    --primary-color-opacity: #d0b25ac0;
}

body {
    background-image: var(--background-image);
    background-size: cover;
    background-attachment: fixed;
   font-family: "Scheherazade New", serif;
  font-weight: 400;
  font-style: normal;
     
}

 a  , h1 , h2 , h3 , h4 , h5 , h6 , span , b , i {
   font-family: "Scheherazade New", serif;
  font-weight: 400;
  font-style: normal;
}

.first-page {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.first-page p {
     font-family: "Scheherazade New", serif;
    position: absolute;
    bottom: 80px;
    color: white;
      font-weight: 700;
  font-style: normal;
}
.first-page h3 {
    position: absolute;
    bottom: 20px;
    color: white;
    text-align: center;
  
    
}


 

.details .id {
    display: none;
}

.first-page .logo {
    width: 300px;
    height: 300px;
    mix-blend-mode: multiply;
}

.first-page a {
    width: 300px;
    text-align: center;
    border: 1px solid var(--primary-color);
    padding: 10px;
    border-radius: 5px;
    color: white;
}

 header {
    width: 100%;
    height: 50px;
   background: rgb(175,139,53);
background: linear-gradient(284deg, rgba(175,139,53,1) 6%, rgba(229,211,127,1) 75%);
    color: white;
    padding: 5px;
    position: fixed;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1100;
}
header .arrow,
header .cart {
    width: 32px;
    height: 32px;
    color: white;
}

main {
    margin-top: 70px;
}

/* style index page*/
main .wrapper {
    width: 95vw;
    max-width: 95vw;
    height: 60vh;
    margin: 2rem auto;
    border-radius: 15px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

main .slides div {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.5s linear;
}

main .slides div.shown {
    opacity: 1;
}

main .btns {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

main .btns button {
    width: 50px;
    height: 50px;
    border: none;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
}

main .btns button:hover {
    background-color: white;
}

main .dots {
    position: absolute;
    width: 100%;
    bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

main .dots li {
    list-style: none;
    width: 10px;
    height: 5px;
    border-radius: 20px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s linear;
}

main .dots li.active {
    width: 40px;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.categories a {
    margin-bottom: 12px;
}

.categories-card {
    width: 200px;
    height: 200px;
    display: inline-block;
}

.categories-card p {
    width: 100%;
    display: block;
    background-color: var(--primary-color-opacity);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border-radius: 0 0 10px 10px;
}

.categories-card img {
    width: 200px;
    height: 200px;
    display: block;
    border-radius: 10px 10px 0px 0px;
}

/* style books page*/
.slide-category {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.slide-category::-webkit-scrollbar {
    display: none;
}

.slide-track {
    display: inline-flex;
    gap: 7px;
}

.slide-track p {
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    padding: 10px;
    margin: 5px;
    min-width: 150px;
    text-align: center;
}

.books-card {
    position: relative;
}

.books-card a {
    border: 1px solid var(--primary-color);
    margin: 10px;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.books-card img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
}


.books-card div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px;
}

.books-card div span {
    background-color: var(--primary-color);
    text-align: center;
    width: fit-content;
    padding: 5px;
    border-radius: 8px;
    font-size: 12px;
}

.share-menu {
    display: none;
    position: absolute;
    top: 35px;
    right: 15px;
    border-radius: 8px;
    margin-top: 5px;
    background-color: var(--primary-color);
    z-index: 1010;
}

.share-option {
    display: none;
    transition: all .3s;
}



.share-option:hover {
    color: rgba(0, 0, 0, 0.8);
}


.share-btn {
    position: absolute;
    top: 0;
    right: 15px;
    margin-top: 10px;
    padding: 5px 10px;
    border: none;
    background: var(--primary-color-opacity);
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.share-btn:hover {
    background: var(--primary-color);
}

.details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.details img {
    width: 50%;
    height: 40vh;
    border-radius: 5px;
}

.details h4 {
    color: white;
}

.details button a {
    color: white;
}

.details button,
.details p {
    background-color: var(--primary-color);
    font-weight: bold;
    border: none;
    padding: 10px;
    border-radius: 5px;
    color: white;
}

.details button {
    width: 50%;
    cursor: pointer;
}

.details p {
    width: 30%;
    text-align: center;
}

.books-cart {
    border: 1px solid var(--primary-color);
    margin: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.books-cart h4 {
    margin-top: 10px;
}

.books-cart img {
    width: 150px;
    height: 150px;
    border-radius: 10px 0 0 10px;
}

.books-cart div span {
    background-color: var(--primary-color);
    text-align: center;
    width: fit-content;
    padding: 5px;
    border-radius: 8px;
    font-size: 12px;
}

.books-cart .icon {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 12px;
}

.books-cart .img-cart {
    display: flex;
    gap: 12px;
    align-items: center;
}

.books-cart .icon div {
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    padding: 5px;
    color: rgb(142, 119, 41);
}

.books-cart .icon div svg {
    color: rgb(142, 119, 41);

}

.img-cart pre {
    font-size: 20px;
}

.amount {
    display: flex;
    justify-content: center;
    color: white;
    margin: 20px 0 30px 0;
    font-size: 24px;
    font-weight: bold;
}

.textarea {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

textarea {
    margin: 10px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    width: 80%;
    border-radius: 8px;
    height: 50px;
}

.whatsapp {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 20px;
}

.whatsapp-button {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
}

.whatsapp-button:hover {
    background-color: #1ebe5d;
}

.cart-count {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: 5px;
    right: 30px;
}

@media screen and (max-width:500px) {
    body {
        font-size: 12px;
    }

    main .wrapper {
        height: 40vh;
    }

    .categories-card {
        width: 150px;
        height: 150px;
    }

    .categories-card img {
        width: 150px;
        height: 150px;
    }

    .books-card img {
        width: 100px;
        height: 100px;
    }

    .details img {
        height: 40vh;
    }

    .books-cart img {
        width: 100px;
        height: 100px;
    }

    .img-cart pre {
        font-size: 14px;
        font-weight: bold;
    }

    .books-cart .icon div svg {
        width: 10px;
        height: 10px;
    }
}