    body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        main {
            flex-grow: 1;
        }
        .hero {
            
            height: 80vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: white;
            position: relative;
        }
        .hero-overlay {
            background: rgba(0, 0, 0, 0.2);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }
        .hero-content {
            position: relative;
            z-index: 2;
            padding: 0 1rem;
        }

        .hero .btn {
            background-color: #17A2B8;
            border-color: #17A2B8;
            transition: all 0.3s ease;  
        }
        .hero .btn:hover {
            background-color: #138496; 
            border-color: #117a8b;
            box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4); 
            transform: translateY(-2px);  
        }
 
        #wishlist-count {
            display: none; /* Hidden by default */
        }

        #wishlist-count.show {
            display: inline-block !important;
        }
        #cart-count {
            display: none; /* Hidden by default */
        }

        #cart-count.show {
            display: inline-block !important;
        }

 /*=========================== HOME PAGE ==========================================================*/
        .book-card-img {
            height: 20rem;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        .book-card:hover .book-card-img {
            transform: scale(1.05);
        }
        .book-card {
            transition: box-shadow 0.3s ease;
        }
        .book-card:hover {
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }
        .promo-banner {
            background: linear-gradient(90deg, #ff6b6b, #feca57);
            color: white;
            text-align: center;
            padding: 2rem 1rem;
        }

        /* Teal Buy Now buttons in featured section */
        .book-card .btn-info {
            background-color: #17A2B8;
            border-color: #117a8b;
            transition: all 0.3s ease;  
            font-weight: bold;
        }

        .book-card .btn-info:hover {
            background-color: #138496;  
            border-color: #117a8b;
            box-shadow: 0 6px 16px rgba(23, 162, 184, 0.4);  
            transform: translateY(-3px);  
            color: white;  
        }
        
        /* Footer */
        .footer {
            background-color: #191928;
            color: white;
            padding: 3rem 0;
        }
        .footer a {
            color: #adb5bd;
            text-decoration: none;
        }
        .footer a:hover {
            color: white;
        }  
        
        
  /* Navbar Adjustments for Large Devices */
        @media (min-width: 992px) {
            .navbar-nav {
                flex-wrap: nowrap !important; 
                overflow-x: visible; 
                white-space: nowrap; 
            }
            .nav-link {
                padding: 0.5rem 0.75rem; 
                font-size: 0.95rem; 
            }
             .dropdown-menu {
                margin-top: 0;
                position: absolute;
            }
           
        }
        @media (max-width: 991px) {
            .navbar-nav {
                text-align: center; 
            }
        }
  
        @media (max-width: 768px) {
            .hero {
                height: 60vh;
            }
            .hero h1 {
                font-size: 2rem;
            }
            .book-card-img {
                height: 14rem;
            }
          
        }
    
        /* Navbar Icons Styling */
        .nav-icon {
            color: white;
            font-size: 1.2rem;
            padding: 0.5rem 0.75rem;
                
        }
        .nav-icon:hover {
            color: white;
        }
        @media (max-width: 991px) {
            .nav-icon {
                display: inline-block;
                padding: 0.5rem;
                font-size: 1.5rem;
            }
        }

/*--------------------------------- Form Styling (for signup, login, and OTP) --------------------------- */

        .account-page {
            padding: 3rem 0;
        }
        .form-container, .loginform-container, .otpform-container {
            background-color: white;
            padding: 2rem;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            max-width: 400px;
            margin: 0 auto;
        }
        .form-btn {
            text-align: center;
            margin-bottom: 1.5rem;
        }
        .form-btn h2, .form-btn h3 {
            font-size: 1.75rem;
            font-weight: 600;
            color: #212529;
        }
        .form-container input, .loginform-container input, .otpform-container input {
            width: 100%;
            padding: 0.75rem;
            margin-bottom: 1rem;
            border: 1px solid #ced4da;
            border-radius: 4px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }
        .form-container input:focus, .loginform-container input:focus, .otpform-container input:focus {
            outline: none;
            border-color: #cb458c;
            box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
        }
        .form-container input::placeholder, .loginform-container input::placeholder, .otpform-container input::placeholder {
            color: #6c757d;
            opacity: 0.7;
        }
        .form-container .btn, .loginform-container .btn, .otpform-container button[type="submit"] {
            width: 100%;
            padding: 0.75rem;
            background-color: #17A2B8;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
            font-weight: 500;
            transition: background-color 0.3s ease;
        }
        .form-container .btn:hover, .loginform-container .btn:hover, .otpform-container button[type="submit"]:hover {
            background-color: #17A2B8;
        }

        /* Resend OTP Button Styling */
        .otpform-container #resend-btn {
            width: 100%;
            padding: 0.75rem;
            background-color: #17A2B8;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
            font-weight: 500;
            transition: background-color 0.3s ease;
        }
        .otpform-container #resend-btn:hover:not(:disabled) {
            background-color: #17A2B8;
        }
        .otpform-container #resend-btn:disabled {
            background-color: #6c757d;
            color: #adb5bd;
            cursor: not-allowed;
        }
        .otp-link, .login-link, .loginform-container a {
            display: block;
            text-align: center;
            margin-top: 1rem;
            color: #17A2B8;
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.3s ease;
        }
        .otp-link a, .login-link a, .loginform-container a:hover {
            color: #17A2B8;
            text-decoration: underline;
        }
        .login-link {
            color: #6c757d;
        }

        /* Google Login Button Styling */
        .loginform-container a[href*="google"] {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 0.75rem;
            background-color: white;
            color: black;
            border-radius: 5px;
            font-size: 1rem;
            font-weight: 500;
            text-decoration: none;
            margin-top: 1rem;
            transition: background-color 0.3s ease;
        }
        .loginform-container a[href*="google"]:hover {
            background-color: #17A2B8;
            color: white;
            text-decoration: none;
        }
        .loginform-container a[href*="google"] i {
            margin-right: 8px;
        }
        /* Responsive Adjustments */
        @media (max-width: 576px) {
            .form-container, .loginform-container, .otpform-container {
                padding: 1.5rem;
                max-width: 100%;
            }
            .form-btn h2, .form-btn h3 {
                font-size: 1.5rem;
            }
            .form-container input, .loginform-container input, .otpform-container input,
            .form-container .btn, .loginform-container .btn, .otpform-container button[type="submit"],
            .otpform-container #resend-btn {
                padding: 0.6rem;
                font-size: 0.9rem;
            }
            .otp-link a, .login-link, .login-link a, .loginform-container a {
                font-size: 0.9rem;
            }
            .loginform-container  a[href*="google"] {
                padding: 0.6rem;
                font-size: 0.9rem;
            }
        }
