/* 상품 상세 페이지 스타일 */
.product-detail-container {
    padding: 40px 0;
    background: #f8f9fa;
}

/* 메인 영역 */
.product-main-area {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 60px;
    background: white;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* 상품 이미지 영역 */
.product-images {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.main-image {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.product-main-image {
    width: 100%;
    height: auto;
    display: block;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.thumb-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumb-item:hover {
    border-color: #2563eb;
}

.thumb-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 상품 정보 영역 */
.product-info {
    padding-left: 20px;
}

.product-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #111;
    line-height: 1.3;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.product-rating .star-rating {
    margin-right: 10px;
}

.review-count {
    color: #666;
    font-size: 14px;
}

.product-short-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 가격 정보 */
.product-price-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.price-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
}

.price-label {
    font-size: 16px;
    color: #666;
    margin-right: 20px;
    min-width: 80px;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: #e74c3c;
}

.price-value del {
    font-size: 20px;
    color: #999;
    margin-right: 10px;
    font-weight: 400;
}

.discount-info {
    margin-top: 10px;
}

.discount-rate {
    background: #e74c3c;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

/* 배송 정보 */
.shipping-info {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 14px;
    color: #666;
    min-width: 80px;
}

.info-value {
    font-size: 14px;
    color: #333;
}

/* 구매 옵션 */
.purchase-options {
    margin-top: 30px;
}

.quantity-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.qty-label {
    font-size: 16px;
    color: #333;
    margin-right: 20px;
    min-width: 80px;
}

.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
}

/* 구매 버튼 */
.purchase-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-add-cart,
.btn-buy-now {
    height: 56px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-add-cart:hover {
    background: #f0f9ff;
}

.btn-buy-now {
    background: #2563eb;
    color: white;
}

.btn-buy-now:hover {
    background: #1d4ed8;
}

.wishlist-share {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.btn-wishlist,
.btn-share {
    height: 44px;
    font-size: 14px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-wishlist:hover,
.btn-share:hover {
    background: #f8f9fa;
    border-color: #999;
}

/* 메타 정보 */
.product-meta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.meta-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
}

.meta-label {
    color: #666;
    min-width: 80px;
}

.meta-value {
    color: #333;
}

.meta-value a {
    color: #2563eb;
    text-decoration: none;
}

.meta-value a:hover {
    text-decoration: underline;
}

/* 탭 영역 */
.product-detail-tabs {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.tab-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e0e0e0;
}

.tab-item {
    padding: 20px 30px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab-item:hover {
    color: #333;
    background: #f8f9fa;
}

.tab-item.active {
    color: #2563eb;
    background: white;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2563eb;
}

.tab-contents {
    padding: 40px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.product-description {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.product-description img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* 배송 정보 탭 내용 */
.shipping-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 30px;
    color: #333;
}

.shipping-content h3:first-child {
    margin-top: 0;
}

.shipping-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.shipping-content li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.6;
}

/* 관련 상품 */
.related-products {
    margin-top: 60px;
}

.related-products h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 20px;
}

.product-item img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.product-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.product-item .price {
    font-size: 18px;
    font-weight: 600;
    color: #e74c3c;
}

/* 반응형 */
@media (max-width: 1200px) {
    .product-main-area {
        grid-template-columns: 400px 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .product-main-area {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-images {
        position: static;
        max-width: 500px;
        margin: 0 auto;
    }

    .product-info {
        padding-left: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        padding: 20px 0;
    }

    .product-main-area {
        padding: 20px;
    }

    .product-title {
        font-size: 22px;
    }

    .price-value {
        font-size: 26px;
    }

    .purchase-buttons {
        grid-template-columns: 1fr;
    }

    .tab-menu {
        overflow-x: auto;
    }

    .tab-item {
        padding: 15px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    .tab-contents {
        padding: 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}