/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header and Navigation */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /* position: fixed; */
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
}

.navbar .logo {
    flex-grow: 1;
}

.user-icon {
    padding: 5px 10px;
    border: 1px solid gray;
    border-radius: 5px;
    color: #2c3e50;
}

.userToggle {
    margin-left: 30px;
}

.logo h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: #417988;
}

.nav-links a {
    color: #2c3e50;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #417988;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .navbar { 
        padding: 0;
    }
    .nav-links {
        margin-top: 0;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        /* top: 0px; */
        top: 82px;
        left: 0;
        width: 80%;
        height: 100vh;
        background-color: #356274;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links a {
        display: block;
        padding: 10px;
        text-align: left;
        color: white;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: #a0cad5;
    }

    .no-scroll {
        overflow: hidden !important;
    }

    .medium-card h3 {
        font-size: 1.2rem !important;
        margin: 0;
        color: #2c3e50;
    }
    .hero {
        padding: 0px 10px !important;
        padding-top: 2rem !important;
    }

    .cta-button {
        padding: 0.8rem 0.8rem !important;
        align-self: center;
    }
    .secondary-button {
        padding: 0.8rem 0.8rem !important;
        align-self: center;
    }
    
}

/* Hero Section */
.hero {
    padding: 2rem 12rem 2rem;
    background: linear-gradient(135deg, #f6f9fc 0%, #f1f4f9 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* min-height: 80vh; */
}

.hero-content {
    flex: 1;
    /* max-width: 600px; */
    padding-right: 2rem;
    max-width: 1200px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: auto;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #417988;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.secondary-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: white;
    color: #417988;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid #417988;
    transition: transform 0.3s, box-shadow 0.3s;
}

.secondary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: #417988;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Categories Section */
.categories {
    padding: 6rem 2rem;
    background-color: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-icon {
    width: 80px;
    height: 80px;
    background-color: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-icon i {
    font-size: 2rem;
    color: #417988;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.category-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #417988;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.category-link:hover {
    transform: translateY(-3px);
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #417988 0%, #2980b9 100%);
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-content .cta-button {
    background-color: white;
    color: #417988;
}

/* Footer */
.footer-content {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section i {
    margin-right: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-links a i {
    margin-right: 0px !important;
}

.social-links a:hover {
    background-color: rgba(255,255,255,0.2);
}

.footer-bottom {
    background-color: #233140;
    color: white;
    text-align: center;
    padding: 1rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .navbar {
        /* flex-direction: column; */
        padding: 1rem;
    }

    .nav-links {
        /* margin-top: 1rem; */
    }

    .nav-links a {
        margin: 0 1rem;
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .features-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Medium Selection */
.medium-selection,
.standard-selection {
    padding: 2rem;
}

.medium-grid,
.standard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.medium-card,
.standard-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.medium-card:hover,
.standard-card:hover {
    transform: translateY(-5px);
}

.medium-card i,
.standard-card i {
    font-size: 2rem;
    color: #417988;
    margin-bottom: 1rem;
}

/* Standard Selection Styles */
.standard-selection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.standard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.standard-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.standard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #1e5799, #2989d8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.standard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.standard-card:hover::before {
    transform: scaleX(1);
}

.standard-icon {
    width: 80px;
    height: 80px;
    /* background: linear-gradient(135deg, #1e5799, #2989d8); */
    background: linear-gradient(135deg, #155262, #34aecf);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    transition: transform 0.3s ease;
}

.standard-card:hover .standard-icon {
    transform: scale(1.1) rotate(5deg);
}

.number {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.standard-card h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.standard-card:hover h3 {
    color: #1e5799;
}

@media (max-width: 768px) {
    .standard-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .standard-icon {
        width: 60px;
        height: 60px;
    }

    .number {
        font-size: 2rem;
    }

    .standard-card h3 {
        font-size: 1.2rem;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(to right, #1e5799 0%, #207cca 44%, #2989d8 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-header h2 {
    font-size: 1.8rem;
    margin: 0;
    padding: 0.5rem 0;
    font-weight: normal;
}

/* Medium Selection Styles */
.medium-selection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.medium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.medium-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.medium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.medium-icon {
    width: 80px;
    height: 80px;
    background-color: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.medium-icon i {
    font-size: 2rem;
    color: #417988;
}

.medium-card h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .page-header h2 {
        font-size: 1.5rem;
    }

    .medium-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* Books List */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.book-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.book-details {
    padding: 1rem;
}

.book-details h3 {
    margin-bottom: 0.5rem;
}

.product-code {
    color: #666;
    font-size: 0.9rem;
}

.price {
    color: #2c3e50;
    font-weight: bold;
    margin: 0.5rem 0;
}

.quantity {
    margin: 1rem 0;
}

.quantity input {
    width: 60px;
    padding: 0.5rem;
    margin-left: 0.5rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.5rem;
    background-color: #417988;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #2980b9;
}

/* Books Table Styles */
.books-table {
    padding: 2rem;
    overflow-x: auto;
}

.books-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.books-table th,
.books-table td {
    padding: 0.5rem;
    text-align: left;
    border: 1px solid #ddd;
}

/* .books-table th {
    background-color: #417988;
    color: white;
    font-weight: bold;
} */

.books-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.books-table tr:hover {
    background-color: #f5f5f5;
}

.books-table input[type="number"] {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.total-row {
    font-weight: bold;
    /* background-color: #417988; */
}

.total-row td {
    border-top: 2px solid #333;
}

.cart-actions {
    text-align: right;
    padding: 2rem;
}

.checkout-btn {
    padding: 1rem 2rem;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #219a52;
}

/* Checkout */
.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.cart-items,
.order-summary {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.summary-details p {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
}

.total {
    font-weight: bold;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    margin-top: 1rem;
}

.place-order-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #14637e 0%, #0f5568 44%, #3aaccb 100%);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.place-order-btn:hover {
    background: #135c72;
}

/* Success Page */
.success-message {
    text-align: center;
    padding: 2rem 2rem;
}

.success-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.success-container i {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.home-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #417988;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    /* padding: 1rem; */
    padding-top: 1rem;
    /* margin-top: 2rem; */
}

/* Checkout Section Styles */
.checkout-section {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.checkout-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-details {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-details h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.selected-books-table {
    overflow-x: auto;
}

.selected-books-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.selected-books-table th,
.selected-books-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.selected-books-table th {
    background-color: #607e87;
    color: white;
    font-weight: bold;
}

.selected-books-table tr:hover {
    background-color: #f9f9f9;
}

.selected-books-table .remove-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.selected-books-table .remove-btn:hover {
    background-color: #c0392b;
}

.order-summary {
    position: sticky;
    top: 2rem;
}

.summary-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.order-summary h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.summary-row.total {
    border-top: 2px solid #eee;
    margin-top: 1rem;
    padding-top: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.place-order-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #14637e 0%, #0f5568 44%, #3aaccb 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.place-order-btn:hover {
    background-color: #135c72;
}

.delivery-info {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.delivery-info h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delivery-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

.address-info {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.address-info h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .selected-books-table {
        margin: -1rem;
    }

    .selected-books-table table {
        font-size: 0.9rem;
    }

    .selected-books-table th,
    .selected-books-table td {
        padding: 0.75rem;
    }
}

/* Creative Header */
.creative-header {
    /* background: linear-gradient(135deg, #1e5799 0%, #207cca 44%, #2989d8 100%); */
    background: linear-gradient(135deg, #14637e 0%, #0f5568 44%, #3aaccb 100%);
    padding: 3rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.creative-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.header-design {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.book-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.book-icon i {
    font-size: 2.5rem;
    color: white;
}

.creative-header h2 {
    color: white;
    font-size: 2.5rem;
    margin: 0;
    padding: 0;
    position: relative;
}

.text-wrapper {
    position: relative;
    display: inline-block;
    padding: 0 2rem;
}

.line {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    height: 3px;
    width: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: width 0.5s ease;
}

.creative-header:hover .line {
    width: 50px;
}

.line1 {
    left: -60px;
}

.line2 {
    right: -60px;
}

.text {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
}

.text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: white;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.creative-header:hover .text::after {
    transform: scaleX(1);
    transform-origin: left;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .creative-header {
        padding: 2rem 1rem;
    }

    .creative-header h2 {
        font-size: 1.4rem;
    }

    .book-icon {
        width: 60px;
        height: 60px;
    }

    .book-icon i {
        font-size: 2rem;
    }
}

/* Books Header Styles */
.books-header {
    /* background: linear-gradient(135deg, #1e5799 0%, #207cca 44%, #2989d8 100%); */
    background: linear-gradient(135deg, #14637e 0%, #0f5568 44%, #3aaccb 100%);
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

.books-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') center/50px repeat;
    opacity: 0.3;
}

.standard-badge {
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.badge-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e5799;
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    color: #1e5799;
}

.header-decoration {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.header-decoration i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.header-decoration i:nth-child(2) {
    animation-delay: 0.5s;
}

.header-decoration i:nth-child(3) {
    animation-delay: 1s;
}

/* Books Table Styles */
.books-section {
    padding: 2rem 0.5rem;
}

.books-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.books-table-wrapper {
    overflow-x: auto;
    padding: 1rem;
}

.books-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

/* .books-table th {
    background: #417988;
    color: white;
    font-weight: bold;
    padding: 1rem;
    text-align: left;
    white-space: nowrap;
} */

.books-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.books-table tr:hover {
    background-color: #f9f9f9;
}

.books-table input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.cart-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
}

.total-items {
    font-size: 1.1rem;
    color: #2c3e50;
}

.checkout-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background: #219a52;
}

.checkout-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .books-header {
        padding: 2rem 1rem;
    }

    .standard-badge {
        width: 60px;
        height: 60px;
    }

    .badge-number {
        font-size: 2rem;
    }

    .badge-text {
        font-size: 0.8rem;
    }

    .header-decoration {
        gap: 1.5rem;
    }

    .header-decoration i {
        font-size: 1.2rem;
    }

    .books-table th,
    .books-table td {
        padding: 6px 0.75rem;
        font-size: small;
    }

    .books-table input[type="number"] {
        width: 70px;
    }

    .cart-summary {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .books-table-wrapper {
        padding-top: 0px;
        padding-right: 12px;
        padding-left: 12px;
        padding-bottom: 0px;
    }

    .books-section {
        padding: 0rem 0.5rem;
    }

    .books-container {
        /* max-width: 1200px; */
        margin: 0 auto;
        background: none;
        border-radius: 0px;
        box-shadow: none;
        overflow: hidden;
    }

    .book-cardss {
        /* max-width: 1200px; */
        margin: 0 auto;
        background: white;
        border-radius: 12px;
        border-bottom-right-radius: 0px;
        border-bottom-left-radius: 0px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.5);
        /* overflow: hidden; */
        margin-bottom: 14px;
        width: 95%;
    }

    .footer-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Checkout Header Styles */
.checkout-header {
    background: linear-gradient(135deg, #1e5799 0%, #207cca 44%, #2989d8 100%);
    padding: 3rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.checkout-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.checkout-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.checkout-icon i {
    font-size: 2.5rem;
    color: white;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.step.active {
    color: white;
}

.step i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step span {
    font-size: 0.9rem;
}

.step-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
}

.step-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.step.active + .step-line::before {
    transform: scaleX(1);
}

/* Checkout Content Styles */
.checkout-section {
    padding: 2rem;
    background: #f8f9fa;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-details {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-details h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.selected-books-table {
    overflow-x: auto;
}

.selected-books-table table {
    width: 100%;
    border-collapse: collapse;
}

.selected-books-table th {
    background: #417988;
    color: white;
    font-weight: bold;
    padding: 1rem;
    text-align: left;
    white-space: nowrap;
}

.selected-books-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.selected-books-table tr:hover {
    background: #f9f9f9;
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.remove-btn:hover {
    background: #c0392b;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .checkout-steps {
        flex-direction: column;
        gap: 1.5rem;
    }

    .step-line {
        width: 2px;
        height: 30px;
    }

    .cart-details {
        padding: 1rem;
        min-width: 100%;
    }
    .checkout-container {
        padding: 0;
    }

    .checkout-section {
        padding: 2rem 0.5rem;
    }

    .selected-books-table {
        margin: -1rem;
    }

    .selected-books-table th,
    .selected-books-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Success Page Styles */
.success-container {
    min-height: calc(100vh - 200px);
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e5e9f2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

/* Checkmark Animation */
.success-animation {
    margin-bottom: 0rem;
}

.checkmark-circle {
    width: 100px;
    height: 100px;
    position: relative;
    background: linear-gradient(135deg, #14637e 0%, #0f5568 44%, #3aaccb 100%);
    border-radius: 50%;
    display: inline-block;
    animation: scale-up 0.5s ease-in-out;
    margin-bottom: 1rem;
}

.checkmark {
    position: absolute;
    transform: rotate(45deg);
    left: 40px;
    top: 30px;
    width: 20px;
    height: 40px;
    border-right: 4px solid white;
    border-bottom: 4px solid white;
    animation: checkmark 0.3s ease-in-out 0.5s forwards;
    opacity: 0;
}

@keyframes scale-up {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes checkmark {
    0% { opacity: 0; transform: rotate(45deg) scale(0.5); }
    100% { opacity: 1; transform: rotate(45deg) scale(1); }
}

.success-card h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fade-in 0.5s ease-in-out 0.8s forwards;
    opacity: 0;
}

.success-message {
    color: #7f8c8d;
    font-size: 1.2rem;
    margin-bottom: 0rem;
    animation: fade-in 0.5s ease-in-out 1s forwards;
    opacity: 0;
}

/* Order Details */
.order-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    animation: fade-in 0.5s ease-in-out 1.2s forwards;
    opacity: 0;
}

.order-details .label {
    color: #7f8c8d;
    margin-right: 0.5rem;
}

.order-details .value {
    color: #2c3e50;
    font-weight: bold;
}

/* Next Steps */
.next-steps {
    margin-bottom: 2rem;
    animation: fade-in 0.5s ease-in-out 1.4s forwards;
    opacity: 0;
}

.next-steps h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step-item {
    padding: 1.5rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s;
}

.step-item:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: #417988;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-icon i {
    color: white;
    font-size: 1.5rem;
}

.step-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.step-item p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fade-in 0.5s ease-in-out 1.6s forwards;
    opacity: 0;
}

.continue-shopping,
.track-order {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.continue-shopping {
    background: #125d74;
    color: #ffffff;
    text-decoration: none;
}

.continue-shopping:hover {
    background: #05485d;
}

.track-order {
    background: #417988;
    color: white;
    border: none;
}

.track-order:hover {
    background: #2980b9;
}

/* Contact Support */
.contact-support {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    animation: fade-in 0.5s ease-in-out 1.8s forwards;
    opacity: 0;
}

.contact-support p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.support-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.support-info span {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logined {
    background: #417988 !important;
    color: white !important;
    text-decoration: none !important;
    border: 1px solid #417988 !important;

}

@keyframes fade-in {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .success-card {
        padding: 2rem 1rem;
    }

    .order-details {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .support-info {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        background-color: #2c3e50;
        color: white;
        padding: 1rem 2rem;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .cta-section {
        padding: 2rem 2rem;
    }

    .hero-image img {
        height: 209px;
    }

    .features {
        padding: 3rem 2rem;
    }

    .userToggle {
        margin-left: 5px;
    }
    .menu-toggle {
        margin-left: 5px;
    }
}
