/* THE COMIC VAULT - DESIGN SYSTEM & STYLING */

:root {
    --bg-color: #0c0d12;
    --card-bg: #161922;
    --card-hover: #1e2230;
    --border-color: #242b3d;
    --text-primary: #ffffff;
    --text-secondary: #909bb4;
    --neon-yellow: #ffd32a;
    --neon-red: #ff3f34;
    --neon-cyan: #0fbcf9;
    --cgc-blue: #3c40c6;
    --cbcs-yellow: #ff9f1a;
    --raw-gray: #4b5563;
    --font-heading: 'Bungee', cursive, sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Halftone print overlay */
.vintage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 0);
    background-size: 10px 10px;
    pointer-events: none;
    z-index: 9999;
}

/* Header & Logo Section */
.app-header {
    background-color: rgba(12, 13, 18, 0.95);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--neon-yellow);
    text-shadow: 3px 3px 0px #000;
    letter-spacing: 1px;
    line-height: 1.1;
    cursor: pointer;
    transition: transform 0.2s;
}

.logo-text:hover {
    transform: skew(-5deg);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
}

.nav-item:hover, .nav-item.active {
    color: var(--neon-yellow);
    background-color: rgba(255, 211, 42, 0.1);
}

.admin-portal-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px dashed var(--border-color);
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.admin-portal-link:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background-color: rgba(15, 188, 249, 0.1);
}

/* Cart Trigger button */
.cart-trigger {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-trigger:hover {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 10px rgba(255, 211, 42, 0.2);
}

.cart-count {
    background-color: var(--neon-red);
    color: white;
    font-size: 0.8rem;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 70% 30%, rgba(255, 63, 52, 0.15), transparent),
                radial-gradient(circle at 10% 80%, rgba(255, 211, 42, 0.1), transparent),
                #10121a;
    border-bottom: 2px solid var(--border-color);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.comic-badge {
    background-color: var(--neon-red);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding: 0.3rem 1rem;
    display: inline-block;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 3px 3px 0px #000;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    letter-spacing: 0.5px;
    color: white;
    text-shadow: 4px 4px 0px #000;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.search-bar-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border: 3px solid #000;
    box-shadow: 5px 5px 0px #000;
    border-radius: 4px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
    color: #000;
    font-weight: 500;
}

.search-btn {
    background-color: var(--neon-yellow);
    color: #000;
    border: none;
    padding: 0 2rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #e5be22;
}

/* Storefront Layout (Catalog & Sidebar) */
.catalog-container {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

/* Sidebar Filters styling */
.filters-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.filter-card, .emt-info-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.8rem;
}

.filter-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--neon-yellow);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.filter-select, .price-input {
    width: 100%;
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    color: white;
    padding: 0.8rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.filter-select:focus, .price-input:focus {
    border-color: var(--neon-yellow);
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input {
    text-align: center;
}

.reset-filters-btn {
    width: 100%;
    background-color: transparent;
    border: 2px dashed var(--border-color);
    color: var(--text-secondary);
    padding: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-filters-btn:hover {
    border-color: var(--neon-red);
    color: var(--neon-red);
}

.emt-info-card h4 {
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.emt-info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.emt-info-card p strong {
    color: white;
}

/* Products Area */
.products-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.results-count {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Comic Grid & Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.loader-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 0;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.comic-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.comic-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-yellow);
    box-shadow: 0 10px 20px rgba(255, 211, 42, 0.15);
}

/* Comic Cover Area */
.comic-cover-container {
    position: relative;
    padding-top: 140%; /* 1:1.4 aspect ratio for covers */
    background-color: #10121a;
    overflow: hidden;
    border-bottom: 2px solid var(--border-color);
}

.comic-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.comic-card:hover .comic-cover {
    transform: scale(1.06);
}

/* Hover overlay on cover image to indicate clickable */
.cover-hover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: var(--neon-yellow);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 3;
}

.comic-cover-container:hover .cover-hover-overlay {
    opacity: 1;
}

.grader-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    box-shadow: 2px 2px 0px #000;
    z-index: 5;
}

.grader-badge.cgc {
    background-color: var(--cgc-blue);
}

.grader-badge.cbcs {
    background-color: var(--cbcs-yellow);
    color: #000;
}

.grader-badge.psa {
    background-color: var(--neon-red);
}

.grader-badge.raw {
    background-color: var(--raw-gray);
}

/* Comic Card Content Details */
.comic-details {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.comic-publisher {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    margin-bottom: 0.3rem;
}

.comic-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    min-height: 2.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comic-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
}

.meta-item strong {
    color: white;
}

.comic-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.price-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: bold;
}

.price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--neon-yellow);
}

/* Action Buttons */
.comic-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0 1.2rem 1.2rem 1.2rem;
}

.action-btn {
    border: none;
    padding: 0.7rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-family: var(--font-body);
}

.action-btn.cart {
    background-color: var(--neon-yellow);
    color: #000;
}

.action-btn.cart:hover {
    background-color: #e5be22;
}

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

.action-btn.offer:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* Cart Slide-out Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background-color: var(--card-bg);
    border-left: 2px solid var(--border-color);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

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

.cart-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--neon-yellow);
}

.close-drawer-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart-message {
    color: var(--text-secondary);
    text-align: center;
    padding-top: 3rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    border-radius: 6px;
    position: relative;
}

