 
/* ==========================================================
   BARRYDOOR SHOP - GEDEELDE VORMGEVING
   Gebruikt door index.php en e-books.php
   Gebaseerd op de huidige book-card.php
   ========================================================== */


/* ==========================================================
   1. ALGEMEEN
   ========================================================== */

.shop-main {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.shop-intro {
    max-width: 780px;
    margin: 0 auto 42px;
    text-align: center;
}

.shop-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #777;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.shop-intro h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.shop-intro p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
}


/* ==========================================================
   2. ZOEKVELD
   ========================================================== */

.shop-search {
    max-width: 520px;
    margin: 0 auto 36px;
    background: #ebebeb;
    border-radius: 12px;
}

.shop-search input {
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #000;
    border-radius: 12px;
}


/* ==========================================================
   3. BOEKKAART - HOOFDSTRUCTUUR
   ========================================================== */

.shop-book-card-new {
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d8c3c5;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(35, 25, 25, 0.06);
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.shop-book-card-new:hover {
    transform: translateY(-3px);
    border-color: #923844;
    box-shadow: 0 12px 30px rgba(35, 25, 25, 0.11);
}

.shop-book-layout-new {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: 100%;
}

.shop-book-left,
.shop-book-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    padding: 22px;
    background: #fff;
}

.shop-book-left {
    border-right: 1px solid #eee5e5;
}


/* ==========================================================
   4. BOEKTITEL EN AUTEUR
   ========================================================== */

.shop-book-heading-new {
    padding-bottom: 16px;
    border-bottom: 1px solid #eee5e5;
}

.shop-book-series-new {
    margin-top: 2px;
    margin-bottom: 2px;
    color:#999;
    font-size: 10px;
    font-weight: 100;
    line-height: 1.5;
	font-style: italic;
}

.shop-book-title-new {
    margin: 0 0 4px;
    color: #292323;
    font-size: clamp(1.2rem, 1.4vw, 1.65rem);
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.shop-book-author-new {
    color: #777;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Klikbare auteursnaam */

.shop-author-inline-link {
    color: #198754;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shop-author-inline-link:hover {
    color: #146c43;
}


/* ==========================================================
   5. BOEKCOVER
   ========================================================== */

.shop-book-cover-new {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding: 8px;
}

.shop-cover-img-new {
    display: block;
    width: 100%;
    max-width: 250px;
    max-height: 370px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.14));
}

/* Tijdelijke cover als er geen afbeelding is */

.shop-book-cover-new .shop-cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 250px;
    min-height: 300px;
    padding: 18px 12px;
    overflow-wrap: anywhere;
    color: #fff;
    text-align: center;
    background: #292929;
}

.shop-cover-placeholder span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.shop-cover-placeholder strong {
    font-size: 1.1rem;
    line-height: 1.3;
}

.shop-cover-placeholder small {
    font-size: 0.8rem;
}


/* ==========================================================
   6. BOEKBESCHRIJVING
   ========================================================== */

.shop-description-box {
    padding: 12px 0 12px 14px;
    background: #ebfaee;
    border-left: 2px solid #39845a;
    border-radius: 2px;
}

.shop-description-heading {
    margin-bottom: 8px;
    color: #39845a;
    font-size: 0.85rem;
    font-weight: 700;
}

.shop-description-heading i {
    color: #39845a;
}

