/* ==========================================================================
   OVBRYJOD EDUCATION HUB LIMITED — ACADEMIC BOOKSHOP STYLESHEET
   File: css/bookshop.css
   Modern, Cohesive E-Commerce Bookshop matching Ovbryjod Brand Aesthetic
   ========================================================================== */

:root {
    /* Brand Navy Palette */
    --ov-navy: #0b2d4e;
    --ov-navy-dark: #071d33;
    --ov-navy-light: #163b61;
    --ov-navy-subtle: #f0f5fa;

    /* Brand Warm Amber Accent */
    --ov-amber: #e67e22;
    --ov-amber-light: #f39c12;
    --ov-amber-dark: #d35400;
    --ov-amber-subtle: rgba(230, 126, 34, 0.12);

    /* Semantic Accents */
    --ov-green: #10b981;
    --ov-green-light: #ecfdf5;
    --ov-red: #ef4444;
    --ov-red-light: #fef2f2;
    --ov-gold: #f59e0b;
    --ov-gold-light: #fef3c7;

    /* Neutrals & Surfaces */
    --ov-bg: #f8fafc;
    --ov-card-bg: #ffffff;
    --ov-border: #e2e8f0;
    --ov-border-light: #f1f5f9;
    --ov-text-dark: #0b2d4e;
    --ov-text-body: #334155;
    --ov-text-muted: #64748b;
    --ov-text-light: #94a3b8;

    /* Radii & Shadows */
    --ov-radius-sm: 8px;
    --ov-radius-md: 14px;
    --ov-radius-lg: 20px;
    --ov-radius-full: 999px;
    --ov-shadow-sm: 0 2px 8px rgba(11, 45, 78, 0.04);
    --ov-shadow-card: 0 4px 18px rgba(11, 45, 78, 0.06);
    --ov-shadow-hover: 0 16px 36px rgba(11, 45, 78, 0.12);
    --ov-shadow-amber: 0 8px 22px rgba(230, 126, 34, 0.35);
    --ov-transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);

    /* Backwards compatibility aliases for existing JS selectors */
    --amz-orange: var(--ov-amber);
    --amz-orange-dark: var(--ov-amber-dark);
    --amz-orange-light: var(--ov-amber-subtle);
    --amz-navy: var(--ov-navy);
    --amz-navy-mid: var(--ov-navy-light);
    --amz-blue: #0284c7;
    --amz-blue-light: #e0f2fe;
    --amz-link: var(--ov-navy-light);
    --amz-red: var(--ov-red);
    --amz-green: var(--ov-green);
    --amz-bg: var(--ov-bg);
    --amz-card-bg: var(--ov-card-bg);
    --amz-border: var(--ov-border);
    --amz-text: var(--ov-text-dark);
    --amz-muted: var(--ov-text-muted);
    --amz-shadow-sm: var(--ov-shadow-sm);
    --amz-shadow-md: var(--ov-shadow-card);
    --amz-shadow-card: var(--ov-shadow-card);
    --amz-shadow-hover: var(--ov-shadow-hover);
    --amz-radius: var(--ov-radius-sm);
    --amz-radius-md: var(--ov-radius-md);
    --amz-transition: var(--ov-transition);
}

/* Global Viewport & Document Guards */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--ov-bg);
    color: var(--ov-text-body);
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Ensure global navbar links remain identical across all pages */
.headII a {
    font-size: 16px !important;
}

/* ==========================================================================
   TOP PROMO BANNER (Legacy / Fallback)
   ========================================================================== */
.promo-banner {
    display: none;
}

/* ==========================================================================
   SIGNATURE OVBRYJOD HERO SECTION (#bookshop-hero)
   ========================================================================== */
#bookshop-hero,
.bookshop-hero {
    width: 100%;
    background: linear-gradient(135deg, #0d1b33 0%, #1a2b4a 55%, #1d4ed8 100%);
    padding: 72px 0 84px 0;
    position: relative;
    overflow: hidden;
}

#bookshop-hero::after,
.bookshop-hero::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.22) 0%, rgba(230, 126, 34, 0) 70%);
    pointer-events: none;
}

#bookshop-hero::before,
.bookshop-hero::before {
    content: '';
    position: absolute;
    left: -80px;
    bottom: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, rgba(37, 99, 235, 0) 70%);
    pointer-events: none;
}

#bookshop-hero-inner,
.bookshop-hero-inner {
    width: 90%;
    max-width: 1240px;
    margin: auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 52px;
}

