:root {
    --bg-deep: #f8fafc;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-strong: rgba(255, 255, 255, 0.9);
    --primary: #1E459F;
    --primary-glow: rgba(2, 132, 199, 0.25);
    --secondary: #f59e0b;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-accent: #0369a1;
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-highlight: rgba(2, 132, 199, 0.3);
    --card-shadow: 0 10px 40px -10px rgba(148, 163, 184, 0.5);
    --glow-shadow: 0 0 25px var(--primary-glow);
    --success: #10b981;
    --danger: #ef4444;
    --error: #ef4444;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

/* Ambient Glow */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.03) 0%, transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

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

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes runAcross {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Header / Nav */
header {
    position: sticky;
    top: 1rem;
    z-index: 100;
    margin: 0 1rem;
}

.header-palm {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 180px;
    height: auto;
    z-index: 101;
    pointer-events: none;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
    transform: rotate(-10deg);
    transition: all 0.5s ease;
}

.header-palm:hover {
    transform: rotate(0deg) scale(1.05);
}

.header-palm-left {
    right: auto;
    left: -20px;
    transform: scaleX(-1) rotate(-10deg);
}

.header-palm-left:hover {
    transform: scaleX(-1) rotate(0deg) scale(1.05);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 99px;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.navbar:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    /* hidden on desktop */
}

.mobile-nav-dropdown {
    display: none;
    /* hidden on desktop */
}

.brand-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: black;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-logo {
    display: block;
    height: 44px;
    width: auto;
}

@media (min-width: 901px) {
    .brand-logo {
        height: 72px;
        margin: -14px 0;
    }
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
}

/* Search */
.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 320px;
    margin: 0 1rem;
}

.search-input {
    width: 100%;
    padding: 0.6rem 2.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.6);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

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

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s;
}

.search-input:focus+.search-icon,
.search-wrapper:focus-within .search-icon {
    color: var(--primary);
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-muted);
    color: white;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    border: none;
    padding: 0;
    font-family: inherit;
}

button.search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-wrapper input:not(:placeholder-shown) ~ .search-clear,
.search-clear.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear:hover {
    background: var(--danger);
}

/* Search highlight */
mark {
    background: rgba(245, 158, 11, 0.3);
    color: inherit;
    padding: 0.1em 0.2em;
    border-radius: 3px;
}

.search-empty {
    animation: fadeIn 0.3s ease;
}

/* Pagination */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled):not(.active) {
    background: var(--bg-glass);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px var(--primary-glow);
}

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

.page-btn.nav-arrow {
    background: transparent;
}

.page-btn.nav-arrow:hover:not(:disabled) {
    background: var(--bg-glass);
}

.page-ellipsis {
    color: var(--text-muted);
    padding: 0 0.25rem;
}

@media (max-width: 600px) {
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

.nav-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 0.6rem 1.25rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.nav-btn.primary {
    background: linear-gradient(344deg, #9e9e9e 0%, #e7f0f5 100%);
    color: #000;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-btn.primary:hover {
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-1px) scale(1.02);
}

.cart-nav-btn {
    position: relative;
    background: black;
    color: white;
    border: none;
}

.cart-nav-btn:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.nav-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    transition: transform 0.2s, opacity 0.2s;
}

.nav-cart-badge.empty {
    opacity: 0.5;
    transform: scale(0.9);
}

.nav-cart-badge.has-items {
    animation: pulse-badge 1.5s ease-in-out infinite;
}

.back-btn,
.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 0.6rem 1.25rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.back-btn:hover,
.back-link:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* Nav Links */
.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 0 1.5rem;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
    overflow: hidden;
}

.headline-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: runAcross 20s linear infinite;
}

