body
{
    overflow-x: hidden;
}
.img-tab img {
        height: 210px;
    }
    .sportdata img, .healthdata img {
        height: 310px;
    }
    .trendingnews img, .fbimage img {
        height: 310px;
    }
    .historyimg img {
        height: 210px;
        width: 360px;
    }
    .shistoryimg img, .timage img {
        height: 100px;
        width: 120px;
    }
    .fbimage img {
        height: 300px;
    }
    .pimage img {
        height: 100px;
        width: 130px;
    }
    .itemimage img {
        height: 300px;
        width: 360px;
    }
    .book-grid {
        margin-top: 30px;
    }
    
    .book-item {
        margin-bottom: 30px;
        text-align: center;
        transition: transform 0.3s ease;
        box-shadow: 0px 0px 5px 0px #8080808c;
        border-radius: 7px;
    }
    
    .book-item:hover {
        transform: translateY(-5px);
    }
    
    .book-thumbnail {
        position: relative;
        overflow: hidden;
        background: #f5f5f5;
        border-radius: 5px;
        margin-bottom: 15px;
    }
    
    .book-thumbnail img {
        width: 100%;
        height: 380px;
        object-fit: cover;
        display: block;
    }
    
    .book-info {
        padding: 0 10px;
    }
    
    .book-title {
        font-size: 14px;
        font-weight: 600;
        margin: 10px 0;
        min-height: 50px;
        line-height: 1.3;
    }
    
    .book-title a {
        color: #333;
        text-decoration: none;
    }
    
    .book-title a:hover {
        color: #d9534f;
    }
    
    .book-category {
        font-size: 12px;
        color: #999;
        margin-bottom: 8px;
    }
    
    .book-price {
        font-size: 16px;
        font-weight: 700;
        color: #d9534f;
        margin: 10px 0;
    }
    
    .book-mrp {
        text-decoration: line-through;
        color: #999;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .book-discount {
        background: #d9534f;
        color: white;
        padding: 2px 6px;
        border-radius: 3px;
        font-size: 11px;
        font-weight: 600;
    }
    
    .category-filter {
        /* margin: 20px 0; */
        padding: 10px;
        background: #f9f9f9;
        border-radius: 5px;
    }
    
    .category-filter-title {
        font-weight: 600;
        margin-bottom: 15px;
        font-size: 14px;
    }
    
    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .category-btn {
        padding: 8px 16px;
        border: 1px solid #ddd;
        background: white;
        border-radius: 4px;
        cursor: pointer;
        font-size: 13px;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
    }
    
    .category-btn:hover {
        border-color: #d9534f;
        color: #d9534f;
    }
    
    .category-btn.active {
        background: #d9534f;
        color: white;
        border-color: #d9534f;
    }
    .product-cart-controls {
        gap: 6px;
        display: inline-flex;
        align-items: center;
        margin-top: 10px;
    }
    .product-cart-controls .cart-qty-input {
        width: 60px;
        height: 38px;
        text-align: center;
        border-radius: 4px;
        border: 1px solid #ddd;
        margin: 0 6px;
    }
    .product-cart-controls .cart-qty-button {
        min-width: 40px;
        padding: 8px 12px;
    }
    
    .pagination {
        text-align: center;
        margin-top: 30px;
    }
    .mb-2 {
        margin-bottom: 10px;
    }
    .btn-add-cart, .btn-checkout {
        background-color: #d32f2f;
        color: white;
        border: none;
    }
    .book-detail-container {
        background: white;
        /* padding: 30px; */
        border-radius: 5px;
        margin: 20px 0;
    }
    
    .book-images {
        margin-bottom: 20px;
    }
    
    .main-image {
        width: 100%;
        max-height: 400px;
        object-fit: cover;
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .thumbnail-images {
        display: flex;
        gap: 10px;
    }
    
    .thumb {
        width: 80px;
        height: 100px;
        object-fit: cover;
        border: 2px solid #eee;
        border-radius: 3px;
        cursor: pointer;
        transition: border-color 0.3s;
    }
    
    .thumb:hover,
    .thumb.active {
        border-color: #d9534f;
    }
    
    .book-details-info {
        margin: 20px 0;
    }
    
    .book-title-detail {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .book-category-detail {
        color: #d9534f;
        font-weight: 600;
        margin-bottom: 15px;
    }
    
    .book-price-detail {
        font-size: 32px;
        font-weight: 700;
        color: #d9534f;
        margin: 15px 0;
    }
    
    .book-mrp-detail {
        text-decoration: line-through;
        color: #999;
        font-size: 18px;
        margin-right: 15px;
    }
    
    .book-discount-detail {
        background: #d9534f;
        color: white;
        padding: 5px 10px;
        border-radius: 3px;
        font-size: 14px;
        font-weight: 600;
    }
    
    .book-meta {
        margin: 20px 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        padding: 15px 0;
    }
    
    .meta-item {
        margin: 10px 0;
    }
    
    .meta-label {
        font-weight: 600;
        color: #666;
    }
    
    .book-description {
        margin: 20px 0;
        line-height: 1.8;
        color: #555;
    }
    
    .short-desc {
        font-size: 16px;
        margin-bottom: 15px;
        padding: 15px;
        background: #f9f9f9;
        border-left: 4px solid #d9534f;
    }
    
    .btn-group-detail {
        margin: 20px 0;
    }
    
    .btn-group-detail .btn {
        margin-right: 10px;
        margin-bottom: 10px;
        padding: 10px 20px;
        font-size: 16px;
    }
    .product-cart-controls {
        gap: 6px;
        display: inline-flex;
        align-items: center;
        /* margin-top: 10px; */
    }
    .product-cart-controls .cart-qty-input {
        width: 60px;
        height: 38px;
        text-align: center;
        border-radius: 4px;
        border: 1px solid #ddd;
        margin: 0 6px;
        bottom: 5px;
        position: relative;
    }
    .product-cart-controls .cart-qty-button {
        min-width: 40px;
        padding: 8px 12px;
    }
    
    .related-books {
        margin-top: 50px;
        padding-top: 30px;
        border-top: 1px solid #eee;
    }
    
    .related-books h3 {
        margin-bottom: 20px;
        font-size: 20px;
        font-weight: 700;
    }
    
    .related-book-item {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .related-book-img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .related-book-title {
        font-size: 13px;
        font-weight: 600;
        margin: 10px 0;
        min-height: 35px;
        line-height: 1.3;
    }
    
    .related-book-title a {
        color: #333;
        text-decoration: none;
    }
    
    .related-book-title a:hover {
        color: #d9534f;
    }
    
    .related-book-price {
        color: #d9534f;
        font-weight: 700;
        margin: 8px 0;
    }
    .cart-page { padding: 50px 0; }
    .cart-card { background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); padding: 25px; margin-bottom: 30px; }
    .cart-item { display: flex; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid #ececec; }
    .cart-item:last-child { border-bottom: none; }
    .cart-item-image img { width: 120px; height: 130px; object-fit: cover; border-radius: 8px; }
    .cart-item-details { flex: 1; }
    .cart-item-name { font-size: 18px; margin-bottom: 8px; color: #333; }
    .cart-item-prices { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; color: #666; font-size: 14px; }
    .cart-item-prices span { display: inline-block; }
    .cart-item-mrp { text-decoration: line-through; color: #999; }
    .cart-item-discount { color: #d9534f; font-weight: 700; }
    .cart-item-quantity {width:30%; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
    .qty-button { min-width: 36px; height: 36px; border: 1px solid #ddd; background: #fff; color: #333; border-radius: 6px; font-size: 18px; transition: all .2s ease; }
    .qty-button:hover { background: #f60d2b; color: #fff; border-color: #f60d2b; }
    .cart-qty-input { width: 70px!important; height: 36px; text-align: center; border: 1px solid #ddd; border-radius: 6px; }
    .cart-item-subtotal { font-weight: 700; color: #222; margin-bottom: 10px; }
    .btn-remove { background: transparent; border: 1px solid #ddd; color: #444; padding: 8px 14px; border-radius: 8px; }
    .btn-remove:hover { background: #f60d2b; color: #fff; border-color: #f60d2b; }
    .cart-summary-card { background: #fff; border-radius: 12px; padding: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
    .cart-summary-card h3 { margin-top: 0; margin-bottom: 20px; }
    .summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 15px; color: #555; }
    .summary-row.summary-total { font-weight: 700; font-size: 18px; color: #222; }
    .cart-empty { padding: 80px 20px; border: 1px dashed #ddd; border-radius: 14px; background: #fafafa; }
    .cart-empty i { font-size: 48px; color: #d9534f; margin-bottom: 20px; display: inline-block; }
    .cart-empty h2 { margin-bottom: 10px; }
    .cart-empty p { margin-bottom: 20px; color: #777; }
    .cart-toast { position: fixed; right: 20px; bottom: 20px; padding: 14px 18px; border-radius: 10px; background: rgba(0,0,0,0.8); color: #fff; z-index: 9999; opacity: 0; transform: translateY(20px); transition: transform .2s ease, opacity .2s ease; }
    .cart-toast.visible { opacity: 1; transform: translateY(0); }
    .cart-toast-success { background-color: #4caf50; }
    .cart-toast-error { background-color: #d9534f; }
    @media (max-width: 767px) {
        .cart-item { flex-direction: column; align-items: flex-start; }
        .cart-item-image img { width: 100%; height: auto; }
    }
    .checkout-page { padding: 30px 0; margin-top: 10px; }
    .checkout-section { margin-bottom: 30px; }
    .checkout-section h3 { border-bottom: 2px solid #d32f2f; padding-bottom: 10px; margin-bottom: 20px; }
    .cart-table { font-size: 0.95em; }
    .address-card { border-left: 4px solid #ddd; transition: all 0.3s; }
    .address-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
    .price-details { background: #f8f9fa; border-radius: 5px; padding: 20px; }
    .price-details > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #ddd; }
    .price-details > div:last-child { border: none; font-size: 1.2em; font-weight: 600; color: #28a745; padding-top: 15px; }
    #addr-message { margin-top: 15px; }
    .loading-spinner { text-align: center; padding: 20px; }
    .spinner-border { width: 20px; height: 20px; }
    .card-body{padding: 10px;}
    .orders-page { padding: 30px 0; }
    .order-card { border-left: 4px solid #007bff; background: white; border-radius: 5px; margin-bottom: 20px; transition: all 0.3s; }
    .order-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .order-card.status-placed { border-left-color: #28a745; }
    .order-card.status-failed { border-left-color: #dc3545; }
    .order-card.status-pending { border-left-color: #ffc107; }
    .order-status { display: inline-block; padding: 6px 12px; border-radius: 15px; font-size: 0.85em; font-weight: 600; }
    .status-pending { background: #ffc107; color: #333; }
    .status-placed { background: #28a745; color: white; }
    .status-failed { background: #dc3545; color: white; }
    .order-header { padding: 20px; border-bottom: 1px solid #eee; }
    .order-body { padding: 20px; }
    .order-items-count { background: #f8f9fa; padding: 3px 8px; border-radius: 3px; font-size: 0.9em; }
    .confirmation-page { padding: 30px 0; }
    .success-banner { background: linear-gradient(135deg, #28a745, #20c997); color: white; padding: 30px; border-radius: 5px; text-align: center; margin-bottom: 30px; }
    .success-icon { font-size: 4em; margin-bottom: 15px; }
    .order-details { background: #f8f9fa; border-radius: 5px; padding: 20px; margin-bottom: 20px; }
    .order-item { border-bottom: 1px solid #ddd; padding: 15px 0; }
    .order-item:last-child { border-bottom: none; }
    .order-status { display: inline-block; padding: 8px 15px; border-radius: 20px; font-size: 0.9em; font-weight: 600; }
    .status-pending { background: #ffc107; color: #333; }
    .status-placed { background: #28a745; color: white; }
    .status-failed { background: #dc3545; color: white; }

    @media (max-width: 767px) {
        .img-tab img
        {
            width: 100px;
            height: 100px;
        }
        .slider-area .slides
        {
            height: 200px;
        }
    }