#bookshop-hero-text,
.bookshop-hero-content {
    flex: 1.25;
    min-width: 0;
}

.about-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 126, 34, 0.18);
    color: #f39c12;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(230, 126, 34, 0.4);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15);
}

.about-tag svg {
    stroke: #f39c12;
}

#bookshop-hero-text h1,
.bookshop-hero-content h1 {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.22;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

#bookshop-hero-text h1 span,
.bookshop-hero-content h1 span {
    color: #e67e22;
    background: linear-gradient(135deg, #f39c12 0%, #ffbe76 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bookshop-hero-motto {
    font-size: 17px;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 16px;
    letter-spacing: 0.2px;
}

#bookshop-hero-text p,
.bookshop-hero-content p {
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.75;
    margin-bottom: 22px;
    max-width: 600px;
}

/* Trust indicators with vector SVG icons */
.hero-trust-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 7px 16px;
    border-radius: var(--ov-radius-full);
    color: #e2e8f0;
    font-size: 12.5px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    transition: var(--ov-transition);
}

.hero-trust-item:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(230, 126, 34, 0.5);
    color: #ffffff;
}

.hero-trust-item svg {
    stroke: #ffbe76;
    flex-shrink: 0;
}

/* Call-to-action buttons */
.about-hero-btns,
.hero-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.about-btn-primary,
.btn-amz-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 30px;
    background: #e67e22;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.35);
    text-decoration: none;
    transition: all 0.25s ease;
}

.about-btn-primary:hover,
.btn-amz-primary:hover {
    background: #cf6d17;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(230, 126, 34, 0.45);
    color: #ffffff !important;
}

.about-btn-primary svg,
.btn-amz-primary svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.about-btn-outline,
.btn-amz-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    backdrop-filter: blur(8px);
    text-decoration: none;
    transition: all 0.25s ease;
}

.about-btn-outline:hover,
.btn-amz-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.about-btn-outline svg,
.btn-amz-outline svg {
    stroke: currentColor;
    flex-shrink: 0;
}

/* ==========================================================================
   RIGHT HERO VISUAL SHOWCASE (#bookshop-hero-showcase)
   ========================================================================== */
#bookshop-hero-showcase {
    flex: 1;
    min-width: 320px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-books-showcase {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    padding-bottom: 22px;
}

.hero-book-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    transition: var(--ov-transition);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 138px;
    flex-shrink: 0;
}

.hero-book-card:nth-child(2) {
    transform: translateY(-16px) scale(1.06);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
    border-color: rgba(230, 126, 34, 0.6);
    z-index: 2;
}

.hero-book-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.45);
}

.hero-book-card:nth-child(2):hover {
    transform: translateY(-22px) scale(1.08);
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.55);
}

.hero-book-cover-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #0b2d4e;
    position: relative;
}

.hero-book-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.hero-book-card:hover .hero-book-img {
    transform: scale(1.06);
}

.hero-book-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
}

.hero-book-price {
    padding: 8px 10px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-price-now {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ov-navy);
}

.hero-discount-pill {
    font-size: 10px;
    font-weight: 700;
    background: var(--ov-red-light);
    color: var(--ov-red);
    padding: 1px 6px;
    border-radius: var(--ov-radius-full);
}

/* Floating badge under book showcase */
#bookshop-hero-showcase .about-hero-float-badge {
    position: relative;
    margin-top: -12px;
    z-index: 5;
    background: #0b2d4e;
    border: 2px solid #e67e22;
    border-radius: 14px;
    padding: 11px 22px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

#bookshop-hero-showcase .about-hero-float-badge strong {
    font-size: 26px;
    color: #e67e22;
    font-weight: 800;
    line-height: 1;
}

#bookshop-hero-showcase .about-hero-float-badge div {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

#bookshop-hero-showcase .about-hero-float-badge div span {
    font-size: 11px;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

#bookshop-hero-showcase .about-hero-float-badge div strong {
    font-size: 13px;
    color: #ffffff;
    font-weight: 700;
}

/* ==========================================================================
   DEALS & OFFERS STRIP
   ========================================================================== */
.deals-strip {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--ov-border);
    padding: 12px 0;
    box-shadow: 0 2px 6px rgba(11, 45, 78, 0.02);
    overflow: hidden;
}

.deals-strip-inner {
    width: 90%;
    max-width: 1240px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    box-sizing: border-box;
}

