/* =============================================
   Politics For All - Main Stylesheet
   ============================================= */

:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --primary-lighter: #5ba3d0;
    --accent: #c53030;
    --accent-hover: #9b2c2c;
    --success: #38a169;
    --success-light: #48bb78;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 25px 60px rgba(0,0,0,0.25);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}

/* =============================================
   NAVIGATION
   ============================================= */

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    flex-wrap: nowrap;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.nav-btn {
    padding: 5px 10px;
    text-decoration: none;
    background: #93c5f3;
    color: #1a365d;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
    transition: var(--transition);
    border: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #7ab8ed;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.user-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-white);
    border-top: 1px solid #e2e8f0;
}

.logout-btn {
    background: #e53e3e;
    color: white !important;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn {
    background: var(--primary);
    color: white;
    padding: 10px 28px;
}

.login-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-icon:hover {
    transform: scale(1.05);
}

.cart-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* =============================================
   SHOPPING CART SIDEBAR
   ============================================= */

.cart-sidebar {
    position: fixed;
    right: -420px;
    top: 0;
    width: 420px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    margin: 0;
}

.cart-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.cart-close svg {
    width: 20px;
    height: 20px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.cart-empty svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    stroke: var(--text-light);
}

.cart-empty p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    position: relative;
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 70px;
    height: 95px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

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

.cart-item-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 15px;
}

.cart-item-type {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success);
}

.cart-item-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(197, 48, 48, 0.1);
    border: none;
    color: var(--accent);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: var(--accent);
    color: white;
}

.cart-item-remove svg {
    width: 16px;
    height: 16px;
}

.cart-footer {
    border-top: 2px solid #e2e8f0;
    padding: 24px 30px;
    background: var(--bg-light);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.cart-tax {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.cart-checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56, 161, 105, 0.4);
}

.cart-checkout-btn svg {
    width: 20px;
    height: 20px;
}

.continue-shopping {
    display: block;
    text-align: center;
    color: var(--primary);
    text-decoration: none;
    margin-top: 14px;
    font-size: 14px;
    transition: var(--transition);
}

.continue-shopping:hover {
    color: var(--primary-light);
}

/* =============================================
   HEADER
   ============================================= */

header {
    background: var(--bg-white);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    max-width: 350px;
    height: auto;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

/* =============================================
   MAIN CONTAINER
   ============================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px;
    flex: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* =============================================
   BOOK GRID
   ============================================= */

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

.book-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    animation: fadeInUp 0.6s ease-out forwards;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.book-card:nth-child(1) { animation-delay: 0.1s; }
.book-card:nth-child(2) { animation-delay: 0.2s; }
.book-card:nth-child(3) { animation-delay: 0.3s; }

.book-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
}

.book-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.book-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.price-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--success);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    gap: 12px;
    opacity: 0;
    transition: var(--transition);
}

.book-card:hover .image-overlay {
    opacity: 1;
}

.overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.95);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.overlay-btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.overlay-btn svg {
    width: 18px;
    height: 18px;
}

.book-content {
    padding: 28px;
}

.book-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.book-description {
    color: var(--text-medium);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.book-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    flex: 1;
    min-width: 140px;
}

.btn-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: var(--success-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* =============================================
   MODALS - SHARED BASE COMPONENT
   All modals should use these shared classes
   ============================================= */

.modal-overlay,
.bg-modal-overlay,
.bg-preview-overlay,
.invite-modal-overlay,
.news-modal-overlay,
.writer-book-overlay,
.lightbox-overlay,
.reactors-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.modal-overlay.active,
.bg-modal-overlay.active,
.bg-preview-overlay.active,
.invite-modal-overlay.active,
.news-modal-overlay.active,
.writer-book-overlay.active,
.lightbox-overlay.active,
.reactors-modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Z-index hierarchy for modals */
.modal-overlay { z-index: 1000; }
.news-modal-overlay { z-index: 2000; }
.modal-overlay.content-modal { z-index: 3000; }
.bg-modal-overlay { z-index: 9999; }
.invite-modal-overlay { z-index: 9999; }
.bg-preview-overlay { z-index: 10000; }
.writer-book-overlay { z-index: 10000; }
.lightbox-overlay { z-index: 10000; }
.reactors-modal-overlay { z-index: 10000; }

/* Shared modal close button */
.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.modal-close:hover {
    background: var(--accent);
    color: white;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

/* Shared modal content container */
.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

/* =============================================
   CHECKOUT MODAL
   ============================================= */

.checkout-modal {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .checkout-modal {
    transform: translateY(0) scale(1);
}

.checkout-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.checkout-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.checkout-header p {
    opacity: 0.9;
    font-size: 14px;
}

.checkout-body {
    padding: 30px;
}

/* Order Summary */
.order-summary {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
}

/* Payment Method Selector */
.payment-method-selector {
    margin: 25px 0;
}

.payment-method-selector h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.payment-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 15px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method-btn:hover {
    border-color: var(--primary);
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.payment-method-btn.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.05) 0%, rgba(44, 82, 130, 0.05) 100%);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.payment-method-btn svg {
    flex-shrink: 0;
}

.apple-pay-btn {
    background: black !important;
    color: white !important;
}

.apple-pay-btn:hover {
    background: #333 !important;
}

.paypal-btn {
    background: #0070ba !important;
    color: white !important;
}

.paypal-btn:hover {
    background: #005ea6 !important;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.order-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.order-item-details {
    flex: 1;
}

.order-item-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.order-item-type {
    font-size: 13px;
    color: var(--text-light);
}

.order-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success);
}

