/* Generated CSS from Flutter Theme - theme_provider.dart */
/* Import Google Fonts - Playfair Display */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;500;600;700&display=swap');

/* CSS Reset and Base styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[x-cloak] {
    display: none !important;
}

/* FAQ Section spacing override - ensure it wins over other section styles */

.faq-section {
    margin-top: 0 !important;
    padding-top: 8px !important;
}

.wizard-dedication-preview-wrap {
    width: 80%;
    position: relative;
    display: block;
}

/* Gift card details */
.giftcard-detail-amount {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.giftcard-detail-amount-title {
    font-size: 1.25rem;
    color: var(--cta-green);
    margin: 0.75rem 0 0.25rem;
    font-weight: 600;
}

.giftcard-detail-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.giftcard-detail-slider-label {
    font-size: 0.85rem;
    color: var(--text-color);
    white-space: nowrap;
}

.giftcard-detail-slider {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    appearance: none;
    outline: none;
}

.giftcard-detail-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cta-green);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(94, 61, 55, 0.18);
    cursor: pointer;
}

.giftcard-detail-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cta-green);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(94, 61, 55, 0.18);
    cursor: pointer;
}
.wizard-dedication-preview {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 2px solid var(--secondary-color);
}
.wizard-dedication-preview-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border: 3px solid var(--secondary-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: #FFFFFF; /* Flutter backgroundColor */
    color: #3E2B23; /* Flutter textColor */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Checkout (shipping/billing) */
.checkout-page {
    width: 100%;
    padding: 2rem 0 3rem;
}

.checkout-container {
    max-width: 1100px;
    width: calc(100% - 32px);
    margin: 0 auto;
}

.checkout-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0.5rem 0 1.5rem;
    position: relative;
}

.checkout-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--cta-green);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

.checkout-summary-topbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.75rem;
}

.checkout-code-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.checkout-code-input {
    flex: 1;
}

.checkout-code-apply {
    padding: 10px 20px;
    white-space: nowrap;
    border-radius: 12px;
}

.checkout-code-input-valid {
    border: 2px solid var(--cta-green) !important;
}

.checkout-code-input-invalid {
    border: 2px solid #ff4444 !important;
}

.checkout-code-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.95rem;
}

.checkout-code-status-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
}

.checkout-code-status-success {
    color: var(--cta-green);
}

.checkout-code-status-icon-success {
    background: var(--cta-green);
    color: #fff;
}

.checkout-code-status-error {
    color: #ff4444;
}

.checkout-code-status-icon-error {
    background: #ff4444;
    color: #fff;
}

.cart-summary-discount .cart-summary-label,
.cart-summary-discount .cart-summary-value {
    color: var(--cta-green);
}

.cart-summary-voucher .cart-summary-label,
.cart-summary-voucher .cart-summary-value {
    color: var(--cta-green);
}

.cart-summary-total-old {
    opacity: 0.65;
    text-decoration: line-through;
    margin-right: 10px;
}

.cart-summary-total-new {
    color: var(--cta-green);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkout-summary-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkout-kv {
    display: grid;
    grid-template-columns: 140px 1fr;
    column-gap: 18px;
    align-items: baseline;
}

.checkout-kv-label {
    color: var(--text-color);
    opacity: 0.6;
}

.checkout-kv-value {
    color: var(--text-color);
    text-align: left;
    word-break: break-word;
}

.checkout-card {
    background: var(--book-card-background);
    border: 1px solid #FDEED3;
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 1px 4px rgba(94, 61, 55, 0.05);
    transition: box-shadow 0.2s ease;
}

.checkout-card:hover {
    box-shadow: 0 3px 10px rgba(94, 61, 55, 0.08);
}

.checkout-summary-consent-strong {
    font-weight: 600;
    margin-right: 6px;
}

.checkout-summary-consent-link {
    color: var(--header-text-color);
    text-decoration: underline;
}

.checkout-summary-consent-divider {
    border: 0;
    border-top: 1px solid #FDEED3;
    margin: 0.9rem 0;
}

.checkout-summary-consent-line {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.35;
}

.checkout-summary-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    padding-bottom: 0.25rem;
    border-top: 1px solid #FDEED3;
}

/* Payment return */
.payment-return-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin: 0.5rem 0 1.1rem;
}

.payment-return-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.payment-return-icon-success {
    background: var(--cta-green);
    color: var(--background-color);
}

.payment-return-icon-error {
    background: var(--header-text-color);
    color: var(--background-color);
}

.payment-return-icon-pending {
    background: var(--highlight-yellow);
    color: var(--background-color);
}

.payment-return-icon svg {
    width: 28px;
    height: 28px;
}

.payment-return-lead {
    max-width: 920px;
    margin: 0 auto;
    color: var(--text-color);
}

.payment-return-lead p {
    margin: 0.35rem 0;
}

.payment-return-lead-secondary {
    opacity: 0.85;
    font-size: 0.95rem;
}

.payment-return-title-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.payment-return-subtitle {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.98rem;
}

.payment-return-summary {
    margin-top: 0.75rem;
}

.payment-return-summary .checkout-kv-label {
    font-weight: 600;
    opacity: 1;
}

.payment-return-summary .checkout-kv-value {
    text-align: right;
}

.payment-return-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.checkout-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #FDEED3;
}

.checkout-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0.1rem 0 0.65rem;
}

.checkout-divider {
    border: 0;
    border-top: 1px solid #FDEED3;
    margin: 0.9rem 0;
}

.checkout-required {
    color: var(--primary-color);
}

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

.checkout-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
}

.checkout-footer-summary {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 0.25rem;
}

.checkout-footer-summary > a {
    justify-self: start;
}

.checkout-footer-summary > button {
    justify-self: center;
}

.checkout-footer-summary-spacer {
    justify-self: end;
}

@media (max-width: 768px) {
    .checkout-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-footer-summary {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-footer-summary-spacer {
        display: none;
    }
}

/* Cart page */
.cart-page {
    width: 100%;
    padding: 2rem 0 3rem;
}

.cart-container {
    max-width: 1100px;
    width: calc(100% - 32px);
    margin: 0 auto;
}

.cart-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0.5rem 0 1.5rem;
    text-align: center;
    position: relative;
}

.cart-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--cta-green);
    margin: 0.65rem auto 0;
    border-radius: 2px;
}

.cart-empty {
    background: var(--book-card-background);
    border: 1px solid #FDEED3;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-color);
    font-size: 1.05rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--book-card-background);
    border: 1px solid #FDEED3;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 4px rgba(94, 61, 55, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(94, 61, 55, 0.1);
    transform: translateY(-1px);
}

.cart-item-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.cart-item-image {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 2px 6px rgba(94, 61, 55, 0.08);
}

.cart-item-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.9;
}

.cart-item-price-old {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 0.85rem;
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid var(--secondary-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cart-qty-btn:hover {
    background: var(--book-card-background);
    border-color: var(--primary-color);
}

.cart-qty-input {
    width: 40px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid var(--secondary-color);
    text-align: center;
    background: #fff;
    color: var(--text-color);
    font-weight: 600;
}

.cart-remove-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #C84D3C;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cart-remove-btn:hover {
    background: rgba(200, 77, 60, 0.08);
    color: #a83a2a;
}

.cart-info {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #fff8f6;
    border: 1px solid #FDEED3;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin: 1rem 0;
}

.cart-info-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--cta-green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex: 0 0 auto;
}