.deals-strip-inner::-webkit-scrollbar {
    display: none;
}

.deals-strip-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--ov-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-right: 2px solid var(--ov-border);
    padding-right: 14px;
    margin-right: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.deal-chip {
    background: var(--ov-amber-subtle);
    color: var(--ov-amber-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--ov-radius-full);
    border: 1px solid rgba(230, 126, 34, 0.25);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--ov-transition);
    flex-shrink: 0;
}

.deal-chip:hover {
    background: var(--ov-amber);
    color: #ffffff;
    border-color: var(--ov-amber);
    transform: translateY(-1px);
}

.deal-chip-delivery {
    margin-left: auto;
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.deal-chip-delivery svg {
    stroke: #166534;
    flex-shrink: 0;
}

/* ==========================================================================
   CATEGORY PILL BAR
   ========================================================================== */
.category-pill-bar,
.bookshop-subnav {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--ov-border);
    padding: 12px 0;
    box-shadow: 0 4px 14px rgba(11, 45, 78, 0.03);
    overflow: hidden;
}

.category-pill-bar-inner,
.bookshop-subnav-inner {
    width: 90%;
    max-width: 1240px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.category-pill-bar-inner::-webkit-scrollbar,
.bookshop-subnav-inner::-webkit-scrollbar {
    display: none;
}

.subnav-dept-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    color: var(--ov-text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--ov-radius-full);
    border: 1px solid var(--ov-border);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--ov-transition);
    flex-shrink: 0;
}

.subnav-dept-btn svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.subnav-dept-btn:hover {
    background: #f1f5f9;
    color: var(--ov-text-dark);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.subnav-dept-btn.active {
    background: linear-gradient(135deg, var(--ov-amber) 0%, var(--ov-amber-dark) 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.3);
}

.subnav-dept-btn.active svg {
    stroke: #ffffff;
}

.subnav-divider {
    width: 1px;
    height: 24px;
    background: var(--ov-border);
    flex-shrink: 0;
    margin: 0 4px;
}

/* ==========================================================================
   MAIN BOOKSHOP LAYOUT (SIDEBAR + CATALOG)
   ========================================================================== */
.bookshop-main {
    width: 90%;
    max-width: 1240px;
    margin: 32px auto 60px;
    display: grid;
    grid-template-columns: 275px minmax(0, 1fr);
    gap: 28px;
    align-items: flex-start;
    box-sizing: border-box;
}

.results-column {
    min-width: 0;
    max-width: 100%;
}

/* ==========================================================================
   LEFT SIDEBAR (FILTER PANEL)
   ========================================================================== */
.sidebar-panel {
    background: var(--ov-card-bg);
    border: 1px solid var(--ov-border);
    border-radius: var(--ov-radius-lg);
    position: sticky;
    top: 76px;
    overflow: hidden;
    box-shadow: var(--ov-shadow-card);
}

.sidebar-header {
    background: linear-gradient(135deg, var(--ov-navy) 0%, var(--ov-navy-light) 100%);
    color: #ffffff;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.sidebar-section {
    border-bottom: 1px solid var(--ov-border-light);
    padding: 18px 20px;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ov-navy);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ov-border-light);
}

.sidebar-filter-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.sidebar-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--ov-text-body);
    transition: var(--ov-transition);
    padding: 2px 0;
}

.sidebar-filter-item:hover {
    color: var(--ov-amber-dark);
}

.sidebar-filter-item input[type="checkbox"] {
    accent-color: var(--ov-amber);
    width: 15px;
    height: 15px;
    cursor: pointer;
    border-radius: 4px;
}

/* Star Rating Filter */
.star-filter-row {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--ov-text-body);
    padding: 3px 0;
    transition: var(--ov-transition);
}

.star-filter-row:hover {
    color: var(--ov-amber-dark);
}

.star-filter-row .stars {
    color: var(--ov-gold);
    font-size: 15px;
}

/* Price Range Inputs */
.price-range-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.price-range-inputs input {
    width: 84px;
    padding: 7px 10px;
    border: 1px solid var(--ov-border);
    border-radius: var(--ov-radius-sm);
    font-size: 13px;
    outline: none;
    color: var(--ov-text-dark);
    transition: border-color 0.2s;
}

.price-range-inputs input:focus {
    border-color: var(--ov-amber);
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
}

