.bpl-product-list {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
}

.bpl-product {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
}

.bpl-product__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.bpl-product__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.bpl-product__info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    min-height: auto;
}

.bpl-product__buyers,
.bpl-category-card__buyers {
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    display: flex;
    padding: 3px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 3px;
    color: #58ce04;
    background-color: #58ce041a;
}

.bpl-product__title {
    margin: 0;
    font-size: 19.161px;
    font-weight: 600;
    line-height: 140%;
    color: #171719;
}

.bpl-product__title a {
    color: inherit;
    text-decoration: none;
}

.bpl-product__price {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    font-size: 14px;
}

.bpl-product__price-regular {
    color: #393939;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 19.161px;
    font-weight: 400;
    line-height: 140%;
    text-decoration-line: line-through;
}

.bpl-product__price-sale,
.bpl-product__price-current {
    color: #5b37ed;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 19.161px;
    font-weight: 700;
    line-height: 140%;
}

.bpl-product__price-regular .woocommerce-Price-amount,
.bpl-product__price-sale .woocommerce-Price-amount,
.bpl-product__price-current .woocommerce-Price-amount,
.bpl-product__price-regular .woocommerce-Price-currencySymbol,
.bpl-product__price-sale .woocommerce-Price-currencySymbol,
.bpl-product__price-current .woocommerce-Price-currencySymbol {
    color: inherit !important;
    font: inherit !important;
    text-decoration: inherit !important;
}

.bpl-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    width: 100%;
}

.bpl-category-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.bpl-category-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
}

.bpl-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bpl-category-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

.bpl-category-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.bpl-category-card__title a {
    color: inherit;
    text-decoration: none;
}

.bpl-category-card__price {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    font-size: 14px;
}

.bpl-category-card__price-regular {
    color: #393939;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 140%;
    text-decoration-line: line-through;
}

.bpl-category-card__price-sale,
.bpl-category-card__price-current {
    color: #5b37ed;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 140%;
}

.bpl-category-card__price-regular .woocommerce-Price-amount,
.bpl-category-card__price-sale .woocommerce-Price-amount,
.bpl-category-card__price-current .woocommerce-Price-amount,
.bpl-category-card__price-regular .woocommerce-Price-currencySymbol,
.bpl-category-card__price-sale .woocommerce-Price-currencySymbol,
.bpl-category-card__price-current .woocommerce-Price-currencySymbol {
    color: inherit !important;
    font: inherit !important;
    text-decoration: inherit !important;
}

.bpl-category-card__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px 16px;
    border-radius: 12px;
    background-color: #f5f5f5;
    color: #757575;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

/* 베스트 리뷰 스타일 */
.bpl-best-reviews-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.bpl-best-reviews-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* 스와이프를 위해 hidden 유지 */
    border-radius: 12px;
    padding: 2px; /* box-shadow 공간 확보 */
    box-sizing: border-box;
    /* JavaScript에서 높이 동적 설정 */
}

.bpl-best-reviews-track {
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease;
    will-change: transform;
    gap: 16px;
    width: 100%;
    position: relative;
}

.bpl-best-reviews {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
}

.bpl-review-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    box-sizing: border-box;
    /* JavaScript에서 너비 동적 설정 */
    position: relative;
    z-index: 1;
    
}

.bpl-review-card__header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.bpl-review-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bpl-review-card__rating-star {
    font-size: 20px;
    line-height: 1;
}

.bpl-review-card__rating-value {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    line-height: 1;
}

.bpl-review-card__content {
    margin: 0;
}

.bpl-review-card__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2줄까지만 표시 */
    line-clamp: 2; /* 표준 속성 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bpl-review-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999999;
}

.bpl-review-card__author-name {
    font-weight: 500;
}

.bpl-review-card__author-separator {
    color: #e0e0e0;
}

.bpl-review-card__author-email {
    font-weight: 400;
}

.bpl-review-card__product {
    margin-top: 8px;
    padding: 12px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.bpl-review-card__product-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.bpl-review-card__product-link:hover {
    opacity: 0.8;
}

.bpl-review-card__product-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.bpl-review-card__product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bpl-review-card__product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.bpl-review-card__product-title {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bpl-review-card__product-price {
    font-size: 12px;
    color: #666666;
    line-height: 1.4;
}

.bpl-review-card__product-price .woocommerce-Price-amount,
.bpl-review-card__product-price .woocommerce-Price-currencySymbol {
    color: inherit !important;
    font: inherit !important;
}

.bpl-review-card__product-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #999999;
}

/* 베스트 리뷰 인디케이터 */
.bpl-best-reviews-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 0;
}

.bpl-review-indicator {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.bpl-review-indicator::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e0e0e0;
    transition: all 0.3s ease;
}

.bpl-review-indicator.active::before {
    width: 24px;
    height: 8px;
    border-radius: 4px;
    background-color: #5B37ED;
}

.bpl-review-indicator:hover::before {
    background-color: #c0c0c0;
}

.bpl-review-indicator.active:hover::before {
    background-color: #4A2BC4;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .bpl-review-card {
        padding: 16px;
    }

    .bpl-review-card__text {
        font-size: 13px;
    }

    .bpl-review-card__product {
        padding: 10px;
    }

    .bpl-review-card__product-image {
        width: 50px;
        height: 50px;
    }

    .bpl-review-card__product-title {
        font-size: 13px;
    }

    .bpl-best-reviews-indicators {
        margin-top: 16px;
        gap: 6px;
    }

    .bpl-review-indicator::before {
        width: 6px;
        height: 6px;
    }

    .bpl-review-indicator.active::before {
        width: 20px;
        height: 6px;
    }
}

/* PC 반응형 - 4개씩 나열 */
@media (min-width: 769px) {
    .bpl-product-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
    
    /* PC에서 이미지 원본 비율 유지 */
    .bpl-product__image {
        aspect-ratio: auto;
        height: auto;
    }
    
    .bpl-product__image img {
        height: auto;
        object-fit: contain;
    }
    
    /* 베스트 리뷰 PC - 4개씩 가로 배치 */
    .bpl-best-reviews-track {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .bpl-review-card {
        width: 100%;
        margin: 0;
    }
    
    .bpl-best-reviews-carousel {
        overflow: hidden !important; /* 스와이프 시 이전 카드 숨김 */
        height: auto !important;
        max-height: none !important;
    }
}

/* 전체 펼치기 버튼 스타일 */
.bpl-product-list-wrapper {
    position: relative;
}

.bpl-show-more-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

.bpl-show-more-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* padding: 12px 24px; */
    background-color: #ffffff;
    border: none;
    border-radius: 15px;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.20);
    width: 20rem;
    height: 3.75rem;
    margin-top: 2.5rem;
}

.bpl-show-more-button:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bpl-show-more-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bpl-show-more-button[aria-expanded="true"] .bpl-show-more-icon {
    transform: rotate(180deg);
}

.bpl-show-more-text {
    line-height: 1.4;
}

.bpl-show-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.bpl-show-more-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.bpl-product--hidden {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.6s ease, max-height 0.6s ease;
}

.bpl-product-list.expanded .bpl-product--hidden {
    display: flex !important;
    opacity: 1;
    max-height: 2000px;
}
