@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;900&family=DM+Sans:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Book Clinic — Literary Navy & Gold (Light Version) */
    --primary-dark: #1B2A4A;
    --primary-blue: #C9A961;
    --accent-green: #B8964F;
    --accent-gold: #C9A961;
    --background-beige: #FAF7F0;
    --background-white: #FFFFFF;
    --text-dark: #2B2420;
    --text-muted: #6B6258;
    --text-light: rgba(43, 36, 32, 0.55);
    --border-light: #E5DFD0;
    --shadow-subtle: 0 2px 12px rgba(27, 42, 74, 0.08);
    --shadow-medium: 0 4px 20px rgba(27, 42, 74, 0.10);
    --shadow-elevated: 0 8px 30px rgba(201, 169, 97, 0.15);
    --surface: #FFFFFF;
    --surface-hover: #F3EFE6;
    --cyan-glow: rgba(201, 169, 97, 0.12);
    --cyan-border: #E5DFD0;

    /* Bootstrap 5.3 CSS variable overrides for light theme */
    --bs-body-bg: #FAF7F0;
    --bs-body-color: #2B2420;
    --bs-card-bg: #FFFFFF;
    --bs-card-color: #2B2420;
    --bs-border-color: #E5DFD0;
    --bs-secondary-color: #6B6258;
    --bs-tertiary-bg: #F3EFE6;
    --bs-tertiary-color: #6B6258;
    --bs-emphasis-color: #1B2A4A;
    --bs-heading-color: #1B2A4A;
    --bs-link-color: #C9A961;
    --bs-link-hover-color: #B8964F;
}

/* Admin body — keep light theme for admin panel */
.admin-body {
    --primary-dark: #2c3e50;
    --primary-blue: #1a365d;
    --accent-green: #2d6a4f;
    --accent-gold: #c9a227;
    --background-beige: #f8f6f3;
    --background-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border-light: #e5e7eb;
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.16);
    --surface: #ffffff;
    --surface-hover: #f8f9fa;
    --cyan-glow: rgba(0, 0, 0, 0.05);
    --cyan-border: #e5e7eb;

    /* Reset Bootstrap CSS variables to light theme for admin */
    --bs-body-bg: #f8f6f3;
    --bs-body-color: #1a1a1a;
    --bs-card-bg: #ffffff;
    --bs-card-color: #1a1a1a;
    --bs-border-color: #e5e7eb;
    --bs-secondary-color: #6b7280;
    --bs-tertiary-bg: #f8f9fa;
    --bs-tertiary-color: #6b7280;
    --bs-emphasis-color: #1a1a1a;
    --bs-heading-color: #1a1a1a;
    --bs-link-color: #1a365d;
    --bs-link-hover-color: #2c3e50;
}

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

/* ==========================================
   PAGE TRANSITION PRELOADER
   ========================================== */
#page-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #FAF7F0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* --- Animated Book Logo --- */
.preloader-logo {
    perspective: 600px;
    margin-bottom: 4px;
}

.preloader-logo-img {
    width: 140px;
    height: auto;
    object-fit: contain;
    display: block;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.preloader-book {
    position: relative;
    width: 70px;
    height: 90px;
    transform-style: preserve-3d;
    animation: bookFloat 3s ease-in-out infinite;
}

@keyframes bookFloat {
    0%, 100% { transform: translateY(0) rotateZ(-2deg); }
    50% { transform: translateY(-10px) rotateZ(2deg); }
}

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, #C9A961 0%, #B8964F 100%);
    border-radius: 3px 0 0 3px;
    box-shadow: 0 0 15px rgba(201, 169, 97, 0.5);
}

.book-cover {
    position: absolute;
    left: 8px;
    top: 0;
    width: 62px;
    height: 100%;
    background: linear-gradient(135deg, #1B2A4A 0%, #2A3A5A 100%);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 10px;
    width: 100%;
}

.book-lines span {
    height: 3px;
    border-radius: 2px;
    background: rgba(201, 169, 97, 0.4);
    animation: linePulse 1.5s ease-in-out infinite;
}

.book-lines span:nth-child(1) { width: 70%; animation-delay: 0s; }
.book-lines span:nth-child(2) { width: 90%; animation-delay: 0.2s; }
.book-lines span:nth-child(3) { width: 50%; animation-delay: 0.4s; }

@keyframes linePulse {
    0%, 100% { background: rgba(201, 169, 97, 0.2); }
    50% { background: rgba(201, 169, 97, 0.7); }
}

/* Page flip effect */
.book-page-flip {
    position: absolute;
    left: 8px;
    top: 0;
    width: 62px;
    height: 100%;
    background: linear-gradient(90deg, rgba(201, 169, 97, 0.15), transparent);
    border-radius: 0 6px 6px 0;
    transform-origin: left center;
    animation: pageFlip 2s ease-in-out infinite;
}

@keyframes pageFlip {
    0%, 100% { transform: rotateY(0deg); opacity: 0; }
    20% { opacity: 1; }
    50% { transform: rotateY(-160deg); opacity: 0; }
    51% { transform: rotateY(0deg); opacity: 0; }
}

/* --- Animated Text --- */
.preloader-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
}

.preloader-text span {
    display: inline-block;
    color: rgba(27, 42, 74, 0.2);
    animation: textReveal 2.5s ease-in-out infinite;
}

.preloader-text span:nth-child(1) { animation-delay: 0.0s; }
.preloader-text span:nth-child(2) { animation-delay: 0.08s; }
.preloader-text span:nth-child(3) { animation-delay: 0.16s; }
.preloader-text span:nth-child(4) { animation-delay: 0.24s; }
.preloader-text span:nth-child(5) { animation-delay: 0.32s; }
.preloader-text span:nth-child(6) { animation-delay: 0.40s; }
.preloader-text span:nth-child(7) { animation-delay: 0.48s; }
.preloader-text span:nth-child(8) { animation-delay: 0.56s; }
.preloader-text span:nth-child(9) { animation-delay: 0.64s; }
.preloader-text span:nth-child(10) { animation-delay: 0.72s; }
.preloader-text span:nth-child(11) { animation-delay: 0.80s; }