/*----------------------Background image for signup/login page/verify otp---------------------------*/
.account-page {
    padding: 3rem 0;
    background: url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?w=1920&h=600&fit=crop')  center/cover no-repeat;
    position: relative;
}
.account-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.account-page .container {
    position: relative;
    z-index: 2;
}

.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.password-wrapper input {
    width: 100%;
    padding: 10px 40px 10px 12px;  
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;            
    color: #555;
    user-select: none;
    z-index: 2;
}

.password-requirements {
    font-size: 0.85rem;
    color: #555;
    margin-top: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.password-requirements ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.req-item {
    color: #555;
    transition: color 0.2s;
}

.req-item.met {
    color: #28a745;
    text-decoration: line-through;
    /* or you can add ✓ before with ::before */
}
.toggle-password:hover {
    color: #000;
}

/*--------------------------------- Product Listing Page ---------------------------------------------------------*/


.breadcrumbs
 { 
    padding: 15px 12px; 
    font-size: 14px; 
    color: #1C2526; 
    background: #E5E5E5; 
}
.breadcrumbs a 
{ color: #1C2526; 
    text-decoration: none; 
}
.breadcrumbs a:hover
 {
     color: #17A2B8;
 }
.breadcrumbs span
 { 
    margin: 0 5px;
 }
.products-section
 { 
    display: flex;
    padding: 20px;
    gap: 68px; 
}
.sidebar
 { 
    width: 250px; 
    background: #FFFFFF; 
    padding: 15px; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); 
    border: 2px solid #E5E5E5; 
}
.sidebar h4 
{ 
    font-size: 18px; 
    color: #1C2526; 
    font-weight: 700; 
    margin-bottom: 10px; 
}
.sidebar label 
{ 
   display: flex !important;
    align-items: center !important;
    gap: 10px;
    margin: 8px 0;
}
.sidebar input[type="checkbox"], .sidebar input[type="radio"] 
{ 
    margin: 0 !important;
    width: 18px;
    height: 18px;
}
.sidebar select, .sidebar input[type="number"] 
{ 
    padding: 8px; 
    border: 1px solid #E5E5E5; 
    border-radius: 8px; 
    font-size: 14px; 
    width: 100%; 
    margin: 5px 0; 
}
.product-grid 
{ 
    flex: 1; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 250px)); 
    gap: 36px; 
}
.product-card 
{ 
    background: #FFFFFF; 
    padding: 15px; 
    border-radius: 12px; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); 
    border: 2px solid #E5E5E5; 
    text-align: center; 
    display: flex; flex-direction: column; 
    justify-content: space-between; 
    max-width: 250px; 
}