.cart-info-text {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* Free Shipping Nudge */
.cart-free-shipping-nudge {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(135deg, #fef3d0 0%, #fdeab8 100%);
    border: 1px solid #f5d98c;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(245, 192, 71, 0.15);
}

.cart-free-shipping-nudge-icon {
    flex: 0 0 auto;
    font-size: 1.35rem;
}

.cart-free-shipping-nudge-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

.cart-summary {
    background: linear-gradient(135deg, #fff8f6 0%, #fdf2ec 100%);
    border: 1px solid #FDEED3;
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    margin-top: 1.25rem;
    box-shadow: 0 2px 10px rgba(94, 61, 55, 0.06);
}

.cart-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.98rem;
    color: var(--text-color);
    padding: 0.35rem 0;
}

.cart-summary-label {
    opacity: 0.85;
}

.cart-summary-value {
    text-align: right;
    white-space: nowrap;
}

.cart-summary-divider {
    border: none;
    border-top: 1px solid #FDEED3;
    margin: 0.55rem 0;
}

.cart-summary-total {
    font-weight: 600;
    font-size: 1.05rem;
    padding-top: 0.4rem;
}

.cart-total {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.cart-actions {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 0.75rem;
}

.cart-clear {
    display: block;
    margin: 0.85rem auto 0;
    border: none;
    background: transparent;
    color: var(--header-text-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.cart-clear:hover {
    color: var(--primary-color);
}

/* Cart confirmation modal */
.cart-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(62, 43, 35, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 1rem;
}

.cart-confirm-dialog {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(94, 61, 55, 0.18);
    max-width: 380px;
    width: 100%;
    padding: 2rem 1.75rem 1.5rem;
    text-align: center;
    animation: cartConfirmPop 0.25s ease;
}

@keyframes cartConfirmPop {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.cart-confirm-icon {
    margin-bottom: 0.75rem;
}

.cart-confirm-message {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.cart-confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.cart-confirm-btn {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.cart-confirm-btn-cancel {
    background: transparent;
    color: var(--header-text-color);
    border-color: var(--secondary-color);
}

.cart-confirm-btn-cancel:hover {
    background: var(--book-card-background);
    border-color: var(--header-text-color);
}

.cart-confirm-btn-yes {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.cart-confirm-btn-yes:hover {
    background: #4a302b;
    border-color: #4a302b;
}

/* Transitions */
.cart-confirm-enter { transition: opacity 0.2s ease; }
.cart-confirm-leave { transition: opacity 0.15s ease; }
.cart-confirm-enter-start { opacity: 0; }
.cart-confirm-enter-end { opacity: 1; }

/* Color Variables - Real Flutter Theme Colors */
:root {
    --primary-color: #5E3D37; /* Coffee Brown */
    --secondary-color: #D8C0AD; /* Rose Beige */
    --background-color: #FFFFFF; /* Pure White */
    --text-color: #3E2B23FF; /* Dark Cocoa */
    --header-text-color: #9E6156; /* Navigation text color */
    --section-title-color: #333333; /* Charcoal for section headings */
    --book-card-background: #FFF8F6; /* Book card background color */
    --highlight-yellow: #F5C047; /* Highlight Yellow */
    --cta-green: #4A9C8B; /* CTA Green */
    --nav-background: #FFF8F6; /* Navigation Background */
    --primary-light: #D8C0AD; /* Use secondary as light variant */
    --primary-dark: #2A1D17; /* Darker version of primary */
    --button-color: #5e3d37; /* Standard button color */
    --button-color-hover: #7a3f33; /* Standard button hover color */
    --tag-border-color: #7fb7aa;
    --tag-text-color: #6f5c2e;
}

/* Shared Special Colored Section Styles */
.special-colored-section {
    margin: 3rem 0;
    padding: 2rem 0;
    background: #fff8f6;
    border: 2px solid #FDEED3;
    border-radius: 16px;
    overflow: hidden;
}

/* Before and After Section Styles */
.before-after-section {
    padding: 0.5rem 0;
}

.before-after-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.before-section,
.after-section {
    width: 100%;
}

.before-after-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Book Creation Steps Section Styles */
.book-creation-steps-section {
    /* Inherits from special-colored-section */
}

/* Real to Book Section Styles */
.real-to-book-section {
    padding-bottom: 12px;
}

.faq-section
{
    margin-top:0px;
    padding-top:8px;
}

.faq-section .highlighted-info-container {
    background-color: #F0EBE6;
}

/* Responsive adjustments for before-after section */
@media (max-width: 768px) {
    .special-colored-section {
        padding: 0.75rem 0;
        margin: 0.75rem 0;
        border-radius: 12px;
    }
    
    .before-after-container {
        padding: 0 0.5rem;
        gap: 0.25rem;
    }

    .before-after-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .special-colored-section {
        padding: 0.5rem 0;
        border-radius: 8px;
    }

    .before-after-container {
        gap: 0.25rem;
    }

    .before-after-title {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
}

/* Banner Section Styles */
.banner-section {
    width: 100%;
    padding: 1.5rem 0;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-section.banner-dark {
    background: linear-gradient(135deg, var(--cta-green) 0%, #5BAD9D 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(74, 156, 139, 0.3);
}

.banner-section.banner-light {
    /*    background: linear-gradient(135deg, var(--secondary-color) 0%, #E8D4C1 100%);*/
    background: #f4c048;
    color: var(--text-color);
    box-shadow: 0 4px 20px rgba(216, 192, 173, 0.3);
}

.banner-title {
    font-size: 1.6rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    margin: 0;
    padding: 0 0rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive banner adjustments */
@media (max-width: 768px) {
    .banner-section {
        padding: 1.0rem 0;
        margin: 1.5rem 0;
    }
    
    .banner-title {
        font-size: 1.15rem;
        padding: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .banner-section {
        padding: 0.5rem 0;
        margin: 1rem 0;
    }
    
    .banner-title {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
}

/* Layout Structure */
.main-content {
    flex: 1;
    padding-top: 0; /* Remove top padding to connect banner to navigation */
}

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

/* Offer Banner (BaseScreen AppBar) */
.offer-banner {
    background-color: var(--highlight-yellow);
    padding: 8px 16px;
    text-align: center;
    width: 100%;
}

.offer-text {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Promotional Top Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--cta-green) 0%, #5BAD9D 100%);
    padding: 0.5rem 1rem;
    text-align: center;
    width: 100%;
}

.promo-banner-text {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .promo-banner-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .promo-banner {
        padding: 0.35rem 0.5rem;
    }

    .promo-banner-text {
        font-size: 0.75rem;
    }
}

/* Navigation Header (BaseScreen CustomNavigationBar) */
.navigation-header {
    background-color: var(--nav-background);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.navigation-bar {
    width: 100%;
    background-color: var(--nav-background);
}

.nav-container {
    width: 100%;
    margin: 0;
    padding: 5px clamp(5px, 2vw, 20px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(16px, 3vw, 32px);
}

.nav-bar-grid {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    flex: 0 0 auto;
}

.nav-cart-compact {
    display: none;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
}

.nav-logo {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-links .nav-cart-item {
    flex: 0;
    margin-left: auto;
}

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-auth-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header-text-color);
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.nav-auth-icon:hover,
.nav-auth-icon:focus-visible {
    background-color: var(--secondary-color);
}

.mobile-auth-icon {
    display: none;
}

.nav-links a {
    color: var(--header-text-color);
    text-decoration: none;
    font-weight: 200;
    font-size: 0.9rem;
    font-family: 'Playfair Display', serif;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background-color: var(--secondary-color);
    color: var(--header-text-color);
}

/* ── User Dropdown (authenticated nav) ─────────────────── */

.nav-user-dropdown {
    position: relative;
}

.nav-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--header-text-color);
    font-weight: 200;
    font-size: 0.9rem;
    font-family: 'Playfair Display', serif;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.nav-user-toggle:hover,
.nav-user-toggle:focus-visible {
    background-color: var(--secondary-color);
}

.nav-user-greeting {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-caret {
    font-size: 0.65rem;
    line-height: 1;
}

.nav-user-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 180px;
    margin: 4px 0 0;
    padding: 8px 0;
    list-style: none;
    background: var(--nav-background);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-user-dropdown.open .nav-user-menu {
    display: block;
}

.nav-user-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 200;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.nav-user-menu li a:hover {
    background-color: var(--secondary-color);
}

.nav-user-menu li a.nav-logout-link {
    color: var(--primary-color);
}

.nav-cart .cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    position: relative;
}

.nav-cart .cart-text {
    display: none;
}

.nav-cart .cart-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.nav-cart .cart-link:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 1100px) {
    .nav-container {
        padding: 12px clamp(16px, 4vw, 48px);
        gap: clamp(12px, 2vw, 24px);
    }
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--nav-background);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--secondary-color);
}

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

.mobile-nav-links {
    list-style: none;
    padding: 16px 0;
    margin: 0;
}

.mobile-nav-links li {
    margin: 0;
}

.mobile-nav-links a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(216, 192, 173, 0.3);
}

.mobile-nav-links a:hover {
    background-color: var(--secondary-color);
}

.mobile-nav-links li:last-child a {
    border-bottom: none;
}

/* Hero Banner Section */
.hero-banner {
    width:100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

.banner-image {
    width: 100%;
    height: auto;

    object-fit: cover; /* Maintain aspect ratio while filling container */
    object-position: center; /* Center the image */
    display: block;
}

/* Responsive hero banner */
@media (max-width: 768px) {
    .hero-banner {
        margin: 0;
        padding: 0; /* Keep same padding as navigation */
    }
    
    /* .banner-image {
        max-height: 250px;
    } */
}

@media (max-width: 480px) {
    .hero-banner {
        margin: 0 auto;
        padding: 0; /* Keep same padding as navigation */
    }
    
    /* .banner-image {
        max-height: 200px;
    } */
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.headline-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Typography - Based on Flutter TextTheme with Playfair Display */
.headline-large {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.headline-medium {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--cta-green);
    font-family: 'Playfair Display', serif;
}

.headline-small {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.title-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cta-green);
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.title-medium {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.title-small {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
    font-family: 'Playfair Display', serif;
}

.body-large {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.body-medium {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

/* Layout Components */
.section {
    margin-bottom: 2.5rem;
}

.section-title {
    padding: 12px 0;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--cta-green);
    text-align: center;
}

.section-content {
    padding: 0 12px;
}

.quote-container {
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #F5F1ED 100%);
    border-radius: 16px;
    text-align: center;
    margin: 32px 0;
    box-shadow: 0 4px 20px rgba(94, 61, 55, 0.15);
    border: 1px solid rgba(94, 61, 55, 0.2);
}

/* Images and Media */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    justify-items: center;
    margin: 24px 0;
}

.image-item {
    max-width: 300px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

/* About Page */
.about-page {
    width: 100%;
    margin: 0;
    padding: 0 0 0.4rem;
    color: var(--text-color);
}

.about-hero {
    text-align: center;
    margin: 0;
    padding: 3rem 1.5rem 2.5rem;
    background: linear-gradient(135deg, var(--book-card-background) 0%, #f3ebe5 100%);
}

.about-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
    position: relative;
    display: inline-block;
}

.about-hero h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--cta-green);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.about-intro {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: #5f4c45;
}

.about-hero,
.about-section,
.about-journey-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: clamp(1.5rem, 6vw, 5rem);
    padding-right: clamp(1.5rem, 6vw, 5rem);
}

.about-section {
    margin-bottom: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
    line-height: 1.8;
}

.about-section:nth-of-type(odd) {
    background-color: #fff;
}

.about-section:nth-of-type(even) {
    background-color: var(--book-card-background);
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    color: var(--cta-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--cta-green);
}

.about-section p {
    font-size: 1.05rem;
    color: var(--text-color);
}

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

.about-gallery figure {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(94, 61, 55, 0.08);
    padding: 0;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-gallery figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(94, 61, 55, 0.14);
}

.about-gallery img {
    width: 100%;
    height: auto;
    border-radius: 0;
    margin-bottom: 0;
    display: block;
}

.about-gallery figcaption {
    font-size: 0.95rem;
    color: #6b5b55;
    padding: 0.75rem 1rem;
}

.about-journey-section {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    background: none;
}

.about-journey-block {
    padding: 2rem clamp(1.5rem, 6vw, 5rem);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    line-height: 1.8;
}

.about-journey-block:nth-child(odd) {
    background-color: #fff;
}

.about-journey-block:nth-child(even) {
    background-color: var(--book-card-background);
}

.about-journey-block + .about-journey-block {
    margin-top: 0;
}

.about-journey-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cta-green);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--cta-green);
}

.about-journey-block p {
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
}

.about-banner {
    margin: 0;
    background: var(--highlight-yellow);
    color: var(--primary-color);
    padding: 1.5rem 2rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 768px) {
    .about-hero {
        padding: 2rem 1rem 1.75rem;
    }

    .about-hero h1 {
        font-size: 1.75rem;
    }

    .about-hero,
    .about-section,
    .about-journey-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .about-section h2,
    .about-journey-block h2 {
        font-size: 1.3rem;
    }

    .about-journey-block {
        padding: 1.5rem 1rem;
    }

    .about-journey-section {
        padding-bottom: 1rem;
    }

    .about-banner {
        margin-top: 2rem;
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
}

/* Dashboard Page */
.dashboard-page {
    min-height: calc(100vh - 160px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 16px 80px;
    background: linear-gradient(160deg, #fff8f6 0%, #f3ebe5 50%, #f7e6e3 100%);
}

.dashboard-card {
    text-align: center;
    background: #fff;
    border-radius: 24px;
    padding: clamp(32px, 5vw, 56px) clamp(28px, 5vw, 64px);
    box-shadow: 0 8px 40px rgba(94, 61, 55, 0.1);
    border: 1px solid rgba(216, 192, 173, 0.3);
    max-width: 440px;
    width: 100%;
}

.dashboard-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--book-card-background) 0%, #f3ebe5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(216, 192, 173, 0.5);
}

.dashboard-avatar svg {
    width: 36px;
    height: 36px;
    color: var(--primary-color);
}

.dashboard-greeting {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 2rem;
    line-height: 1.3;
}

.dashboard-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(94, 61, 55, 0.18);
}

.dashboard-button-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dashboard-create {
    background: linear-gradient(135deg, var(--cta-green) 0%, #5BAD9D 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(74, 156, 139, 0.25);
}

.dashboard-create:hover {
    box-shadow: 0 8px 28px rgba(74, 156, 139, 0.35);
    color: #fff;
}

.dashboard-commission {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(94, 61, 55, 0.2);
}

.dashboard-commission:hover {
    color: #fff;
}

/* ───────────── Influencer Dashboard ───────────── */
.influencer-page {
    display: flex;
    justify-content: center;
    padding: 48px 16px;
    min-height: 60vh;
}

.influencer-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(94, 61, 55, 0.12);
    padding: 40px 36px;
    max-width: 1100px;
    width: 100%;
}

.influencer-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #5e3d37;
    margin-bottom: 28px;
    text-align: center;
}

.influencer-empty {
    text-align: center;
    padding: 32px;
    color: #888;
    font-size: 1.1rem;
}

.influencer-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.influencer-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.influencer-table th {
    background: #5e3d37;
    color: #fff;
    text-align: left;
    padding: 12px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.influencer-table th:first-child {
    border-radius: 10px 0 0 0;
}

.influencer-table th:last-child {
    border-radius: 0 10px 0 0;
}

.influencer-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f0e6e2;
    font-size: 0.93rem;
    color: #3a2420;
}

.influencer-table tbody tr:hover {
    background: #faf5f3;
}

.influencer-code-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #5e3d37;
    padding: 3px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.copy-btn:hover {
    background: #f0e6e2;
}

/* Pagination */
.influencer-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 24px 0 12px;
}

.pagination-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    background: #5e3d37;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.pagination-btn:hover:not(.disabled) {
    background: #7a524b;
}

.pagination-btn.disabled {
    background: #c9b8b3;
    cursor: default;
    pointer-events: none;
}

.pagination-info {
    font-size: 1rem;
    font-weight: 500;
    color: #5e3d37;
}

/* Help button */
.influencer-help-area {
    text-align: center;
    margin-top: 16px;
}

.influencer-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: 2px solid #5e3d37;
    border-radius: 10px;
    background: transparent;
    color: #5e3d37;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.influencer-help-btn:hover {
    background: #5e3d37;
    color: #fff;
}

/* Help dialog */
.influencer-dialog {
    border: none;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    padding: 0;
    max-width: 540px;
    width: 92vw;
}

.influencer-dialog::backdrop {
    background: rgba(0, 0, 0, 0.4);
}

.influencer-dialog-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 24px 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #5e3d37;
}

.influencer-dialog-body {
    padding: 0 24px 16px;
    max-height: 60vh;
    overflow-y: auto;
}

.help-item {
    margin-bottom: 14px;
}

.help-item strong {
    display: block;
    font-size: 0.95rem;
    color: #3a2420;
}

.help-item p {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: #777;
    line-height: 1.45;
}

.influencer-dialog-actions {
    padding: 0 24px 20px;
    text-align: right;
}

.dialog-close-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    background: #5e3d37;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.dialog-close-btn:hover {
    background: #7a524b;
}

/* Copy toast */
.copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #333;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Back link */
.influencer-back {
    text-align: center;
    margin-top: 24px;
}

.influencer-back-link {
    color: #5e3d37;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.influencer-back-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .influencer-card {
        padding: 24px 12px;
    }

    .influencer-title {
        font-size: 1.5rem;
    }

    .influencer-pagination {
        gap: 8px;
    }

    .pagination-btn {
        padding: 6px 14px;
        font-size: 0.82rem;
    }
}

.dashboard-logout {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid rgba(94, 61, 55, 0.25);
    box-shadow: none;
}

.dashboard-logout:hover {
    background: rgba(94, 61, 55, 0.06);
    box-shadow: none;
    transform: none;
}

@media (max-width: 600px) {
    .dashboard-greeting {
        font-size: 1.4rem;
    }

    .dashboard-card {
        border-radius: 20px;
    }

    .dashboard-avatar {
        width: 64px;
        height: 64px;
    }

    .dashboard-avatar svg {
        width: 28px;
        height: 28px;
    }

    .dashboard-button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Auth Page */
.auth-page {
    min-height: calc(100vh - 160px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 16px 80px;
    background: #f7e6e3;
}

.auth-card {
    width: min(520px, 100%);
    background: #fdeeee;
    border-radius: 20px;
    padding: 32px 28px 36px;
    box-shadow: 0 24px 40px rgba(94, 61, 55, 0.18);
    border: 1px solid rgba(94, 61, 55, 0.15);
}

.auth-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: #5e3d37;
    margin-bottom: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(94, 61, 55, 0.35);
    background: #fdf4f2;
    color: #5e3d37;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-wrapper:focus-within {
    border-color: #8a5a4e;
    box-shadow: 0 0 0 3px rgba(139, 84, 70, 0.2);
}

.auth-input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5e3d37;
}

.auth-input-icon svg {
    width: 20px;
    height: 20px;
}

.auth-input-wrapper input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 1rem;
    color: #5e3d37;
    font-family: 'Playfair Display', serif;
}

.auth-input-wrapper input::placeholder {
    color: rgba(94, 61, 55, 0.7);
}

.auth-input-wrapper input:focus {
    outline: none;
}

.auth-primary-button {
    margin-top: 4px;
    background: #5e3d37;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-primary-button:hover {
    background: #4d302b;
    box-shadow: 0 12px 24px rgba(94, 61, 55, 0.25);
    transform: translateY(-1px);
}

.auth-error {
    color: #b5443a;
    font-size: 0.92rem;
    text-align: center;
    margin: 8px 0 0;
    line-height: 1.4;
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #6e4b44;
}

.auth-link {
    color: #9c5f4a;
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    color: #7f4c3b;
}

.auth-forgot {
    text-align: center;
    font-size: 0.95rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9c7a72;
    font-size: 0.9rem;
    margin: 8px 0 4px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(94, 61, 55, 0.2);
}

.auth-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    border-radius: 999px;
    padding: 12px 16px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-social-button img,
.auth-social-button svg {
    width: 20px;
    height: 20px;
}

.auth-google {
    background: #5e3d37;
    color: #fff;
}

.auth-google:hover {
    box-shadow: 0 12px 24px rgba(94, 61, 55, 0.25);
    transform: translateY(-1px);
}

.auth-facebook {
    background: #fff;
    color: #5e3d37;
    border: 1px solid rgba(94, 61, 55, 0.2);
}

.auth-facebook:hover {
    box-shadow: 0 10px 18px rgba(94, 61, 55, 0.15);
    transform: translateY(-1px);
}

.auth-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 28px 20px 32px;
    }

    .auth-title {
        font-size: 1.4rem;
    }
}

