/* Shop Page */
.shop-page {
    min-height: 100vh;
    padding-top: 120px;
    background-color: #f6f8ed;
    overflow-y: auto;
}

/* Shop 페이지 스크롤바 */
body:has(.shop-page)::-webkit-scrollbar {
    width: 8px;
}

body:has(.shop-page)::-webkit-scrollbar-track {
    background: rgba(13, 13, 13, 0.1);
}

body:has(.shop-page)::-webkit-scrollbar-thumb {
    background: #0d0d0d;
    border-radius: 4px;
}

body:has(.shop-page)::-webkit-scrollbar-thumb:hover {
    background: #0d0d0d;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2.5rem;
    padding: 3rem 4rem 5rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Product Card */
.product-card {
    text-decoration: none;
    display: block;
    cursor: pointer;
    position: relative;
}

/* 커서 툴팁 - 사용 안 함 */
.cursor-tooltip {
    display: none;
}

/* Product Info - 이미지 위 오버레이로 표시 */
.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    background: rgba(246, 248, 237, 0.9);
    display: flex !important;
    flex-direction: column;
    gap: 0.3rem;
    z-index: 10;
}

.product-info .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.product-info .product-price {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 400;
}

.product-images {
    position: relative;
    width: 100%;
    aspect-ratio: 550/660;
    overflow: hidden;
    background-color: var(--light-gray);
    margin-bottom: 0;
    border: 1px solid #0d0d0d;
}

.product-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.main-image {
    opacity: 1;
}

.hover-image {
    opacity: 0;
}

.product-card:hover .main-image {
    opacity: 0;
}

.product-card:hover .hover-image {
    opacity: 1;
}

/* Product Info */
.product-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.product-name {
    font-family: 'Newsreader', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.product-price {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }

    /* 태블릿에서 제품 정보 표시 */
    .product-card {
        cursor: pointer;
    }

    .product-info {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
    }

    .product-name {
        font-family: 'Newsreader', serif;
        font-size: 1.2rem;
        font-weight: 400;
        color: var(--text-primary);
        margin: 0;
        letter-spacing: -0.01em;
    }

    .product-price {
        font-size: 0.95rem;
        color: var(--text-primary);
        font-weight: 500;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .shop-page {
        padding-top: 100px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem;
    }

    /* 모바일에서 커서 일반으로 */
    .product-card {
        cursor: pointer;
    }

    .product-info {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
    }

    .product-images {
        margin-bottom: 1rem;
    }

    .product-name {
        font-family: 'Newsreader', serif;
        font-size: 1.1rem;
        font-weight: 400;
        color: var(--text-primary);
        margin: 0;
        letter-spacing: -0.01em;
    }

    .product-price {
        font-size: 0.9rem;
        color: var(--text-primary);
        font-weight: 500;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .products-grid {
        padding: 1.5rem;
        gap: 2.5rem;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 0.85rem;
    }
}