.product-card {
    position: relative;
}

.wishlist-heart {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 5;
    cursor: pointer;
    padding: 8px; 
    border-radius: 50%;
    transition: background 0.3s ease;
}

.wishlist-heart i {
    font-size: 22px;
    color: #b0b0b0;
    transition: color 0.3s ease, transform 0.3s ease;
}


.wishlist-heart.active i {
    color: #e63946 !important;
    transform: scale(1.2);
}

/* Optional: subtle hover effects */
.wishlist-heart:hover i {
    transform: scale(1.2);
}

.wishlist-heart.active:hover i {
    transform: scale(1.3);
}

.product-card .image-slideshow 
{ 
    position: relative; 
    width: 100%; 
    height: 250px; 
    overflow: hidden; 
    margin-bottom: 10px; 
}
.product-card img 
{ 
    width: 100%; 
    height: 250px; 
    object-fit: contain; 
    border-radius: 8px; 
    position: absolute; 
    top: 0; 
    left: 0; 
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
}
.product-card img.active 
{ 
    opacity: 1; 
}
.product-card .product-title 
{ 
    font-size: 18px; 
    color: #1C2526; 
    font-weight: 700; 
    text-decoration: none; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    margin-bottom: 8px; 
    display: block; 
}
.product-card p 
{
     font-size: 14px; 
     margin-bottom: 8px; 
}
.product-card .original-price 
{ 
    text-decoration: line-through; 
    color: #A0A0A0; 
    font-size: 12px; 
}