@keyframes textReveal {
    0%, 100% { color: rgba(27, 42, 74, 0.2); transform: translateY(0); }
    50% { color: #C9A961; transform: translateY(-3px); text-shadow: 0 0 12px rgba(201, 169, 97, 0.4); }
}

.preloader-space {
    width: 12px !important;
}

/* --- Loading Bar --- */
.preloader-bar {
    width: 160px;
    height: 3px;
    background: rgba(201, 169, 97, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.preloader-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #C9A961, #B8964F);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.5);
    animation: barFill 1.8s ease-in-out infinite;
}

@keyframes barFill {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

/* --- Background Glow --- */
.preloader-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.08) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* --- Fade-out animation for page content --- */
.page-fade-out {
    animation: pageFadeOut 0.3s ease forwards;
}

@keyframes pageFadeOut {
    to { opacity: 0; }
}

/* ==========================================
   PAYMENT PROCESSING OVERLAY
   ========================================== */
.payment-processing-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 42, 74, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-processing-card {
    background: #fff;
    border-radius: 20px;
    padding: 50px 60px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 90%;
    animation: paymentCardIn 0.4s ease forwards;
}

@keyframes paymentCardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.payment-processing-spinner {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

.payment-processing-spinner .spinner-ring {
    position: absolute;
    width: 54px;
    height: 54px;
    margin: 5px;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: paymentSpin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.payment-processing-spinner .spinner-ring:nth-child(1) {
    border-top-color: #1B2A4A;
    animation-delay: -0.45s;
}

.payment-processing-spinner .spinner-ring:nth-child(2) {
    border-right-color: #C9A961;
    animation-delay: -0.3s;
}

.payment-processing-spinner .spinner-ring:nth-child(3) {
    border-bottom-color: #1B2A4A;
    animation-delay: -0.15s;
}

.payment-processing-spinner .spinner-ring:nth-child(4) {
    border-left-color: #C9A961;
    animation-delay: 0s;
}

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

.payment-processing-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1B2A4A;
    margin-bottom: 12px;
}

.payment-processing-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #555;
    margin-bottom: 6px;
}

.payment-processing-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #999;
    margin: 0;
}

.page-fade-in {
    animation: pageFadeIn 0.5s ease forwards;
}

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

body {
    font-family: 'DM Sans', 'Inter', sans-serif;
    background-color: var(--background-beige);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Custom scrollbar for dark theme */
body:not(.admin-body)::-webkit-scrollbar {
    width: 6px;
}
body:not(.admin-body)::-webkit-scrollbar-track {
    background: #FFFFFF;
}
body:not(.admin-body)::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
}

/* Text selection */
body:not(.admin-body) ::selection {
    background: rgba(201, 169, 97, 0.3);
    color: #1B2A4A;
}

/* Top Bar */
.top-bar {
    background-color: #1B2A4A;
    color: rgba(255, 255, 255, 0.9);
    padding: 7px 0;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}

.top-bar .promo-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar .promo-item i {
    font-size: 12px;
    color: var(--primary-blue);
}

.top-bar .utility-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.top-bar .utility-link:hover {
    color: var(--primary-blue);
}

/* Switch Site Button (Top Bar) */
.switch-site-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1B2A4A;
    text-decoration: none;
    background: linear-gradient(135deg, #C9A961 0%, #B8964F 100%);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.switch-site-btn:hover {
    color: #1B2A4A;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(201, 169, 97, 0.4);
}

.switch-site-btn i {
    font-size: 11px;
}

/* Switch Site Button (Mobile Nav) */
.btn-switch-site {
    background: linear-gradient(135deg, #C9A961 0%, #B8964F 100%);
    color: #1B2A4A;
    border: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-switch-site:hover {
    color: #1B2A4A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.35);
}

/* Main Navigation — Two-Row Layout */
.main-nav {
    background-color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(27, 42, 74, 0.06), 0 4px 20px rgba(27, 42, 74, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #E5DFD0;
}

/* Row 1: Logo | Search | Icons */
.main-nav-top {
    padding: 14px 0;
}

.nav-row-top {
    gap: 20px;
}

.nav-brand-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-search-col {
    flex: 1;
    max-width: 500px;
    justify-content: center;
    display: flex;
}

.nav-icons-col {
    flex-shrink: 0;
}

/* Row 2: Full-width Navigation Menu */
.main-nav-bottom {
    border-top: 1px solid #E5DFD0;
    background-color: #FAF7F0;
}

.nav-menu-bar {
    padding: 6px 0;
}

.nav-menu-bar .nav-link {
    padding: 10px 18px !important;
}

/* Navigation Dropdown */
.nav-item-dropdown {
    position: relative;
}

.nav-dropdown-arrow {
    font-size: 10px !important;
    margin-left: 2px;
    transition: transform 0.3s;
}

.nav-item-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #FFFFFF;
    border: 1px solid #E5DFD0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(27, 42, 74, 0.15);
    min-width: 200px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #2B2420;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background: rgba(201, 169, 97, 0.08);
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-dropdown-item i {
    font-size: 13px;
    color: var(--primary-blue);
}

.nav-dropdown-divider {
    height: 1px;
    background: #E5DFD0;
    margin: 6px 8px;
}

.main-nav .nav-row {
    flex-wrap: nowrap;
    align-items: center;
}

.main-nav .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #1B2A4A !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    text-decoration: none;
    white-space: nowrap;
    padding: 5px 0;
}

.main-nav .navbar-brand i {
    color: var(--primary-blue);
    font-size: 22px;
}

.main-nav .navbar-brand .navbar-logo {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

.main-nav .navbar-brand .navbar-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #1B2A4A;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(27, 42, 74, 0.2);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.main-nav .navbar-brand .navbar-logo + i {
    margin-left: 4px;
}

.main-nav .nav-link {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(43, 36, 32, 0.75) !important;
    padding: 8px 12px !important;
    position: relative;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 6px;
    white-space: nowrap;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--primary-blue) !important;
    background: rgba(201, 169, 97, 0.06);
}

.main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background-color: var(--primary-blue);
}

/* Nav right section */
.main-nav .nav-right {
    flex-wrap: nowrap;
}

/* Mobile Navigation */
.main-nav .navbar-toggler {
    background: none;
    border: none;
    font-size: 20px;
    color: #1B2A4A;
    padding: 8px;
}

.main-nav .collapse {
    background: #FFFFFF;
    border-radius: 10px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--cyan-border);
}

.main-nav .collapse .nav-link {
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(27, 42, 74, 0.08);
}

.main-nav .collapse .nav-link:last-child {
    border-bottom: none;
}

/* Logout Button (Mobile) */
.btn-logout {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-logout:hover {
    background: rgba(255, 107, 107, 0.25);
    color: #ff6b6b;
}

/* Search Bar */
.search-container {
    position: relative;
    max-width: 220px;
    width: 100%;
}

.search-container-center {
    max-width: 480px;
    width: 100%;
}

.search-container input {
    border: 1px solid #E5DFD0;
    border-radius: 24px;
    padding: 10px 42px 10px 20px;
    font-size: 14px;
    background-color: #FAF7F0;
    color: var(--text-dark);
    transition: all 0.3s;
    width: 100%;
}

.search-container input::placeholder {
    color: var(--text-muted);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--surface);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.12);
}

.search-container > i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    pointer-events: none;
}

#search-results,
#search-results-mobile {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--cyan-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(27, 42, 74, 0.12);
    z-index: 1000;
    max-height: 420px;
    overflow-y: auto;
    display: none;
    padding: 6px;
}

#search-results .search-item,
#search-results-mobile .search-item {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

#search-results .search-item:hover,
#search-results-mobile .search-item:hover {
    background: rgba(201, 169, 97, 0.08);
}

#search-results .search-item:last-child,
#search-results-mobile .search-item:last-child {
    border-bottom: none;
}

.search-item-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-item-img {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}

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

.search-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-item-info h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'DM Sans', sans-serif;
}

.search-item-author {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
}

.search-item-footer {
    text-align: center;
    font-size: 13px;
    color: var(--primary-blue);
    font-weight: 500;
    border-top: 1px solid var(--cyan-border);
    margin-top: 4px;
    padding-top: 10px;
}

.search-item-empty {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    padding: 24px 12px;
}

/* Icon Buttons */
.icon-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 18px;
    color: rgba(27, 42, 74, 0.7);
    cursor: pointer;
    padding: 6px;
    transition: color 0.3s;
    text-decoration: none;
}

.icon-btn:hover {
    color: var(--primary-blue);
}

.icon-btn .badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-blue);
    color: #1B2A4A;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, #C9A961 0%, #B8964F 100%);
    color: #1B2A4A;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-login:hover {
    background: linear-gradient(135deg, #B8964F 0%, #A6863F 100%);
    color: #1B2A4A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.3);
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: relative;
}

.user-profile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 30px;
    transition: background 0.3s;
    white-space: nowrap;
}

.user-profile-toggle:hover {
    background: rgba(201, 169, 97, 0.08);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9A961 0%, #B8964F 100%);
    color: #1B2A4A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: rgba(27, 42, 74, 0.85);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile-toggle .fa-chevron-down {
    font-size: 10px;
    color: var(--text-muted);
}

.user-profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(27, 42, 74, 0.12);
    border: 1px solid var(--cyan-border);
    min-width: 260px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.user-profile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 12px;
    border-bottom: 1px solid var(--cyan-border);
    margin-bottom: 8px;
}

.user-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9A961 0%, #B8964F 100%);
    color: #1B2A4A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.user-profile-header h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.user-profile-header p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 170px;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.user-menu-item:hover {
    background: rgba(201, 169, 97, 0.08);
    color: var(--primary-blue);
    text-decoration: none;
}

.user-menu-item i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
}

.user-menu-item:hover i {
    color: var(--primary-blue);
}

.user-menu-item.logout {
    color: #ff6b6b;
}

.user-menu-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.user-menu-item.logout i {
    color: #ff6b6b;
}

.user-menu-divider {
    height: 1px;
    background: var(--cyan-border);
    margin: 8px 0;
}

/* Hero Section */
.hero-section {
    background: #1B2A4A;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hero-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.4);
    color: #C9A961;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.hero-section h1 {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-section .hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Hero content sits on top of carousel */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Full-background carousel */
.hero-carousel-fullbg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #1B2A4A;
}

.hero-carousel-fullbg .hero-carousel-track {
    height: 100% !important;
}

.hero-carousel-fullbg .hero-carousel-slide {
    height: 100% !important;
}

.hero-carousel-fullbg .hero-carousel-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Dark overlay for text readability over carousel images */
.hero-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(27, 42, 74, 0.82) 0%, rgba(27, 42, 74, 0.55) 50%, rgba(27, 42, 74, 0.25) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Solid color / single image background fallbacks */
.hero-bg-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* When no carousel (solid color bg), use dark text on light bg */
.hero-section:has(.hero-bg-color) h1,
.hero-section:has(.hero-bg-color) .hero-description {
    color: #1B2A4A;
}
.hero-section:has(.hero-bg-color) .hero-description {
    color: #6B6258;
}

.hero-section .hero-cta {
    display: flex;
    gap: 16px;
}

.btn-primary-athenaeum {
    background: linear-gradient(135deg, #C9A961 0%, #B8964F 100%);
    color: #1B2A4A;
    border: none;
    padding: 13px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.2);
}