.btn-apply-filter {
    margin-top: 10px;
    width: 100%;
    background: linear-gradient(135deg, var(--ov-amber) 0%, var(--ov-amber-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--ov-radius-sm);
    padding: 9px 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.3);
    transition: var(--ov-transition);
}

.btn-apply-filter:hover {
    background: linear-gradient(135deg, #f39c12 0%, var(--ov-amber) 100%);
    transform: translateY(-1px);
}

/* Format Badges */
.format-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.format-badge {
    background: #f8fafc;
    color: var(--ov-text-muted);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--ov-radius-full);
    border: 1px solid var(--ov-border);
    cursor: pointer;
    transition: var(--ov-transition);
}

.format-badge:hover,
.format-badge.active {
    background: var(--ov-amber-subtle);
    color: var(--ov-amber-dark);
    border-color: var(--ov-amber);
}

/* ==========================================================================
   RESULTS COLUMN & TOOLBAR
   ========================================================================== */
.results-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.results-toolbar {
    background: var(--ov-card-bg);
    border: 1px solid var(--ov-border);
    border-radius: var(--ov-radius-md);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--ov-shadow-card);
}

.results-count {
    font-size: 13.5px;
    color: var(--ov-text-muted);
}

.results-count strong {
    color: var(--ov-navy);
}

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

.sort-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ov-text-dark);
}

.sort-select {
    padding: 8px 14px;
    border: 1px solid var(--ov-border);
    border-radius: var(--ov-radius-sm);
    font-size: 13px;
    color: var(--ov-text-dark);
    background: #ffffff;
    outline: none;
    cursor: pointer;
    font-weight: 500;
    transition: border-color 0.2s;
}

.sort-select:focus {
    border-color: var(--ov-amber);
}

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-toggle-btn {
    background: #f8fafc;
    border: 1px solid var(--ov-border);
    padding: 7px 11px;
    cursor: pointer;
    font-size: 14px;
    border-radius: var(--ov-radius-sm);
    color: var(--ov-text-muted);
    transition: var(--ov-transition);
}

.view-toggle-btn.active,
.view-toggle-btn:hover {
    background: var(--ov-amber-subtle);
    border-color: var(--ov-amber);
    color: var(--ov-amber-dark);
}

/* ==========================================================================
   BOOK CARDS GRID
   ========================================================================== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.books-grid.list-view {
    grid-template-columns: 1fr;
}

/* Modern Card */
.amz-book-card {
    background: var(--ov-card-bg);
    border: 1px solid var(--ov-border);
    border-radius: var(--ov-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--ov-transition);
    position: relative;
    box-shadow: var(--ov-shadow-card);
}

.amz-book-card:hover {
    box-shadow: var(--ov-shadow-hover);
    border-color: rgba(230, 126, 34, 0.4);
    transform: translateY(-5px);
}

/* Card Badges */
.book-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--ov-radius-full);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.badge-bestseller {
    background: linear-gradient(135deg, var(--ov-amber) 0%, var(--ov-amber-dark) 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.35);
}