.order-totals {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #cbd5e0;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.order-total-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 8px;
}

/* Credit Card Logos */
.accepted-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.accepted-cards span {
    font-size: 13px;
    color: var(--text-light);
    margin-right: 8px;
}

.card-logo {
    height: 28px;
    width: auto;
    opacity: 0.85;
    transition: var(--transition);
}

.card-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Square Card Container */
#card-container {
    min-height: 90px;
    margin-bottom: 20px;
}

/* Payment Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Pay Button */
.pay-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pay-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56, 161, 105, 0.4);
}

.pay-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pay-button svg {
    width: 20px;
    height: 20px;
}

/* Secure Payment Notice */
.secure-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 13px;
}

.secure-notice svg {
    width: 16px;
    height: 16px;
    color: var(--success);
}

/* Payment Status Messages */
.payment-status {
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: none;
}

.payment-status.show {
    display: block;
}

.payment-status.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.payment-status.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.payment-status.processing {
    background: #bee3f8;
    color: #2a4365;
    border: 1px solid #90cdf4;
}

/* Loading Spinner for Payment */
.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* =============================================
   BOOK VIEWER MODAL
   ============================================= */

.book-viewer {
    perspective: 2500px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.book-container {
    position: relative;
    width: 420px;
    height: 600px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.book-container:hover {
    transform: translateY(-5px);
}

.book-pages {
    position: absolute;
    inset: 0;
    background: #fffef8;
    border-radius: 0 10px 10px 0;
    box-shadow:
        inset 8px 0 20px rgba(0,0,0,0.08),
        0 0 40px rgba(0,0,0,0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.book-pages::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to right,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.05) 30%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 5;
}

.book-pages::after {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 12px;
    background: repeating-linear-gradient(
        to bottom,
        #f5f5f0 0px,
        #e8e8e0 1px,
        #f5f5f0 2px
    );
    border-radius: 0 2px 2px 0;
}

.book-pages-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 22px 30px 22px 45px;
    font-family: 'Playfair Display', Georgia, serif;
    position: relative;
    z-index: 2;
}

.book-pages-header h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.book-pages-header p {
    opacity: 0.85;
    font-size: 13px;
    font-family: 'Source Sans 3', sans-serif;
}

.book-pages-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    margin-left: 15px;
    background: white;
}

.book-preview-content {
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.pdf-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fffef8;
    color: var(--text-medium);
    gap: 15px;
}

.pdf-loading.hidden {
    display: none;
}

.spinner,
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.book-cover {
    position: absolute;
    inset: 0;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    cursor: pointer;
    z-index: 5;
}

.book-cover.open {
    transform: rotateY(-155deg);
}

.book-cover-front {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 0 10px 10px 0;
    overflow: hidden;
    box-shadow:
        0 0 50px rgba(0,0,0,0.5),
        5px 5px 30px rgba(0,0,0,0.4),
        inset -3px 0 10px rgba(0,0,0,0.1);
}

.book-cover-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover-front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255,255,255,0.1) 45%,
        rgba(255,255,255,0.2) 50%,
        rgba(255,255,255,0.1) 55%,
        transparent 70%
    );
    pointer-events: none;
}

.book-cover-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #f8f4eb 0%, #e8e0d0 100%);
    border-radius: 10px 0 0 10px;
    box-shadow: inset 5px 0 25px rgba(0,0,0,0.15);
}

.book-cover-back::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 4px;
}

.book-cover-back::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, rgba(0,0,0,0.15), transparent);
}

.book-spine {
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right,
        #1a1a1a 0%,
        #3d3d3d 20%,
        #2d2d2d 80%,
        #1a1a1a 100%
    );
    transform: rotateY(-90deg) translateX(-20px);
    transform-origin: right center;
    border-radius: 4px 0 0 4px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.book-spine::after {
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.click-hint {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.98);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.click-hint.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    pointer-events: none;
}