.offer-ribbon {
    position: absolute;
    top: 12px;
    left: -8px;                   /* or right: -8px for top-right */
    z-index: 10;
    background: #e74c3c;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 6px 28px;
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Green variant for category/special */
.offer-ribbon.category {
    background: #27ae60;
}

.product-card button 
{
     padding: 8px; 
     background: #17A2B8; 
     border: none; 
     border-radius: 20px; 
     color: #FFFFFF; 
     font-weight: 700; 
     cursor: pointer; 
     transition: background 0.3s; 
     width: 100%; 
     margin-top: 8px; 
}
.product-card button:hover 
{ 
    background: #17A2B8; 
}
.product-card button:disabled 
{ 
    background: #A0A0A0; 
    cursor: not-allowed; 
}
.view-product-btn {
  display: inline-block;
  padding: 8px 12px;
  background-color: #17A2B8;
  color: white;
  border-radius: 4px;
  text-decoration: none;
}
.view-product-btn:hover {
  background-color: #17A2B8;
}
.no-products 
{
     text-align: center; 
     font-size: 16px; 
     color: #1C2526; 
     padding: 20px; 
}
.pagination 
{
     text-align: center; 
     margin-top: 20px; 
}
.page-link 
{ 
    padding: 8px 12px; 
    margin: 0 5px; 
    color: #1C2526; 
    text-decoration: none; 
    border-radius: 8px; 
}
.page-link:hover 
{ 
    background: #E5E5E5; 
}
.page-link.active 
{ 
    background:#17A2B8; 
    color: #FFFFFF; 
}


footer 
{ 
background: #FFFFFF;
padding: 20px;
color: #1C2526;
border-top: 1px solid #E5E5E5;
}
.footer-content
 {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
}
.footer-section h4 
{ 
    font-size: 18px; 
    color: #1C2526; 
    font-weight: 700; 
    margin-bottom: 10px; 
}
.footer-section p, .footer-section ul li a 
{ 
    font-size: 14px; 
    color: #1C2526; 
    text-decoration: none; 
}
.footer-section ul li a:hover 
{ 
    color: #17A2B8; 
}
.footer-section form 
{ 
    display: flex; 
    gap: 10px; 
}
.footer-section input 
{ 
    padding: 8px; 
    border: 1px solid #E5E5E5; 
    border-radius: 8px; 
    width: 150px; 
}
.footer-section button 
{ 
    padding: 8px 15px; 
    background: #1C2526; 
    border: none; 
    border-radius: 20px; 
    color: #FFFFFF; 
    cursor: pointer; 
}
.footer-section button:hover 
{ 
    background: #17A2B8; 
}
.footer-bottom 
{ 
    text-align: center; 
    margin-top: 20px; 
    font-size: 12px; 
}
.message 
{ 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    padding: 10px; 
    background: #17A2B8; 
    color: #FFFFFF; 
    border-radius: 5px; 
    display: none; 
}
@media (max-width: 768px) {
    .products-section 
    { 
        flex-direction: column; 
        align-items: center; 
    }
    .sidebar 
    { 
        width: 100%; 
    }
    .product-grid 
    { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    .product-card
    { 
        max-width: 300px; 
        padding: 10px; 
    }
    .product-card .image-slideshow 
    { 
        height: 300px; 
    }
    .product-card img 
    { 
        height: 300px; 
    }
    .product-card button 
    { 
        padding: 6px; 
        font-size: 12px; 
    }
}

/* Search Bar */
.search-bar 
{
    margin-bottom: 20px;
    float:right;
    padding-right: 50px;
    max-width: 500px;
    width: 100%;
}

.search-form 
{
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 20px;
}

.search-input 
{
    width: 100%;
    padding: 8px 40px 8px 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333;
    border: 2px solid #ccc;
    border-radius: 25px 0 0 25px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus 
{
    border-color: #ff523b;
    box-shadow: 0 0 5px rgba(255, 82, 59, 0.3);
}

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

.search-btn, 
.cancel-btn 
{
    padding: 8px 12px;
    background-color: #17A2B8;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease;
}

.cancel-btn 
{
   background-color: red;
 }

/* Responsive Adjustments */
@media (max-width: 767px) {
    .search-bar {
        margin: 10px auto;
        max-width: 100%;
    }
}

/*=========================== PRODUCT DETAILS PAGE ==========================================================*/

.breadcrumbs 
{
    padding: 15px 12px;
    font-size: 14px;
    color: #1C2526;
    background: #E5E5E5;
}
.breadcrumbs a 
{
    color: #1C2526;
    text-decoration: none;
}
.breadcrumbs a:hover 
{
    color: #007bff;
}
.breadcrumbs span 
{
    margin: 0 5px;
}

/* === MAIN LAYOUT: TWO COLUMNS ON DESKTOP === */
.book-details-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1060px;
    margin: 20px auto;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid #E5E5E5;
}

/* Images: Fixed width */
.book-images {
    flex: 1 1 380px;
    max-width: 480px;
    min-width: 400px;
    text-align: center;
}

/* Info: Takes remaining space */
.book-info {
    flex: 1 1 480px;
    min-width: 380px;
    padding: 10px 0;
}

/* === MAIN IMAGE + ZOOM === */
.main-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}
.main-image img {
    width: 100%;
    max-width: 380px;
    height: 380px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.main-image img:hover {
    transform: scale(1.05);
}

/* === THUMBNAILS === */
.thumbnail-gallery {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.thumbnail {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 6px;
    border: 2px solid #E5E5E5;
    cursor: pointer;
    transition: all 0.3s ease;
}
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbnail img:hover,
.thumbnail img.active {
    border: 2px solid #007bff;
}

/* === DRIFT ZOOM PANE === */
.drift-zoom-pane {
    width: 300px !important;
    height: 300px !important;
    border-radius: 12px !important;
    border: 3px solid #007bff !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3) !important;
}

/* === BOOK INFO STYLES === */
.book-category {
    font-size: 15px;
    color: #1C2526;
    font-weight: 500;
    
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.book-name {
    font-size: 26px;
    font-weight: 700;
    color: #1C2526;
    margin: 0 0 10px 0;
    line-height: 1.3;
}
.book-rating p {
    font-size: 16px;
    color: #1C2526;
    margin: 8px 0;
}
.book-description h3 {
    font-size: 18px;
    color: #1C2526;
    font-weight: 700;
    margin: 15px 0 8px 0;
}
.book-description p {
    font-size: 14px;
    color: #1C2526;
    line-height: 1.6;
}

/* === PRICE === */
.actual_price {
    margin: 10px 0;
}
.actual_price .mrp {
    color: black;
    font-size: 14px;
}
.actual_price .price {
    
    color: black;
    font-size: 16px;
    margin-left: 5px;
}
.book-price {
    font-size: 22px;
    font-weight: 700;
    color: #007bff;
    margin: 8px 0;
}
.book-price .discount {
    font-size: 16px;
    color: white;
    margin-left: 8px;
    font-weight: 600;
}

.price-original {
    text-decoration: line-through;
    color: #A0A0A0;
}


/* === STOCK  === */
.stock {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stock-status .in-stock {
    color: #28a745;
    font-weight: 600;
    font-size: 14px;
    margin-left: 1px;
}
.stock-status .out-of-stock {
    color: #dc3545;
    font-weight: 600;
    font-size: 14px;
    margin-left: 0px;
}

/* === ACTION BUTTONS === */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    width: 100%;
    max-width: 250px;           /* Controls button width */
    align-self: flex-start;
}
.action-buttons button {
    width: 100%;                /* Buttons fill container */
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.add-to-cart {
    background: #007bff;
    color: #FFFFFF;
}
.add-to-cart:hover:not(:disabled) {
    background: #0056b3;
}
.add-to-wishlist {
    background: #007bff ;
    color: #FFFFFF;
}
.add-to-wishlist:hover {
    background: #0056b3;
}
.action-buttons button:disabled {
    background: #A0A0A0;
    cursor: not-allowed;
}


.variant-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.variant-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.variant-btn:hover {
    border-color: #117a8b;
    background: #f0f8ff;
}

.variant-btn.active-variant {
    background: #138496;
    color: white;
    border-color: #117a8b;
}



/* === RELATED PRODUCTS === */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}
.container h1 {
    font-size: 26px;
    color: #1C2526;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}
.book-card {
    background: #FFFFFF;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E5E5;
    text-align: center;
    transition: transform 0.2s;
}
.book-card:hover {
    transform: translateY(-3px);
}
.book-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 10px;
}
.book-card h3 a {
    font-size: 14px;
    color: #1C2526;
    font-weight: 700;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.book-card h3 a:hover {
    color: #117a8b;
}
.book-card .price {
    font-size: 13px;
    color:  #17A2B8;
    font-weight: 700;
}
.book-card .discount {
    font-size: 11px;
    color: white;
}
.book-card .rating {
    font-size: 11px;
    color: #1C2526;
    margin-top: 5px;
}

/* === REVIEWS SECTION === */
.container.mt-5 {
    margin-bottom: 50px;
}
.card {
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
}
.card h4 {
    font-size: 20px;
    color: #1C2526;
    font-weight: 700;
    margin-bottom: 15px;
}
.progress {
    height: 10px;
    background: #E5E5E5;
}
.progress-bar {
    background-color: #17A2B8;
}
.btn {
    background-color: #17A2B8;
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 700;
    transition: background 0.3s;
}
.btn:hover {
    background-color: #138496;
}
.badge {
    background-color: #138496;
    color: #FFFFFF;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
}

/* === TOAST NOTIFICATION === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}
.toast-success {
    background-color: #007bff;
    color: #FFFFFF;
}
.toast-error {
    background-color: #FF4D4D;
    color: #FFFFFF;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Mobile: less than or equal to 768px */
@media (max-width: 992px) {
    .book-details-container {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 20px;
    }
    .book-images,
    .book-info {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .book-images {
        flex: 0 0 auto;
    }
    .main-image img {
        max-width: 380px;
        height: auto;
    }
    .action-buttons {
        flex-direction: column;
    }
    .action-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    .book-card img {
        height: 130px;
    }
    .book-card h3 a {
        font-size: 13px;
    }
    .container {
        padding: 0 15px;
    }
}

/* Tablet: 769px – 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .book-images {
        flex: 0 0 340px;
    }
    .main-image img {
        max-width: 340px;
        height: 340px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Desktop: greater than or equal to 1025px */
@media (min-width: 1025px) {
    .book-details-container {
        padding: 30px;
    }
    .main-image img {
        max-width: 380px;
        height: 380px;
    }
}



/*==================================         CART PAGE        =================================================*/

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.cart-container {
    padding: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 12px 16px;
    font-size: 14px;
    color: #555;
}

/* ==========================================================================
   Mobile-first layout
   ========================================================================== */

.cart-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.cart-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-img img {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 16px auto 0;
}

/* Left part – title, category, price */
.cart-left {
    line-height: 1.4;
}

.cart-title {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
}

.cart-category {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #666;
}

.cart-price {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 8px 0 4px 0;
    font-size: 1.05rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
}

.old-price {
    text-decoration: line-through;
    color: #777;
    font-size: 1.05rem;
}

.discount {
    background: #28a745;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}

/* Right part – controls */
.cart-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
    padding-top: 8px;
}

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

.qty-box button {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    background: #17A2B8;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.qty-box input {
    width: 52px;
    text-align: center;
    font-size: 1.05rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 4px;
}

.item-total-price .current-price {
    font-size: 1.25rem;
    font-weight: 700;
}

.stock-left {
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: 500;
}

.remove-item {
    color: #dc3545;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Summary – comes after items on mobile */
.cart-summary {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px 16px;
}

.cart-summary h2 {
    margin: 0 0 16px;
    font-size: 1.4rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 8px;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 24px;
    background: #17A2B8;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
}

/* ==========================================================================
   Tablet and desktop (side-by-side layout)
   ========================================================================== */

@media (min-width: 768px) {

    .cart-container {
        flex-direction: row;
        gap: 32px;
        padding: 24px;
    }

    .cart-items {
        flex: 3;
    }

    .cart-summary {
        flex: 1.1;
        align-self: flex-start;
        position: sticky;
        top: 24px;
    }

    .cart-card {
        display: flex;
        flex-direction: row;
        padding: 16px;
        gap: 20px;
    }

    .cart-img img {
        width: 120px;
        height: 160px;
        margin: 0;
    }

    .cart-info {
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
        flex: 1;
        gap: 16px;
    }

    .cart-left {
        flex: 1;
    }

    .cart-right {
        flex-direction: column;
        align-items: flex-end;
        justify-content: space-between;
        min-width: 160px;
        gap: 12px;
        padding-left: 16px;
    }

    .cart-right > * {
        width: auto;
    }

    .qty-box {
        justify-content: flex-end;
    }

    .remove-item {
        margin-top: auto;
    }

    .cart-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .cart-container {
        padding: 32px;
        gap: 40px;
    }

    .cart-card {
        padding: 20px;
        gap: 24px;
    }

    .cart-img img {
        width: 140px;
        height: 180px;
    }
}
/*======================================         ADD ADDRESS FORM       =================================================*/
form p {
    margin-bottom: 1.2rem;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
}

.hover-shadow {
        transition: all 0.3s ease;
    }
    .hover-shadow:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }

    /* Tooltips for icon buttons */
    .btn[title] {
        position: relative;
    }

    /* Optional: Better spacing on mobile */
    @media (max-width: 576px) {
        .btn-sm {
            padding: 0.5rem;
        }
        .btn-sm i {
            font-size: 1rem;
        }
    }

/*=====================================         USER PROFILE      =================================================*/

        body {
            background-color: #f8f9fa;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
        }
        .profile-sidebar .card {
            border: none;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            border-radius: 12px;
        }
        .profile-sidebar .list-group-item {
            border: none;
            padding: 0.75rem 1rem;
            border-radius: 10px !important;
            margin-bottom: 0.25rem;
            transition: all 0.2s ease;
        }
        .profile-sidebar .list-group-item:hover,
        .profile-sidebar .list-group-item.active {
            background-color: #e3f2fd;
            color: #17A2B8;
            font-weight: 500;
        }
        .main-card {
            border: none;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            border-radius: 12px;
            overflow: hidden;
        }
        .card-header.bg-primary {
            background: linear-gradient(135deg, #1976d2, #0d47a1) !important;
        }
        .badge.bg-success { background-color: #17A2B8 !important; }
        .btn-sm.rounded-pill { border-radius: 50px; }
        /* Ensure perfect alignment of icons and text in sidebar */
        .sidebar-link {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .sidebar-link i {
            width: 20px;
            text-align: center;
            font-size: 1.1rem;
        }
        .sidebar-link .badge {
            margin-left: auto;
        }
        .profile-sidebar .nav-link {
            border: none;
            padding: 0.75rem 1rem;
            border-radius: 10px;
            margin-bottom: 0.25rem;
            color: #17A2B8;
            transition: all 0.2s ease;
            font-weight: 500;
        }
        .profile-sidebar .nav-link i {
            color: #17A2B8;
        }
        .profile-sidebar .nav-link:hover {
            background-color: #e3f2fd;
            color: #17A2B8;
        }
        .profile-sidebar .nav-link.active {
            background-color: #17A2B8;
            color: #fff;
        }

        /* Active icon */
        .profile-sidebar .nav-link.active i {
            color: #fff;
        }
        
        /* Better spacing on very small screens */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .profile-sidebar .card-body {
        padding: 1.5rem !important;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 0.7rem 1rem !important;
    }
}
/*=====================================         USER COUPONS      =================================================*/
  .coupon-card {
    border: 2px dashed #6366f1;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
  }

  .coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
  }

  .coupon-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.08);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    display: inline-block;
  }

  .coupon-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #10b981;
  }

  .status-badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
  }

  .status-active   { background: #d1fae5; color: #065f46; }
  .status-expired  { background: #fee2e2; color: #991b1b; }
  .status-used     { background: #fef3c7; color: #92400e; }

  .coupon-footer {
    border-top: 1px solid #e5e7eb;
    background: rgba(243, 244, 246, 0.4);
  }

  .coupon-icon {
    font-size: 3.5rem;
    opacity: 0.12;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }

  @media (max-width: 576px) {
    .coupon-value { font-size: 1.8rem; }
    .coupon-code  { font-size: 1.35rem; }
  }