/* Registration Fancybox Modal */
.register-fancybox .fancybox__content {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
}

.register-modal-inner,
.register-success-inner {
    background: #fdeeee;
    border-radius: 20px;
    padding: 36px 30px 32px;
}

.register-modal-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px;
}

.register-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.register-modal-form input {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(94, 61, 55, 0.3);
    border-radius: 10px;
    background: #fdf4f2;
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    color: #5e3d37;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-modal-form input::placeholder {
    color: rgba(94, 61, 55, 0.6);
}

.register-modal-form input:focus {
    outline: none;
    border-color: #8a5a4e;
    box-shadow: 0 0 0 3px rgba(139, 84, 70, 0.2);
}

.register-modal-button {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(to right, #5e3d37, #4d302b);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.register-modal-button:hover {
    opacity: 0.92;
    box-shadow: 0 12px 24px rgba(94, 61, 55, 0.25);
    transform: translateY(-1px);
}

.register-modal-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.register-success-text {
    font-family: 'Playfair Display', serif;
    color: #5e3d37;
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
    margin: 0;
}

.register-fancybox .fancybox__button--close {
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .register-modal-inner,
    .register-success-inner {
        padding: 28px 20px 24px;
    }

    .register-modal-title {
        font-size: 1.3rem;
    }
}

/* Forgot Password Fancybox Modal */
.forgot-fancybox .fancybox__content {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
}

.forgot-modal-inner,
.forgot-success-inner {
    background: #fdeeee;
    border-radius: 20px;
    padding: 36px 30px 32px;
}

.forgot-modal-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.forgot-modal-subtitle {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: #5e3d37;
    line-height: 1.6;
    margin: 0 0 24px;
}

.forgot-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.forgot-modal-form .auth-input-wrapper {
    width: 100%;
}

.forgot-modal-form input {
    display: block;
    width: 100%;
    padding: 14px 16px 14px 46px;
    border: 1px solid rgba(94, 61, 55, 0.3);
    border-radius: 10px;
    background: #fdf4f2;
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    color: #5e3d37;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.forgot-modal-form input::placeholder {
    color: rgba(94, 61, 55, 0.6);
}

.forgot-modal-form input:focus {
    outline: none;
    border-color: #8a5a4e;
    box-shadow: 0 0 0 3px rgba(139, 84, 70, 0.2);
}

.forgot-modal-button {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(to right, #5e3d37, #4d302b);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.forgot-modal-button:hover {
    opacity: 0.92;
    box-shadow: 0 12px 24px rgba(94, 61, 55, 0.25);
    transform: translateY(-1px);
}

.forgot-modal-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.forgot-success-text {
    font-family: 'Playfair Display', serif;
    color: #5e3d37;
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
    margin: 0;
}

.forgot-fancybox .fancybox__button--close {
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .forgot-modal-inner,
    .forgot-success-inner {
        padding: 28px 20px 24px;
    }

    .forgot-modal-title {
        font-size: 1.3rem;
    }
}

/* Footer (BaseScreen Footer) */
.site-footer {
    background-color: var(--background-color);
    border-top: 1px solid var(--secondary-color);
    margin-top: auto;
    padding: 2rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

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

.book-detail-left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(20px, 3vw, 36px);
}

.book-detail-image {
    width: min(680px, 100%);
    height: auto;
    object-fit: cover;
    border-radius: 32px;
    display: block;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}


.payment-methods,
.compliance-logos {
    margin-top: 1rem;
}

.payment-logo,
.compliance-logo {
    max-height: 50px;
    max-width: 200px;
    margin: 0.5rem;
}

.footer-social {
    text-align: center;
    margin-bottom: 2rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-color);
}

.footer-copyright p {
    color: var(--text-color);
    font-size: 0.875rem;
}

/* Contact Page Specific */
.contact-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

/* Delivery Page Specific */
.delivery-content {
    max-width: 800px;
    margin: 0 auto;
}

.delivery-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--secondary-color);
}

