/**
 * Block Skin: goods/basic (Rental) - Style
 */

/* 카드 리스트 */
.block-goods__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 2rem !important;
}

/* Swiper 모드: grid 해제 → Swiper의 flex 레이아웃 사용 */
.is-slide > .block-goods__list {
    display: flex;
    gap: 0 !important;
}

/* slidesPerView: auto 일 때 슬라이드 너비 */
.is-slide > .block-goods__list > .block-goods__item.swiper-slide {
    width: auto;
}
.is-slide[data-pc-cols="auto"] > .block-goods__list > .block-goods__item.swiper-slide {
    width: 280px;
}
@media (max-width: 768px) {
    .is-slide[data-mo-cols="auto"] > .block-goods__list > .block-goods__item.swiper-slide {
        width: 200px;
    }
}

.block-goods__item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 이미지 링크 */
.block-goods__image-link {
    display: block;
    text-decoration: none;
}

.block-goods__image-link:hover .block-goods__image {
    transform: scale(1.125);
}

/* 이미지 영역 */
.block-goods__image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #f5f5f5;
    aspect-ratio: 1 / 1;
}

.block-goods__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.block-goods__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.block-goods__image--placeholder svg {
    width: 40%;
    height: 40%;
}

/* 상품 정보 */
.block-goods__info {
    padding: 10px 2px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 브랜드 로고 — 이미지 하단 중앙 앱솔루트 */
.block-goods__brand-logo {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    height: 2.5rem;
    width: auto;
    max-width: 70%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    padding: 2px 6px;
    display: none;
}

.block-goods__brand-name {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6875rem;
    font-weight: 600;
    color: #333;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    padding: 2px 8px;
    white-space: nowrap;
}

/* 브랜드 + 모델명 행 */
.block-goods__meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
}

.block-goods__meta-row span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 상품명 + 하트 행 */
.block-goods__name-row {
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.block-goods__name {
    flex: 1;
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.375;
}

.block-goods__name:hover {
    text-decoration: none;
    color: #333;
}

/* 렌탈료 블록 */
.block-goods__fee {
}

.block-goods__fee-label {
    font-size: 0.75rem;
    color: #888;
}

.block-goods__fee-prices {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
}

.block-goods__fee-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2563eb;
}

.block-goods__fee-unit {
    font-size: 0.875rem;
    color: #888;
}

.block-goods__fee-benefit {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2563eb;
}

.block-goods__fee-original {
    font-size: 0.875rem;
    color: #aaa;
    text-decoration: line-through;
}

/* sm 이하: 원래가격을 아래줄로 */
@media (max-width: 640px) {
    .block-goods__fee-prices {
        flex-wrap: wrap;
    }

    .block-goods__fee-original {
        width: 100%;
    }
}

.block-goods__fee-point {
    display: inline-flex;
    gap: 0.25rem;
    margin-top: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: #7c3aed;
    border-radius: 3px;
    border: 1px solid #7c3aed;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
}

/* 하트 버튼 */
.block-goods__wish {
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #ccc;
    font-size: 1.125rem;
    transition: color 0.15s;
    line-height: 1;
}

.block-goods__wish:hover,
.block-goods__wish.active {
    color: #ef4444;
}

/* burstHearts가 append하는 div — Bootstrap 없는 페이지에서도 absolute 보장 */
.block-goods__wish > div {
    position: absolute;
    pointer-events: none;
}
