/* THE PRODUCT PAGE IS THE ONE CARD (Steven 2026-10-12, 22:40: "a pdp page is
   a want card ... so that you can buy easily"; COO hands 2026-10-12). Page
   sheet for templates/shop/pdp_card.html, behind LAYOUT_CARDS; the card
   itself is static/cards/card.css. Everything is scoped under .pdpc and
   .pdp-card-page.

   THE SAME CARD AS THE DECK'S (Steven 2026-11-10): the page is a deck of
   one card, the deck's own frame (css/pages/home-cards.css .hc-deck and
   .hc-slide, the deck shell's sizes, css/components/deck-shell.css) and
   the deck's card with its right column (static/cards/card-col.css), so
   its title, picture, words, price and button sit where the market card's
   do on the deck. This sheet adds only what the deck has not: the round X
   in the card's top right corner, a book cover's top kept in view, and the
   book's Amazon rating as the deck's next stop down, below the buy
   action. */

.pdp-card-page .main-area { background: var(--surface-secondary); min-height: 0; }
.pdp-card-page .main-area__content { padding: 0; }

/* The shell's + already posts a want; the floating one would sit on the
   card's button. */
.pdp-card-page .global-post-fab,
.pdp-card-page .global-post-fab-surface { display: none !important; }

.pdpc { box-sizing: border-box; width: 100%; color: var(--text-primary); }

/* The product's own picture fills the art, cover-cropped; a tall cover
   (the book) keeps its top in view, where its title is. */
.pdpc .tb-card__front .tb-card__img { object-position: 50% 30%; }

/* THE WAY BACK: a round X in the card's top right corner, the column's own
   disc (card-col.css .tb-card__colbtn: see-through dark with a thin light
   ring), the column's right edge and the type disc's top. */
.pdpc__slot > .pdpc-x {
    position: absolute;
    z-index: var(--z-dropdown);
    top: calc(max(var(--ds-slide-pad, var(--space-1)), env(safe-area-inset-top, 0px)) + var(--space-3));
    right: calc((100% - var(--ds-card-w, 100%)) / 2 + var(--ds-col-right, var(--space-3)));
    display: inline-grid;
    place-items: center;
    width: var(--ds-col, var(--size-10));
    height: var(--ds-col, var(--size-10));
    border-radius: var(--radius-full);
    background: var(--feed-card-glass-bg-dark);
    box-shadow: 0 0 0 1px var(--feed-card-glass-border-dark);
    color: var(--text-inverse);
}
.pdpc__slot > .pdpc-x svg { display: block; width: var(--size-6); height: var(--size-6); }
.pdpc__slot > .pdpc-x:focus-visible { outline: 2px solid var(--interactive-focus-ring); outline-offset: 2px; }
.pdpc__slot:has(> .tb-card.is-3d) > .pdpc-x { visibility: hidden; }
/* the title keeps clear of it */
.pdpc__slot > .tb-card--col .tb-card__art > .tb-card__head { padding-right: calc(var(--ds-col, var(--size-10)) + var(--space-3)); }
/* a product's kicker (BENCHMARK PAPER, BOOK) stands right of the type
   mark's pocket on its line, as the deck card's title does
   (card-frame.css), and clear of the X */
.app-shell--deck-shell .pdpc .has-cf .tb-card__art > .tb-card__top {
    min-height: calc(2 * var(--cf-a) - var(--space-5) - var(--space-3));
    margin-top: calc(-1 * var(--space-2));
    margin-left: calc(2 * var(--cf-a) + var(--space-2) - var(--space-5));
    padding-right: calc(var(--ds-col, var(--size-10)) + var(--space-2));
    align-items: center;
}

/* The back: who made it on the picture band, then the facts and what you
   get, read as paragraphs. */
.pdpc .tb-card__back .tb-card__gives {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-left: 0;
    list-style: none;
}
.pdpc .tb-card__back .tb-card__record dd { font-size: 18px; }

/* ---- the deck's next stop: the book's Amazon rating -------------------- */
.pdpc .hc-slide.pdpc-more {
    height: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-3) calc(var(--space-16) + var(--space-8));
}
.pdpc-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    background: var(--surface-primary);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    text-decoration: none;
}
.pdpc-rating__stars {
    display: inline-flex;
    gap: var(--space-1);
    color: var(--pdp-amazon-review-star-color);
    font-size: var(--text-lg);
}
.pdpc-rating__score { font-family: var(--font-heading); font-size: var(--text-lg); }
.pdpc-rating__count { color: var(--text-secondary); font-size: var(--text-sm); }
.pdpc-rating__meta { margin: 0 var(--space-1); color: var(--text-secondary); font-size: var(--text-sm); }
.pdpc-rating__frame {
    overflow: hidden;
    border: var(--pdp-amazon-review-image-border);
    border-radius: var(--pdp-amazon-review-image-radius);
    background: var(--surface-primary);
}
.pdpc-rating__image { display: block; width: 100%; height: auto; }