.click-hint svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

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

.close-book-btn {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
}

.close-book-btn.visible {
    opacity: 1;
    pointer-events: all;
}

.close-book-btn:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.4);
}

.close-book-btn svg {
    width: 18px;
    height: 18px;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
    background: var(--bg-white);
    padding: 50px 30px 30px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: auto;
}

.footer-contact {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.footer-contact a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--accent);
}

.visitor-count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 12px 28px;
    border-radius: 30px;
    margin-bottom: 25px;
    font-size: 15px;
    color: var(--text-medium);
}

.visitor-count strong {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 14px;
}

.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-links .divider {
    color: #ccc;
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    .nav-container {
        padding: 12px 20px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .container {
        padding: 30px 20px;
    }

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

    .book-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .btn {
        width: 100%;
    }

    .book-container {
        width: 280px;
        height: 400px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
    }

    .click-hint, .close-book-btn {
        bottom: -50px;
        font-size: 13px;
        padding: 10px 20px;
    }

    .checkout-modal {
        margin: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .accepted-cards {
        flex-wrap: wrap;
    }
}

/* =============================================
   ABOUT US MODAL
   ============================================= */

.about-modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 50px;
    box-shadow: var(--shadow-xl);
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    opacity: 0;
    -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .about-modal-content {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}

/* About Content Styling */
.about-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--primary);
}

.about-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.about-tagline {
    font-size: 18px;
    color: #000000;
    font-style: italic;
}

.about-section {
    margin-bottom: 35px;
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 900;
}

.about-section p {
    font-size: 17px;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 16px;
    font-weight: 700;
}

.about-section ul {
    margin-left: 25px;
    margin-top: 16px;
}

.about-section li {
    font-size: 17px;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 10px;
    font-weight: 700;
}

.about-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.about-section a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.about-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--bg-light);
}

.about-footer p {
    font-size: 18px;
    color: #000000;
    font-weight: 800;
}

/* Scrollbar styling for About modal */
.about-modal-content::-webkit-scrollbar {
    width: 10px;
}

.about-modal-content::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.about-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.about-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Writer Bio View - displayed in modal */
.writer-bio-view {
    padding: 10px 0;
}

.back-to-writers-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 25px;
    transition: background 0.3s, transform 0.2s;
}

.back-to-writers-btn:hover {
    background: var(--primary-light);
    transform: translateX(-3px);
}

.writer-bio-header {
    text-align: center;
    margin-bottom: 25px;
}

.writer-bio-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--primary);
    margin-bottom: 15px;
}

.writer-bio-name {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--primary);
    margin: 0;
}

.writer-bio-title {
    font-size: 18px;
    color: var(--primary);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
}

.writer-bio-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.writer-bio-content p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Legal content styling for modals */
.about-modal-content .legal-content ul,
.about-modal-content .legal-content ol,
#modalBody .legal-content ul,
#modalBody .legal-content ol,
.legal-content ul,
.legal-content ol {
    margin-left: 30px !important;
    padding-left: 20px !important;
    margin-bottom: 15px;
    list-style-position: outside !important;
}

.about-modal-content .legal-content li,
#modalBody .legal-content li,
.legal-content li {
    margin-bottom: 8px;
    padding-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-modal-content {
        padding: 30px 25px;
        max-height: 90vh;
    }

    .about-header h1 {
        font-size: 32px;
    }

    .about-section h2 {
        font-size: 24px;
    }

    .about-section p,
    .about-section li {
        font-size: 17px;
    }
}

/* =============================================
   POD (Print-on-Demand) PRODUCTS
   ============================================= */

.pod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.pod-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out forwards;
}

.pod-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pod-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
}

.pod-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.pod-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pod-content {
    padding: 20px;
}

.pod-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.pod-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.pod-option-group {
    flex: 1;
    min-width: 100px;
}

.pod-option-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 4px;
}

.pod-size-select,
.pod-color-select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.pod-size-select:hover,
.pod-color-select:hover {
    border-color: var(--primary-lighter);
}

.pod-size-select:focus,
.pod-color-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.pod-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.pod-actions {
    display: flex;
    gap: 10px;
}

.pod-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
}

/* Cart Quantity Controls */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

