/* Shared collection cards on the shop page.
   The tile hook keeps main.js aware of both selectable products. */
.tegels-collections-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 1rem;
    width: 100%;
    align-items: stretch;
}

.tile.poetry-collection-card {
    align-items: stretch;
    gap: 0;
    height: auto;
    min-height: 100%;
    padding: clamp(1.25rem, 4vw, 2rem);
    color: #0f172a;
    text-transform: none;
}

.tile.poetry-collection-card > .add-to-cart-btn {
    margin-top: auto;
}

.tile.poetry-collection-card .poetry-collection-cover img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 260px;
    margin: 0;
    object-fit: contain;
}

.tile.poetry-collection-card .poetry-collection-option {
    align-items: center;
    width: auto;
    padding: 0.7rem 0.8rem;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

.tile.poetry-collection-card .poetry-collection-option:hover,
.tile.poetry-collection-card .poetry-collection-option.is-selected {
    background: #faf5ff;
    border-color: #7e22ce;
    box-shadow: 0 4px 12px rgba(126, 34, 206, 0.12);
}

.tile.poetry-collection-card .poetry-collection-option input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
}

.tile.poetry-collection-card > .add-to-cart-btn {
    display: block;
    align-items: initial;
    min-height: 2.9rem;
    padding: 0.7rem 1rem;
    text-transform: none;
}

@media (min-width: 600px) {
    .tegels-collections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .tile.poetry-collection-card {
        padding: 1rem;
    }
}

/* To Be Released: a seamless four-column preview grid. */
.to-be-released .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    max-width: 100%;
}

.to-be-released .grid > div {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transition: none;
}

.to-be-released .grid > div:hover {
    transform: none;
    box-shadow: none;
}

.to-be-released .grid > div img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    transform: none;
    transition: none;
}

@media (max-width: 639px) {
    .to-be-released .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