.cart-item-img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    padding-right: 1.5rem;
}

.cart-item-price {
    font-size: 1.1rem;
    color: var(--neon-yellow);
    font-weight: 800;
}

.remove-cart-item {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

.remove-cart-item:hover {
    color: var(--neon-red);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.3);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.cart-subtotal {
    color: var(--neon-yellow);
    font-size: 1.4rem;
}

.cart-disclaimer {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    background-color: var(--neon-yellow);
    color: #000;
    border: none;
    padding: 1rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 4px 4px 0px #000;
}

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

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    width: 95%;
    max-width: 550px;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.modal-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1.2rem 1.8rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--neon-yellow);
}

.close-modal-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.8rem;
}

.inquiry-item-summary {
    display: flex;
    gap: 1rem;
    background-color: rgba(0,0,0,0.2);
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.inquiry-item-img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.inquiry-item-info h4 {
    font-size: 0.95rem;
    font-weight: bold;
}

.inquiry-item-price {
    font-size: 1.1rem;
    color: var(--neon-yellow);
    font-weight: 800;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-row label {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-secondary);
}

.form-row input, .form-row textarea {
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    color: white;
    padding: 0.8rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

.form-row input:focus, .form-row textarea:focus {
    border-color: var(--neon-yellow);
}

.price-input-large {
    font-size: 1.6rem !important;
    text-align: center;
    font-weight: 800;
    color: var(--neon-yellow) !important;
}

.emt-notice {
    background-color: rgba(15, 188, 249, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.form-submit-btn {
    background-color: var(--neon-yellow);
    color: #000;
    border: none;
    padding: 1rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000;
}

.form-submit-btn:hover {
    background-color: #e5be22;
}

/* Make Offer Comic Style Speech Bubble Responses */
.modal-comic-style {
    border: 3px solid #000 !important;
    box-shadow: 8px 8px 0px #000;
}

.speech-bubble-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bubble-speaker {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.speech-bubble {
    position: relative;
    background: #fff;
    color: #000;
    border: 3px solid #000;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
    box-shadow: 4px 4px 0px #000;
    max-width: 90%;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -15px;
    border-width: 15px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -18px;
    border-width: 18px;
    border-style: solid;
    border-color: transparent transparent #000 transparent;
    z-index: -1;
}

.d-none {
    display: none !important;
}

/* Media Queries */
@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .catalog-container {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2rem;
    }
}

/* Product Details Modal Styling */
.modal-large-layout {
    max-width: 850px !important;
}

.details-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

.details-image-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.main-image-viewport {
    width: 100%;
    height: 420px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background-color: #08090d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.main-image-viewport img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.image-switchers {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.image-switch-btn {
    flex: 1;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.75rem;
    transition: all 0.2s;
}

.image-switch-btn:hover {
    border-color: var(--neon-cyan);
    color: white;
}

.image-switch-btn.active {
    background-color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: black;
}

.details-specs-area {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.details-publisher-badge {
    display: inline-block;
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--neon-cyan);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.details-comic-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0.3rem;
}

.details-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    background-color: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    max-height: 140px;
    overflow-y: auto;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.details-table td {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-color);
}

.details-table td:nth-child(odd) {
    font-weight: bold;
    color: var(--text-secondary);
    background-color: rgba(255,255,255,0.02);
    width: 25%;
}

.details-table td:nth-child(even) {
    color: white;
    width: 25%;
}

.details-price-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    padding: 1rem 0;
}

.price-lbl {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.price-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--neon-yellow);
}

.details-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    .main-image-viewport {
        height: 350px;
    }
}

/* ═══════════════════════════════════════════
   FEATURED BOOKS SECTION
   ═══════════════════════════════════════════ */
.featured-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 0.5rem;
}

.featured-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 211, 42, 0.15), rgba(255, 159, 26, 0.1));
    border: 1px solid rgba(255, 211, 42, 0.3);
    color: var(--neon-yellow);
    padding: 0.35rem 1.2rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.featured-subtitle {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.featured-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    position: relative;
}

.featured-card:hover {
    border-color: var(--neon-yellow);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 211, 42, 0.08);
}

.featured-img-wrap {
    height: 220px;
    overflow: hidden;
    background: #0a0b10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.featured-card:hover .featured-img-wrap img {
    transform: scale(1.05);
}

.featured-info {
    padding: 0.8rem;
}

.featured-publisher {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    font-weight: 600;
}

.featured-info h4 {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0.3rem 0;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-price {
    font-weight: 800;
    color: var(--neon-yellow);
    font-size: 0.95rem;
}

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

@media (max-width: 600px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-img-wrap {
        height: 160px;
    }
}

/* ═══════════════════════════════════════════
   PAGINATION CONTROLS
   ═══════════════════════════════════════════ */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0 1rem;
    flex-wrap: wrap;
}

.page-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--neon-yellow);
    color: var(--neon-yellow);
}

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

.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.page-num {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-num:hover {
    border-color: var(--neon-yellow);
    color: var(--neon-yellow);
}

.page-num.active {
    background: var(--neon-yellow);
    color: #000;
    border-color: var(--neon-yellow);
    font-weight: 800;
}

.page-ellipsis {
    color: var(--text-secondary);
    padding: 0 0.3rem;
    font-size: 1rem;
}