.btn-primary-athenaeum:hover {
    background: linear-gradient(135deg, #B8964F 0%, #A6863F 100%);
    color: #1B2A4A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.35);
    text-decoration: none;
}

/* Shopping Cart */
.cart-item-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--cyan-border);
}

.cart-item-row:last-child {
    border-bottom: none;
}

.cart-item-img {
    flex-shrink: 0;
    width: 80px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}

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

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-item-price {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-item-quantity {
    flex-shrink: 0;
}

.cart-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--cyan-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}

.cart-quantity-selector button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--surface);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.cart-quantity-selector button:hover {
    background: var(--primary-blue);
    color: #1B2A4A;
}

.cart-quantity-selector input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.cart-quantity-selector input::-webkit-outer-spin-button,
.cart-quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-total {
    flex-shrink: 0;
    text-align: right;
    min-width: 90px;
}

.cart-item-total-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: 'Playfair Display', serif;
}

.cart-item-remove {
    flex-shrink: 0;
}

.cart-remove-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--cyan-border);
    border-radius: 8px;
    background: var(--surface);
    color: #ff6b6b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-remove-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Cart Summary */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.summary-divider {
    height: 1px;
    background: var(--cyan-border);
    margin: 12px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    font-family: 'Playfair Display', serif;
}

.cart-free-shipping-badge {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin: 12px 0;
    text-align: center;
}

.cart-shipping-progress {
    margin: 12px 0;
}

.shipping-progress-bar {
    height: 6px;
    background: var(--surface);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 6px;
}

.shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-green));
    border-radius: 10px;
    transition: width 0.5s;
}

/* Coupon Input */
.cart-coupon-input {
    display: flex;
    gap: 8px;
}

.cart-coupon-input input {
    flex: 1;
    border: 1px solid var(--cyan-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    text-transform: uppercase;
    background: var(--surface);
    color: var(--text-dark);
}

.cart-coupon-input input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.cart-coupon-input button {
    flex-shrink: 0;
    background: var(--primary-blue);
    color: #1B2A4A;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.cart-coupon-input button:hover {
    background: var(--primary-dark);
}

/* Responsive Cart */
@media (max-width: 768px) {
    .cart-item-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    .cart-item-img {
        width: 60px;
        height: 75px;
    }
    .cart-item-info {
        flex: 1 1 calc(100% - 76px);
    }
    .cart-item-quantity {
        order: 3;
    }
    .cart-item-total {
        order: 4;
        text-align: left;
    }
    .cart-item-remove {
        order: 5;
        margin-left: auto;
    }
}

/* Customer Reviews Marquee */
.reviews-marquee-section {
    padding: 60px 0 70px;
    background: var(--primary-dark);
    overflow: hidden;
    position: relative;
}

.reviews-marquee-section::before,
.reviews-marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.reviews-marquee-section::before {
    left: 0;
    background: linear-gradient(to right, var(--primary-dark), transparent);
}

.reviews-marquee-section::after {
    right: 0;
    background: linear-gradient(to left, var(--primary-dark), transparent);
}

.reviews-marquee-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.reviews-marquee-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.reviews-marquee-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

/* Marquee Wrapper */
.marquee-wrapper {
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.marquee-wrapper:last-child {
    margin-bottom: 0;
}

/* Marquee Track */
.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.marquee-left {
    animation: marqueeScrollLeft 60s linear infinite;
}

.marquee-right {
    animation: marqueeScrollRight 50s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes marqueeScrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* Marquee Card */
.marquee-card {
    flex-shrink: 0;
    width: 340px;
    background: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 24px;
    transition: border-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.marquee-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}

.marquee-card-stars {
    margin-bottom: 12px;
    color: #f4a900;
    font-size: 14px;
    letter-spacing: 2px;
}

.marquee-card-text {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.marquee-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.marquee-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.marquee-card-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.marquee-card-book {
    color: var(--text-muted);
    font-size: 12px;
}

@media (max-width: 768px) {
    .marquee-card {
        width: 280px;
        padding: 18px;
    }

    .marquee-left {
        animation-duration: 40s;
    }

    .marquee-right {
        animation-duration: 35s;
    }

    .reviews-marquee-header h2 {
        font-size: 26px;
    }

    .reviews-marquee-section::before,
    .reviews-marquee-section::after {
        width: 60px;
    }
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 0 20px;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--cyan-border);
    z-index: 0;
}

.checkout-steps .step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.checkout-steps .step i {
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--cyan-border);
    color: var(--text-muted);
    font-size: 18px;
    margin: 0 auto;
    display: block;
    transition: all 0.3s;
}

.checkout-steps .step p {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
}

.checkout-steps .step.active i {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #1B2A4A;
    box-shadow: 0 0 16px rgba(201, 169, 97, 0.4);
}

.checkout-steps .step.active p {
    color: var(--text-dark);
    font-weight: 600;
}

.checkout-steps .step.completed i {
    background: rgba(201, 169, 97, 0.15);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.checkout-steps .step.completed p {
    color: var(--text-muted);
}

/* Order Success Page */
.order-success-header {
    animation: fadeInUp 0.6s ease forwards;
}

/* Animated Checkmark */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    background: rgba(25, 135, 84, 0.15);
    border: 3px solid #198754;
    animation: checkPulse 0.6s ease 0.2s forwards;
    transform: scale(0);
}

@keyframes checkPulse {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.check-icon .icon-line {
    height: 4px;
    background: #198754;
    display: block;
    border-radius: 2px;
    position: absolute;
    transform-origin: left center;
}

.check-icon .line-tip {
    width: 25px;
    left: 18px;
    top: 42px;
    transform: rotate(45deg);
    animation: tipDraw 0.3s ease 0.5s forwards;
    transform: rotate(45deg) scaleX(0);
}

.check-icon .line-long {
    width: 45px;
    left: 32px;
    top: 38px;
    transform: rotate(-45deg);
    animation: longDraw 0.4s ease 0.7s forwards;
    transform: rotate(-45deg) scaleX(0);
}

@keyframes tipDraw {
    to { transform: rotate(45deg) scaleX(1); }
}

@keyframes longDraw {
    to { transform: rotate(-45deg) scaleX(1); }
}

.check-icon .icon-circle {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(25, 135, 84, 0.2);
    animation: circleExpand 0.4s ease 0.3s forwards;
    transform: scale(0);
}

@keyframes circleExpand {
    to { transform: scale(1); }
}

.check-icon .icon-fix {
    position: absolute;
    top: 36px;
    left: 28px;
    width: 8px;
    height: 8px;
    background: rgba(25, 135, 84, 0.15);
    border-radius: 50%;
    z-index: 1;
}

/* Order Reference Badge */
.order-ref-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(201, 169, 97, 0.1);
    border: 1px solid var(--cyan-border);
    border-radius: 30px;
    padding: 10px 24px;
    margin-top: 20px;
}

.order-ref-badge span {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-ref-badge strong {
    font-size: 18px;
    color: var(--primary-blue);
    font-family: monospace;
}

/* Order Timeline */
.order-timeline {
    position: relative;
    padding-left: 0;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 28px;
    position: relative;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--cyan-border);
}

.timeline-step.completed:not(:last-child)::after,
.timeline-step.active:not(:last-child)::after {
    background: var(--primary-blue);
    opacity: 0.4;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--cyan-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 14px;
    z-index: 1;
    transition: all 0.3s;
}

.timeline-step.completed .timeline-dot {
    background: #198754;
    border-color: #198754;
    color: white;
}

.timeline-step.active .timeline-dot {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #1B2A4A;
    box-shadow: 0 0 16px rgba(201, 169, 97, 0.4);
}

.timeline-info h6 {
    font-size: 14px;
    margin: 0 0 2px 0;
}

.timeline-info small {
    font-size: 12px;
}

/* Order Items List */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 10px;
    background: var(--surface-hover);
    border: 1px solid var(--cyan-border);
}

.order-item-img {
    width: 56px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--cyan-border);
}

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

.order-item-details {
    flex-grow: 1;
    min-width: 0;
}