.cart-item-quantity span {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Cart Shipping Row */
.cart-shipping {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: var(--text-medium);
}

/* POD Card Clickable */
.pod-card {
    cursor: pointer;
}

.pod-click-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* POD Responsive */
@media (max-width: 600px) {
    .pod-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pod-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .pod-option-group {
        min-width: 100%;
    }
}

/* =============================================
   POD PRODUCT DETAIL MODAL
   ============================================= */

.pod-modal-content {
    background: #e8eaf6;
    border-radius: var(--radius-lg);
    max-width: 1000px;
    width: 95%;
    margin: auto 0;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

/* Media Section: Image + Thumbnails at top */
.pod-modal-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 30px 20px;
}

.pod-modal-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

.pod-modal-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.pod-modal-thumbnails {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 30px 20px;
    width: 100%;
    box-sizing: border-box;
}

.thumbnails-inner {
    display: flex;
    gap: 8px;
    overflow: hidden;
    flex: 0 1 auto;
    max-width: calc(100% - 90px);
}

.thumbnail-item {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.thumbnail-item:hover {
    border-color: var(--primary-lighter);
}

.thumbnail-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26, 54, 93, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-nav-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 16px;
}

.thumb-nav-btn:hover {
    background: var(--primary);
    color: white;
}

.thumb-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.thumb-nav-btn:disabled:hover {
    background: white;
    color: var(--primary);
}

/* Body Section: Two columns - Info left, Purchase right */
.pod-modal-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 30px 40px 40px;
    align-items: flex-start;
}

.pod-modal-info {
    display: flex;
    flex-direction: column;
}

.pod-modal-purchase {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pod-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #3949ab;
    margin-bottom: 16px;
    line-height: 1.3;
}

.pod-modal-description {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.8;
}

.pod-modal-description p {
    margin-bottom: 12px;
}

.pod-modal-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.9rem;
}

.pod-modal-description th,
.pod-modal-description td {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.pod-modal-description th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.pod-modal-description ul,
.pod-modal-description ol {
    margin: 12px 0;
    padding-left: 20px;
}

.pod-modal-description li {
    margin-bottom: 6px;
}

.pod-modal-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: #3949ab;
}

.pod-modal-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pod-modal-option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pod-modal-option-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.pod-modal-option-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    color: #333;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.pod-modal-option-group select:hover {
    border-color: #3949ab;
}

.pod-modal-option-group select:focus {
    outline: none;
    border-color: #3949ab;
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.1);
}

.pod-modal-quantity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pod-modal-quantity label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.quantity-controls button {
    width: 44px;
    height: 44px;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-controls button:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: none;
}

.quantity-controls button:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-left: none;
}

.quantity-controls button:hover {
    background: var(--primary);
    color: white;
}

.quantity-controls input {
    width: 60px;
    height: 44px;
    border: 2px solid var(--primary);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.quantity-controls input:focus {
    outline: none;
}

.pod-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pod-modal-add-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    background: #3949ab;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pod-modal-add-btn:hover {
    background: #303f9f;
    transform: translateY(-2px);
}

.pod-modal-buy-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    background: #1a365d;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pod-modal-buy-btn:hover {
    background: #0d1b2a;
    transform: translateY(-2px);
}

.pod-modal-customize-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.pod-modal-customize-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.customize-btn-img {
    max-width: 180px;
    height: auto;
    border-radius: 8px;
}

/* Continue Shopping Link */
.continue-shopping-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3949ab;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.continue-shopping-link:hover {
    color: #1a365d;
    text-decoration: underline;
}

.continue-shopping-link svg {
    transition: transform 0.3s ease;
}

.continue-shopping-link:hover svg {
    transform: translateX(-4px);
}

/* POD Modal Responsive */
@media (max-width: 768px) {
    .pod-modal-body {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }
    
    .pod-modal-media {
        padding: 20px 20px 15px;
    }
    
    .pod-modal-image img {
        max-height: 280px;
    }
    
    .pod-modal-title {
        font-size: 1.4rem;
    }
    
    .pod-modal-price {
        font-size: 1.75rem;
    }
    
    .pod-modal-description {
        max-height: 200px;
    }
}

/* Image Lightbox - uses shared overlay styles from MODALS section */

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: scale(1.1);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

/* Writer Bio View (displayed in modal) */
.writer-bio-view {
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.back-to-writers-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 25px;
    transition: background 0.3s;
}

.back-to-writers-btn:hover {
    background: var(--primary-light);
}

.writer-bio-header {
    text-align: center;
    margin-bottom: 20px;
}

.writer-bio-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 4px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
}

.writer-bio-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    color: var(--primary);
    margin: 0;
}

.writer-bio-title {
    font-size: 18px;
    color: var(--primary);
    margin: 20px 0 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.writer-bio-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.writer-bio-content p {
    margin-bottom: 16px;
    text-align: justify;
}

@media (max-width: 768px) {
    .writer-bio-view {
        padding: 15px;
    }
    
    .writer-bio-image {
        width: 120px;
        height: 120px;
    }
    
    .writer-bio-name {
        font-size: 24px;
    }
    
    .writer-bio-title {
        font-size: 16px;
    }
    
    .writer-bio-content {
        font-size: 15px;
    }
}
