/* Shop listing + product modal — extends style.css using the same palette + fonts */

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.shop-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease;
    cursor: pointer;
}
.shop-card:hover { transform: translateY(-3px); }

.shop-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: linear-gradient(135deg, var(--rose-light), var(--gold-light));
}
.shop-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    color: var(--brown);
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
}

.shop-card__body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.shop-card__body h3 { margin-bottom: 8px; }
.shop-card__body p {
    color: var(--charcoal);
    flex: 1;
    font-size: 0.95rem;
    margin: 0 0 16px;
}

.shop-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.shop-card__price {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--rose-dark);
    font-weight: 600;
}
.shop-card__link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--brown);
}

/* Product modal */
.shop-modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(42, 37, 33, 0.55);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.shop-modal.active { display: flex; }

.shop-modal__content {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}
@media (max-width: 720px) {
    .shop-modal__content { grid-template-columns: 1fr; }
}

.shop-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    color: var(--charcoal);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}
.shop-modal__close:hover { background: #fff; }

.shop-modal__gallery {
    background: var(--cream);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.shop-modal__main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rose-light), var(--gold-light));
}
.shop-modal__thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.shop-modal__thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.75;
}
.shop-modal__thumbs img:hover { opacity: 1; border-color: var(--rose); }

.shop-modal__info {
    padding: 32px 32px 36px;
    display: flex;
    flex-direction: column;
}
.shop-modal__info h2 { margin: 0 0 8px; }
.shop-modal__price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--rose-dark);
    font-weight: 600;
    margin-bottom: 18px;
}
.shop-modal__description {
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 24px;
}
.shop-modal__description p { margin: 0 0 1em; }
.shop-modal__description ul, .shop-modal__description ol { padding-left: 1.4em; margin: 0 0 1em; }

.shop-modal__status {
    margin-top: 14px;
    font-size: 0.92rem;
    color: var(--sage-dark);
    min-height: 1.2em;
}