.order-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.meta-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-badge.format-paperback { background: rgba(108,117,125,0.2); color: #adb5bd; }
.meta-badge.format-ebook { background: rgba(13,110,253,0.2); color: #5b9dff; }
.meta-badge.format-combo { background: rgba(25,135,84,0.2); color: #51cf66; }
.meta-badge.format-both { background: rgba(25,135,84,0.2); color: #51cf66; }

.order-item-price {
    flex-shrink: 0;
    text-align: right;
}

/* Summary Rows */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-method-info i {
    font-size: 18px;
}

/* E-book Download Card */
.ebook-download-card {
    border: 1px solid rgba(201, 169, 97, 0.3) !important;
    background: linear-gradient(135deg, rgba(201,169,97,0.05), rgba(184,150,79,0.02)) !important;
}

.ebook-download-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ebook-download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--cyan-border);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.ebook-download-item:hover {
    border-color: var(--primary-blue);
    background: var(--surface-hover);
    transform: translateX(4px);
}

.ebook-download-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(220, 53, 69, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ebook-download-icon i {
    color: #ff6b6b;
    font-size: 20px;
}

.ebook-download-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ebook-download-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

.ebook-download-hint {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.ebook-download-arrow {
    color: var(--primary-blue);
    font-size: 14px;
    transition: transform 0.3s;
}

.ebook-download-item:hover .ebook-download-arrow {
    transform: translateX(4px);
}

/* Help Contact */
.help-contact {
    margin-bottom: 8px;
}

.help-contact a:hover {
    text-decoration: underline !important;
}

/* Auth Pages (Login / Signup) */
.auth-card {
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(27, 42, 74, 0.08);
    overflow: hidden;
    border: 1px solid var(--cyan-border);
}

.auth-card-body {
    padding: 48px 40px;
}

/* ==========================================
   OTP VERIFICATION UI
   ========================================== */
.otp-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.otp-step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.otp-step.active {
    opacity: 1;
}

.otp-step.completed {
    opacity: 0.7;
}

.otp-step .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--cyan-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s;
}

.otp-step.active .step-number {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #1B2A4A;
    box-shadow: 0 0 12px rgba(201, 169, 97, 0.4);
}

.otp-step.completed .step-number {
    background: rgba(201, 169, 97, 0.15);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.otp-step .step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.otp-step.active .step-label {
    color: #1B2A4A;
}

.otp-step-divider {
    width: 24px;
    height: 2px;
    background: var(--cyan-border);
    border-radius: 2px;
}

/* OTP Input boxes */
.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1B2A4A;
    background: var(--surface);
    border: 2px solid var(--cyan-border);
    border-radius: 10px;
    transition: all 0.2s;
    outline: none;
}

.otp-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
    background: var(--surface-hover);
}

.otp-input::placeholder {
    color: transparent;
}

/* OTP timer & resend */
.otp-timer {
    min-height: 24px;
}

.otp-resend-btn {
    color: var(--primary-blue) !important;
    font-weight: 600;
    text-decoration: none;
}

.otp-resend-btn:hover {
    text-decoration: underline;
}

.otp-resend-btn:disabled {
    opacity: 0.5;
}

/* OTP verify section */
.otp-verify-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 8px;
}

/* Responsive OTP */
@media (max-width: 480px) {
    .otp-input {
        width: 40px;
        height: 48px;
        font-size: 18px;
    }

    .otp-input-group {
        gap: 6px;
    }

    .otp-step .step-label {
        display: none;
    }

    .auth-card-body {
        padding: 32px 20px;
    }
}

.auth-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: rgba(201, 169, 97, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-blue);
}

.auth-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #1B2A4A;
    margin-bottom: 8px;
}

.auth-card .input-group-text {
    background: var(--surface);
    border: 1px solid var(--cyan-border);
    color: var(--text-muted);
}

.auth-card .form-control {
    border: 1px solid var(--cyan-border);
    padding: 12px;
    font-size: 14px;
    background-color: var(--surface);
    color: var(--text-dark);
}

.auth-card .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 97, 0.1);
}

.auth-card .form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.auth-card .btn-primary-athenaeum {
    padding: 13px;
    font-size: 15px;
}

.btn-secondary-athenaeum {
    background-color: transparent;
    color: #1B2A4A;
    border: 1px solid #E5DFD0;
    padding: 13px 30px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary-athenaeum:hover {
    border-color: var(--primary-blue);
    background-color: rgba(201, 169, 97, 0.08);
    color: var(--primary-blue);
    text-decoration: none;
}

/* Secondary button on dark hero/carousel background */
.hero-section .btn-secondary-athenaeum {
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.05);
}

.hero-section .btn-secondary-athenaeum:hover {
    border-color: #C9A961;
    background-color: rgba(201, 169, 97, 0.15);
    color: #C9A961;
}

/* Hero Image Grid */
.hero-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.hero-image-grid .hero-image-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    height: 200px;
}

.hero-image-grid .hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-image-grid .hero-image-card:hover img {
    transform: scale(1.05);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(27, 42, 74, 0.15);
    height: 420px;
    background: #E5DFD0;
}

.hero-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.hero-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.hero-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(27, 42, 74, 0.85));
    padding: 40px 24px 20px;
    color: #FFFFFF;
}

.hero-carousel-caption h5 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #FFFFFF;
}

.hero-carousel-caption p {
    font-size: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Carousel Controls */
.hero-carousel-prev,
.hero-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #1B2A4A;
    z-index: 5;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-carousel-prev:hover,
.hero-carousel-next:hover {
    background: #FFFFFF;
    color: #C9A961;
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel-prev { left: 16px; }
.hero-carousel-next { right: 16px; }

/* Carousel Dots */
.hero-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-carousel-dot.active {
    background: #C9A961;
    width: 28px;
    border-radius: 5px;
}

.hero-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-carousel-dot.active:hover {
    background: #C9A961;
}

/* Secondary Hero Banner */
.hero-banner-secondary {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-banner-secondary .hero-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 169, 97, 0.15);
    border: 1px solid rgba(201, 169, 97, 0.3);
    color: var(--primary-blue);
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-banner-secondary .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.hero-banner-secondary .btn-outline-light:hover {
    background: var(--primary-blue);
    color: #1B2A4A;
}

/* Featured Section */
.featured-section {
    padding: 80px 0;
    background-color: var(--surface);
}

/* Hardcover Offer Section */
.hardcover-offer-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #1B2A4A 0%, #243456 50%, #1B2A4A 100%);
    position: relative;
    overflow: hidden;
}

.hardcover-offer-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hardcover-offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.hardcover-offer-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #C9A961 0%, #B8964F 100%);
    color: #1B2A4A;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hardcover-offer-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.hardcover-discount {
    color: #C9A961;
    font-style: italic;
}

.hardcover-offer-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin: 0;
}

.hardcover-offer-btn {
    flex-shrink: 0;
}

/* Hardcover card on dark background */
.hardcover-card {
    border: 1px solid rgba(201, 169, 97, 0.2) !important;
}

.hardcover-card:hover {
    border-color: #C9A961 !important;
}

.hardcover-discount-badge {
    background: linear-gradient(135deg, #C9A961 0%, #B8964F 100%) !important;
    color: #1B2A4A !important;
    font-weight: 700;
    font-size: 13px !important;
    padding: 6px 14px !important;
}

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

.section-header h2 {
    font-size: 38px;
    margin-bottom: 12px;
    color: #1B2A4A;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 400;
}

/* Author Cards */
.author-card {
    background-color: var(--surface);
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(27, 42, 74, 0.06), 0 4px 16px rgba(27, 42, 74, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    border: 1px solid #E5DFD0;
}

.author-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(27, 42, 74, 0.12);
    border-color: var(--primary-blue);
}

.author-card .author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-blue);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.author-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.author-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

a .author-card {
    color: var(--text-dark);
}