.delivery-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.delivery-section p {
    line-height: 1.8;
    color: var(--text-color);
}

/* Privacy Page Specific */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--secondary-color);
}

.privacy-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.privacy-section p {
    line-height: 1.8;
    color: var(--text-color);
}

.privacy-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Return Policy Page Specific */
.return-policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.return-policy-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--secondary-color);
}

.return-policy-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.return-policy-section p {
    line-height: 1.8;
    color: var(--text-color);
}

.return-policy-section em {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
}

.return-policy-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.return-policy-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* Tutorial Steps (How To Use Page) */
.tutorial-step {
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.step-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.step-image {
    flex: 0 0 230px;
    max-width: 230px;
}

.step-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0; /* Remove padding */
}

.step-description {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-color);
    margin: 0;
    font-family: 'Playfair Display', serif;
}

/* Info Box for Returning Users */
.info-box {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1.5px solid var(--highlight-yellow);
}

.info-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    text-align: center;
}

.info-bonus {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cta-green);
    font-weight: bold;
    text-align: center;
    margin: 0;
}

/* Call to Action Section */
.cta-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
}

.cta-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #5BAD9D 0%, #4A9C8B 50%, #3D8573 100%);
    color: white;
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px; /* Fully rounded pill shape */
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 156, 139, 0.3);
    text-align: center;
    letter-spacing: 0.5px;
    min-width: 200px;
}