.badge-new {
    background: linear-gradient(135deg, var(--ov-green) 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.badge-ebook {
    background: linear-gradient(135deg, var(--ov-navy) 0%, var(--ov-navy-light) 100%);
    color: #ffffff;
}

/* Book Cover Area */
.book-cover-wrap {
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 230px;
    border-bottom: 1px solid var(--ov-border-light);
    padding: 14px;
}

.book-cover-wrap img {
    max-width: 82%;
    max-height: 90%;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(11, 45, 78, 0.16);
    transition: transform 0.35s ease;
}

.amz-book-card:hover .book-cover-wrap img {
    transform: scale(1.05);
}

.book-cover-placeholder {
    width: 125px;
    height: 175px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
    text-align: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 11.5px;
    box-shadow: 4px 6px 16px rgba(0, 0, 0, 0.22);
    line-height: 1.35;
    position: relative;
}

/* Book Details Body */
.book-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.book-partner {
    font-size: 11px;
    color: var(--ov-text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ov-navy);
    line-height: 1.35;
    margin: 2px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    min-height: 40px;
    transition: color 0.2s ease;
}

.amz-book-card:hover .book-title {
    color: var(--ov-amber-dark);
}

.book-author {
    font-size: 12.5px;
    color: var(--ov-text-muted);
    margin-bottom: 4px;
    cursor: pointer;
}

.book-author:hover {
    color: var(--ov-navy);
}

/* Star Rating */
.book-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.book-stars {
    color: var(--ov-gold);
    font-size: 14px;
    letter-spacing: -1px;
}

.book-rating-num {
    font-size: 12px;
    color: var(--ov-text-muted);
    font-weight: 500;
}

/* Price Row */
.book-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.book-price-now {
    font-size: 21px;
    font-weight: 800;
    color: var(--ov-navy);
}

.book-price-currency {
    font-size: 14px;
    font-weight: 800;
    color: var(--ov-amber-dark);
}

.book-price-original {
    font-size: 13px;
    color: var(--ov-text-light);
    text-decoration: line-through;
    margin-left: 4px;
}

.book-discount-pct {
    font-size: 11px;
    font-weight: 700;
    background: var(--ov-red-light);
    color: var(--ov-red);
    padding: 2px 7px;
    border-radius: var(--ov-radius-full);
}

/* Stock Status */
.book-stock-status {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.in-stock {
    color: var(--ov-green);
}

.out-of-stock {
    color: var(--ov-red);
}

/* Delivery Promise */
.book-delivery-info {
    font-size: 11.5px;
    color: var(--ov-text-muted);
    margin-bottom: 10px;
    line-height: 1.45;
}

.book-delivery-info strong {
    color: var(--ov-text-dark);
}

/* Meta Chips */
.book-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.meta-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--ov-radius-full);
    background: #f1f5f9;
    color: var(--ov-text-muted);
    border: 1px solid var(--ov-border-light);
}

/* Card Action Buttons */
.book-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-add-to-cart {
    width: 100%;
    background: linear-gradient(135deg, var(--ov-amber) 0%, var(--ov-amber-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--ov-radius-full);
    padding: 10px 0;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.35);
    transition: var(--ov-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #f39c12 0%, var(--ov-amber) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 126, 34, 0.45);
}

.btn-buy-now {
    width: 100%;
    background: linear-gradient(135deg, var(--ov-navy) 0%, var(--ov-navy-light) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--ov-radius-full);
    padding: 10px 0;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(11, 45, 78, 0.2);
    transition: var(--ov-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #143e68 0%, var(--ov-navy) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 45, 78, 0.3);
}

.btn-wishlist {
    width: 100%;
    background: #f8fafc;
    color: var(--ov-text-muted);
    border: 1px solid var(--ov-border);
    border-radius: var(--ov-radius-full);
    padding: 8px 0;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ov-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-wishlist:hover {
    background: var(--ov-amber-subtle);
    border-color: var(--ov-amber);
    color: var(--ov-amber-dark);
}

/* ==========================================================================
   LIST VIEW VARIANT
   ========================================================================== */
.books-grid.list-view .amz-book-card {
    flex-direction: row;
    max-height: 270px;
}

.books-grid.list-view .book-cover-wrap {
    min-width: 190px;
    max-width: 190px;
    height: auto;
    border-bottom: none;
    border-right: 1px solid var(--ov-border-light);
}

.books-grid.list-view .book-body {
    flex: 1;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
}

.books-grid.list-view .book-main-info {
    display: flex;
    flex-direction: column;
}

.books-grid.list-view .book-card-actions {
    min-width: 190px;
    justify-content: center;
    margin-top: 0;
}

/* ==========================================================================
   "MOST POPULAR" HORIZONTAL SCROLLER
   ========================================================================== */
.bestsellers-scroller-section {
    background: var(--ov-card-bg);
    border: 1px solid var(--ov-border);
    border-radius: var(--ov-radius-lg);
    padding: 24px 28px;
    box-shadow: var(--ov-shadow-card);
    margin-top: 10px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-title-row h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--ov-navy);
}

.see-all-link {
    font-size: 13.5px;
    color: var(--ov-amber-dark);
    font-weight: 700;
    text-decoration: none;
    transition: var(--ov-transition);
}

.see-all-link:hover {
    color: var(--ov-amber);
    transform: translateX(3px);
}

.horizontal-scroller {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--ov-border) transparent;
}

.scroller-book-card {
    min-width: 160px;
    max-width: 160px;
    background: #ffffff;
    border: 1px solid var(--ov-border);
    border-radius: var(--ov-radius-md);
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: var(--ov-transition);
    flex-shrink: 0;
    box-shadow: var(--ov-shadow-sm);
}

.scroller-book-card:hover {
    box-shadow: var(--ov-shadow-hover);
    border-color: rgba(230, 126, 34, 0.4);
    transform: translateY(-4px);
}

.scroller-cover {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    background: #edf2f7;
}

.scroller-book-info {
    padding: 10px 12px;
}

.scroller-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ov-navy);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scroller-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ov-amber-dark);
}