a.btn-view-works,
.btn-view-works {
    display: inline-block;
    background-color: var(--surface);
    color: var(--text-dark);
    border: 1px solid var(--cyan-border);
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

a.btn-view-works:hover,
.btn-view-works:hover {
    border-color: var(--primary-blue);
    background-color: rgba(201, 169, 97, 0.08);
    color: var(--primary-blue);
    text-decoration: none;
}

/* Curated Collections */
.collections-section {
    padding: 80px 0;
    background-color: var(--background-beige);
}

.collections-section .view-all {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
}

.collections-section .view-all:hover {
    color: var(--accent-green);
}

/* Category Card */
.category-card {
    background-color: var(--surface);
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 1px 3px rgba(27, 42, 74, 0.06), 0 4px 16px rgba(27, 42, 74, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #E5DFD0;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(27, 42, 74, 0.10);
    border-color: var(--primary-blue);
}

.category-card h5 {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* Clickable Cards */
a:has(.product-card),
a:has(.author-card),
a:has(.category-card) {
    text-decoration: none;
    color: inherit;
    display: block;
}

a:has(.category-card):hover {
    text-decoration: none;
    color: inherit;
}

a .product-card,
a .author-card,
a .category-card,
.product-card-link,
.category-card-link {
    text-decoration: none;
    color: inherit;
}

.product-card-link:hover,
.category-card-link:hover {
    color: inherit;
}

/* Product Cards (New Design) */
a .product-card,
a .category-card,
.product-card-link .product-card,
.category-card-link .category-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

a:hover .product-card,
.product-card-link:hover .product-card {
    color: inherit;
}

a:hover .category-card,
.category-card-link:hover .category-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.product-card {
    background-color: var(--surface);
    border-radius: 14px;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(27, 42, 74, 0.06), 0 4px 16px rgba(27, 42, 74, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    position: relative;
    border: 1px solid #E5DFD0;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(27, 42, 74, 0.12);
    border-color: var(--primary-blue);
}

.product-card .product-image {
    position: relative;
    height: 220px;
    overflow: visible;
    background: #F3EFE6;
    border-radius: 8px 8px 0 0;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    border-radius: 8px 8px 0 0;
}

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

.product-card .discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #C9A961 0%, #B8964F 100%);
    color: #1B2A4A;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.product-card .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(27, 42, 74, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--cyan-border);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s;
    z-index: 10;
    color: #fff;
    font-size: 14px;
}

.product-card .wishlist-btn:hover {
    background-color: var(--primary-blue);
    color: #1B2A4A;
}

.product-card .wishlist-btn.wishlist-active {
    background-color: #ff4757;
    color: white;
    border-color: #ff4757;
}

.product-card .wishlist-btn.wishlist-active:hover {
    background-color: #ff3030;
    color: white;
}

/* Share button on product cards */
.product-card .share-btn {
    position: absolute;
    top: 10px;
    right: 52px;
    background: rgba(27, 42, 74, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--cyan-border);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s;
    color: #fff;
    font-size: 14px;
    z-index: 10;
}

.product-card .share-btn:hover {
    background-color: var(--primary-blue);
    color: var(--accent-gold);
    transform: scale(1.1);
}

/* Share dropdown */
.share-dropdown {
    position: absolute;
    top: 46px;
    right: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px;
    display: none;
    z-index: 1000;
    min-width: 180px;
    border: 1px solid #E5DFD0;
}

.share-dropdown.show {
    display: block;
    animation: shareFadeIn 0.2s ease;
}

@keyframes shareFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.share-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: background 0.2s;
}

.share-dropdown a:hover {
    background: #f5f5f5;
}

.share-dropdown a i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.share-dropdown .share-whatsapp { color: #25D366; }
.share-dropdown .share-facebook { color: #1877F2; }
.share-dropdown .share-twitter { color: #1DA1F2; }
.share-dropdown .share-linkedin { color: #0A66C2; }
.share-dropdown .share-telegram { color: #0088CC; }
.share-dropdown .share-copy { color: #6c757d; }

/* Share section on product detail page */
.product-share-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-share-section .share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 4px;
}

.product-share-section .share-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
    font-size: 15px;
}

.product-share-section .share-icon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.share-icon-btn.s-whatsapp { background: #25D366; }
.share-icon-btn.s-facebook { background: #1877F2; }
.share-icon-btn.s-twitter { background: #1DA1F2; }
.share-icon-btn.s-linkedin { background: #0A66C2; }
.share-icon-btn.s-telegram { background: #0088CC; }
.share-icon-btn.s-copy { background: #6c757d; }

.product-card .card-body {
    padding: 14px;
    border-radius: 0 0 14px 14px;
    background: var(--surface);
}

.product-card .book-title {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1B2A4A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .book-author {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .book-rating {
    color: var(--primary-blue);
    font-size: 12px;
    margin-bottom: 10px;
}

.product-card .book-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-blue);
}

.product-card .book-price .original-price {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

/* Filters Sidebar */
.filters-sidebar {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--cyan-border);
}

.shop-sidebar-sticky {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.shop-sidebar-sticky::-webkit-scrollbar {
    width: 4px;
}

.shop-sidebar-sticky::-webkit-scrollbar-track {
    background: transparent;
}

.shop-sidebar-sticky::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
}

.filters-sidebar .filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.filters-sidebar .filters-header h3 {
    font-size: 18px;
}

.filters-sidebar .reset-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
}

.filters-sidebar .reset-link:hover {
    color: var(--primary-blue);
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.filter-group select,
.filter-group input[type="range"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--cyan-border);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--surface);
    color: var(--text-dark);
}

.filter-group .checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-apply-filters {
    width: 100%;
    background: linear-gradient(135deg, #C9A961 0%, #B8964F 100%);
    color: #1B2A4A;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-apply-filters:hover {
    background: linear-gradient(135deg, #B8964F 0%, #A6863F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 169, 97, 0.3);
}

/* Subscription Section */
.subscription-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F3EFE6 100%);
    color: #2B2420;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--cyan-border);
    border-bottom: 1px solid var(--cyan-border);
}

.subscription-section i {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--primary-blue);
}

.subscription-section h3 {
    color: #1B2A4A;
    font-size: 28px;
    margin-bottom: 12px;
}

.subscription-section p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 24px;
}

.subscription-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 12px;
}

.subscription-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
}

.subscription-form button {
    background: linear-gradient(135deg, #C9A961 0%, #B8964F 100%);
    color: #1B2A4A;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.subscription-form button:hover {
    background: linear-gradient(135deg, #B8964F 0%, #A6863F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 169, 97, 0.3);
}

/* Footer */
footer {
    background-color: #1B2A4A;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
    border-top: 3px solid #C9A961;
    position: relative;
    z-index: 10;
    clear: both;
}

footer .footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    min-height: 36px;
}

footer .footer-logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
    margin: 0 0 4px 0;
    padding: 0;
}

footer .footer-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

footer .footer-logo i {
    color: var(--primary-blue);
}

footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

/* Secret Admin Link — discreet lock icon */
.secret-admin-link {
    display: inline-block;
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    text-decoration: none;
    vertical-align: middle;
    transition: color 0.3s, opacity 0.3s;
}

.secret-admin-link:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

footer h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

footer ul li a:hover {
    color: var(--primary-blue);
}

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

footer .social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    transition: all 0.3s;
    background: none;
    width: auto;
    height: auto;
}

footer .social-links a:hover {
    color: var(--primary-blue);
}

/* Social Links (General - for contact page) */
.social-links-alt {
    display: flex;
    gap: 12px;
}

.social-links-alt a {
    color: var(--primary-blue);
    font-size: 20px;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--cyan-border);
}

.social-links-alt a:hover {
    color: #1B2A4A;
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Card */
.card {
    border: 1px solid var(--cyan-border);
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
    background-color: var(--surface);
    color: var(--text-dark);
}

.card-body {
    color: var(--text-dark);
}

.card-header {
    background-color: var(--surface-hover);
    color: var(--text-dark);
    border-bottom: 1px solid var(--cyan-border);
}

/* Form Controls */
.form-control {
    border: 1px solid var(--cyan-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: var(--surface);
    color: var(--text-dark);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Form labels — ensure visible on dark theme */
body:not(.admin-body) .form-label {
    color: var(--text-dark);
}

/* Form check labels & inputs — dark theme overrides */
body:not(.admin-body) .form-check-label {
    color: var(--text-dark);
}

body:not(.admin-body) .form-check-input {
    background-color: var(--surface);
    border-color: var(--cyan-border);
}

body:not(.admin-body) .form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

body:not(.admin-body) .form-select {
    background-color: var(--surface);
    color: var(--text-dark);
    border-color: var(--cyan-border);
}

body:not(.admin-body) .form-select option {
    background-color: var(--surface);
    color: var(--text-dark);
}

/* Alert overrides for dark theme */
body:not(.admin-body) .alert {
    background-color: var(--surface);
    color: var(--text-dark);
    border: 1px solid var(--cyan-border);
}

body:not(.admin-body) .alert-danger {
    background-color: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
    border-color: rgba(220, 53, 69, 0.3);
}

body:not(.admin-body) .alert-success {
    background-color: rgba(25, 135, 84, 0.15);
    color: #51cf66;
    border-color: rgba(25, 135, 84, 0.3);
}

/* HR override for dark theme */
body:not(.admin-body) hr {
    border-color: var(--cyan-border);
    opacity: 0.5;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
    background-color: var(--surface);
    color: var(--text-dark);
}

.form-select {
    background-color: var(--surface);
    color: var(--text-dark);
    border-color: var(--cyan-border);
}

.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Links */
a {
    color: var(--primary-blue);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-green);
}

/* Text muted override for dark theme */
body:not(.admin-body) .text-muted {
    color: var(--text-muted) !important;
}

body:not(.admin-body) .text-dark {
    color: var(--text-dark) !important;
}

/* Bootstrap Table overrides for dark theme */
body:not(.admin-body) .table {
    color: var(--text-dark);
    border-color: var(--cyan-border);
}

body:not(.admin-body) .table > :not(caption) > * > * {
    background-color: transparent;
    color: var(--text-dark);
    border-bottom-color: var(--cyan-border);
}

body:not(.admin-body) .table thead th {
    border-bottom-color: var(--primary-blue);
    color: var(--text-dark);
}

body:not(.admin-body) .table tbody tr:hover {
    background-color: rgba(201, 169, 97, 0.05);
    color: var(--text-dark);
}

/* Bootstrap Modal overrides for dark theme */
body:not(.admin-body) .modal-content {
    background-color: var(--surface);
    border: 1px solid var(--cyan-border);
    color: var(--text-dark);
}

body:not(.admin-body) .modal-header {
    border-bottom-color: var(--cyan-border);
}

body:not(.admin-body) .modal-footer {
    border-top-color: var(--cyan-border);
}

body:not(.admin-body) .modal-title {
    color: var(--text-dark);
}

body:not(.admin-body) .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Bootstrap Dropdown overrides for dark theme */
body:not(.admin-body) .dropdown-menu {
    background-color: var(--surface);
    border: 1px solid var(--cyan-border);
}

body:not(.admin-body) .dropdown-item {
    color: var(--text-dark);
}

body:not(.admin-body) .dropdown-item:hover,
body:not(.admin-body) .dropdown-item:focus {
    background-color: rgba(201, 169, 97, 0.08);
    color: var(--primary-blue);
}

body:not(.admin-body) .dropdown-divider {
    border-color: var(--cyan-border);
}

/* Bootstrap Alert overrides for dark theme */
body:not(.admin-body) .alert {
    border-color: var(--cyan-border);
}

/* List group overrides for dark theme */
body:not(.admin-body) .list-group-item {
    background-color: var(--surface);
    border-color: var(--cyan-border);
    color: var(--text-dark);
}

body:not(.admin-body) .list-group-item:hover {
    background-color: var(--surface-hover);
}

/* Input group text override */
body:not(.admin-body) .input-group-text {
    background-color: var(--surface);
    border-color: var(--cyan-border);
    color: var(--text-muted);
}

/* Breadcrumb */
body:not(.admin-body) .breadcrumb-item a {
    color: var(--text-muted);
}

body:not(.admin-body) .breadcrumb-item a:hover {
    color: var(--primary-blue);
}

body:not(.admin-body) .breadcrumb-item.active {
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 1200px) {
    .main-nav .nav-link {
        padding: 8px 10px !important;
        font-size: 13px;
    }

    .search-container {
        max-width: 160px;
    }
}

@media (max-width: 992px) {
    .main-nav .navbar-brand {
        font-size: 18px;
    }

    .main-nav .navbar-brand i {
        font-size: 20px;
    }

    .main-nav .navbar-brand .navbar-logo {
        height: 28px;
        max-width: 100px;
    }

    .main-nav .nav-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 36px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-image-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        display: none;
    }
    
    .main-nav {
        padding: 12px 0;
    }
    
    .main-nav .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .main-nav .nav-link {
        padding: 6px 10px !important;
        font-size: 12px;
    }
    
    .search-container {
        max-width: 150px;
        display: none;
    }
    
    .btn-login {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .icon-btn {
        font-size: 16px;
        padding: 4px;
    }
}

/* Product Detail Page */
.product-detail-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.product-detail-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
}

.main-product-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.product-info h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.product-info .price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 20px 0;
}

/* Product Page Quantity Selector */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--cyan-border);
    border-radius: 10px;
    background-color: var(--surface);
    overflow: hidden;
}

/* Product Thumbnail Gallery */
.product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-thumbnails .thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--cyan-border);
    transition: all 0.3s;
    flex-shrink: 0;
}