.cta-button:hover {
    background: linear-gradient(135deg, #4A9C8B 0%, #3D8573 50%, #2E6B5C 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 156, 139, 0.4);
    color: white;
    text-decoration: none;
}

.cta-button:focus {
    outline: 3px solid rgba(74, 156, 139, 0.4);
    outline-offset: 2px;
    color: white;
    text-decoration: none;
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(74, 156, 139, 0.3);
}

/* Ensure button works well on different backgrounds */
.cta-button:visited {
    color: white;
    text-decoration: none;
}

/* Mobile responsiveness for CTA button */
@media (max-width: 768px) {
    .cta-button {
        padding: 10px 28px;
        font-size: 1rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .cta-button {
        padding: 10px 24px;
        font-size: 0.95rem;
        min-width: 160px;
    }
}

/* CTA Button Container */
.cta-button-container {
    margin-top: 2rem;
    text-align: center;
    padding: 0.5rem 0;
}

/* Mobile responsiveness for CTA button container */
@media (max-width: 768px) {
    .cta-button-container {
        margin-top: 1.5rem;
        padding: 0.375rem 0;
    }
}

@media (max-width: 480px) {
    .cta-button-container {
        margin-top: 1rem;
        padding: 0.25rem 0;
    }
}

/* FAQ (Questions Page) Styles */
.faq-list {
    margin: 2rem 0;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-details {
    
}

h2.faq-question {
    margin: 0;
    padding: 0;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    font-family: 'Playfair Display', serif;
    color: #7D5260;
}

.faq-accordion-item:hover {
    background: var(--secondary-color);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
}

.faq-question::before {
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cta-green);
    transition: transform 0.3s ease;
}

.faq-details[open] .faq-question::before {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 1.5rem;
}

.faq-answer p {
    margin: 0 0 1rem 0;
    line-height: 1.7;
    color: var(--text-color);
    white-space: pre-line;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Contact Section in Questions Page */
.contact-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 12px;
    text-align: center;
}

.contact-intro {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

.contact-email-link {
    color: var(--cta-green);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-email-link:hover {
    color: var(--primary-color);
}

/* Hero Content */
.hero-content {
    text-align: center;
    padding: 2rem 0;
}

/* Our Story Section Styles */

.highlighted-info-section {
    margin: 0.5rem 0.75rem;
    padding: 1rem 2rem;
    background-color: var(--background-color); /* White background for the outer section */
    border-radius: 0;
    text-align: center;
    width: auto;
    position: static; /* Reset positioning */
    left: auto;
    right: auto;
    box-shadow: none;
}


.highlighted-info-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    background-color: #E8DDD4;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


.highlighted-info-title {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}


.highlighted-info-text {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Playfair Display', serif;
    max-width: 90%;
}

.highlighted-info-button-container {
    margin-top: 2rem;
    text-align: center;
}

.highlighted-info-button {
    display: inline-block;
    background-color: var(--button-color); /* Use consistent button color instead of #A0634A */
    color: white;
    padding: 8px 32px;
    border-radius: 25px;
    text-decoration: none; /* Ensure no underline */
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(144, 75, 62, 0.3); /* Updated shadow to match button color */
    border: none;
    cursor: pointer;
}

.highlighted-info-button:hover {
        background-color: var(--button-color-hover); /* Use consistent hover color instead of #8B5541 */
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(144, 75, 62, 0.4); /* Updated shadow to match button color */
        text-decoration: none;
        color: white;
    }

    .highlighted-info-button:focus {
        outline: 3px solid rgba(144, 75, 62, 0.4); /* Updated focus outline to match button color */
        outline-offset: 2px;
        color: white;
        text-decoration: none;
    }

    .highlighted-info-button:visited {
        color: white;
        text-decoration: none;
    }

/* Responsive Design for Our Story Section */
@media (max-width: 768px) {
    .highlighted-info-section {
        padding: 0.5rem 0;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        width: auto;
    }
    
    .highlighted-info-container {
        max-width: 100%;
        padding: 1.2rem 1.75rem;
    }
    
    .highlighted-info-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .highlighted-info-text {
        font-size: 0.85rem;
        margin-bottom: 0.85rem;
    }

    .highlighted-info-button {
        padding: 8px 24px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {

    .highlighted-info-section {
        padding: 0.35rem 0;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        width: auto;
    }

    .highlighted-info-container {
        max-width: 100%;
        padding: 1rem 1.5rem;
    }
    

    .highlighted-info-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    
    .highlighted-info-text {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .highlighted-info-button {
        padding: 6px 20px;
        font-size: 0.8rem;
    }
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--secondary-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Buttons */
.btn {
    background-color: var(--button-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--button-color-hover);
}

/* Special highlight for highlighted yellow sections */
.highlight {
    background-color: var(--highlight-yellow);
    padding: 2px 4px;
    border-radius: 4px;
}

/* BookGridDetailed - Book Grid Section Styles */
.book-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* DetailedBookGridItem - Book Card Styles */
.book-card {
    position: relative;
    background-color: var(--book-card-background);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.book-card.in-progress {
    opacity: 0.7;
    filter: grayscale(95%);
    cursor: default;
}

.book-card.in-progress:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-image-container {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.book-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.4s ease;
    position: relative;
    z-index: 2;
}

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

/* Gift card cards use blog-style 16:9 image format */
.giftcard-card .book-image-container {
    aspect-ratio: 16/9;
}

.giftcard-card .book-image {
    object-fit: cover;
}

/* Additional Images Styling for Book Cards */
.book-image-additional {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3; /* Container for additional images should be above main image */
}

.book-image-additional img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    opacity: 0;
    z-index: 1;
}

/* In Progress Banner (diagonal) */
.in-progress-banner {
    position: absolute;
    top: 20px;
    right: -60px;
    width: 200px;
    height: 35px;
    background-color: #666666;
    color: white;
    text-align: center;
    line-height: 35px;
    font-size: 14px;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 10;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* New Badge */
.new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: color-mix(in srgb, var(--highlight-yellow) 78%, var(--primary-color) 22%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: bold;
    z-index: 10;
}

.book-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.book-tag {
    background-color: var(--book-card-background);
    color: var(--tag-text-color);
    padding: 4px 12px;
    border: 1px solid var(--tag-border-color);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 100;
}

.book-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--cta-green); /* Changed to teal/green color like in the image */
    margin: 0 0 8px 0;
    line-height: 1.3;
    max-height: 2.6em; /* ~2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Playfair Display', serif;
}

.book-card.in-progress .book-title {
    color: var(--cta-green);
    opacity: 0.6;
}

.book-age {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.book-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
    overflow: hidden;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.book-card.in-progress .book-description {
    opacity: 0.6;
}

.book-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.book-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
}

.book-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.book-price.strikethrough {
    text-decoration: line-through;
    text-decoration-color: var(--text-color);
    text-decoration-thickness: 2px;
    opacity: 0.55;
    font-size: 0.95rem;
}

.book-details-btn {
    background-color: var(--button-color); /* Changed to use --button-color variable */
    color: white;
    border: none;
    padding: 3px 16px;
    border-radius: 60px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Playfair Display', serif;
    width: 100%;
    text-align: center;
    text-decoration: none; /* Remove any text decoration */
    display: inline-block;
}

.book-details-btn:hover:not(:disabled) {
    background-color: var(--button-color-hover);
    text-decoration: none;
}

.book-details-btn:focus {
    text-decoration: none;
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Card link wrapper (whole card clickable) */
.book-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.book-details-btn:visited {
    text-decoration: none;
    color: white;
}

.book-details-btn:disabled {
    background-color: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    text-decoration: none;
}

.book-details-btn:disabled:hover {
    background-color: #ccc;
    transform: none;
    box-shadow: none;
    text-decoration: none;
}

/* Image cycling on hover */
.book-card:hover .book-image-additional img {
    opacity: 1;
}

.book-detail-page {
    width: 100%;
    padding: 0;
    background-color: #fff;
}

.book-detail-container {
    width: auto;
    margin: 12px 10px;
    background-color: transparent;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 24px rgba(94, 61, 55, 0.08);
    border: 1px solid rgba(216, 192, 173, 0.3);
    overflow: hidden;
}

@media (min-width: 992px) {
    .book-detail-container {
        margin: clamp(16px, 3vw, 40px) clamp(16px, 3vw, 48px);
        border-radius: 24px;
    }
}

.book-details-back {
    margin-bottom: 16px;
    padding: 1rem clamp(24px, 4vw, 56px) 0;
}

.book-details-back-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.book-details-back-link:hover {
    text-decoration: underline;
}

.book-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 992px) {
    .book-detail-layout {
        flex-direction: row;
        align-items: stretch;
    }
    
    .book-detail-left-column {
        flex: 0 0 40%;
        max-width: 40%;
        background: linear-gradient(135deg, var(--book-card-background) 0%, #f3ebe5 100%);
        padding: clamp(32px, 4vw, 56px);
    }
    
    .book-detail-right-column {
        flex: 0 0 60%;
        max-width: 60%;
        min-width: 0;
        padding: clamp(32px, 4vw, 56px);
    }
}

.book-detail-left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(16px, 3vw, 32px);
    padding: clamp(24px, 4vw, 40px);
    background: linear-gradient(135deg, var(--book-card-background) 0%, #f3ebe5 100%);
}

.book-detail-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 0;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
}

.book-detail-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 12px 40px rgba(94, 61, 55, 0.15);
}

.book-detail-image-container.in-progress-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    z-index: 1;
}

.book-detail-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: clamp(24px, 4vw, 40px);
}

@media (min-width: 992px) {
    .book-detail-left-column,
    .book-detail-right-column {
        padding-bottom: clamp(32px, 4vw, 56px);
    }
}

.book-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    padding: 6px 16px;
    border-radius: 999px;
    background-color: rgba(74, 156, 139, 0.1);
    color: var(--cta-green);
    font-size: 0.85rem;
    font-weight: 600;
}

.book-detail-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin: 0;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.book-detail-badge-row {
    display: flex;
    align-items: center;
}

.book-detail-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cta-green);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
}

.book-detail-lead {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    line-height: 1.5;
    color: var(--cta-green);
    font-weight: 500;
    margin: 0;
}

.book-detail-sections {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.book-detail-section h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0.75rem 0 0.5rem 0;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    padding-left: 0.75rem;
    border-left: 3px solid var(--cta-green);
}

.book-detail-section p {
    margin: 0 0 0.75rem 0;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.02rem;
}

.book-detail-highlight-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.book-detail-highlight-card {
    display: flex;
    padding: 12px 16px;
    background-color: var(--book-card-background);
    border-radius: 12px;
    border: none;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s ease;
}

.book-detail-highlight-card:hover {
    transform: translateX(4px);
}

.book-detail-highlight-icon-image {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: block;
}

.book-detail-highlight-text {
    margin: 0;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
}

.book-detail-purchase {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--book-card-background) 0%, #f3ebe5 100%);
    border-radius: 16px;
}

@media (min-width: 992px) {
    .book-detail-purchase {
        border-radius: 16px;
    }
}

.book-detail-purchase form {
    margin: 0;
    margin-left: auto;
}

.book-detail-price {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 100;
}

.price-amount {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.0rem);
    font-weight: 100;
    color: #1b1b1b;
}

.price-currency {
    font-size: 1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(27, 27, 27, 0.65);
}

