body {
    font-family: 'Raleway', sans-serif !important;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 130px; /* Platz für fixierten Header */
}

body.testmode-active {
    padding-top: 165px; /* Zusätzlicher Platz für Testmodus-Banner */
}

/* Fixed Header Wrapper */
.fixed-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #ffffff;
}

/* Spacer wird nicht mehr benötigt, da body padding-top hat */
.header-spacer {
    display: none;
}

.testmode-banner {
    background: #ffc107;
    color: #856404;
    text-align: center;
    padding: 8px;
    font-weight: 600;
    font-size: 14px;
}

.top-banner {
    background-color: #137fd8;
    color: white;
    text-align: center;
    padding: 15px 20px;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.top-banner a {
    color: #f3d64c;
    text-decoration: underline;
    font-weight: 700;
}

.top-banner .highlight {
    color: #f3d64c;
    font-weight: 700;
}

.main-header {
    background-color: white;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none;
    margin: 0;
    flex-shrink: 0;
    width: 100%;
}

.main-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    box-sizing: border-box;
}

.main-header .logo-section {
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.main-header .logo-section img {
    width: 250px;
    height: 40px;
}

.main-header .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 25px;
    align-items: center;
}

.logo-text {
    font-size: 22px;
    font-weight: 400;
    color: #333;
    font-style: italic;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #137fd8;
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: #666;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
}

.mobile-nav a:hover {
    background-color: #f5f5f5;
    color: #137fd8;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .main-header {
        position: relative;
    }
    
    .main-header .logo-section img {
        width: 180px;
        height: auto;
    }
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
}

.quote-section {
    background-color: #f8f9f9;
    border-left: 4px solid #f3d64c;
    padding: 30px;
    font-style: italic;
    font-size: 20px;
    font-weight: bold;
    color: #777777;
    box-shadow: none;
    border-radius: 0;
}

.description-text {
    font-family: 'Raleway', sans-serif !important;
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    line-height: 1.6;
    text-align: left;
    margin: 30px 0;
}