/* ==========================================================================
   BOOK DETAIL MODAL
   ========================================================================== */
.book-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 29, 51, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.book-modal-backdrop.open {
    display: flex;
    animation: fadeInBkdp 0.25s ease;
}

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

.book-modal-card {
    background: #ffffff;
    border-radius: var(--ov-radius-lg);
    width: 100%;
    max-width: 880px;
    box-shadow: 0 25px 50px rgba(7, 29, 51, 0.35);
    overflow: hidden;
    animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.book-modal-header {
    background: linear-gradient(135deg, var(--ov-navy) 0%, var(--ov-navy-light) 100%);
    color: #ffffff;
    padding: 18px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.book-modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.btn-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--ov-transition);
}

.btn-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.book-modal-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 30px;
}

.modal-cover-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-book-cover-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: var(--ov-radius-md);
    padding: 16px;
    min-height: 280px;
    border: 1px solid var(--ov-border);
}

.modal-book-cover-wrap img {
    max-width: 180px;
    max-height: 240px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(11, 45, 78, 0.2);
    border-radius: 6px;
}

.modal-format-tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-format-tab {
    padding: 9px 14px;
    border: 1px solid var(--ov-border);
    border-radius: var(--ov-radius-sm);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--ov-transition);
    background: #ffffff;
    color: var(--ov-text-body);
}

.modal-format-tab:hover,
.modal-format-tab.selected {
    border-color: var(--ov-amber);
    background: var(--ov-amber-subtle);
    color: var(--ov-amber-dark);
}

.modal-format-tab.selected {
    font-weight: 700;
}

.modal-book-title {
    font-size: 23px;
    font-weight: 800;
    color: var(--ov-navy);
    line-height: 1.3;
    margin-bottom: 8px;
}

.modal-book-author {
    font-size: 13.5px;
    color: var(--ov-text-muted);
    margin-bottom: 12px;
}

.modal-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ov-border-light);
}

.modal-stars {
    color: var(--ov-gold);
    font-size: 17px;
}

.modal-reviews-link {
    font-size: 13px;
    color: var(--ov-text-muted);
    cursor: pointer;
}

.modal-book-description {
    font-size: 14px;
    color: var(--ov-text-body);
    line-height: 1.65;
    margin-bottom: 20px;
}

.modal-highlights {
    background: #f8fafc;
    border: 1px solid var(--ov-border);
    border-radius: var(--ov-radius-md);
    padding: 16px 18px;
    margin-bottom: 20px;
}

.modal-highlights h5 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ov-navy);
    margin-bottom: 10px;
}

.modal-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-highlights li {
    font-size: 13px;
    color: var(--ov-text-body);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.modal-highlights li::before {
    content: '✓';
    color: var(--ov-green);
    font-weight: 800;
    flex-shrink: 0;
}

.modal-price-actions {
    background: #f8fafc;
    border: 1px solid var(--ov-border);
    border-radius: var(--ov-radius-md);
    padding: 20px;
}

.modal-price-now {
    font-size: 26px;
    font-weight: 800;
    color: var(--ov-navy);
    margin-bottom: 4px;
}

.modal-price-original {
    font-size: 13px;
    color: var(--ov-text-light);
    margin-bottom: 12px;
    text-decoration: line-through;
}

.qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.qty-row label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ov-navy);
}

.qty-select {
    padding: 6px 12px;
    border: 1px solid var(--ov-border);
    border-radius: var(--ov-radius-sm);
    font-size: 13px;
    outline: none;
}

.modal-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==========================================================================
   CUSTOMER REVIEWS SECTION
   ========================================================================== */
.reviews-section {
    background: var(--ov-card-bg);
    border: 1px solid var(--ov-border);
    border-radius: var(--ov-radius-lg);
    padding: 30px;
    box-shadow: var(--ov-shadow-card);
    margin-top: 24px;
}

.review-summary {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--ov-border-light);
}

.overall-rating-display {
    text-align: center;
}

.overall-rating-score {
    font-size: 58px;
    font-weight: 900;
    color: var(--ov-navy);
    line-height: 1;
    margin-bottom: 8px;
}

.overall-stars {
    font-size: 22px;
    color: var(--ov-gold);
    margin-bottom: 6px;
}

