/* ========== Σελίδα βιβλίου (WooCommerce single product) ========== */

/* ---------- Hero ---------- */
.book-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(1.25rem, 3vw, 2rem) clamp(3rem, 6vw, 5rem);
    background: linear-gradient(180deg, var(--c-mint-50) 0%, var(--c-white) 100%);
}
.book-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -18%;
    left: -12%;
    width: min(70vw, 760px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--c-mint);
    opacity: .7;
}

.book-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); font-size: var(--fs-xs); font-weight: 600; color: var(--c-muted); }
.book-crumbs a { color: var(--c-teal); }
.book-crumbs a:hover { color: var(--c-orange); }
.book-crumbs__sep { color: #9db3b3; }

.book-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4.5rem);
}

/* ---------- Gallery ---------- */
.book-gallery { position: sticky; top: 1.5rem; }
.book-gallery__stage {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(1.75rem, 5vw, 3.5rem);
    border-radius: var(--r-lg);
    background: var(--c-white);
    box-shadow: var(--shadow-card);
}
.book-gallery__main {
    width: auto;
    max-width: min(100%, 380px);
    max-height: 520px;
    object-fit: contain;
    border-radius: 4px 10px 10px 4px;
    box-shadow:
        inset 6px 0 10px -6px rgb(0 0 0 / .35),
        0 2px 4px rgb(28 58 68 / .12),
        14px 22px 40px -8px rgb(28 58 68 / .35);
}
.book-gallery__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--c-orange);
    color: var(--c-white);
    font-size: var(--fs-lg);
    font-weight: 800;
    rotate: 12deg;
    box-shadow: 0 8px 20px rgb(232 104 15 / .35);
}
.book-gallery__thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1rem; }
.book-gallery__thumb {
    width: 64px;
    height: 80px;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: var(--r-sm);
    background: var(--c-white);
    box-shadow: var(--shadow-card);
}
.book-gallery__thumb[aria-pressed="true"] { border-color: var(--c-teal); }
.book-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Πληροφορίες ---------- */
.book-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.book-pill {
    padding: .35rem .8rem;
    border-radius: var(--r-pill);
    background: var(--c-teal);
    color: var(--c-white);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .04em;
}
.book-pill--soft { background: var(--c-mint); color: var(--c-teal); }

.book-summary__title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); color: var(--c-dark); }

.book-chips { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; font-size: var(--fs-sm); font-weight: 700; color: var(--c-teal); }
.book-chips li { display: inline-flex; align-items: center; gap: .4rem; }
.book-chips .icon { font-size: 1.1rem; color: var(--c-orange); }

.book-summary__lead { margin-top: 1.25rem; color: var(--c-muted); }

/* ---------- Κουτί αγοράς ---------- */
.book-buy {
    margin-top: 1.75rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    background: var(--c-white);
    box-shadow: var(--shadow-lift);
}
.book-buy__price { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; }
.book-buy__label { flex-basis: 100%; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }

.book .price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; margin: 0; font-weight: 800; color: var(--c-teal); }
.book .price del { order: 2; font-size: .55em; font-weight: 600; color: var(--c-muted); opacity: 1; }
.book .price ins { text-decoration: none; }
.book-buy .price { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); line-height: 1; }

.book-buy__saving {
    display: inline-flex;
    padding: .35rem .7rem;
    border-radius: var(--r-pill);
    background: var(--c-peach);
    color: #b65208;
    font-size: var(--fs-xs);
    font-weight: 800;
}

.book-buy__actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin-top: 1.5rem; }
.book-buy__actions form.cart { display: flex; flex: 1 1 280px; flex-wrap: wrap; gap: .75rem; margin: 0; }
.book-buy__sample { flex: 0 1 auto; min-height: 52px; }

/* Κείμενα μόνο για αναγνώστες οθόνης (τα κρύβει κανονικά το CSS του Woo, που δεν φορτώνουμε εδώ) */
.book .screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Ποσότητα */
.book .quantity { display: flex; }
.book .quantity .qty {
    width: 4.5rem;
    min-height: 52px;
    padding: 0 .5rem;
    border: 1.5px solid #b9d3d3;
    border-radius: var(--r-pill);
    background: var(--c-white);
    color: var(--c-dark);
    font-weight: 800;
    text-align: center;
}
.book .quantity .qty:focus { outline: 2px solid var(--c-teal); outline-offset: 0; border-color: var(--c-teal); }

