body {
  background: url("../IMG/rsz_mock-up-poster-frame-childs-room.jpg");
  background-size: cover;        /* تخلي الصورة تغطي كل الشاشة */
  background-repeat: no-repeat;  /* تمنع تكرار الصورة */
  background-position: center;   /* تخلي الصورة في المنتصف */
  background-attachment: fixed;  /* دي اللي بتثبت الصورة */
  scroll-behavior: smooth;       /* سكرول ناعم */
  overflow-y:scroll ;
  max-width: 100%;
  overflow-X: hidden;
}
main{
  max-width: 100%;
  overflow-X: hidden;
  width: 90%;
  margin: auto;
  min-height: 87vh;
  margin-top: 150px;
}

.book-container {
    display: flex;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    gap: 40px;
}

.book-image {
    flex: 0 0 400px;
}

.book-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.book-details {
    flex: 1;
}

.book-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.book-author {
    font-size: 1.2rem;
    margin-bottom: 30px;
}



.book-format {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.format-selector, .format-type {
    flex: 1;
}

.format-selector h3, .format-type h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.format-type p{
    font-size: 1.2rem;

}
.format-selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.sub-details-book h3{
    font-size: 1.6rem;
    font-weight: 600;
}
.sub-details-book p{
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
}
.buy-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-bottom: 30px;
    transition: background-color 0.3s;
    width: 100%;
}

.buy-btn:hover {
    background-color: var(--secondary-color);
}

.book-description {
    line-height: 1.6;
    font-size: 17px;
}

.book-description .tagline {
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 600;
    margin: 20px 0;
}

h2{
    font-size: 3rem;
    font-weight: 600;
    position: relative;
    margin-bottom: 40px;
}
h2::after{
    content: "";
    position: absolute;
    width: 40px;
    height: 5px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0px;
}
/* Responsive Design */
@media (max-width: 768px) {
    .book-container {
        flex-direction: column;
    }
    
    .book-image {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .book-format {
        flex-direction: column;
        gap: 20px;
    }
}
.swiper{width:100%; ; margin:50px 0px; padding:20px 0px; margin-bottom:100px ;position: relative;}
.swiper-slide{
    background:#fff;
    border-radius:12px;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
    display:flex;
    align-items:center;
    justify-content:center;
    height:320px;
    overflow:hidden;
}
.slide-inner {
    text-align:center;
    padding:20px;
}
.slide-inner img{max-width:100%; height:180px; object-fit:cover; border-radius:8px; display:block; margin:0 auto 12px;}
.slide-title{font-weight:700; margin-bottom:6px; color: var(--primary-color);}
.slide-desc{color:#555; font-size:14px; }

/* ✅ Custom Next & Prev buttons */
.swiper-button-next,
.swiper-button-prev {
  background: rgba(0, 0, 0, 0.6);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
  font-size: 18px !important;
}