.shop-description-text {
    color: #4b554e;
    font-size: 0.88rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.shop-description-text > br:last-child {
    display: none;
}

/* Uitklapbare volledige beschrijving */

.shop-description-more > summary {
    display: inline-block;
    list-style: none;
    cursor: pointer;
}

.shop-description-more > summary::-webkit-details-marker {
    display: none;
}

.shop-description-more .description-less-label {
    display: none;
}

.shop-description-more[open] .description-more-label {
    display: none;
}

.shop-description-more[open] .description-less-label {
    display: inline;
}


/* ==========================================================
   7. CITAAT
   ========================================================== */

.shop-quote-box {
    margin: 0;
    padding: 10px 0 12px 14px;
    color: #000;
    background: transparent;
    border: none;
    border-left: 5px solid #f00;
    border-radius: 0;
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.shop-quote-box > i {
    color: #39845a;
    font-size: 0.9rem;
}


/* ==========================================================
   8. BESCHIKBARE EDITIES
   ========================================================== */

.shop-editions-new {
    min-width: 0;
}

.shop-editions-heading {
    margin-bottom: 14px;
    color: #000;
    font-size: 0.9rem;
    font-weight: 750;
}

.shop-editions-heading i {
    color: #999;
}

.shop-editions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individuele editie */

.shop-edition-new {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    background: #faf9f8;
    border: 1px solid #d4d4d4;
    border-radius: 12px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.shop-edition-new:hover {
    background: #fff;
    border-color: #923844;
}

/* Rode boektitel boven de editie */

.shop-edition-book-title {
    margin-bottom: -4px;
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Formaat, taal en ISBN */

.shop-edition-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.shop-edition-format-new {
    color: #292323;
    font-size: 0.88rem;
    font-weight: 700;
}

.shop-edition-format-new > i {
    color: #923844;
}

/* Taal en vlag */

.shop-edition-language {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    color: #3d6248;
    background: #f1f5f2;
    border: 1px solid #d8e5da;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.shop-language-flag {
    font-size: 1.1rem;
    line-height: 1;
}

/* ISBN */

.shop-isbn-new {
    width: 100%;
    margin-top: 2px;
    color: #888;

    font-size: 0.73rem;
    overflow-wrap: anywhere;
}


/* ==========================================================
   9. VERKOOPPUNTEN EN BESTELKNOPPEN
   ========================================================== */

.shop-edition-actions-new {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.shop-edition-actions-new .btn {
    max-width: 100%;
    white-space: normal;
    border-radius: 8px;
}

.shop-not-available-new,
.shop-no-editions-new {
    color: #777;
    font-size: 0.83rem;
    line-height: 1.6;
}


/* ==========================================================
   10. KOPIEERBARE BOEKLINK
   ========================================================== */

.shop-book-link-new {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eee5e5;
}

.shop-book-link-label {
    color: #666;
    font-size: 0.76rem;
    font-weight: 700;
}

.shop-book-link-input {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 10px;
    color: #555;
    background: #fff;
    border: 1px solid #ddd2d2;
    border-radius: 7px;
    font-size: 0.75rem;
}

.shop-copy-link-button {
    align-self: flex-start;
    padding: 8px 12px;
    color: #fff;
    background: #923844;
    border: 1px solid #923844;
    border-radius: 7px;
    font-size: 0.8rem;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.shop-copy-link-button:hover {
    background: #762c36;
    border-color: #762c36;
}


/* ==========================================================
   11. GEEN RESULTATEN
   ========================================================== */

.shop-empty {
    padding: 50px 20px;
    color: #777;
    text-align: center;
}


/* ==========================================================
   12. TABLET EN KLEINERE DESKTOPSCHERMEN
   ========================================================== */

@media (min-width: 768px) and (max-width: 1199.98px) {

    .shop-book-left,
    .shop-book-right {
        gap: 16px;
        padding: 16px;
    }

    .shop-cover-img-new {
        max-height: 300px;
    }

    .shop-description-box {
        padding: 10px 0 10px 12px;
    }

    .shop-edition-new {
        padding: 11px;
    }
}


/* ==========================================================
   13. MOBIEL
   ========================================================== */

@media (max-width: 767.98px) {

    .shop-book-layout-new {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-book-left {
        border-right: none;
        border-bottom: 1px solid #eee5e5;
    }

    .shop-book-left,
    .shop-book-right {
        gap: 16px;
        padding: 18px;
    }

    .shop-cover-img-new {
        max-width: 230px;
        max-height: 340px;
    }

    .shop-book-title-new {
        font-size: 1.4rem;
    }

    .shop-book-link-new {
        margin-top: 0;
    }
}


/* ==========================================================
   14. ZEER SMALLE MOBIELE SCHERMEN
   ========================================================== */

@media (max-width: 380px) {

    .shop-book-left,
    .shop-book-right {
        padding: 12px;
    }

    .shop-cover-img-new {
        max-width: 190px;
        max-height: 280px;
    }

    .shop-description-box,
    .shop-quote-box {
        padding: 10px 0 10px 12px;
    }

    .shop-edition-new {
        padding: 9px;
    }
}
 
