@charset "UTF-8";

/* Product Grid (Collection Page) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card__image {
    width: 100%;
    aspect-ratio: 1;
    /* 正方形 */
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

.product-card:hover .placeholder-img,
.product-card:hover img {
    transform: scale(1.05);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card__info {
    text-align: left;
}

.product-card__name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

.product-card__desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-card__price {
    font-family: var(--font-english);
    font-size: 1rem;
    color: var(--color-text-light);
}

/* Image Modal (Lightbox) */
.image-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.image-modal__content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    margin-top: 100px;
    /* Adjust vertical center */
}

/* モーダル内のプレースホルダー画像用スタイル */
.image-modal__content .placeholder-img {
    width: 100%;
    height: 600px;
    /* 固定高さ、あるいはアスペクト比 */
    max-height: 80vh;
    background-color: #ccc;
    /* fallback */
}

/* 閉じるボタン */
.image-modal__close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.image-modal__close:hover,
.image-modal__close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}