.book-detail-primary-action {
    background-color: #3f8c7e;
    color: white;
    padding: 10px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 100;
    font-size: 1.4rem;
    font-family: inherit;
    border: none;
    appearance: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(63, 140, 126, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-detail-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(63, 140, 126, 0.35);
    color: white;
}

.book-detail-empty {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
}

.child-examples-section {
    width: 100%;
    max-width: 540px;
    margin: 32px auto 0;
    text-align: center;
}

.book-detail-left-column .child-examples-section {
    margin-top: 24px;
}

.child-examples-hint {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.child-examples-controls {
    margin: 16px auto 24px;
}

.child-example-select {
    width: min(340px, 100%);
    padding: 12px 32px 12px 20px;
    border-radius: 16px;
    border: 1px solid rgba(54, 35, 32, 0.35);
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    background-color: #faf6f4;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%235e3d37" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.child-example-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.child-example-photo {
    width: 210px;
    height: 210px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid rgba(94, 61, 55, 0.15);
}

.child-example-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 24px;
    background-color: #9c5f4a;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    min-width: 180px;
    transition: background-color 0.2s ease;
}

.child-example-button:hover {
    background-color: #7b4a39;
    color: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Additional Images Styling for Book Cards */
.book-image-additional {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3; /* Container for additional images should be above main image */
}

.book-image-additional img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    opacity: 0;
    z-index: 1;
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
        padding: 8px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .book-detail-container {
        padding: 0;
    }

    .book-detail-left-column {
        padding: 1.5rem;
    }

    .book-detail-right-column {
        padding: 1.5rem;
    }

    .book-detail-highlight-grid {
        display: flex;
        flex-direction: column;
    }

    .book-detail-purchase {
        padding: 1rem;
    }

    .child-example-photo {
        width: 180px;
        height: 180px;
    }
    
    .nav-auth {
        display: none;
    }

    .nav-auth-icon:not(.mobile-auth-icon) {
        display: none;
    }

    .mobile-auth-icon {
        display: flex;
        grid-area: auth;
        justify-self: end;
        color: var(--header-text-color);
    }
    
    .nav-links {
        display: none; /* Hide desktop navigation on mobile */
    }

    .nav-bar-grid {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas: "left logo right";
        align-items: center;
        width: 100%;
        gap: 8px;
    }

    .hamburger {
        display: flex;
        grid-area: left;
        justify-self: start;
    }

    .nav-logo {
        grid-area: logo;
        justify-self: center;
    }

    .nav-cart-compact {
        display: flex;
        grid-area: right;
        justify-self: end;
    }

    .mobile-auth-icon {
        grid-area: right;
        justify-self: end;
        margin-right: 32px;
    }
    
    .nav-cart-compact .cart-link {
        padding: 4px;
    }
    
    .nav-logo {
        position: static;
        transform: none;
        justify-self: center;
        text-align: center;
        grid-area: logo;
    }
    
    .container {
        padding: 12px;
    }
    
    .headline-large { font-size: 2rem; }
    .headline-medium { font-size: 1.75rem; }
    .title-large { font-size: 1.25rem; }
    
    .section {
        margin-bottom: 2rem;
    }
    
    .quote-container {
        padding: 16px 20px;
        margin: 24px 0;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .step-container {
        flex-direction: column;
        text-align: center;
    }
    
    .step-image {
        flex: none;
        max-width: 100%;
    }
    
    .step-content {
        min-width: auto;
    }
    
    .cta-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .headline-large { font-size: 1.75rem; }
    .headline-medium { font-size: 1.5rem; }
    .title-large { font-size: 1.125rem; }
    
    .offer-text {
        font-size: 12px;
    }
    
    .nav-logo .logo {
        height: 40px;
    }
    
    .nav-container {
        padding: 6px 12px; /* Reduce padding on very small screens */
    }

    .book-detail-primary-action {
        width: 100%;
        text-align: center;
    }
}

/* Responsive book card adjustments */
@media (max-width: 768px) {
    .book-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive adjustments for book detail page */
@media (max-width: 999px) {
    .book-detail-container {
        padding: 16px;
    }
    
    .book-detail-title {
        font-size: 2rem;
    }
    
    .book-detail-short-description p {
        font-size: 1.125rem;
    }
}

@media (max-width: 600px) {
    .book-detail-title {
        font-size: 1.75rem;
    }
    
    .book-detail-short-description p {
        font-size: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-create-book {
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .offer-banner,
    .promo-banner,
    .navigation-header,
    .site-footer {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .quote-container {
        background-color: #f5f5f5;
        box-shadow: none;
    }
}

/* Real to Book Section Styles */
.real-to-book-content {
    width: 100%; /* Full width instead of max-width constraint */
    margin: 0 auto;
    padding: 0; /* Removed padding */
    text-align: center;
}

.real-to-book-carousel {
    margin-bottom: 2rem;
}

.real-to-book-carousel .splide__slide img {
    max-height: 300px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    transform: scale(0.85);
}

/* Active slide styling for real-to-book carousel */
.real-to-book-carousel .splide__slide.is-active img {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    z-index: 10;
    position: relative;
}

/* How Look Like Title */
.how-look-like {
    color: var(--cta-green);
    font-size: 1.65rem;
    font-weight: 500;
    margin-bottom: 0rem;
    font-family: 'Playfair Display', serif;
    margin-top: 25px;
}

/* Book Creation Steps Section Styles */
.book-creation-steps-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.book-steps-title {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.steps-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    counter-reset: step-counter;
}

.book-step {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    width: 200px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: none;
    transition: none;
    counter-increment: step-counter;
}

.book-step::before {
    content: counter(step-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cta-green);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.book-step:hover {
    transform: none; /* Remove hover transform */
    box-shadow: none; /* Remove hover shadow */
}

.step-number {
    display: none; /* Hide the circular number overlay */
}

.step-image-container {
    width: 100%;
    height: 200px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: transparent; /* Remove background */
    position: relative;
}

.step-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); /* Keep subtle shadow for the image */
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0; /* Remove padding */
}

.step-description {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-color);
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.book-steps-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.main-cta-container {
    text-align: center;
}

.more-details {
    text-align: center;
}

.more-details-text {
    font-size: 1.025rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.how-to-use-link {
    display: inline-block;
    background-color: var(--button-color);
    color: white;
    padding: 6px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    font-family: 'Playfair Display', serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(144, 75, 62, 0.3);
}

.how-to-use-link:hover {
    background-color: var(--button-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(144, 75, 62, 0.4);
    text-decoration: none;
    color: white;
}

/* Responsive Design for Book Creation Steps */
@media (max-width: 1200px) {
    .steps-grid {
        gap: 1.5rem;
    }
    
    .book-step {
        width: 200px;
    }
    
    .step-image-container {
        height: 180px;
    }
}

@media (max-width: 900px) {
    .book-steps-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .steps-grid {
        gap: 1rem;
        justify-content: center;
    }
    
    .book-step {
        width: 180px;
    }
    
    .step-image-container {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .book-creation-steps-container {
        padding: 0 0.5rem;
    }
    
    .book-steps-title {
        font-size: 1.75rem;
    }
    
    .steps-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .book-step {
        width: 100%;
    }
    
    .step-image-container {
        height: 160px;
    }
    
    .step-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .book-step {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
    
    .step-image-container {
        height: 180px;
    }
    
    .book-steps-title {
        font-size: 1.5rem;
    }
    
    .more-details-text {
        font-size: 0.9rem;
    }
}

    /* How To Page */

    .how-to-page {
        width: 100%;
        margin: 0 auto;
        padding: 0;
        background-color: #fff;
    }

    .how-to-hero {
        text-align: center;
        padding: 3rem 1.5rem 2.5rem;
        background: linear-gradient(135deg, var(--book-card-background) 0%, #f3ebe5 100%);
    }

    .how-to-hero h1 {
        font-family: 'Playfair Display', serif;
        font-size: 2.2rem;
        font-weight: 600;
        color: var(--primary-color);
        margin: 0;
        display: inline-block;
    }

    .how-to-hero h1::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: var(--cta-green);
        margin: 0.75rem auto 0;
        border-radius: 2px;
    }

    .how-to-step {
        display: grid;
        grid-template-columns: minmax(180px, 240px) 1fr;
        gap: 2.5rem;
        align-items: center;
        padding: 2.5rem clamp(1.5rem, 6vw, 5rem);
        counter-increment: howto-step;
    }

    .how-to-step:nth-child(even) {
        background-color: #fff;
    }

    .how-to-step:nth-child(odd) {
        background-color: var(--book-card-background);
    }

    .how-to-step-card {
        background: transparent;
        border-radius: 16px;
        padding: 0;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(94, 61, 55, 0.1);
        border-radius: 16px;
    }

    .how-to-step-card img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 16px;
    }

    .how-to-step-number {
        font-size: 1.8rem;
        font-weight: 600;
        color: #c18600;
        margin-bottom: 0.4rem;
        display: block;
    }

    .how-to-step-content h2 {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--cta-green);
        margin-bottom: 0.75rem;
        padding-left: 1rem;
        border-left: 3px solid var(--cta-green);
    }

    .how-to-step-content p {
        font-size: 1.05rem;
        line-height: 1.7;
        color: var(--text-color);
    }

    .how-to-step-text {
        margin-bottom: 0.75rem;
    }

    .how-to-step-subtitle {
        font-size: 1.05rem;
        color: var(--cta-green);
        font-weight: 500;
        margin-bottom: 0.25rem;
    }

    .how-to-step-list {
        list-style: none;
        margin: 0.5rem 0 0.5rem 0;
        padding: 0;
        color: var(--text-color);
        font-size: 1.02rem;
        line-height: 1.7;
    }

    .how-to-step-list li {
        padding-left: 1.5rem;
        position: relative;
        margin-bottom: 0.35rem;
    }

    .how-to-step-list li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.55em;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--cta-green);
    }

    .how-to-step-note {
        font-size: 0.95rem;
        color: #8a756c;
        margin-top: 0.75rem;
        font-style: italic;
    }

    .how-to-cta {
        margin: 0;
        padding: 2.5rem 1.5rem;
        text-align: center;
        background: linear-gradient(135deg, var(--book-card-background) 0%, #f3ebe5 100%);
    }

    .how-to-cta p {
        font-family: 'Playfair Display', serif;
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 1.25rem;
    }

    .how-to-cta .book-detail-primary-action {
        display: inline-flex;
        padding: 0.85rem 2.75rem;
    }

    @media (max-width: 900px) {
        .how-to-step {
            grid-template-columns: 1fr;
            gap: 1.5rem;
            padding: 2rem 1.5rem;
        }

        .how-to-step-card {
            max-width: 180px;
            margin: 0 auto;
        }

        .how-to-hero {
            padding: 2rem 1rem 1.75rem;
        }

        .how-to-hero h1 {
            font-size: 1.75rem;
        }

        .how-to-step-content h2 {
            font-size: 1.3rem;
        }

        .how-to-cta {
            padding: 2rem 1rem;
        }

        .how-to-cta p {
            font-size: 1.15rem;
        }
    }

/* FAQ / Questions Page */
.questions-page {
    background-color: #fff;
}

.questions-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.questions-hero-header {
    text-align: center;
    padding: 3rem 1.5rem 0;
    background: linear-gradient(135deg, var(--book-card-background) 0%, #f3ebe5 100%);
}

.questions-hero-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    display: inline-block;
}

.questions-hero-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--cta-green);
    margin: 0.75rem auto 1.5rem;
    border-radius: 2px;
}

.questions-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.questions-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--header-text-color);
    margin-bottom: 0.75rem;
}

.questions-hero h1 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    margin-bottom: 1rem;
}

.questions-intro {
    font-size: 1.1rem;
    color: rgba(62, 43, 35, 0.85);
}

.questions-contact {
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    text-align: center;
    background: var(--book-card-background);
    border-radius: 16px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-color);
}