/* Κουμπί καλαθιού του Woo με το στυλ του theme */
.book .single_add_to_cart_button {
    display: inline-flex;
    flex: 1 1 200px;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 52px;
    padding: .75rem 1.75rem;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--c-orange);
    color: var(--c-white);
    font-size: var(--fs-base);
    font-weight: 800;
    line-height: 1;
    transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.book .single_add_to_cart_button:hover { background: var(--c-orange-600); transform: translateY(-1px); }
.book .single_add_to_cart_button.disabled,
.book .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.book .single_add_to_cart_button.loading { opacity: .7; }

.book .stock { flex-basis: 100%; margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--c-teal); }
.book .stock.out-of-stock { color: #b42318; }

/* Variable products (π.χ. πακέτα με επιλογές) */
.book .variations { width: 100%; margin-bottom: .75rem; border-collapse: collapse; }
.book .variations th,
.book .variations td { padding: .4rem 0; text-align: left; font-size: var(--fs-sm); }
.book .variations select { width: 100%; min-height: 48px; padding: 0 .9rem; border: 1.5px solid #b9d3d3; border-radius: 10px; background: var(--c-white); }
.book .reset_variations { font-size: var(--fs-xs); color: var(--c-teal); }
.book .single_variation_wrap { flex-basis: 100%; }
.book .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: .75rem; }

.book-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--c-line); font-size: var(--fs-sm); color: var(--c-dark); }
.book-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.book-trust .icon { font-size: 1.1rem; color: var(--c-teal); }

.book-includes { margin-top: 1.75rem; }
.book-includes__title { margin-bottom: .85rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-dark); }
.book-includes .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.25rem; }
.book-includes .check-list li { font-size: var(--fs-sm); }

/* ---------- Πλοήγηση σελίδας ---------- */
.book-nav { position: sticky; top: 0; z-index: 20; border-block: 1px solid var(--c-line); background: rgb(255 255 255 / .94); backdrop-filter: blur(8px); }
.book-nav__inner { display: flex; gap: .25rem clamp(1rem, 3vw, 2.5rem); overflow-x: auto; scrollbar-width: none; }
.book-nav a {
    flex: none;
    display: flex;
    align-items: center;
    min-height: 52px;
    border-bottom: 2px solid transparent;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--c-dark);
}
.book-nav a:hover { color: var(--c-teal); border-bottom-color: var(--c-orange); }
.book [id] { scroll-margin-top: 72px; }

/* ---------- Γιατί αυτό το βιβλίο ---------- */
.book-why__desc { max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); font-size: var(--fs-lg); color: var(--c-muted); text-align: center; }
.book-why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.book-feature {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    background: var(--c-white);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), translate .2s var(--ease);
}
.book-feature:hover { border-color: transparent; box-shadow: var(--shadow-lift); translate: 0 -2px; }
.book-feature__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); background: var(--c-mint); color: var(--c-teal); font-size: 1.5rem; }
.book-feature:nth-child(even) .book-feature__icon { background: var(--c-peach); color: var(--c-orange-600); }
.book-feature__title { margin-top: .35rem; font-size: var(--fs-lg); line-height: 1.3; color: var(--c-dark); }
.book-feature__text { font-size: var(--fs-sm); color: var(--c-muted); }

.book-callout {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: clamp(1.5rem, 3vw, 2rem);
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2.25rem);
    border-radius: var(--r-lg);
    background: var(--c-dark);
    color: var(--c-white);
}
.book-callout__icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-orange); font-size: 1.5rem; }
.book-callout__title { font-size: var(--fs-h4); color: var(--c-white); }
.book-callout__title .hl { color: var(--c-yellow); }
.book-callout__text { margin-top: .25rem; color: rgb(255 255 255 / .85); }

/* ---------- Περιεχόμενα ---------- */
.book-toc__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: start; gap: clamp(2rem, 5vw, 4rem); }
.book-toc__head { position: sticky; top: 90px; }
.book-toc__head .sec-head { margin-bottom: 1.5rem; }
.book-toc__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; counter-reset: none; }
.book-toc__list li {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem 1rem;
    border-radius: var(--r-md);
    background: var(--c-white);
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.35;
    color: var(--c-dark);
}
.book-toc__num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-mint); color: var(--c-teal); font-weight: 800; }

