/* =============================================================================
   SAMPLE STRIP — inline thumbnails on book card
============================================================================= */

.mmm-sample-strip {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.mmm-sample-thumb {
    width: 52px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
    flex-shrink: 0;
    transition: transform .2s ease, box-shadow .2s ease;
    display: block;
}

.mmm-sample-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28,28,28,.10);
}

.mmm-sample-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =============================================================================
   BOOK ACTIONS
============================================================================= */

.mmm-book-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.mmm-book-desc {
    font-size: .85rem;
    color: var(--muted);
    font-family: "Inter", sans-serif;
    line-height: 1.5;
    margin-bottom: 8px;
}

.mmm-btn-amazon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #B6544B;
    color: #fff;
    border: none;
    font-family: "Inter", sans-serif;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    transition: .2s ease;
    cursor: pointer;
}

.mmm-btn-amazon:hover {
    filter: brightness(.92);
    color: #fff;
}

.mmm-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: transparent;
    color: #1C1C1C;
    border: 1px solid rgba(28,28,28,.20);
    font-family: "Inter", sans-serif;
    font-size: .85rem;
    font-weight: 400;
    text-decoration: none;
    transition: .2s ease;
    cursor: pointer;
}

.mmm-btn-download:hover {
    background: #fff;
    color: #1C1C1C;
}

.mmm-btn-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: transparent;
    color: #b0ada6;
    border: 1px solid rgba(28,28,28,.10);
    font-family: "Inter", sans-serif;
    font-size: .85rem;
    pointer-events: none;
    cursor: default;
}

.mmm-soon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(28,28,28,.10);
    font-family: "Inter", sans-serif;
    font-size: .85rem;
}

/* =============================================================================
   FREE PAGES — /free-pages/ full layout
============================================================================= */

.mmm-free-pages {
    padding: 62px 0;
}

.mmm-fp-series {
    margin-bottom: 64px;
}

.mmm-fp-series > h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.mmm-fp-book {
    margin-bottom: 48px;
}

.mmm-fp-book > h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.mmm-fp-book-desc {
    color: var(--muted);
    font-family: "Inter", sans-serif;
    font-size: .95rem;
    margin-bottom: 20px;
    max-width: 60ch;
}

.mmm-fp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.mmm-fp-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mmm-fp-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    display: block;
    aspect-ratio: 3/4;
}

.mmm-fp-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.mmm-fp-preview:hover img {
    transform: scale(1.03);
}

.mmm-fp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(28,28,28,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s ease;
}

.mmm-fp-overlay span {
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mmm-fp-preview:hover .mmm-fp-overlay {
    opacity: 1;
}

.mmm-fp-item .mmm-btn-download {
    width: 100%;
}