.description-text h3 {
    font-family: 'Raleway', sans-serif !important;
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.description-text:first-of-type {
    font-weight: 600;
}

/* Books Container */
.books-container {
    display: grid;
    gap: 40px;
    margin-top: 30px;
    padding: 0 20px;
}

.books-grid-1 {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.books-grid-1 .book-image {
    width: 350px;
    height: 350px;
}

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

.books-grid-2 .book-image {
    width: 500px;
    height: 500px;
}

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

.book-item {
    text-align: center;
    background: white;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    cursor: pointer;
}

.book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.book-image-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.book-image {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 4px;
}

.book-title {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.book-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.book-title a:hover {
    color: #137fd8;
}

.book-image-container a {
    display: block;
    transition: transform 0.3s ease;
}

.book-image-container a:hover {
    transform: scale(1.05);
}

.book-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
    min-height: 42px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.book-price {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    margin-top: auto;
}

.book-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3d64c;
    color: #333;
    border: none;
    height: 48px;
    padding: 0 24px;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    width: 100%;
    max-width: 280px;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.book-button:hover {
    background-color: #e6c43d;
    transform: translateY(-1px);
}

.book-button:active {
    transform: translateY(0);
}

.book-button-external {
    background-color: #137fd8;
    color: #fff;
}

.book-button-external:hover {
    background-color: #0f6bbd;
    color: #fff;
}

.book-out-of-stock {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #137fd8;
    margin-bottom: 15px;
}

.book-external-notice {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #137fd8;
    margin-bottom: 15px;
}

.book-button-disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

.book-button-disabled:hover {
    background-color: #ccc;
    transform: none;
}

.book-button-unavailable {
    background-color: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
}

.book-button-unavailable:hover {
    background-color: #f8d7da;
    transform: none;
}

/* Responsive Books */
@media (max-width: 1024px) {
    .books-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .books-container {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .books-grid-2,
    .books-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .books-container {
        gap: 20px;
        padding: 0 10px;
    }
    
    .book-image,
    .books-grid-1 .book-image,
    .books-grid-2 .book-image {
        width: 250px;
        height: 250px;
    }
    
    .books-grid-1 {
        max-width: 300px;
    }
    
    .book-title {
        font-size: 14px;
    }
    
    .book-subtitle {
        font-size: 12px;
    }
    
    .book-button {
        padding: 10px 15px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .books-container {
        gap: 15px;
        padding: 0 5px;
    }
    
    .book-image,
    .books-grid-1 .book-image,
    .books-grid-2 .book-image {
        width: 120px;
        height: 120px;
    }
    
    .books-grid-1 {
        max-width: 180px;
    }
    
    .book-title {
        font-size: 12px;
    }
    
    .book-subtitle {
        font-size: 11px;
    }
    
    .book-button {
        padding: 8px 10px;
        font-size: 9px;
        letter-spacing: 0.5px;
    }
    
    .book-out-of-stock {
        font-size: 12px;
    }
}

/* Bottom Quote Section */
.bottom-quote-section {
    background-color: #f8f9f9;
    border-left: 4px solid #f3d64c;
    padding: 30px;
    margin: 60px 0 0 0;
    font-style: italic;
    font-size: 20px;
    font-weight: bold;
    color: #777777;
    text-align: center;
}

/* Footer */
.site-footer {
    background-color: #333333;
    color: #cccccc;
    padding: 12px 0;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 5px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-divider {
    color: #666;
    margin: 0 15px;
}

@media (max-width: 500px) {
    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Book Detail Page */
.book-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 40px 0;
    align-items: start;
}

.book-detail-image {
    text-align: center;
}

.book-detail-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 4px;
}

.book-detail-info {
    padding: 0 20px;
}

.book-detail-title {
    font-family: 'Raleway', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin-bottom: 20px;
}

.book-detail-price {
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.book-detail-status {
    font-family: 'Raleway', sans-serif;
    color: #28a745;
    font-weight: 600;
    margin-bottom: 25px;
}

.book-detail-status.book-out-of-stock,
.book-detail-status.book-external-notice {
    color: #137fd8;
}

.book-detail-quantity {
    margin-bottom: 25px;
}

.book-detail-quantity label {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background-color: #f0f0f0;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
}

.book-detail-add-btn {
    background-color: #f3d64c;
    color: #333;
    border: none;
    padding: 15px 30px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    width: 100%;
    margin-bottom: 25px;
}

.book-detail-add-btn:hover {
    background-color: #e6c43d;
}

.book-detail-add-btn.book-button-disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

.book-detail-add-btn.book-button-disabled:hover {
    background-color: #ccc;
}

.book-detail-add-btn.book-button-unavailable {
    background-color: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
    font-size: 14px;
}

.book-detail-add-btn.book-button-unavailable:hover {
    background-color: #f8d7da;
}

.book-detail-category {
    font-family: 'Raleway', sans-serif;
    color: #666;
}

.book-detail-category a {
    color: #137fd8;
    text-decoration: none;
}

.book-detail-category a:hover {
    text-decoration: underline;
}

/* Book Tabs */
.book-tabs {
    margin-top: 60px;
}

.tab-header {
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    border-bottom-color: #f3d64c;
    color: #333;
}

.tab-btn:hover {
    background-color: #f8f9fa;
}

.tab-content {
    padding: 30px 0;
}

.tab-panel {
    display: none;
}

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

.tab-panel h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.tab-panel p {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.additional-info-table {
    width: 100%;
    border-collapse: collapse;
}

.additional-info-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-family: 'Raleway', sans-serif;
}

.additional-info-table td:first-child {
    font-weight: 600;
    width: 200px;
}

/* Responsive Book Detail */
@media (max-width: 768px) {
    .book-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .book-detail-image img {
        width: 300px;
        height: 300px;
    }
    
    .book-detail-info {
        padding: 0;
    }
    
    .book-detail-title {
        font-size: 22px;
    }
    
    .tab-header {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
    }
}

/* ===== CART PAGE ===== */
.page-title {
    font-family: 'Raleway', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.cart-page {
    max-width: 800px;
    margin: 0 auto;
}

.cart-empty,
.empty-books {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.cart-empty p,
.empty-books p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: #f3d64c;
    color: #333;
    padding: 15px 30px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #e6c43d;
}

.cart-items {
    margin-bottom: 40px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border: 1px solid #eee;
    margin-bottom: 15px;
    border-radius: 4px;
}

.cart-item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border-radius: 4px;
}

.cart-item-content {
    flex: 1;
}

.cart-item-title {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.cart-item-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin: 0 0 10px 0;
}

.cart-item-price {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-quantity {
    display: flex;
    align-items: center;
}

.cart-quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.cart-quantity-btn:hover {
    background-color: #f0f0f0;
}

.cart-quantity-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
}

.cart-remove {
    color: #dc3545;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.cart-remove:hover {
    text-decoration: underline;
}

/* Checkout Section */
.checkout-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.checkout-title {
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 25px 0;
}

.checkout-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #137fd8;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group-large {
    flex: 3;
}

.form-group-small {
    flex: 1;
}

.checkout-info {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 25px 0;
}

.btn-checkout {
    width: 100%;
    background-color: #f3d64c;
    color: #333;
    padding: 15px 30px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 4px;
}

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

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

/* Cart Badge in Navigation */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s ease;
}

.cart-link.cart-added {
    animation: cartPulse 0.6s ease;
}

.cart-link.cart-added .cart-badge {
    animation: badgePop 0.6s ease;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes badgePop {
    0% { transform: scale(1); background-color: #f3d64c; }
    25% { transform: scale(1.4); background-color: #28a745; }
    50% { transform: scale(1); background-color: #28a745; }
    75% { transform: scale(1.2); background-color: #28a745; }
    100% { transform: scale(1); background-color: #f3d64c; }
}

.cart-badge {
    background-color: #f3d64c;
    color: #333;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    font-size: 14px;
}

.notification-toast--visible {
    transform: translateX(0);
}

.notification-toast--warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.notification-toast--error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.notification-toast--success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.notification-toast--info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.notification-toast__message {
    flex: 1;
    line-height: 1.4;
}

.notification-toast__close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
    line-height: 1;
    color: inherit;
}

.notification-toast__close:hover {
    opacity: 1;
}

/* Cart Quantity Message */
.cart-quantity-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cart-quantity-message {
    background-color: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Button Warning State - Red */
.btn--warning,
.book-button.btn--warning {
    background-color: #dc3545 !important;
    color: white !important;
}

/* Legal Pages (Impressum, Datenschutz) */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.legal-page__title {
    font-family: 'Raleway', sans-serif !important;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    /* padding-bottom: 1rem; */
    /* border-bottom: 4px solid #f3d64c; */
}

.legal-page__content {
    font-family: 'Raleway', sans-serif !important;
    line-height: 1.8;
    color: #555;
    background-color: #f8f9f9;
    padding: 2rem;
    /* border-left: 4px solid #f3d64c; */
}

.legal-page__content h4 {
    font-family: 'Raleway', sans-serif !important;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    /* padding-bottom: 0.5rem; */
    /* border-bottom: 2px solid #e0e0e0; */
}

.legal-page__content h4:first-child {
    margin-top: 0;
}

.legal-page__content h5 {
    font-family: 'Raleway', sans-serif !important;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-page__content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legal-page__content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-page__content li {
    margin-bottom: 0.5rem;
}

.legal-page__content a {
    color: #137fd8;
    text-decoration: none;
    font-weight: 600;
}

.legal-page__content a:hover {
    text-decoration: underline;
}

.legal-page__content em {
    color: #777;
    font-style: italic;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        margin: 0 auto;
    }
    
    .cart-item-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group-large,
    .form-group-small {
        flex: 1;
    }
    
    .notification-toast {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .legal-page {
        padding: 1rem;
    }
    
    .legal-page__title {
        font-size: 1.5rem;
    }
}

/* ============================================
   Order Confirmation
   ============================================ */

.order-confirmation {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.order-confirmation__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-size: 40px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.order-confirmation h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.order-confirmation p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.order-confirmation__number {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    font-size: 14px;
    color: #666;
}

.order-confirmation__number strong {
    display: block;
    font-size: 22px;
    color: #137fd8;
    margin-top: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.order-confirmation__email-note {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 8px;
    color: #137fd8;
    font-size: 14px;
}

.order-confirmation__details {
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.order-confirmation__details h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.order-confirmation__item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-confirmation__item:last-child {
    border-bottom: none;
}

.order-confirmation__item-qty {
    background: #137fd8;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.order-confirmation__item-title {
    color: #333;
    font-size: 15px;
}

.order-confirmation__address {
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.order-confirmation__address h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.order-confirmation__address p {
    margin: 0;
    line-height: 1.8;
}

.order-confirmation__contact {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    color: #856404;
    font-size: 14px;
    margin-top: 25px;
}

.order-confirmation__contact a {
    color: #137fd8;
    font-weight: 600;
    text-decoration: none;
}

.order-confirmation__contact a:hover {
    text-decoration: underline;
}

.order-confirmation .btn--primary {
    background: #137fd8;
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.order-confirmation .btn--primary:hover {
    background: #0d6ebd;
}

@media (max-width: 600px) {
    .order-confirmation {
        margin: 20px;
        padding: 25px;
    }

    .order-confirmation h1 {
        font-size: 22px;
    }

    .order-confirmation__icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

/* ============================================
   New Order Flow
   ============================================ */

/* Order CTA Button on Homepage */
.order-cta {
    text-align: center;
    margin: 30px 0;
}

.btn-order-now {
    display: inline-block;
    background-color: #137fd8;
    color: white;
    padding: 18px 40px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(19, 127, 216, 0.3);
}

.btn-order-now:hover {
    background-color: #0f6bbd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 127, 216, 0.4);
}

/* Order Steps Progress */
.order-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.order-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 30px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.order-step.active {
    background: #137fd8;
    color: white;
    opacity: 1;
}

.order-step.completed {
    background: #28a745;
    color: white;
    opacity: 1;
}

.step-number {
    width: 28px;
    height: 28px;
    background: white;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.order-step.active .step-number,
.order-step.completed .step-number {
    background: white;
    color: #137fd8;
}

.order-step.completed .step-number {
    color: #28a745;
}

.step-label {
    font-weight: 600;
    font-size: 14px;
}

.order-step-connector {
    width: 60px;
    height: 3px;
    background: #ddd;
    margin: 0 10px;
}

.order-step-connector.completed {
    background: #28a745;
}

/* Order Section */
.order-section {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.order-section.order-section-wide {
    max-width: 800px;
}

.order-section .checkout-form {
    max-width: 100%;
}

.order-section .page-title {
    text-align: center;
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

/* Address Summary */
.address-summary {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #137fd8;
}

.address-summary h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #137fd8;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.address-summary p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

.btn-link {
    color: #137fd8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Book Selection List */
.book-selection-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.book-selection-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.book-selection-item:hover {
    border-color: #137fd8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.book-selection-item.disabled {
    opacity: 0.6;
    background: #f8f9fa;
}

.book-selection-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.book-selection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.book-selection-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: 4px;
}

.book-selection-content {
    flex: 1;
    min-width: 0;
}

.book-selection-title {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.book-selection-title a {
    color: #333;
    text-decoration: none;
}

.book-selection-title a:hover {
    color: #137fd8;
}

.book-selection-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin: 0;
}

.book-selection-notice {
    margin-top: 8px;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.notice-out-of-stock {
    background: #e8f4fd;
    color: #137fd8;
}

.notice-excluded {
    background: #f8d7da;
    color: #721c24;
}

.notice-external {
    background: #e8f4fd;
    color: #137fd8;
}

.book-selection-quantity {
    flex-shrink: 0;
}

.quantity-disabled {
    color: #999;
    font-size: 24px;
    width: 120px;
    text-align: center;
}

.btn-external {
    display: inline-block;
    background-color: #137fd8;
    color: white;
    padding: 10px 16px;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-external:hover {
    background-color: #0f6bbd;
    color: white;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.order-summary-text {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

#selected-count {
    color: #137fd8;
    font-size: 24px;
}

/* Order Actions */
.order-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-secondary {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 15px 30px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 4px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-checkout:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-checkout:disabled:hover {
    background-color: #ccc;
}

/* Order Link in Navigation */
.order-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #137fd8;
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700 !important;
    transition: all 0.3s ease;
}

.order-link:hover {
    background: #0f6bbd;
    color: white !important;
}

/* Responsive Order Flow */
@media (max-width: 768px) {
    .order-steps {
        flex-wrap: wrap;
        gap: 10px;
    }

    .order-step-connector {
        display: none;
    }

    .book-selection-item {
        flex-direction: column;
        text-align: center;
    }

    .book-selection-content {
        width: 100%;
    }

    .book-selection-quantity {
        margin-top: 15px;
    }

    .order-actions {
        flex-direction: column;
    }

    .btn-secondary,
    .btn-checkout {
        width: 100%;
    }

    .btn-external {
        display: block;
        text-align: center;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #137fd8;
    color: #fff;
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    flex: 1;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-link {
    color: #f3d64c;
    text-decoration: underline;
    font-size: 14px;
}

.cookie-link:hover {
    color: #fff;
}

.cookie-accept {
    background: #f3d64c;
    color: #137fd8;
    border: none;
    padding: 8px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.cookie-accept:hover {
    background: #e5c63e;
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}