.overall-count {
    font-size: 13px;
    color: var(--ov-text-muted);
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
}

.rating-bar-label {
    min-width: 48px;
    color: var(--ov-text-muted);
    font-weight: 600;
}

.rating-bar-track {
    flex: 1;
    height: 16px;
    background: #edf2f7;
    border-radius: 999px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ov-amber) 0%, var(--ov-gold) 100%);
    border-radius: 999px;
}

.rating-bar-pct {
    min-width: 36px;
    font-size: 12px;
    color: var(--ov-text-muted);
    text-align: right;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    padding: 16px 0;
    border-bottom: 1px solid var(--ov-border-light);
}

.review-card:last-child {
    border-bottom: none;
}

.reviewer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.reviewer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ov-navy) 0%, var(--ov-navy-light) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.reviewer-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ov-navy);
}

.review-meta {
    font-size: 12px;
    color: var(--ov-text-muted);
}

.review-stars {
    color: var(--ov-gold);
    font-size: 14px;
    margin-bottom: 4px;
}

.review-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ov-navy);
    margin-bottom: 6px;
}

.review-body {
    font-size: 13.5px;
    color: var(--ov-text-body);
    line-height: 1.6;
}

.review-helpful {
    font-size: 12px;
    color: var(--ov-text-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-helpful {
    background: #f8fafc;
    border: 1px solid var(--ov-border);
    border-radius: var(--ov-radius-full);
    padding: 3px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ov-transition);
}

.btn-helpful:hover {
    background: var(--ov-amber-subtle);
    border-color: var(--ov-amber);
    color: var(--ov-amber-dark);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.amz-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--ov-navy);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 22px;
    border-radius: var(--ov-radius-md);
    box-shadow: 0 10px 30px rgba(7, 29, 51, 0.35);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 380px;
    border-left: 4px solid var(--ov-amber);
}

.amz-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.amz-toast.success {
    border-left: 4px solid var(--ov-green);
}

/* ==========================================================================
   RESPONSIVE DESIGN & OVERFLOW PREVENTION
   ========================================================================== */
@media (max-width: 1024px) {
    #bookshop-hero-inner,
    .bookshop-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    #bookshop-hero-text p,
    .bookshop-hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-trust-row,
    .about-hero-btns,
    .hero-cta-group {
        justify-content: center;
    }
    #bookshop-hero-showcase {
        width: 100%;
        min-width: 0;
    }
    .hero-books-showcase {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    .bookshop-main {
        grid-template-columns: 1fr;
    }
    .sidebar-panel {
        position: static;
    }
    .book-modal-body {
        grid-template-columns: 1fr;
    }
    .review-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #bookshop-hero,
    .bookshop-hero {
        padding: 50px 0 60px 0;
    }
    #bookshop-hero-text h1,
    .bookshop-hero-content h1 {
        font-size: 32px;
        line-height: 1.25;
    }
    .bookshop-hero-motto {
        font-size: 15.5px;
    }
    .books-grid.list-view .amz-book-card {
        flex-direction: column;
        max-height: none;
    }
    .books-grid.list-view .book-cover-wrap {
        min-width: 100%;
        max-width: 100%;
        height: 200px;
    }
    .books-grid.list-view .book-body {
        grid-template-columns: 1fr;
    }
    .results-toolbar {
        flex-wrap: wrap;
        gap: 12px;
    }
    .hero-book-card {
        width: 115px;
    }
    .hero-book-cover-wrap {
        height: 155px;
    }
}

@media (max-width: 480px) {
    #bookshop-hero-text h1,
    .bookshop-hero-content h1 {
        font-size: 26px;
        line-height: 1.25;
    }
    .hero-trust-row {
        gap: 8px;
    }
    .hero-trust-item {
        font-size: 11.5px;
        padding: 5px 12px;
    }
    .about-hero-btns,
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .about-btn-primary,
    .about-btn-outline,
    .btn-amz-primary,
    .btn-amz-outline {
        width: 100%;
        justify-content: center;
    }
    .hero-books-showcase {
        gap: 10px;
    }
    .hero-book-card {
        width: 100px;
    }
    .hero-book-card:nth-child(2) {
        transform: translateY(-8px) scale(1.02);
    }
    .hero-book-cover-wrap {
        height: 135px;
    }
    .books-grid {
        grid-template-columns: 1fr !important;
    }
    .book-modal-card {
        margin: 10px;
    }
}
