/* ===============================
   KBASKET Product Grid
   =============================== */
.kbasket-product-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

/* Desktop: 5 items */
.kbasket-product-col {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 10px;
    box-sizing: border-box;
}

/* ===============================
   Product Image (Aspect Ratio)
   =============================== */
.kbasket-product-col .product-thumb .image {
    position: relative;
    width: 100%;
    aspect-ratio: 30 / 36;
    overflow: hidden;
    background: #ffffff;
}

.kbasket-product-col .product-thumb .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

/* Hover zoom (선택) */
.kbasket-product-col .product-thumb:hover .image img {
    transform: scale(1.03);
}

/* ===============================
   Responsive
   =============================== */

/* Laptop: 4 items */
@media (max-width: 1200px) {
    .kbasket-product-col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Tablet: 3 items */
@media (max-width: 992px) {
    .kbasket-product-col {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

/* Mobile: 2 items */
@media (max-width: 576px) {
    .kbasket-product-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ===============================
   Wishlist (Heart)
   =============================== */
.product-thumb {
    position: relative;
}

.product-thumb .wishlist-btn {
    position: absolute;
    bottom: 10px;   /* ⬇ 우하단 */
    right: 10px;
    z-index: 10;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    cursor: pointer;
}

.product-thumb .wishlist-btn i {
    color: #e74c3c;
}

.kb-left-pad {
    padding-top: 10px;
}

.k-basket-product .main-image { flex: 1; }
.k-basket-product .main-image img { width: 510px; height: 510px; object-fit: cover; cursor: pointer; border-radius: 4px; padding: 4px; }
.k-basket-product .thumbnails { width: 510px; display: flex; gap: 6px; flex-wrap: wrap; }
.k-basket-product .thumbnails img { width:97px; height: 97px; object-fit: cover; border: 1px solid #ddd; cursor: pointer; }

@media (max-width: 768px) {
    .k-basket-product .thumbnails { width: 100%; display: flex; gap: 6px; flex-wrap: wrap; }
    .k-basket-product .thumbnails img { width:97px; height: 97px; object-fit: cover; border: 1px solid #ddd; cursor: pointer; }
}

.mfp-wrap,
.mfp-container,
.mfp-content,
.mfp-figure,
.mfp-close {
    cursor: default !important;
}

.mfp-img {
    cursor: zoom-in;
    transition: transform .2s ease;
}

.product-buy-box {
    border: 1px solid #eee;
    border-radius: 12px;
    margin-top: 30px;
    padding: 20px;
    background: #fff;
}

/* 리스트 */
.price {
    font-size: 16px;
    font-weight: 700;
}

.price .price-new {
    color: #e53935;
    font-weight: 700;
}

.price .price-old {
    color: #999;
    font-weight: 700;
    margin-right: 4px;
    text-decoration: line-through;
}

/* 공통 spacing */
.option-box,
.cart-box,
.price-box {
    margin-bottom: 20px;
}

/* 가격 */
.price-box .price-new {
    font-size: 28px;
    font-weight: 700;
    color: #e53935;
    margin-right: 8px;
}

.price-box .price-old {
    font-size: 26px;
    color: #999;
    text-decoration: line-through;
}

.price-box .price-normal {
    font-size: 26px;
    font-weight: 600;
    color: #222;
}

/* 옵션 */
.option-box label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
}

.option-box select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    transition: border 0.2s;
}

/* 마지막 select 제외하고 간격 */
.option-box select:not(:last-child) {
    margin-bottom: 16px;
}

.option-box select:focus {
    border-color: #333;
    outline: none;
}

/* 수량 + 버튼 */
.cart-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 수량 박스 */
.quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 44px;
}

/* 수량 input */
.quantity-wrapper input {
    width: 60px;
    height: 100%;
    text-align: center;
    border: none;
    font-size: 14px;
}

.quantity-wrapper input[type="number"]::-webkit-outer-spin-button,
.quantity-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

/* 버튼 */
.qty-btn {
    width: 44px;
    height: 100%;
    border: none;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #eee;
}

/* 장바구니 버튼 */
#button-cart {
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
    border-radius: 8px;
}
