/* ================================================
   QBS Products — Front-end Styles
   Version: 1.0.0
   ================================================ */

/* ── Reset scoped to our wrapper ── */
.qbs-product-page *,
.qbs-product-page *::before,
.qbs-product-page *::after {
    box-sizing: border-box;
}

.qbs-product-page {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #333;
    background: #fff;
}

/* ════════════════════════════════
   BREADCRUMB
════════════════════════════════ */
.qbs-breadcrumb {
    background: #f47c20;
    padding: 10px 0;
}

.qbs-breadcrumb .qbs-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    font-size: 13px;
}

.qbs-breadcrumb a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.qbs-breadcrumb a:hover { text-decoration: underline; }

.qbs-bc-sep  { color: rgba(255,255,255,0.65); margin: 0 6px; font-size: 12px; }
.qbs-bc-curr { color: #fff; font-weight: 700; }

/* ════════════════════════════════
   PRODUCT LAYOUT — 2-column grid
════════════════════════════════ */
.qbs-product-wrap {
    max-width: 1140px;
    margin: 36px auto 50px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 900px) {
    .qbs-product-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ════════════════════════════════
   LEFT: GALLERY
════════════════════════════════ */
.qbs-gallery {
    position: sticky;
    top: 90px;
}

.qbs-gallery-frame {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    overflow: hidden;
}

.qbs-gallery-frame img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.qbs-gallery-frame img:hover {
    transform: scale(1.02);
}

/* Zoom button */
.qbs-zoom-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.92);
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    z-index: 5;
    transition: background 0.2s;
}
.qbs-zoom-btn:hover { background: #f0f0f0; }
.qbs-zoom-btn svg {
    width: 16px;
    height: 16px;
    stroke: #555;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* No image placeholder */
.qbs-no-image {
    text-align: center;
    color: #bbb;
    padding: 40px 20px;
}
.qbs-no-image svg { margin-bottom: 12px; }
.qbs-no-image p { font-size: 13px; }

/* ════════════════════════════════
   RIGHT: PRODUCT INFO
════════════════════════════════ */
.qbs-product-title {
    font-family: 'Nunito', 'Open Sans', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: #1a3c6e;
    line-height: 1.2;
    margin-bottom: 16px;
    margin-top: 0;
}

.qbs-product-desc {
    color: #444;
    font-size: 14.5px;
    line-height: 1.75;
    margin-bottom: 22px;
}

/* ISBN */
.qbs-isbn { margin-bottom: 22px; }
.qbs-isbn .qbs-isbn-label {
    font-weight: 700;
    color: #222;
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}
.qbs-isbn .qbs-isbn-value {
    font-weight: 700;
    color: #222;
    font-size: 14px;
}

/* Share buttons */
.qbs-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.qbs-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1;
}
.qbs-share-btn:hover { border-color: #aaa; background: #f5f5f5; color: #333; }
.qbs-share-btn svg   { width: 15px; height: 15px; flex-shrink: 0; }

.qbs-share-btn.fb { color: #1877f2; border-color: #ccd7e8; }
.qbs-share-btn.fb:hover { background: #e7f0fd; }

.qbs-share-btn.tw { color: #000; }
.qbs-share-btn.tw:hover { background: #f5f5f5; }

.qbs-share-btn.li { color: #0a66c2; border-color: #c0d8ee; }
.qbs-share-btn.li:hover { background: #e8f2fb; }

/* Inquiry CTA */
.qbs-btn-inquiry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f47c20;
    color: #fff !important;
    font-family: 'Nunito', 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 16px;
    padding: 13px 36px;
    border-radius: 6px;
    text-decoration: none !important;
    box-shadow: 0 3px 12px rgba(244,124,32,0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}
.qbs-btn-inquiry:hover {
    background: #e06b10;
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(244,124,32,0.45);
}

/* ════════════════════════════════
   ABOUT THIS BOOK SECTION
════════════════════════════════ */
.qbs-about {
    max-width: 1140px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

.qbs-about h2 {
    font-family: 'Nunito', 'Open Sans', sans-serif;
    font-weight: 900;
    font-size: 26px;
    color: #1a3c6e;
    display: inline-block;
    margin-bottom: 20px;
    border-bottom: 4px solid #f47c20;
    padding-bottom: 6px;
}

.qbs-about-inner {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 32px 36px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

@media (max-width: 600px) {
    .qbs-about-inner { padding: 20px 18px; }
}

.qbs-tagline {
    display: inline-block;
    background: #f47c20;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 14px;
    padding: 5px 18px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.qbs-about-body {
    color: #444;
    font-size: 14.5px;
    line-height: 1.75;
    margin-bottom: 20px;
    background: #f7f7f7;
    border-left: 4px solid #f47c20;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    max-width: 720px;
}

.qbs-about-body p { margin-bottom: 10px; }
.qbs-about-body p:last-child { margin-bottom: 0; }

.qbs-standards {
    display: inline-block;
    background: #e3f2fd;
    color: #0d47a1;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 13px;
    padding: 4px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.qbs-features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qbs-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: #444;
    line-height: 1.6;
}

.qbs-features li::before {
    content: '•';
    color: #f47c20;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.qbs-quote {
    border-top: 1px solid #e0e0e0;
    padding-top: 18px;
    margin-top: 8px;
}
.qbs-quote p    { font-style: italic; color: #555; font-size: 14.5px; margin-bottom: 4px; }
.qbs-quote cite { font-size: 13px; color: #888; font-style: normal; }

/* ════════════════════════════════
   LIGHTBOX
════════════════════════════════ */
.qbs-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.qbs-lightbox.open { display: flex; }
.qbs-lightbox img {
    max-width: 88vw;
    max-height: 88vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    pointer-events: none;
}
.qbs-lb-close {
    position: absolute;
    top: 18px;
    right: 26px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    transition: opacity 0.2s;
}
.qbs-lb-close:hover { opacity: 0.7; }

/* ════════════════════════════════
   ARCHIVE / PRODUCTS LISTING
════════════════════════════════ */
.qbs-archive {
    max-width: 1140px;
    margin: 40px auto 60px;
    padding: 0 24px;
}

.qbs-archive-header { margin-bottom: 28px; }
.qbs-archive-header h1 {
    font-family: 'Nunito', 'Open Sans', sans-serif;
    font-weight: 900;
    font-size: 30px;
    color: #1a3c6e;
    margin-bottom: 6px;
}
.qbs-archive-header p { color: #666; font-size: 15px; }

/* Filter Bar */
.qbs-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    align-items: center;
}
.qbs-filter-label { font-weight: 700; font-size: 13px; color: #555; margin-right: 4px; }
.qbs-filter-btn {
    padding: 6px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.qbs-filter-btn:hover,
.qbs-filter-btn.active {
    border-color: #1a3c6e;
    background: #1a3c6e;
    color: #fff;
}

/* Product Card Grid */
.qbs-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
}

@media (max-width: 600px) {
    .qbs-products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

.qbs-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.qbs-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.qbs-card-img {
    background: #f7f7f7;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.qbs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.qbs-product-card:hover .qbs-card-img img {
    transform: scale(1.04);
}

.qbs-card-grade {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d32f2f;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 3px;
}

.qbs-card-body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.qbs-card-title {
    font-family: 'Nunito', 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #1a3c6e;
    line-height: 1.3;
}
.qbs-card-isbn { font-size: 12px; color: #888; }
.qbs-card-cta {
    margin-top: auto;
    display: inline-block;
    background: #f47c20;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}
.qbs-card-cta:hover { background: #e06b10; color: #fff; }

/* No products message */
.qbs-no-products {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}
