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

body {
font-family: 'Inter', sans-serif;
line-height: 1.6;
color: #333;
background-color: #f9f9f9;
}


header {
    background-color: #fff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 8px;
    z-index: 100;
    border-radius: 150px;
    margin: 7px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0px;
    font-size: 18px;
    font-weight: bold;
}

.logo img {
    width: 50px;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

.logo svg {
    width: 30px;
    height: 30px;
}

nav {
    display: flex;
    gap: 30px;
    flex: 1;
    margin-left: 50px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
}

nav a:hover {
    color: #e53935;
}

.search-login {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    padding: 8px 15px;
    border-radius: 4px;
    width: 200px;
}

.search-box input {
    border: none;
    background: none;
    width: 100%;
    outline: none;
    font-size: 14px;
}

.icons {
    display: flex;
    gap: 15px;
}

.icons a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
}
.hero {
position: relative;
width: 100%;           
max-width: 100%;    
height: 400px;        
overflow: hidden;
border-radius: 0;
margin: 0 auto;  
}

.hero-banner {
width: 100%;
height: 100%;
object-fit: cover;   
display: block;
}

.hero-text {
position: absolute;
top: 50%;
left: 50px;
transform: translateY(-50%);
color: #fff;
text-shadow: 0px 4px 12px rgba(0,0,0,0.5);
}

.hero-text h1 {
font-size: 80px;
font-weight: 800;
line-height: 1.1;
}

.hero-text p {
font-size: 15px;
}


.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 0 40px;
}

.section-title .line {
    width: 4px;
    height: 24px;
    background-color: #d52424;
}

.section-title h2 {
    font-size: 30px;
    font-weight: 600;
}

.section-title-2 {
    color:#999;
     font-size: 17px;
      padding-top: 11px;
}

.section-title .see-all {
    margin-left: auto;
    background-color: #ff4757;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border: none;
}