.product-thumbnails .thumbnail:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.product-thumbnails .thumbnail.active {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.3);
}

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

/* Format Selector Cards */
.format-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.format-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 2px solid var(--cyan-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--surface);
    flex: 1;
    min-width: 200px;
}

.format-card:hover {
    border-color: var(--primary-blue);
    background: var(--surface-hover);
}

.format-card.selected {
    border-color: var(--primary-blue);
    background: rgba(201, 169, 97, 0.08);
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.2);
}

.format-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(201, 169, 97, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.format-card.selected .format-icon {
    background: var(--primary-blue);
    color: #1B2A4A;
}

.format-info h6 {
    margin: 0 0 2px 0;
    font-family: 'Playfair Display', serif;
    color: var(--primary-blue);
    font-size: 16px;
}

.format-info small {
    font-size: 12px;
}

.quantity-selector button {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--surface);
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector button:hover {
    background: var(--primary-blue);
    color: #1B2A4A;
}

.quantity-selector input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--cyan-border);
    border-right: 1px solid var(--cyan-border);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--surface);
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-selector input:focus {
    outline: none;
    background: var(--surface-hover);
}

.product-info .quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--cyan-border);
    border-radius: 8px;
    background-color: var(--surface);
    overflow: hidden;
    margin-top: 10px;
}

.product-info .quantity-selector button {
    width: 42px;
    height: 42px;
    border: none;
    background: var(--surface);
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.product-info .quantity-selector button:hover {
    background: var(--primary-blue);
    color: #1B2A4A;
}

.product-info .quantity-selector input {
    width: 70px;
    height: 42px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--cyan-border);
    border-right: 1px solid var(--cyan-border);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--surface);
}

.product-info .quantity-selector input:focus {
    outline: none;
}

/* Admin Styles - Code with Crafter Management Portal */
.admin-body {
    background-color: #f8f9fa;
    font-family: 'Inter', sans-serif;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: #ffffff;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    border-right: 1px solid var(--border-light);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}

.admin-sidebar-brand {
    padding: 24px 20px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.admin-sidebar-brand i {
    font-size: 28px;
    color: var(--accent-gold);
}

.admin-sidebar-brand .admin-sidebar-logo {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
}

.admin-sidebar-brand h5 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 15px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    color: var(--primary-blue);
}

.admin-sidebar-brand small {
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 1.5px;
}

.admin-sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.admin-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.admin-nav-item:hover {
    color: var(--primary-blue);
    background-color: var(--background-beige);
    text-decoration: none;
}

.admin-nav-item.active {
    color: var(--primary-blue);
    background-color: rgba(26, 54, 93, 0.08);
    border-left-color: var(--accent-gold);
    font-weight: 600;
}

.admin-nav-item i {
    width: 24px;
    text-align: center;
    font-size: 16px;
}

.admin-sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-visit-store,
.btn-logout-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-visit-store {
    color: var(--primary-blue);
    border: 1px solid var(--border-light);
    background-color: transparent;
}

.btn-visit-store:hover {
    background-color: var(--primary-blue);
    color: #1B2A4A;
    text-decoration: none;
}

.btn-logout-admin {
    color: white;
    background-color: #dc3545;
}

.btn-logout-admin:hover {
    background-color: #c82333;
    color: white;
    text-decoration: none;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: 10px;
}

.admin-topbar h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-blue);
    margin: 0;
    font-size: 28px;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-green);
    font-size: 14px;
}

.admin-status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
}

.admin-username {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

/* Dashboard Cards */
.admin-stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    transition: all 0.3s;
}

.admin-stat-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.admin-stat-info h6 {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.admin-stat-info .stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.admin-stat-info .stat-change {
    font-size: 13px;
    color: var(--accent-green);
    font-weight: 500;
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon-primary {
    background-color: rgba(26, 54, 93, 0.1);
    color: var(--primary-blue);
}

.stat-icon-success {
    background-color: rgba(58, 124, 80, 0.1);
    color: var(--accent-green);
}

.stat-icon-info {
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--primary-blue);
}

.stat-icon-warning {
    background-color: rgba(211, 116, 96, 0.1);
    color: var(--accent-gold);
}

/* Admin Tables */
.admin-table {
    width: 100%;
    margin-bottom: 0;
}

.admin-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 12px;
    border: none;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-table td {
    padding: 14px 12px;
    vertical-align: middle;
    border: none;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-table td.wrap-text {
    white-space: normal;
    word-wrap: break-word;
}

.admin-table tr:first-child td {
    border-top: none;
}

.order-id {
    color: var(--primary-blue);
    font-weight: 600;
    font-family: 'Inter', monospace;
}

.order-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background-color: #fff8e1;
    color: #f4a900;
}

.status-delivered {
    background-color: #e8f5e9;
    color: var(--accent-green);
}

.status-shipped {
    background-color: #e3f2fd;
    color: var(--primary-blue);
}

.status-cancelled {
    background-color: #ffebee;
    color: #d32f2f;
}

/* Admin Cards */
.admin-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

/* Admin Modal Fixes */
.admin-main .modal-dialog {
    max-width: 800px;
}

.admin-main .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 24px;
}

.admin-main .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.admin-main .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
}

.admin-main .modal-body .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.admin-main .modal-body .form-control,
.admin-main .modal-body .form-select {
    font-size: 14px;
    padding: 10px 12px;
}