.hero-headline {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.0;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    display: inline;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Features Banner */
.features-banner {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(2, 132, 199, 0.08) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    padding: 1rem 2rem;
    border-radius: 99px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.feature-item.highlight {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

.feature-item.highlight .feature-icon {
    font-size: 1.1rem;
}

.feature-icon {
    font-size: 1.25rem;
}

.feature-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.feature-item.highlight .feature-text {
    color: white;
}

.feature-divider {
    width: 1px;
    height: 24px;
    background: var(--border-subtle);
}

.hero h2 {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.hero h2 span {
    font-weight: 600;
}

.stats-bar {
    display: inline-flex;
    gap: 2rem;
    background: var(--bg-glass);
    padding: 1rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    margin-top: 1.5rem;
    backdrop-filter: blur(4px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* About Section */
.about-section {
    /* background: linear-gradient(180deg, #fced6e 0%, rgba(2, 132, 199, 0.03) 100%); */
    background: #FFB705;

    padding: 4rem 0;
    margin-bottom: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 1rem;
}

.about-content strong {
    color: var(--primary);
}

.about-highlights {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.highlight-item {
    text-align: center;
}

.highlight-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.highlight-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    max-width: 280px;
}

.visual-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.visual-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.visual-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Privacy Policy Page */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.policy-page {
    background: var(--bg-surface);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-subtle);
    margin-top: 2rem;
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.policy-content {
    max-width: 100%;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.policy-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.policy-section ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.policy-section li {
    padding: 0.75rem 0 0.75rem 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.policy-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.policy-section li strong {
    color: var(--text-main);
}

.contact-info {
    background: rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.back-home {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* Hide hero when searching (keep About visible) */
.search-active .hero {
    display: none;
}

/* Catalog Title */
.catalog-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    text-align: center;
	 font-family:Arial Black;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem 4rem;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem 1.25rem;
}

/* Home new arrivals: sectioned rows */
.new-arrivals-block {
    margin-bottom: 2rem;
}

.new-arrivals-block:last-of-type {
    margin-bottom: 0;
}

.new-arrivals-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.new-arrivals-row-title {
    font-family: Arial Black;
    font-size: 1.35rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-main);
    margin: 0;
}

.new-arrivals-view-all {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.new-arrivals-view-all:hover {
    text-decoration: underline;
}

.new-arrivals-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    padding: 1rem 0;
}

.catalog-main .new-arrivals-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .catalog-main .new-arrivals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .catalog-main .new-arrivals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .books-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1024px) {
    .books-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 0.75rem;
    }
}

/* Book Card */
.book-card {
    background: transparent;
    perspective: 1000px;
    animation: fadeIn 0.6s ease-out backwards;
}

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

.book-card:nth-child(2) {
    animation-delay: 0.15s;
}

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

.book-card:nth-child(4) {
    animation-delay: 0.25s;
}

.book-cover {
    position: relative;
    aspect-ratio: 2/3;
    background: #e3e2d9;
    /* background: linear-gradient(135deg, #673ab7, #111111);*/
    border-radius: 8px 12px 12px 8px;
    box-shadow: -2px 0 2px #e0dede, 10px 10px 20px rgb(0 0 0 / 15%), inset 1px 1px 2px rgb(255 255 255 / 20%);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.book-cover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
    z-index: 2;
}

.book-cover:hover {
    transform: translateY(-8px) rotateY(-5deg);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.book-initials {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: rgba(255, 255, 255, 0.05);
    user-select: none;
}

.book-info {
    padding: 0 0.25rem;
}

.book-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-price {
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.book-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.btn-details {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

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

.btn-add {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: white;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s;
}

.book-cover:hover .btn-add {
    opacity: 1;
    transform: translateY(0);
}

.btn-add:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-add:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.stock-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stock-badge.out {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

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

.modal h2 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    text-align: center;
}

.upload-zone {
    border: 2px dashed var(--border-subtle);
    background: rgba(241, 245, 249, 0.5);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.05);
}

.upload-zone svg {
    width: 50px;
    height: 50px;
    color: var(--primary);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.upload-zone p {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.upload-zone span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.divider span {
    padding: 0 1rem;
}

textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    resize: vertical;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    text-align: center;
}

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

.btn-cancel {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.btn-cancel:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-submit,
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-submit:hover,
.btn-primary:hover:not(:disabled) {
    background: var(--text-accent);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
}

.btn-pay {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-pay:hover {
    transform: translateY(-1px);
    background: var(--text-accent);
}

.btn-add-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-add-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-add-cart:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
}

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

.toast.error {
    background: var(--error);
    color: white;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 4rem auto;
}

/* Empty State */
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 20px;
    border: 1px dashed var(--border-subtle);
}

/* Cart FAB */
.cart-fab {
    position: fixed;
    /*bottom: 2rem;*/
    bottom: 18rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem 1.75rem;
    border-radius: 99px;
    box-shadow:
        0 10px 25px -5px rgba(245, 158, 11, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 900;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.cart-fab.empty {
    display: none;
    opacity: 0.85;
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    box-shadow: 0 6px 15px rgba(100, 116, 139, 0.3);
}

.cart-fab:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 15px 30px -5px rgba(245, 158, 11, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.cart-fab.empty:hover {
    box-shadow: 0 10px 20px rgba(100, 116, 139, 0.4);
}

.cart-badge {
    background: white;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Book Detail Page Specific */
.book-detail {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    background: var(--bg-surface);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-subtle);
}

.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    background: rgba(241, 245, 249, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.meta-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.2rem;
}

.meta-value {
    font-weight: 600;
    color: var(--text-main);
}

.price-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.stock-status.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stock-status.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.description {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.description h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.description p {
    line-height: 1.7;
    color: var(--text-main);
}

.no-description {
    color: var(--text-muted);
    font-style: italic;
}

/* Invoice / Checkout */
.invoice-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px -10px rgba(148, 163, 184, 0.3);
    position: relative;
    overflow: hidden;
}

.invoice-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px dashed var(--border-subtle);
}

.invoice-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.invoice-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.line-items {
    margin-bottom: 2rem;
}

.item-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.item-title {
    font-weight: 500;
    color: var(--text-main);
    flex: 1;
    padding-right: 1rem;
}

.item-price {
    font-weight: 600;
    color: var(--text-accent);
    font-variant-numeric: tabular-nums;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.total-label {
    font-family: 'Playfair Display', serif;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* OCR / Scan Page */
.scan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: 500px;
}

.panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.panel-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.panel-header svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.upload-zone.has-image {
    border-style: solid;
    padding: 0;
}

.upload-zone img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.upload-zone .hint {
    font-size: 0.85rem;
    opacity: 0.7;
}

.text-output {
    flex: 1;
    background: rgba(241, 245, 249, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem;
    min-height: 350px;
    overflow-y: auto;
    font-family: 'Outfit', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.text-output.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 26, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    border-radius: 10px;
    color: white;
}

.loading-overlay.active {
    display: flex;
}

.clear-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
}

.upload-zone.has-image .clear-btn {
    display: flex;
}

.clear-btn:hover {
    background: var(--error);
}

/* Responsive */
@media (max-width: 900px) {
    .scan-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-wrap: wrap;
        gap: 0.75rem;
        border-radius: 20px;
        padding: 0.75rem 1rem;
    }

    .search-wrapper {
        order: 3;
        flex-basis: 100%;
        max-width: none;
        margin: 0.5rem 0 0;
    }
}

@media (max-width: 768px) {
    .book-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-detail .book-cover {
        max-width: 220px;
        margin: 0 auto;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero-headline {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .features-banner {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
        border-radius: 20px;
    }

    .feature-divider {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .about-highlights {
        justify-content: space-around;
    }

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

    .stats-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-btn span {
        display: none;
    }

    /* Change this so buttons aren't globally hidden */
    .nav-btn.nav-link {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--text-main);
        padding: 0.5rem;
        cursor: pointer;
    }

    .mobile-nav-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        right: 1.5rem;
        background: var(--bg-surface);
        border: 1px solid var(--border-subtle);
        border-radius: 12px;
        padding: 1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        min-width: 200px;
        flex-direction: column;
        gap: 0.5rem;
        z-index: 200;
    }

    .mobile-nav-dropdown.active {
        display: flex;
        animation: fadeIn 0.2s ease-out backwards;
    }

    .mobile-nav-dropdown .nav-btn.nav-link {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }

    .nav-btn {
        padding: 0.6rem;
    }

    .category-nav {
        display: none;
    }

    .mobile-nav-dropdown {
        max-height: 80vh;
        overflow-y: auto;
    }

    .mobile-nav-divider {
        width: 100%;
        height: 1px;
        background: var(--border-subtle);
        margin: 0.25rem 0;
    }

    .mobile-nav-dropdown .mobile-cat-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.7rem 1rem;
        color: var(--text-main);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        border-radius: 8px;
        transition: background 0.15s;
    }

    .mobile-nav-dropdown .mobile-cat-link:hover,
    .mobile-nav-dropdown .mobile-cat-link.active {
        background: rgba(255, 183, 0, 0.12);
        color: var(--primary);
    }

    .mobile-nav-dropdown .mobile-sub-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.7rem 1rem;
        background: none;
        border: none;
        color: var(--text-main);
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        border-radius: 8px;
        font-family: inherit;
        transition: background 0.15s;
    }

    .mobile-nav-dropdown .mobile-sub-toggle:hover {
        background: rgba(255, 183, 0, 0.12);
    }

    .mobile-nav-dropdown .mobile-sub-toggle svg {
        transition: transform 0.25s;
    }

    .mobile-nav-dropdown .mobile-sub-toggle.open svg {
        transform: rotate(180deg);
    }

    .mobile-sub-menu {
        display: none;
        flex-direction: column;
        padding-left: 1rem;
    }

    .mobile-sub-menu.open {
        display: flex;
    }

    .mobile-sub-menu a {
        display: block;
        padding: 0.55rem 1rem;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        border-radius: 6px;
        transition: background 0.15s, color 0.15s;
    }

    .mobile-sub-menu a:hover {
        background: rgba(255, 183, 0, 0.1);
        color: var(--primary);
    }
}

@media print {

    .navbar,
    .actions,
    .cart-fab {
        display: none;
    }

    .invoice-card {
        box-shadow: none;
        border: none;
    }

    body {
        background: white;
    }
}

/* Hero Slider */
.hero-slider-container {
    position: relative;
    max-width: 1000px;
    height: 400px;
    margin: 2rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-subtle);
}

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

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-item.active {
    opacity: 1;
    z-index: 1;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dot.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

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

@media (max-width: 768px) {
    .hero-slider-container {
        height: 250px;
        margin: 1.5rem 1rem;
    }
}

/* Category Navigation */
.category-nav {
    background-color: #0b1e4a; /* Navy blue */
    padding: 0.75rem 0;
    margin-top: 1rem;
}
.category-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}
.category-nav a {
    color: #ffb700; /* Yellow */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.category-nav a:hover {
    color: #ffffff;
}
.category-nav .divider {
    color: #ffb700;
    font-weight: bold;
}
.category-nav .arrow-text {
    color: white;
    font-size: 0.85rem;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

/* Stationery Dropdown */
.cat-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.cat-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.cat-dropdown-toggle svg {
    transition: transform 0.25s;
}
.cat-dropdown:hover .cat-dropdown-toggle svg {
    transform: rotate(180deg);
}
.cat-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #0b1e4a;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 200;
}
.cat-dropdown:hover .cat-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.cat-dropdown-menu a {
    display: block;
    padding: 0.55rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
    white-space: nowrap;
}
.cat-dropdown-menu a:hover {
    background: rgba(255,183,0,0.15);
}

/* New Hero Section Layout */
.hero-new {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
    align-items: stretch;
}
.hero-left {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
}
.hero-left .hero-slider-container {
    margin: 0;
    height: 100%;
    max-width: none;
    border: none;
    box-shadow: none;
}
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.hero-right .promo-box, .hero-right .mini-box {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
}
.hero-right .promo-box img, .hero-right .mini-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-right .promo-box {
    flex: 1;
    min-height: 200px;
}
.hero-right .mini-box {
    height: 120px;
}
.hero-right-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin: 0.5rem 0;
}

@media (max-width: 900px) {
    .hero-new {
        grid-template-columns: 1fr;
    }
    .hero-left {
        min-height: 300px;
    }
    .category-nav .container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .category-nav a {
        font-size: 0.9rem;
    }
    .category-nav .arrow-text {
        margin-left: 0;
        width: 100%;
        margin-top: 0.5rem;
    }
    .cat-dropdown-menu {
        position: fixed;
        left: 0;
        right: 0;
        min-width: 100vw;
        border-radius: 0 0 10px 10px;
    }
}

/* Footer Section */
.site-footer {
    background-color: #0b1e4a;
    color: white;
    padding: 3rem 1.5rem 2rem;
    position: relative;
    margin-top: 6rem;
    font-family: 'Outfit', sans-serif;
    border-top: 10px solid #ef4444; /* Top red border in similar design systems */
}
.site-footer-books {
    position: absolute;
    top: -120px;
    left: 20px;
    height: 150px;
    z-index: 10;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr 1.5fr;
    gap: 3rem;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
}
.footer-col {
    position: relative;
}
/* Divider lines between cols in desktop */
@media (min-width: 993px) {
    .footer-col:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 0;
        right: -1.5rem;
        width: 1px;
        height: 100%;
        background-color: rgba(255,255,255,0.2);
    }
}
.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: #ffb700;
}
.footer-social-wrapper {
    margin-top: 2rem;
}
.footer-social-note {
    font-size: 0.85rem;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    max-width: 180px;
}
.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-social-icons a {
    color: #ef4444;
    transition: color 0.3s, transform 0.3s;
}
.footer-social-icons a:hover {
    color: #ffb700;
    transform: translateY(-2px);
}
.footer-arrow {
    width: 60px;
    height: 60px;
    margin-left: -5px;
    margin-top: -10px;
    stroke: #ffb700;
    stroke-width: 2.5;
    fill: none;
    filter: drop-shadow(0 2px 4px rgba(255,183,0,0.3));
}
.footer-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    color: #fff;
}
.footer-form label span {
    color: #ef4444;
}
.footer-form input {
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 99px;
    border: none;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    background: #fff;
}
.footer-form input:focus {
    outline: 2px solid #ffb700;
    outline-offset: 2px;
}
.footer-subscribe-btn {
    background: transparent;
    border: none;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    width: 100%;
    margin-top: 0.5rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.footer-subscribe-btn:hover {
    color: #ffb700;
}
.footer-contact p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 0.2rem;
}
.footer-map {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    height: 140px;
    position: relative;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.footer-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.footer-bottom {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1.5rem;
    gap: 0.5rem;
}
.footer-logo {
    height: 48px;
    display: block;
}
.footer-copyright {
    font-size: 0.85rem;
    color: #94a3b8;
}
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        align-items: center;
        text-align: center;
    }
}

/* Catalog Sidebar Layout - Desktop Only */
@media (min-width: 1025px) {
    .catalog-layout {
        display: flex;
        gap: 3rem;
        align-items: flex-start;
    }

    .catalog-sidebar {
        flex: 0 0 300px;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        position: sticky;
        top: 6rem;
    }

    .sidebar-promo {
        border-radius: 24px;
        overflow: hidden;
        box-shadow: var(--card-shadow);
        background: #f1f5f9;
        transition: transform 0.3s ease;
    }

    .sidebar-promo:hover {
        transform: translateY(-5px);
    }

    .sidebar-promo img {
        width: 100%;
        height: auto;
        display: block;
    }

    .catalog-main {
        flex: 1;
    }

    /* Adjust Grid Columns on Desktop when sidebar is visible */
    .books-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .catalog-sidebar {
        display: none;
    }
}


@media (max-width: 600px) {
    .slider-item{
        height:78% !important;
        
    }
}