.flash-sales {
    background-color: #fff;
    padding: 30px 40px;
    margin-bottom: 20px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.book-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-image {
    width: fit-content;
    height: 250px;
    background-color: #f0f0f0;

    margin-bottom: 15px;
    overflow: hidden;
}

.book-image img {
    width: fit-content;
    height: 100%;
    object-fit: cover;
}

.book-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.book-price {
    color: #e53935;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.book-price .original {
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.book-rating {
    color: #ffc107;
    font-size: 12px;
}


.categories {
    background-color: #fff;
    padding: 30px 40px;
    margin-bottom: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    text-align: center;
    cursor: pointer;
}

.category-image {
    width: 100%;
    height: 180px;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
}


.new-arrivals {
    background-color: #fff;
    padding: 30px 40px;
    margin-bottom: 20px;
}


.popular-brands {
    background-color: #fff;
    padding: 30px 40px;
    margin-bottom: 20px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: center;
}

.brand-logo {
    width: 100%;
    height: 100px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.brand-logo:hover {
    background-color: #e8e8e8;
}


.best-selling {
    background-color: #fff;
    padding: 30px 40px;
    margin-bottom: 20px;
}


footer {
    background-color: #2b2b2b;
    color: #fff;
    padding: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-column p,
.footer-column a {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.error-message {
    color: red;
    font-size: 0.75rem;
    display: none;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    right: 0;
}


.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
}

.dropdown-content a:hover {
    background-color: white;

}


.header {
    position: relative;
    z-index: 500;
}

.featured-books {
background-color: #fff;
padding: 30px 40px;
margin-bottom: 20px;
}


.category-list {
list-style: none;
padding: 0 40px;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
}

.category-item {
background: #f5f5f5;
padding: 14px 18px;
border-radius: 6px;
font-size: 15px;
font-weight: 600;
color: #333;
text-align: center;
transition: 0.3s ease;
cursor: pointer;
border: 1px solid #e0e0e0;
}

.category-item:hover {
background: #e53935;
color: #fff;
transform: translateY(-3px);
}



.publisher-list {
display: flex;
gap: 20px;
flex-wrap: wrap;
padding: 0 40px;
}

.publisher-list li {
list-style: none;
background: #f4f4f4;
padding: 12px 20px;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: 0.3s;
}

.publisher-list li:hover {
background: #e53935;
color: white;
}


.publisher-cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 25px;
padding: 0 40px 20px;
}

.publisher-card {
background: #ffffff;
padding: 25px;
border-radius: 12px;
box-shadow: 0px 4px 10px rgba(0,0,0,0.08);
text-align: center;
transition: transform .3s ease, box-shadow .3s ease;
cursor: pointer;
border: 1px solid #eee;
}

.publisher-card:hover {
transform: translateY(-6px);
box-shadow: 0px 8px 20px rgba(0,0,0,0.15);
border-color: #e53935;
}

.pub-logo {
font-size: 40px;
margin-bottom: 10px;
}

.publisher-card h3 {
font-size: 18px;
font-weight: 700;
margin-bottom: 8px;
}

.publisher-card p {
font-size: 13px;
color: #777;
}


.pub-logo-img {
width: 100px;          
height: 60px;         
object-fit: contain;   
margin-bottom: 12px;
display: block;
margin-left: auto;
margin-right: auto;
}


.top-picks {
background: #fff;
padding: 10px 40px;
margin-bottom: 10px;
}

.top-picks .book-card {
transition: transform 0.3s;
}

.top-picks .book-card:hover {
transform: translateY(-5px);
}


.book-image {
width: 100%;
height: 260px;      
overflow: hidden;

}

.book-image img {
width: 100%;
height: 100%;
object-fit: cover;   
display: block;
}


.trending-section {
background: #fff;
padding: 30px 40px;
margin-bottom: 20px;
}


.icons {
display: flex;
align-items: center;
gap: 20px;
}


.user-area {
position: relative;
cursor: pointer;
}




.dropdown-content {
position: absolute;
right: 0;
top: 40px;
background: white;
padding: 10px 0;
border-radius: 8px;
width: 150px;
display: none;
box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.dropdown-content a {
padding: 10px 15px;
display: block;
color: #333;
text-decoration: none;
font-size: 14px;
}

.dropdown-content a:hover {
background: #f5f5f5;
}

.dropdown:hover .dropdown-content {
display: block;
}


.header-icons {
display: flex;
gap: 18px;
font-size: 18px;
}

.header-icons i {
cursor: pointer;
transition: color 0.3s;
}

.header-icons i:hover {
color: #e53935;
}



.products-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}

.product-card {
background: white;
padding: 15px;
border-radius: 8px;
transition: 0.3s;
cursor: pointer;
}

.product-card:hover {
transform: translateY(-5px);
}

.product-image {
width: 100%;
height: 260px;
background: #eee;
overflow: hidden;
}

.product-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

.product-name {
margin-top: 10px;
font-size: 15px;
font-weight: 600;
}

.product-price {
margin-top: 5px;
font-size: 14px;
font-weight: 600;
color: #e53935;
}

.price-original {
color: #999;
text-decoration: line-through;
margin-right: 8px;
}



.product-page-container {
display: flex;
gap: 25px;
padding: 30px 40px;
background: #f9f9f9;
}


.sidebar {
width: 250px;
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.sidebar-title {
font-size: 18px;
font-weight: 700;
margin-bottom: 15px;
}

.filter-section {
margin-bottom: 25px;
}

.filter-section h3 {
font-size: 15px;
font-weight: 600;
margin-bottom: 12px;
}

.filter-options label {
display: flex;
gap: 8px;
margin-bottom: 8px;
font-size: 14px;
}


.main-content {
flex: 1;
}

.content-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}

.sort-options {
display: flex;
gap: 15px;
align-items: center;
}

.sort-options span {
font-weight: 600;
}

.sort-options a {
cursor: pointer;
color: #333;
font-size: 14px;
padding: 5px 10px;
border-radius: 6px;
}

.sort-options a.active,
.sort-options a:hover {
background: #e53935;
color: white;
}


.products-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 25px;
}

.product-card {
background: white;
border-radius: 10px;
padding: 15px;
box-shadow: 0 3px 8px rgba(0,0,0,0.1);
transition: 0.3s ease;
cursor: pointer;
}

.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.product-image {
width: 100%;
height: 260px;
background: #f1f1f1;
border-radius: 3px;
overflow: hidden;
}

.product-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

.product-name {
margin-top: 10px;
font-size: 15px;
font-weight: 600;
color: #333;
}

.product-price {
margin-top: 5px;
}

.price-original {
color: #999;
text-decoration: line-through;
margin-right: 8px;
}

.price-sale {
color: #e53935;
font-weight: 700;
font-size: 20px;
}

.product-rating {
margin-top: 5px;
color: #ffc107;
font-size: 14px;
}


.pagination {
margin-top: 30px;
display: flex;
justify-content: center;
gap: 8px;
}

.page-btn,
.page-number {
padding: 8px 14px;
background: white;
border-radius: 6px;
border: 1px solid #ddd;
cursor: pointer;
text-decoration: none;
color: #333;
font-size: 14px;
}

.page-number.active {
background: #e53935;
color: white;
border-color: #e53935;
}

.disabled {
opacity: 0.4;
cursor: not-allowed;
}




.books-grid,
.products-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}


.book-card,
.product-card {
background: white;
padding: 15px;
border-radius: 12px;
box-shadow: 0 3px 10px rgba(0,0,0,0.10);
transition: 0.3s ease;
cursor: pointer;
min-height: 380px;        
display: flex;
flex-direction: column;
justify-content: flex-start;
}


.book-card:hover,
.product-card:hover {
transform: translateY(-6px);
box-shadow: 0 6px 18px rgba(0,0,0,0.20);
}


.book-image,
.product-image {
width: 190px;         
height: 280px;        
background: #f4f4f4;
overflow: hidden;

margin: 0 auto;      
display: flex;
justify-content: center;
align-items: center;
}

.book-image img,
.product-image img {
width: 100%;
height: 100%;
object-fit: cover;    
object-position: center;
display: block;
}


.book-title,
.product-name {
margin-top: 20px;
font-size: 19px;
font-weight: 600;
color: #222;
text-align: center;
min-height: 30px;       
}


.book-price,
.product-price {
margin-top: 6px;
font-size: 15px;
font-weight: 700;
text-align: center;
}

.book-price .original,
.price-original {
color: #888;
text-decoration: line-through;
margin-right: 6px;
font-weight: 400;
}

.book-rating,
.product-rating {
margin-top: 5px;
color: #ffc107;
font-size: 14px;
text-align: center;
}



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

header {
background-color: #fff;
padding: 15px 40px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
position: sticky;
top: 8px;
z-index: 1000;
}


.logo {
display: flex;
align-items: center;
gap: 8px;
font-size: 20px;
font-weight: bold;
color: #333;
}

.logo img {
width: 45px;
height: auto;
}


nav {
display: flex;
gap: 30px;
margin-left: 40px;
flex: 1;
}

nav a {
text-decoration: none;
color: #333;
font-size: 15px;
font-weight: 500;
transition: 0.3s;
}

nav a:hover {
color: #e53935;
}


.search-box {
display: flex;
align-items: center;
background-color: #f5f5f5;
padding: 8px 15px;
border-radius: 6px;
}

.search-box input {
border: none;
background: none;
outline: none;
width: 180px;
font-size: 14px;
}


.header-icons {
display: flex;
align-items: center;
gap: 20px;
}

.header-icons i {
font-size: 18px;
color: #333;
cursor: pointer;
transition: 0.3s;
}

.header-icons i:hover {
color: #e53935;
}


.user-area {
position: relative;
}


.dropdown-content {
position: absolute;
right: 0;
top: 40px;
background: #fff;
width: 160px;
border-radius: 8px;
display: none;
box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.dropdown-content a {
display: block;
padding: 10px 14px;
color: #333;
text-decoration: none;
}

.dropdown-content a:hover {
background: #f5f5f5;
}

.dropdown-content.active {
display: block;
}


.product-details-container {
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.product-image-box {
width: 100%;
height: 420px;               
background: #f4f4f4;         
border-radius: 12px;
padding: 15px;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;           
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-image-box img {
width: auto;
height: 100%;              
object-fit: contain;         
display: block;
}


.product-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-author {
    color: #777;
    font-size: 16px;
}

.product-price-box {
    margin: 20px 0;
    font-size: 22px;
    font-weight: 700;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 15px;
}

.new-price {
    color: #e53935;
}

.product-description {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.qty-box input {
    width: 50px;
    padding: 8px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.btn-add {
    background: #e53935;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-wish {
    background: white;
    border: 1px solid #e53935;
    color: #e53935;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-buy {
    width: 100%;
    margin-top: 25px;
    background: black;
    color: white;
    padding: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 40px 0 20px;
    padding: 0 40px;
}

.line {
    width: 4px;
    height: 24px;
    background: #e53935;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    padding: 0 40px 40px;
}

.related-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
}

.related-card h4 {
    font-size: 15px;
    margin-top: 8px;
    font-weight: 600;
}

.breadcrumb {
    margin-left: -30px;
padding: 10px 40px;
font-size: 14px;
color: #999;
}

.breadcrumb a {
color: #666;
text-decoration: none;
}

.breadcrumb a:hover {
color: #e53935;
}

.product-details-page {
max-width: 1200px;
margin: 10px auto;
background: white;
padding: 40px;
border-radius: 10px;
box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.product-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
}

.product-image img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 3px;
}

.product-info h1 {
font-size: 32px;
font-weight: 700;
margin-bottom: 10px;
}

.rating {
font-size: 16px;
color: #ffb400;
margin-bottom: 15px;
}

.price-box {
font-size: 30px;
font-weight: 700;
margin: 10px 0;
}

.old-price {
text-decoration: line-through;
color: #999;
margin-right: 10px;
}

.new-price {
color: #e53935;
}

.product-description {
font-size: 14px;
line-height: 1.7;
color: #444;
margin-bottom: 20px;
}

.quantity-section {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
}

.quantity-section input {
width: 60px;
padding: 8px;
}


.button-group {
display: flex;
gap: 12px;
margin-bottom: 20px;
}

.add-to-cart-btn {
background: #e53935;
color: white;
border: none;
padding: 12px 25px;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
width: -webkit-fill-available;
}

.wishlist-btn {
background: white;
border: 1px solid #e53935;
color: #e53935;
padding: 12px 20px;
border-radius: 6px;
cursor: pointer;
}

.buy-now-btn {
background: #000;
color: white;
padding: 14px;
border-radius: 6px;
width: 100%;
border: none;
cursor: pointer;
font-size: 20px;
margin-top: -5px ;
}
.delivery-info {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
margin-top: 25px;
}

.delivery-box {
display: flex;
gap: 12px;
padding: 15px;
border: 1px solid #ddd;
border-radius: 6px;
}

.delivery-icon {
font-size: 24px;
}

.tabs {
display: flex;
gap: 25px;
margin: 40px 0 20px;
padding-bottom: 10px;
border-bottom: 2px solid #eee;
}

.tab {
padding: 10px 0;
font-weight: 600;
cursor: pointer;
color: #777;
}

.tab.active {
color: #e53935;
border-bottom: 3px solid #e53935;
}


.product-desc-section h2 {
font-size: 20px;
margin-bottom: 15px;
font-weight: 700;

}

.product-desc-section p {
font-size: 14px;
line-height: 1.7;
color: #555;
border-bottom: 2px solid #eee;
padding-bottom: 15px;
}


.related-section {
margin-top: 50px;
}

.related-header {
display: flex;
justify-content: space-between;
padding: 0 10px;
margin-bottom: 20px;
}

.related-header h3 {
font-size: 20px;
font-weight: 700;
}

.see-all {
color: #e53935;
text-decoration: none;
font-weight: 600;
}

.related-grid {
display: grid;
grid-template-columns: repeat(4,1fr);
gap: 20px;
}

.book-card img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 3px;
}

.book-card h4 {
font-size: 14px;
text-align: center;
margin-top: 8px;
font-weight: 600;
}

.book-price {
text-align: center;
margin-top: 5px;
color: #e53935;
}

.book-price .old-price {
text-decoration: line-through;
color: #999;
font-size: 12px;
}


.product-image-section {
display: flex;
flex-direction: column;
gap: 15px;
align-items: center;
}

.main-image {
width: 100%;
height: 100%;
border-radius: 10px;
object-fit: contain;
border: 1px solid #ddd;
}


.thumbnail-row {
display: flex;
gap: 10px;
}

.thumbnail {
width: 80px;
height: 80px;
object-fit: cover;
border-radius: 6px;
border: 2px solid transparent;
cursor: pointer;
transition: 0.2s;
}

.thumbnail:hover {
border-color: #e53935;
}



.main-image-wrapper {
overflow: hidden;
border-radius: 10px;
width: 520px;
height: 520px;
}




.image-modal {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.85);
justify-content: center;
align-items: center;
z-index: 2000;
}


.image-modal-content {
position: relative;
width: 70%;
max-width: 900px;
height: 600px;
overflow: hidden;
border-radius: 10px;
cursor: crosshair;
}


.image-modal-content img {
width: 100%;
height: 100%;
object-fit: cover;
transform-origin: center;
transition: transform 0.1s;
}

.image-modal-close {
position: absolute;
top: 25px;
right: 35px;
font-size: 35px;
color: white;
cursor: pointer;
}

.main-image {
cursor: zoom-in;
}
.review {
background: #fff;
padding: 15px 20px;
border-radius: 8px;
margin-bottom: 15px;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.review h4 {
margin: 0 0 6px;
font-size: 16px;
}

.review p {
font-size: 14px;
color: #555;
}

.review small {
color: #888;
}

.static-features {
margin: 30px 0;
padding: 20px;
background: #fafafa;
border-radius: 8px;
border: 1px solid #eee;
}

.static-features h3 {
font-size: 18px;
font-weight: 700;
margin-bottom: 12px;
}

.static-features ul {
padding-left: 18px;
}

.static-features li {
margin-bottom: 8px;
font-size: 14px;
color: #555;
}

.tabs {
display: flex;
gap: 20px;
padding: 20px 40px;
border-bottom: 2px solid #eee;
}

.tab {
padding: 8px 16px;
cursor: pointer;
font-weight: 600;
color: #555;
}

.tab.active {
color: #e53935;
border-bottom: 2px solid #e53935;
}

.tab-content {
display: none;
padding: 20px 40px;
}

.tab-content.active {
display: block;
}

.review {
background: #fff;
padding: 15px 20px;
border-radius: 8px;
margin-bottom: 15px;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.review h4 {
margin: 0 0 6px;
font-size: 16px;
}

.review p {
font-size: 14px;
color: #555;
}

.review small {
color: #888;
}

.qty-box {
display: flex;
align-items: center;
gap: 10px;
}

.qty-btn {
width: 32px;
height: 32px;
border: none;
background: #e53935;
color: white;
font-size: 20px;
border-radius: 6px;
cursor: pointer;
}

.qty-btn:hover {
background: #c62828;
}

#qtyInput {
width: 50px;
height: 32px;
text-align: center;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 6px;
background: #f7f7f7;
}

.wishlist-btn i {
font-size: 20px;
color: #e53935;
transition: 0.3s;
}

.wishlist-btn:hover i {
transform: scale(1.1);
}


.review-form-box {
margin-top: 25px;
background: #fafafa;
padding: 20px;
border-radius: 8px;
box-shadow: 0 3px 8px rgba(0,0,0,0.1);
margin-bottom: 10px;
}

.review-form-box h3 {
margin-bottom: 15px;
font-size: 18px;
font-weight: 700;
}


.star-rating {
display: flex;
flex-direction: row-reverse;
justify-content: flex-end;
font-size: 28px;
margin-bottom: 15px;
}

.star-rating input {
display: none;
}

.star-rating label {
color: #ccc;
cursor: pointer;
transition: 0.3s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
color: #ffb400;
}


.review-input {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 14px;
margin-bottom: 15px;
}


.submit-review-btn {
background: #e53935;
color: white;
border: none;
padding: 10px 18px;
border-radius: 6px;
cursor: pointer;
font-size: 15px;
font-weight: 600;
transition: 0.3s;
}

.submit-review-btn:hover {
background: #c62828;
}


.tabs {
display: flex;
gap: 20px;
border-bottom: 2px solid #eee;
margin: 30px 0 20px;
}

.tab {
padding: 10px 20px;
cursor: pointer;
font-weight: 600;
border-bottom: 3px solid transparent;
}

.tab.active {
color: #e53935;
border-bottom: 3px solid #e53935;
}

.tab-content {
display: none;
padding: 10px 0;
}

.tab-content.active {
display: block;
}



.pd-title {
font-size: 32px;
font-weight: 800;
color: #222;
margin-bottom: 8px;
line-height: 1.2;
letter-spacing: -0.5px;
}


.pd-author {
font-size: 15px;
color: #666;
margin-bottom: 18px;
font-weight: 500;
}

.pd-author span {
color: #e53935;     
font-weight: 600;
}


.pd-author span:hover {
text-decoration: underline;
cursor: pointer;
}



.pd-title,
.product-title,
.book-title,
.product-name {
font-family: 'Playfair Display', serif;
font-weight: 700;
color: #222;
letter-spacing: -0.4px;
}


.pd-author,
.author-name,
.section-title-2 {
font-family: 'Inter', sans-serif;
color: #666;
font-weight: 400;
}

.clear-btn {
margin-top: 15px;
padding: 8px 12px;
background: #ff4d4d;
color: white;
border: none;
cursor: pointer;
border-radius: 5px;
}
.clear-btn:hover {
background: #e63939;
}


.search-box { display:flex; align-items:center; gap:6px; }
.search-box input { padding:6px 10px; border-radius:4px; border:1px solid #ccc; }
.search-btn { padding:6px 8px; border:none; background:#007bff; color:white; border-radius:4px; cursor:pointer; }
.search-btn:hover { background:#0063d1; }

.search-box {
position: relative;
}

.search-wrapper {
display: flex;
align-items: center;
background: #ffffff;
border-radius: 25px;
padding: 5px 12px;
border: 1px solid #ddd;
transition: 0.2s;
}

.search-wrapper:hover {
border-color: #888;
}

.search-wrapper input {
border: none;
outline: none;
padding: 10px 12px;
width: 180px;
font-size: 15px;
border-radius: 25px;
}

.search-wrapper input::placeholder {
color: #bbb;
}

.search-btn {
background: #ff4757;
border: none;
padding: 8px 12px;
border-radius: 20px;
cursor: pointer;
color: white;
font-size: 14px;
transition: 0.2s ease-in-out;
}

.search-btn:hover {
background: #e84118;
}

.search-btn i {
font-size: 16px;
}


.dropdown-content.show {
display: block !important;
}


.user-area.open .arrow {
transform: rotate(180deg);
transition: transform 0.2s;
}


.warning-msg {
background: #ffe5e5;
color: #e53935;
padding: 12px 16px;
border-radius: 6px;
font-size: 14px;
margin-top: 15px;
border: 1px solid #ffb3b3;
text-align: center;
}

.stock.in-stock {
color: #28a745;
font-weight: 600;
font-size: 14px;
}


.stock.low-stock {
color: #e67e22;
font-weight: 600;
font-size: 14px;
}

.stock.out-stock {
color: #e53935;
font-weight: 700;
font-size: 15px;
}


.stock-status {
margin: 10px 0 15px 0;
font-size: 15px;
font-weight: 600;
letter-spacing: 0.3px;
}


.stock-status.in {
color: #27ae60;
}


.stock-status.low {
color: #e67e22;
}


.stock-status.out {
color: #c0392b;
font-weight: 700;
}


.unavailable-box {
background: #fff0f0;
border: 1px solid #ffcccc;
padding: 14px 16px;
border-radius: 8px;
font-size: 14px;
margin: 10px 0 20px 0;
color: #b63838;
}


.btn-disabled {
background: #ddd !important;
color: #777 !important;
border-color: #ccc !important;
cursor: not-allowed !important;
opacity: 0.7;
}



.wishlist-btn {
width: 45px;
height: 45px;
border-radius: 50%;
border: 1.5px solid #ddd;
background: #ffffff;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: 0.25s ease;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.wishlist-btn i {
font-size: 20px;
color:red;
transition: 0.25s ease;
}


.wishlist-btn:hover {
border-color: #ff3e6c;   /* modern pink-red wishlist color */
background: #fff6f8;
}

.wishlist-btn:hover i {
color: #ff3e6c;
}


.wishlist-btn.active {
background: #ff3e6c;
border-color: #ff3e6c;
}

.wishlist-btn.active i {
color: #fff;
}


.wishlist-btn {
width: 40px;
height: 40px;
border: 1px solid #ccc;    
background: #f7f7f7;        
border-radius: 5px;         
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: all 0.2s ease;
}

.wishlist-btn i {
font-size: 18px;
color: red;                
transition: color 0.2s ease;
}

/* Hover Effect */
.wishlist-btn:hover {
background: #ececec;        
border-color: #999;          
}

.wishlist-btn:hover i {
color: #333;               
}


.wishlist-btn.active {
background: #dedede;        
border-color: #888;
}

.wishlist-btn.active i {
color: #d12d2d;             
}




.category-item a {
display: block;
text-decoration: none;
color: inherit;  
}

.book-details-box {
background: #fafafa;
padding: 18px 22px;
border-radius: 8px;
margin: 20px 0;
border: 1px solid #eee;
}

.book-details-box h3 {
font-size: 20px;
margin-bottom: 12px;
font-weight: 600;
}

.details-list {
list-style: none;
padding: 0;
margin: 0;
}

.details-list li {
font-size: 15px;
padding: 6px 0;
display: flex;
gap: 10px;
}

.details-list li span {
font-weight: 600;
width: 150px;
color: #333;
}


.sort-sidebar {
display: flex;
flex-direction: column;
gap: 8px;
padding: 0px 0;
}

.sort-sidebar a {
color: #333;
font-size: 14px;
cursor: pointer;
padding: 6px 10px;
border-radius: 6px;
transition: 0.2s ease;
}

.sort-sidebar a:hover {
background-color: #f0f0f0;
}

.active-sort {
background-color: #e53935;
color: #fff !important;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

/* User name – clean text */
.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

/* Avatar container */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
}


.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initial {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
  }
  
  .empty-cart-img {
    width: 220px;
    max-width: 100%;
    margin-bottom: 20px;
    opacity: 0.9;
  }
  
  .empty-cart h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #333;
  }
  
  .empty-cart p {
    color: #777;
    margin-bottom: 20px;
  }
  
  .continue-shopping-btn {
    display: inline-block;
    padding: 12px 22px;
    background-color: #ff4757;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
  }
  

@media (max-width: 768px) {

    .books-grid,
    .categories-grid,
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    nav {
        display: none;
    }


    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}


.auth-links {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-right: 35px;
}


.auth-btn {
    padding: 11px 26px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}


.auth-btn.ghost {
    color: #ff4757;
    border: 1px solid rgba(127, 29, 29, 0.3);
    background: rgba(254, 226, 226, 0.7);
    backdrop-filter: blur(8px);
}

.auth-btn.ghost:hover {
    background: rgba(254, 202, 202, 0.9);
}


.auth-btn.glow {
    color: white;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    box-shadow:
        0 10px 30px rgba(220, 38, 38, 0.45),
        0 0 0 rgba(220, 38, 38, 0.6);
    width: 200px;
    text-align: center;
}


.auth-btn.glow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transform: translateX(-100%);
}

.auth-btn.glow:hover::after {
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

.auth-btn.glow:hover {
    transform: translateY(-2px);
}