/* ---------- Πακέτο ---------- */
.book-bundle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--r-lg);
    background: var(--c-peach);
}
.book-bundle__media img { width: 120px; height: auto; border-radius: 4px; box-shadow: 8px 12px 24px -8px rgb(28 58 68 / .35); }
.book-bundle__body .eyebrow { color: #b65208; }
.book-bundle__title { font-size: var(--fs-h3); color: var(--c-dark); }
.book-bundle__text { margin-top: .4rem; font-size: var(--fs-sm); color: #5a4a40; }
.book-bundle__buy { display: grid; justify-items: end; gap: .6rem; }
.book-bundle__buy .price { font-size: 1.9rem; color: #b65208; }

/* ---------- Στοιχεία ---------- */
.book-specs__list { overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.book-specs__list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; padding: 1rem 1.5rem; }
.book-specs__list > div:nth-child(odd) { background: var(--c-mint-50); }
.book-specs__list dt { font-size: var(--fs-sm); font-weight: 800; color: var(--c-dark); }
.book-specs__list dd { margin: 0; font-size: var(--fs-sm); color: var(--c-text); }

/* ---------- Σχετικά ---------- */
.book-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.book-card__link { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1rem 1rem 1.25rem; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-white); transition: box-shadow .2s var(--ease), translate .2s var(--ease); }
.book-card__link:hover { box-shadow: var(--shadow-lift); translate: 0 -2px; }
.book-card__media { display: grid; place-items: center; aspect-ratio: 4 / 5; margin-bottom: .6rem; border-radius: var(--r-md); background: var(--c-mint-50); }
.book-card__media img { max-height: 88%; width: auto; border-radius: 3px; box-shadow: 8px 12px 24px -10px rgb(28 58 68 / .4); }
.book-card__meta { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-teal); }
.book-card__title { font-weight: 800; line-height: 1.3; color: var(--c-dark); }
.book-card .price { margin-top: auto; font-size: var(--fs-lg); }

/* ---------- Βοήθεια ---------- */
.book-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--r-lg);
    background: var(--c-teal);
    color: var(--c-white);
}
.book-help__title { font-size: var(--fs-h3); color: var(--c-white); }
.book-help__title .hl { color: var(--c-yellow); }
.book-help p { margin-top: .35rem; color: rgb(255 255 255 / .85); }

/* ---------- Μηνύματα WooCommerce ---------- */
.woocommerce-notices-wrapper:not(:empty) { width: min(100% - 2 * var(--gutter), var(--container)); margin: 1.25rem auto 0; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    margin: 0 0 .75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--r-md);
    background: var(--c-mint);
    color: var(--c-dark);
    font-size: var(--fs-sm);
    font-weight: 600;
    list-style: none;
}
.woocommerce-error { background: #fde4e4; color: #8a1c13; }
.woocommerce-info { background: var(--c-ice); }
.woocommerce-message .button,
.woocommerce-info .button {
    order: 2;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 1.25rem;
    border-radius: var(--r-pill);
    background: var(--c-teal);
    color: var(--c-white);
    font-weight: 700;
}
.woocommerce-message .button:hover { background: var(--c-dark); }

/* ---------- Σταθερή μπάρα (κινητό) ---------- */
.book-sticky {
    position: fixed;
    z-index: 60;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--c-line);
    background: var(--c-white);
    box-shadow: 0 -8px 24px rgb(28 58 68 / .12);
    translate: 0 100%;
    transition: translate .25s var(--ease);
}
.book-sticky.is-visible { translate: 0 0; }
.book-sticky[hidden] { display: none; }
.book-sticky__info { display: grid; min-width: 0; }
.book-sticky__name { overflow: hidden; font-size: var(--fs-xs); font-weight: 700; color: var(--c-muted); white-space: nowrap; text-overflow: ellipsis; }
.book-sticky .price { font-size: var(--fs-lg); }
.book-sticky .btn { flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .book-hero__grid { grid-template-columns: 1fr; }
    .book-gallery { position: static; }
    .book-gallery__main { max-height: 380px; }
    .book-toc__grid { grid-template-columns: 1fr; }
    .book-toc__head { position: static; }
    .book-bundle { grid-template-columns: auto minmax(0, 1fr); }
    .book-bundle__buy { grid-column: 1 / -1; justify-items: start; }
}
@media (min-width: 901px) {
    .book-sticky { display: none; }
}
@media (max-width: 600px) {
    .book-includes .check-list,
    .book-toc__list { grid-template-columns: 1fr; }
    .book-bundle__media img { width: 80px; }
    .book-specs__list > div { grid-template-columns: 1fr; gap: .15rem; }
    .book-callout { flex-direction: column; align-items: flex-start; }
}