.questions-contact a {
    color: var(--cta-green);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.questions-contact a:hover {
    border-bottom-color: var(--cta-green);
}

.general-info-page {
    padding: 3rem 0 4rem;
    color: var(--text-color);
    line-height: 1.8;
}

.general-info-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.general-info-hero h1 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.legal-intro {
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: rgba(62, 43, 35, 0.9);
}

.general-info-text-section {
    background: #fff;
    border: 1px solid rgba(94, 61, 55, 0.12);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.general-info-text-section h2 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.general-info-text-section p {
    margin-bottom: 0.75rem;
}

.legal-list {
    padding-left: 1.2rem;
    margin: 0.5rem 0 0;
    display: grid;
    gap: 0.35rem;
}

.legal-list li {
    list-style: disc;
}

@media (max-width: 640px) {
    .general-info-page {
        padding: 2rem 0 3rem;
    }

    .general-info-text-section {
        padding: 1.25rem;
    }

    .general-info-text-section h2 {
        font-size: 1.2rem;
    }
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1rem;
    align-items: stretch;
    gap: 0.75rem;
}

.faq-accordion-item {
    border: 1px solid rgba(94, 61, 55, 0.08);
    border-radius: 12px;
    background: var(--book-card-background);
    padding: 0 1.5rem;
    width: 100%;
    text-align: left;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-accordion-item:hover {
    border-color: rgba(94, 61, 55, 0.15);
    box-shadow: 0 2px 12px rgba(94, 61, 55, 0.06);
}

.faq-accordion-item[open] {
    border-color: var(--cta-green);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(74, 156, 139, 0.08);
}

.faq-accordion-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.faq-accordion-item summary::-webkit-details-marker {
    display: none;
}

.faq-toggle-icon {
    width: 28px;
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--cta-green);
    flex-shrink: 0;
    background: rgba(74, 156, 139, 0.1);
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.faq-accordion-item[open] .faq-toggle-icon {
    background: var(--cta-green);
    color: #fff;
}

.faq-toggle-icon::before {
    content: "\25BC";
    display: inline-block;
    transition: transform 0.2s ease;
}

.faq-accordion-item[open] .faq-toggle-icon::before {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 1.25rem;
    margin-top: -0.25rem;
    color: rgba(62, 43, 35, 0.85);
    line-height: 1.7;
}

@media (max-width: 640px) {
    .questions-page {
    }

    .faq-accordion {
        padding: 1.5rem 1rem 0.5rem;
    }

    .faq-accordion-item {
        padding: 0 1rem;
    }

    .faq-accordion-item summary {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }

    .questions-contact {
        margin: 0 1rem;
        padding: 1.25rem;
    }

    .questions-hero-header {
        padding: 2rem 1rem 0;
    }

    .questions-hero-header h1 {
        font-size: 1.75rem;
    }
}

/* Wizard (shared engine UI) */
.wizard-page {
    width: 100%;
    max-width: none;
    margin: 2rem 0;
    padding: 0 16px;
}

.wizard-container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--background-color);
    border: 1px solid #FDEED3;
    border-radius: 20px;
    padding: 2rem 2.25rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(94, 61, 55, 0.06);
}

.wizard-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--cta-green);
    margin-bottom: 1.25rem;
    position: relative;
}

.wizard-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--cta-green);
    margin: 0.6rem auto 0;
    border-radius: 2px;
    opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════
   Blog – List Page
   ═══════════════════════════════════════════════════════════════ */

.blog-page {
    width: 100%;
    padding: 0;
    background-color: #fff;
}

.blog-hero {
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    background: linear-gradient(135deg, var(--book-card-background) 0%, #f3ebe5 100%);
}

.blog-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.blog-hero-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--cta-green);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.blog-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0.75rem auto 0;
    line-height: 1.6;
}

.blog-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 1.1rem;
}

.blog-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

/* Blog Card */
.blog-card {
    background-color: var(--book-card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-image-container {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.25rem;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.blog-tag {
    background-color: var(--background-color);
    color: var(--cta-green);
    border: 1px solid var(--cta-green);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cta-green);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.6;
}

.blog-card-author {
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   Blog – Post Detail Page
   ═══════════════════════════════════════════════════════════════ */

.blog-post-page {
    width: 100%;
    background-color: var(--background-color);
}

.blog-post-hero-image {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
}

.blog-post-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.blog-post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blog-post-breadcrumb a {
    color: var(--cta-green);
    text-decoration: none;
}

.blog-post-breadcrumb a:hover {
    text-decoration: underline;
}

.blog-post-header {
    margin-bottom: 2rem;
}

.blog-post-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cta-green);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.65;
    margin-bottom: 1rem;
}

.blog-post-author {
    font-weight: 500;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-post-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-color);
}

.blog-post-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--cta-green);
    margin: 2rem 0 1rem;
}

.blog-post-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1.5rem 0 0.75rem;
}

.blog-post-body p {
    margin-bottom: 1.25rem;
}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 1rem 0 1.25rem 1.5rem;
}

.blog-post-body li {
    margin-bottom: 0.5rem;
}

.blog-post-body blockquote {
    border-left: 4px solid var(--cta-green);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: var(--book-card-background);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-color);
}

.blog-post-body a {
    color: var(--cta-green);
    text-decoration: underline;
}

.blog-post-body a:hover {
    opacity: 0.8;
}

.blog-post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-back-link {
    display: inline-block;
    color: var(--cta-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.blog-back-link:hover {
    opacity: 0.7;
}

.blog-post-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

/* Blog responsive */
@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 1.8rem;
    }

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

    .blog-post-title {
        font-size: 1.7rem;
    }

    .blog-post-hero-image {
        max-height: 300px;
    }

    .blog-post-body {
        font-size: 1rem;
    }
}

.wizard-title.wizard-title-left {
    text-align: center;
}

.wizard-validation {
    background: var(--book-card-background);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--cta-green);
    font-size: 0.98rem;
    line-height: 1.5;
}

.wizard-validation.is-invalid {
    border: 2px solid var(--primary-color);
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.wizard-book-grid {
    margin-top: 1rem;
}

.wizard-book-grid.is-help-highlighted {
    outline: 3px solid var(--header-text-color);
    outline-offset: 4px;
    border-radius: 12px;
}

.wizard-field-error {
    margin-top: 0.5rem;
    background: var(--book-card-background);
    border: 1px solid var(--secondary-color);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.wizard-field-error-text {
    margin-top: 0.35rem;
    color: var(--primary-color);
    font-size: 0.85rem;
}

.wizard-book-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wizard-book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(94, 61, 55, 0.12);
}

.wizard-book-card.is-selected {
    outline: 3px solid var(--cta-green);
    outline-offset: 2px;
    box-shadow: 0 4px 16px rgba(74, 156, 139, 0.15);
}

.wizard-book-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.wizard-selected-book {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--book-card-background);
    border: 1px solid #FDEED3;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(94, 61, 55, 0.06);
}

.wizard-selected-book-image {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 auto;
}

.wizard-selected-book-label {
    font-size: 0.9rem;
    color: var(--header-text-color);
}

.wizard-selected-book-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
}

.wizard-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.wizard-form-col {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.wizard-form-grid--character {
    row-gap: 0.9rem;
}

.wizard-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.wizard-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.wizard-input {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--background-color);
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wizard-input:focus {
    outline: none;
    border-color: var(--cta-green);
    box-shadow: 0 0 0 3px rgba(74, 156, 139, 0.15);
}

.wizard-input.is-invalid {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(94, 61, 55, 0.12);
}

.wizard-radio-group {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.wizard-radio {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

/* ── Choose character type cards ──────────────────────── */

.wizard-description {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.25rem;
}

.wizard-character-type-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wizard-character-type-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--book-card-background);
    border: 2px solid transparent;
    border-left: 4px solid var(--cta-green);
    border-radius: 14px;
    padding: 1.1rem 1.35rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.wizard-character-type-card:hover {
    border-color: var(--cta-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 156, 139, 0.1);
}

.wizard-character-type-card.is-selected {
    border-color: var(--cta-green);
    box-shadow: 0 0 0 1px var(--cta-green), 0 4px 12px rgba(74, 156, 139, 0.1);
}

.wizard-character-type-radio {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    accent-color: var(--cta-green);
}

.wizard-character-type-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.wizard-character-type-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
}

.wizard-character-type-description {
    font-size: 0.9rem;
    color: var(--header-text-color);
}

/* ── Existing character grid ──────────────────────────── */

.wizard-character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .wizard-character-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .wizard-character-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.wizard-character-card {
    display: flex;
    flex-direction: column;
    background: var(--book-card-background);
    border: 2px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.wizard-character-card:hover {
    border-color: var(--cta-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 156, 139, 0.12);
}

.wizard-character-card.is-selected {
    border-color: var(--cta-green);
    box-shadow: 0 0 0 1px var(--cta-green), 0 4px 12px rgba(74, 156, 139, 0.1);
}

.wizard-character-card-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wizard-character-card-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-character-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wizard-character-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #bbb;
}

.wizard-character-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem;
}

.wizard-character-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.wizard-character-card-detail {
    font-size: 0.85rem;
    color: var(--header-text-color);
}

.wizard-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #FDEED3;
}

.wizard-footer.is-right {
    justify-content: flex-end;
}

.wizard-footer-button {
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 12px 26px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.wizard-footer-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.wizard-footer-button:not(:disabled):hover {
    transform: translateY(-1px);
}

.wizard-footer-button-primary {
    background: var(--button-color);
    color: var(--background-color);
    box-shadow: 0 2px 8px rgba(94, 61, 55, 0.2);
}

.wizard-footer-button-primary:not(:disabled):hover {
    background: var(--button-color-hover);
    box-shadow: 0 4px 14px rgba(94, 61, 55, 0.25);
}

.wizard-footer-button-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
}

