/*
  _store.css: Store page (store.php), the swag cards and store notices.
*/

.store-deadline {
    margin: 0.75rem 0 0;
    text-align: center;
    color: var(--color-mh-light-grey);
}

.store-notice {
    max-width: 40rem;
    margin: 1.5rem auto 0;
    padding: 0.85rem 1.1rem;
    border-left: 4px solid var(--color-primary-red);
    border-radius: 8px;
    background-color: var(--color-mh-dark-grey);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- Swag grid --- */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.store-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--color-mh-dark-grey);
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.store-card-image {
    margin: 0;
    aspect-ratio: 1 / 1;
    background-color: #fff;  /* product photos usually have white backgrounds */
}

.store-card-image.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-process-black);
}

.store-card-image.is-placeholder img {
    width: 45%;
    height: auto;
    opacity: 0.5;
}

.store-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1rem 1.25rem 1.25rem;
}

.store-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0 0 0.35rem;
    color: var(--color-white);
}

.store-card-note {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--color-mh-light-grey);
}

.store-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.store-card-price {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-white);
}

.store-card-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-red-on-dark);
    text-decoration: none;
}

.store-card-link:hover,
.store-card-link:focus-visible {
    text-decoration: underline;
}

.store-info .text {
    max-width: 48rem;
    margin: 0;
    padding: 0;
    color: var(--color-light);
}

.store-info .text a {
    color: var(--color-white);
    text-decoration: underline;
}