.admin-main .modal-body .input-group-text {
    font-size: 14px;
    padding: 10px 12px;
    background: var(--background-beige);
    border-color: var(--border-light);
}

.admin-card-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.admin-card-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin: 0;
}

.admin-card-body {
    padding: 24px;
}

/* Inventory Warning */
.inventory-warning {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.inventory-warning:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.inventory-warning img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.inventory-warning .stock-count {
    color: #d32f2f;
    font-size: 13px;
    font-weight: 500;
}

.btn-restock {
    background-color: var(--background-beige);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-restock:hover {
    background-color: var(--primary-dark);
    color: white;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .admin-sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
        bottom: auto;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-topbar {
        position: relative;
    }
}

/* Status Badges */
.status-pending {
    background-color: var(--accent-gold);
    color: #000;
}

.status-shipped {
    background-color: var(--primary-blue);
    color: #1B2A4A;
}

.status-delivered {
    background-color: var(--accent-green);
    color: white;
}

.status-cancelled {
    background-color: #dc3545;
    color: white;
}

/* Table */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background-color: var(--surface);
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-blue);
}

.table tbody tr:hover {
    background-color: rgba(201, 169, 97, 0.05);
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: 1px solid var(--cyan-border);
}

.modal-header {
    background-color: var(--surface);
    color: var(--text-dark);
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid var(--cyan-border);
}

/* Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #C9A961 0%, #B8964F 100%);
    color: #1B2A4A;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shadow-medium);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #B8964F 0%, #A6863F 100%);
}

/* ==============================================
   ANIMATIONS & AESTHETIC ENHANCEMENTS v5.0
   ============================================== */

/* --- Keyframes --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

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

@keyframes slideInUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.4) rotate(-10deg); }
    60% { transform: scale(0.9) rotate(5deg); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(201, 169, 97, 0.3); }
    50% { box-shadow: 0 0 20px rgba(201, 169, 97, 0.6); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes badgePop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- Scroll Reveal Classes --- */
.reveal {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.reveal-up { transform: translateY(40px); }
.reveal.reveal-left { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.reveal-scale { transform: scale(0.9); }
.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays for grid items */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }
.reveal[data-delay="7"] { transition-delay: 0.7s; }
.reveal[data-delay="8"] { transition-delay: 0.8s; }

/* --- Page Load Animations --- */
.navbar-brand, .navbar .nav-item, .top-bar {
    animation: fadeInDown 0.6s ease forwards;
}
.navbar .nav-item:nth-child(1) { animation-delay: 0.1s; }
.navbar .nav-item:nth-child(2) { animation-delay: 0.2s; }
.navbar .nav-item:nth-child(3) { animation-delay: 0.3s; }
.navbar .nav-item:nth-child(4) { animation-delay: 0.4s; }
.navbar .nav-item:nth-child(5) { animation-delay: 0.5s; }

.breadcrumb {
    animation: fadeInUp 0.5s ease forwards;
}

/* --- Section Headers --- */
.section-header h2 {
    position: relative;
    display: inline-block;
    animation: fadeInUp 0.7s ease forwards;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-blue));
    border-radius: 2px;
    transition: width 0.8s ease 0.3s;
}
.section-header.reveal-visible h2::after,
.section-header.reveal.reveal-visible h2::after {
    width: 60px;
}
.section-header p {
    animation: fadeInUp 0.7s ease 0.2s forwards;
    opacity: 0;
}

/* --- Product Card Enhanced Hover --- */
.product-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
}
.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(201, 169, 97, 0.2);
}
.product-card .product-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Wishlist button animation */
.product-card .wishlist-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.product-card .wishlist-btn:hover {
    transform: scale(1.15) rotate(5deg);
}
.product-card .wishlist-btn.wishlist-active i {
    animation: heartBeat 0.6s ease;
}

/* Discount badge animation */
.product-card .discount-badge {
    animation: badgePop 0.5s ease 0.3s backwards;
}

/* Book title hover */
.product-card .book-title {
    transition: color 0.3s ease;
}
a:hover .product-card .book-title,
.product-card-link:hover .book-title {
    color: var(--primary-blue);
}

/* --- Button Animations --- */
.btn-primary-athenaeum {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-primary-athenaeum::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}
.btn-primary-athenaeum:hover::before {
    width: 300px;
    height: 300px;
}
.btn-primary-athenaeum:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.35);
}
.btn-primary-athenaeum:active {
    transform: translateY(0);
}

/* Outline button hover */
.btn-outline-dark {
    transition: all 0.3s ease;
}
.btn-outline-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Cart Icon Animation --- */
.cart-icon-wrapper, .navbar .cart-link {
    position: relative;
    transition: transform 0.3s ease;
}
.cart-icon-wrapper:hover, .navbar .cart-link:hover {
    transform: scale(1.1);
}
.cart-badge, #cart-count {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-badge.bounce, #cart-count.bounce {
    animation: cartBounce 0.5s ease;
}

/* --- Hero Banner Animations --- */
.hero-banner,
.hero-section,
.carousel-item {
    animation: fadeIn 1s ease forwards;
}
.hero-banner h1, .hero-section h1 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}
.hero-banner p, .hero-section .hero-description, .hero-section .lead {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}
.hero-banner .btn, .hero-section .btn {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}
.hero-section .hero-badge, .hero-banner .hero-banner-badge {
    animation: fadeInDown 0.6s ease 0.1s forwards;
    opacity: 0;
}
.hero-banner img, .hero-section .hero-image-grid img, .hero-section .hero-image-single img {
    animation: scaleIn 1s ease 0.3s forwards;
    opacity: 0;
}

/* Secondary hero banner */
.hero-banner-secondary {
    animation: fadeInUp 0.8s ease forwards;
}
.hero-banner-secondary .hero-banner-badge {
    animation: fadeInDown 0.6s ease 0.2s forwards;
    opacity: 0;
}

/* --- Featured Section --- */
.featured-section {
    transition: background-color 0.3s ease;
}

/* --- Author Card --- */
.author-card, .category-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
}
.author-card:hover, .category-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}
.author-card img, .category-card img {
    transition: transform 0.5s ease;
}
.author-card:hover img, .category-card:hover img {
    transform: scale(1.08);
}

/* --- Footer Animation --- */
footer .footer-section {
    transition: transform 0.3s ease;
}
footer .footer-section:hover {
    transform: translateY(-3px);
}
footer a {
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}
footer a:hover {
    padding-left: 5px;
}

/* --- Back to Top Button --- */
.back-to-top {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(20px);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* --- Loading Skeleton Shimmer --- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* --- Toast Animation --- */
.toast {
    animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* --- Modal Animation --- */
.modal-content {
    animation: modalScaleIn 0.3s ease forwards;
}

@keyframes modalScaleIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

/* --- Form Input Focus --- */
.form-control:focus, .form-select:focus {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 97, 0.15);
}

/* --- Badge Animations --- */
.badge {
    animation: badgePop 0.4s ease forwards;
}

/* --- Best Seller Crown Float --- */
.product-card[style*="position: relative"] .fa-crown,
.product-card[style*="position"] .fa-trophy {
    animation: float 3s ease-in-out infinite;
}

/* --- Combo Card Hover --- */
.combos .card, .col-md-6 > .card[style*="border-radius: 14px"] {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
}
.combos .card:hover, .col-md-6 > .card[style*="border-radius: 14px"]:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(201, 169, 97, 0.2);
}

/* --- Price Hover Effect --- */
.book-price {
    transition: transform 0.3s ease;
}
.product-card:hover .book-price {
    transform: scale(1.05);
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Image Lazy Load Fade --- */
img {
    animation: fadeIn 0.5s ease forwards;
}

/* --- Stat Cards (Admin) --- */
.admin-stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.admin-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* --- Admin Table Row Hover --- */
.admin-table tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* --- Spinner --- */
.fa-spin {
    animation: spin 1s linear infinite;
}

/* --- Reduced Motion Preference --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==============================================
   AI CHATBOT WIDGET (Bottom-Left)
   ============================================== */

#ai-chat-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 99999;
    font-family: 'DM Sans', sans-serif;
    overflow: visible;
}

/* Toggle Button */
.ai-chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1B2A4A 0%, #2B3D5F 100%);
    border: 2px solid #C9A961;
    color: #C9A961;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(27, 42, 74, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    z-index: 99999;
    box-sizing: border-box;
}

.ai-chat-toggle-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(27, 42, 74, 0.45);
}

.ai-chat-toggle-btn:active {
    transform: scale(0.95);
}

.ai-chat-notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #25D366;
    border-radius: 50%;
    border: 2px solid #FAF7F0;
    animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Chat Window */