.wizard-footer-button-secondary:not(:disabled):hover {
    background: #cdb19e;
}

.wizard-footer-button-tertiary {
    background: var(--background-color);
    color: var(--button-color);
    border-color: var(--button-color);
}

.wizard-footer-button-tertiary:not(:disabled):hover {
    background: var(--book-card-background);
}

.wizard-loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
}

.wizard-loading-overlay[hidden] {
    display: none;
}

.wizard-section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--cta-green);
    margin: 0.5rem 0 0.6rem;
}

.wizard-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
    margin-bottom: 22px;
}

.wizard-upload-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.wizard-upload-hint {
    font-size: 0.95rem;
    color: var(--header-text-color);
}

.wizard-upload-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0.75rem;
}

.wizard-upload-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--book-card-background);
    border: 1px solid #FDEED3;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(94, 61, 55, 0.05);
    transition: box-shadow 0.2s ease;
}

.wizard-upload-item:hover {
    box-shadow: 0 3px 10px rgba(94, 61, 55, 0.08);
}

.wizard-upload-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--background-color);
    border: 2px solid var(--secondary-color);
}

.wizard-upload-thumb-placeholder {
    display: inline-block;
}

.wizard-upload-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.wizard-upload-filename {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wizard-upload-status {
    font-size: 0.9rem;
    color: var(--header-text-color);
    margin-top: 2px;
}

.wizard-upload-status-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.wizard-upload-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--secondary-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    flex: 0 0 auto;
}

.wizard-upload-progress {
    height: 8px;
    background: var(--background-color);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--secondary-color);
    margin-top: 8px;
}

.wizard-upload-progress-bar {
    height: 100%;
    width: 0;
    background: var(--cta-green);
}

.wizard-upload-remove {
    border: 2px solid var(--secondary-color);
    background: var(--background-color);
    color: var(--text-color);
    border-radius: 999px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.wizard-upload-remove:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.wizard-upload-remove.wizard-upload-remove-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.wizard-upload-remove.wizard-upload-remove-icon > span[aria-hidden="true"] {
    font-size: 20px;
    font-weight: 700;
    transform: translateY(-1px);
}

.wizard-upload-guidelines {
    background: var(--book-card-background);
    border: 1px solid #FDEED3;
    border-radius: 14px;
    padding: 18px;
    align-self: start;
    box-shadow: 0 1px 4px rgba(94, 61, 55, 0.05);
}

.wizard-upload-guidelines-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wizard-upload-guidelines-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-color);
    font-size: 0.98rem;
}

.wizard-upload-guidelines-icon {
    color: var(--header-text-color);
    flex: 0 0 auto;
    margin-top: 2px;
}

.wizard-upload-guidelines-item.is-ok .wizard-upload-guidelines-icon {
    color: var(--cta-green);
}

.wizard-upload-guidelines-item.is-warn .wizard-upload-guidelines-icon {
    color: var(--primary-color);
}

.wizard-privacy-note {
    margin-top: 1rem;
    background: var(--background-color);
    border: 1px solid #FDEED3;
    border-radius: 12px;
    padding: 14px;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.55;
}

.wizard-privacy-consent {
    margin-top: 0.75rem;
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--text-color);
    font-size: 0.95rem;
}

.wizard-privacy-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

@media (max-width: 900px) {
    .wizard-form-grid {
        grid-template-columns: 1fr;
    }

    .wizard-form-row-2 {
        grid-template-columns: 1fr;
    }

    .wizard-container {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    /* Upload-photos page: show guidelines before privacy note */
    .wizard-form-grid:has(> .wizard-upload-guidelines) > .wizard-form-col {
        display: contents;
    }

    .wizard-form-grid:has(> .wizard-upload-guidelines) .wizard-privacy-note {
        order: 1;
    }

    .wizard-form-grid:has(> .wizard-upload-guidelines) .wizard-privacy-consent {
        order: 2;
    }

    .wizard-form-grid:has(> .wizard-upload-guidelines) #privacy-error {
        order: 3;
    }
}

/* ── Wizard Login Banner ─────────────────────────────── */

.wizard-login-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--book-card-background, #FFF8F6) 0%, #fdf2ec 100%);
    border: 1px solid #FDEED3;
    border-radius: 14px;
    padding: 1rem 1.35rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(94, 61, 55, 0.06);
}

.wizard-login-banner-text {
    font-size: 0.95rem;
    color: var(--text-color, #3E2B23);
    line-height: 1.4;
}

.wizard-login-banner-btn {
    flex-shrink: 0;
    background: var(--primary-color, #5E3D37);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 0.55rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.wizard-login-banner-btn:hover {
    opacity: 0.85;
}

@media (max-width: 600px) {
    .wizard-login-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ── Login Popup Fancybox Modal ──────────────────────── */

.login-popup-fancybox .fancybox__content {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
}

.login-popup-inner {
    background: #fdeeee;
    border-radius: 20px;
    padding: 36px 30px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-popup-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.login-popup-cancel {
    display: block;
    text-align: center;
    font-size: 0.95rem;
    color: #9c7a72;
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.2s;
}

.login-popup-cancel:hover {
    color: #7f4c3b;
}

@media (max-width: 600px) {
    .login-popup-inner {
        padding: 28px 20px 24px;
    }

    .login-popup-title {
        font-size: 1.3rem;
    }
}

/* ========================================
   Book Preview Modal (StPageFlip)
   ======================================== */

.book-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-preview-modal[hidden] {
    display: none;
}

.book-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(253, 238, 238, 0.95);
}

.book-preview-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    padding: 16px;
    margin: auto;
    box-sizing: border-box;
}

.book-preview-close {
    position: absolute;
    top: -8px;
    right: 8px;
    font-size: 2.2rem;
    color: #5e3d37;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    z-index: 2;
    transition: opacity 0.2s;
}

.book-preview-close:hover {
    opacity: 0.7;
}

.book-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0 12px;
    width: 100%;
    max-width: 600px;
}

.book-preview-mugshot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(94, 61, 55, 0.4);
    flex-shrink: 0;
}

.book-preview-child-info {
    display: flex;
    flex-direction: column;
}

.book-preview-child-name {
    color: #5e3d37;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.book-preview-child-age {
    color: rgba(94, 61, 55, 0.7);
    font-size: 0.85rem;
}

.book-preview-container {
    max-width: 1000px;
    width: 100%;
}

.book-preview-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 0 4px;
}

.book-preview-nav-btn {
    background: none;
    border: 1px solid rgba(94, 61, 55, 0.3);
    color: #5e3d37;
    font-size: 1.8rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
    line-height: 1;
}

.book-preview-nav-btn:hover {
    background-color: rgba(94, 61, 55, 0.1);
    border-color: rgba(94, 61, 55, 0.5);
}

.book-page-indicator {
    color: rgba(94, 61, 55, 0.8);
    font-size: 0.9rem;
    min-width: 120px;
    text-align: center;
}

.book-preview-cta {
    text-align: center;
    padding: 16px 0 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.book-preview-cta.visible {
    opacity: 1;
    pointer-events: auto;
}

.book-preview-cta-button {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(to right, #5e3d37, #4d302b);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.book-preview-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0.92;
}

/* Mobile: full-screen book preview */
@media (max-width: 768px) {
    .book-preview-content {
        max-width: 100%;
        height: 100%;
        padding: 8px;
        justify-content: center;
    }

    .book-preview-header {
        max-width: 100%;
        padding: 4px 0 8px;
    }

    .book-preview-mugshot {
        width: 36px;
        height: 36px;
    }

    .book-preview-child-name {
        font-size: 0.95rem;
    }

    .book-preview-close {
        top: 0;
        right: 4px;
        font-size: 1.8rem;
    }

    .book-preview-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }

    .book-preview-cta-button {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

/* ========================================
   Why Choose Us Section
   ======================================== */
.why-choose-us-section {
    padding: 3rem 1rem;
    background-color: #fff;
}

.why-choose-us-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.why-choose-us-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--cta-green);
    margin-bottom: 2.5rem;
}

.why-choose-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.why-choose-us-card {
    background-color: var(--book-card-background);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-choose-us-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(94, 61, 55, 0.12);
}

.why-choose-us-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.why-choose-us-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-choose-us-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.why-choose-us-card-text {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .why-choose-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .why-choose-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .why-choose-us-card {
        padding: 1.25rem 1rem;
    }

    .why-choose-us-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .why-choose-us-grid {
        grid-template-columns: 1fr;
    }

    .why-choose-us-card {
        padding: 1.5rem;
    }
}

/* ========================================
   Book Detail – Why Choose Us (compact)
   ======================================== */
.book-detail-extras {
    margin: 2rem clamp(16px, 3vw, 48px);
    padding-bottom: 1.5rem;
}

.book-detail-extras-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.book-detail-extras-content > .how-look-like:first-child {
    margin-bottom: 1.5rem;
}

.book-detail-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.book-detail-why-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-detail-why-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(94, 61, 55, 0.1);
}

.book-detail-why-icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
}

.book-detail-why-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-detail-why-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.2rem;
}

.book-detail-why-text p {
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .book-detail-extras {
        margin: 1.5rem 0.5rem;
    }

    .book-detail-extras-content {
        padding: 0 0.75rem;
    }

    .book-detail-why-grid {
        grid-template-columns: 1fr;
    }

    .book-detail-why-card {
        padding: 0.85rem 1rem;
    }

    .book-detail-why-icon {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
    }
}