.ai-chat-window {
    position: fixed;
    bottom: 88px;
    left: 20px;
    width: 350px;
    max-width: calc(100vw - 40px);
    min-width: 280px;
    height: 460px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #E5DFD0;
    z-index: 99999;
    box-sizing: border-box;
}

.ai-chat-window.show {
    display: flex;
    animation: chatSlideUp 0.3s ease;
}

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

/* Chat Header */
.ai-chat-header {
    background: linear-gradient(135deg, #1B2A4A 0%, #2B3D5F 100%);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.2);
    border: 1px solid #C9A961;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #C9A961;
    flex-shrink: 0;
}

.ai-chat-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.ai-chat-status {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.ai-chat-status i {
    font-size: 7px;
    color: #25D366;
}

.ai-chat-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ai-chat-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Chat Messages */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px;
    background: #FAF7F0;
    scroll-behavior: smooth;
}

.ai-chat-messages::-webkit-scrollbar {
    width: 5px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: #C9A961;
    border-radius: 3px;
}

.ai-chat-message {
    margin-bottom: 10px;
    display: flex;
    animation: messageFadeIn 0.3s ease;
}

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

.ai-chat-message-bot {
    justify-content: flex-start;
}

.ai-chat-message-user {
    justify-content: flex-end;
}

.ai-chat-message-content {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ai-chat-message-bot .ai-chat-message-content {
    background: #fff;
    color: #1B2A4A;
    border: 1px solid #E5DFD0;
    border-bottom-left-radius: 4px;
}

.ai-chat-message-user .ai-chat-message-content {
    background: linear-gradient(135deg, #1B2A4A 0%, #2B3D5F 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ai-chat-message-content a {
    color: #C9A961;
    font-weight: 600;
    text-decoration: underline;
}

.ai-chat-message-content a:hover {
    color: #B8964E;
}

/* Typing Indicator */
.ai-chat-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #E5DFD0;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.ai-chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #C9A961;
    animation: typingBounce 1.4s infinite;
}

.ai-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Input Area */
.ai-chat-input-area {
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #E5DFD0;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* Options Area */
.ai-chat-options {
    padding: 8px 12px;
    background: #fff;
    border-top: 1px solid #E5DFD0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    overflow-y: auto;
    max-height: 160px;
}

.ai-chat-option-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    border: 1px solid #C9A961;
    background: #FAF7F0;
    color: #1a3a5f;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    box-sizing: border-box;
}

.ai-chat-option-btn:hover {
    background: #C9A961;
    color: #fff;
    border-color: #C9A961;
}

.ai-chat-option-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-chat-input {
    flex: 1;
    border: 1px solid #E5DFD0;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'DM Sans', sans-serif;
    min-width: 0;
}

.ai-chat-input:focus {
    border-color: #C9A961;
}

.ai-chat-input::placeholder {
    color: #999;
}

.ai-chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1B2A4A 0%, #2B3D5F 100%);
    border: none;
    color: #C9A961;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ai-chat-send-btn:hover {
    transform: scale(1.05);
}

.ai-chat-send-btn:active {
    transform: scale(0.95);
}

.ai-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .ai-chat-toggle-btn {
        bottom: 16px;
        left: 16px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .ai-chat-window {
        bottom: 78px;
        left: 16px;
        width: calc(100vw - 32px);
        height: calc(100vh - 100px);
    }
}

/* ==============================================
   STOCK CLEARANCE SECTION
   ============================================== */

/* ==============================================
   AI INTEREST POPUP
   ============================================== */

.ai-interest-popup {
    position: fixed;
    bottom: 90px;
    left: 20px;
    z-index: 99998;
    display: none;
    animation: popupSlideIn 0.4s ease;
}

.ai-interest-popup.show {
    display: block;
}

@keyframes popupSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-interest-popup-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    padding: 24px;
    width: 320px;
    max-width: calc(100vw - 40px);
    border: 1px solid #E5DFD0;
    position: relative;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
}

.ai-interest-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ai-interest-popup-close:hover {
    background: #f0f0f0;
    color: #333;
}

.ai-interest-popup-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1B2A4A 0%, #2B3D5F 100%);
    color: #C9A961;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 2px solid #C9A961;
}

.ai-interest-popup-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #1B2A4A;
    margin-bottom: 8px;
}

.ai-interest-popup-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 18px;
}

.ai-interest-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-interest-btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: 'DM Sans', sans-serif;
}

.ai-interest-btn-yes {
    background: linear-gradient(135deg, #1B2A4A 0%, #2B3D5F 100%);
    color: #C9A961;
    border: 1px solid #C9A961;
}

.ai-interest-btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(27, 42, 74, 0.3);
}

.ai-interest-btn-no {
    background: #f5f5f5;
    color: #666;
}

.ai-interest-btn-no:hover {
    background: #e8e8e8;
}

/* Popup tail/arrow pointing to chat button */
.ai-interest-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    border-right: 1px solid #E5DFD0;
    border-bottom: 1px solid #E5DFD0;
}

@media (max-width: 480px) {
    .ai-interest-popup {
        bottom: 80px;
        left: 16px;
    }

    .ai-interest-popup-card {
        width: calc(100vw - 32px);
        padding: 20px;
    }
}

/* ==============================================
   LOAD MORE SECTION
   ============================================== */

.load-more-wrapper {
    text-align: center;
    padding: 40px 20px 60px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F3EFE6 100%);
}

.load-more-btn {
    background: linear-gradient(135deg, #1B2A4A 0%, #2B3D5F 100%);
    color: #C9A961;
    border: 2px solid #C9A961;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(27, 42, 74, 0.2);
}

.load-more-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(27, 42, 74, 0.3);
    background: linear-gradient(135deg, #2B3D5F 0%, #1B2A4A 100%);
}

.load-more-btn:disabled {
    cursor: wait;
    opacity: 0.8;
}

.load-more-hint {
    margin-top: 12px;
    font-size: 13px;
    color: #999;
    font-family: 'DM Sans', sans-serif;
}

/* Loaded sections fade-in animation */
#load-more-container .featured-section {
    animation: sectionFadeIn 0.5s ease;
    padding: 80px 0;
}

#load-more-container .featured-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

#load-more-container .featured-section .section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1B2A4A;
    margin-bottom: 8px;
}

#load-more-container .featured-section .section-header p {
    font-size: 15px;
    color: #666;
}

#load-more-container .product-card {
    background-color: var(--surface);
    border-radius: 14px;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(27, 42, 74, 0.06), 0 4px 16px rgba(27, 42, 74, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    position: relative;
    border: 1px solid #E5DFD0;
}

#load-more-container .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(27, 42, 74, 0.12);
    border-color: var(--primary-blue);
}

#load-more-container .product-card .product-image {
    position: relative;
    height: 220px;
    overflow: visible;
    background: #F3EFE6;
    border-radius: 8px 8px 0 0;
}

#load-more-container .product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    border-radius: 8px 8px 0 0;
}

#load-more-container .product-card:hover .product-image img {
    transform: scale(1.05);
}

#load-more-container .product-card .card-body {
    padding: 14px;
    border-radius: 0 0 14px 14px;
    background: var(--surface);
}

#load-more-container .product-card .book-title {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1B2A4A;
}

#load-more-container .product-card .book-author {
    font-size: 13px;
    color: #777;
    margin-bottom: 8px;
}

#load-more-container .product-card .book-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
}

#load-more-container .product-card .original-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

#load-more-container .product-card .discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #C9A961 0%, #B8964F 100%);
    color: #1B2A4A;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

#load-more-container .product-card .share-btn {
    position: absolute;
    top: 10px;
    right: 52px;
    background: rgba(27, 42, 74, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--cyan-border);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    z-index: 10;
}

#load-more-container .product-card .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(27, 42, 74, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--cyan-border);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    z-index: 10;
}

#load-more-container .product-card .share-dropdown {
    position: absolute;
    top: 46px;
    right: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 8px;
    display: none;
    z-index: 1000;
    min-width: 180px;
    border: 1px solid #E5DFD0;
}

#load-more-container .product-card .share-dropdown.show {
    display: block;
}

#load-more-container .product-card .share-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
}

#load-more-container .product-card .share-dropdown a:hover {
    background: #f5f5f5;
}

#load-more-container .product-card .book-rating {
    color: #f4a900;
    font-size: 12px;
    margin-bottom: 8px;
}

#load-more-container .btn-primary-athenaeum {
    background: linear-gradient(135deg, #1B2A4A 0%, #2B3D5F 100%);
    color: #C9A961;
    border: 1px solid #C9A961;
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

#load-more-container .btn-primary-athenaeum:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(27, 42, 74, 0.3);
}

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

/* ==============================================
   AI INTEREST POPUP
   ============================================== */
