/* Product Detail Page Styles */

/* Product Detail Section */
.product-detail-section {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 580px 1fr;
    gap: 60px;
    align-items: start;
}

/* Image Gallery */
.product-image-gallery {
    position: relative;
}

.main-image-container {
    width: 580px;
    height: 580px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    cursor: crosshair;
}

.wish-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease;
}

.wish-icon:hover {
    background-color: rgba(255, 255, 255, 1);
}

.wish-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    stroke: currentColor;
    fill: none;
}

.wish-icon.active svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Zoom Lens (250x250 네모 박스) */
.zoom-lens {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 2px solid #000;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: none;
    pointer-events: none;
    display: none;
    z-index: 10;
}

.main-image-container:hover .zoom-lens {
    display: block;
}

/* Zoomed Result (500x500 확대 이미지) */
.zoom-result {
    width: 500px;
    height: 500px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    background-repeat: no-repeat;
    background-size: 1160px 1160px;
    display: none;
    position: absolute;
    top: 0;
    left: 595px; /* 580px (이미지 너비) + 15px (간격) */
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.main-image-container:hover ~ .zoom-result {
    display: block;
}

/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Breadcrumb in Product Info */
.breadcrumb-top {
    position: absolute;
    top: -40px;
    right: 0;
    margin-bottom: 0;
    z-index: 1;
}

/* Separator Line */
.product-separator {
    width: 100%;
    height: 2px;
    background-color: #000;
    margin-top: 0px;
    margin-bottom: 40px;
}

.breadcrumb-path {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #7d7d7d;
    font-weight: 400px;
    justify-content: flex-end;
}

.breadcrumb-link {
    color: #7d7d7d;
    text-decoration: none;
    font-weight: 400px;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--text-primary);
}

.breadcrumb-separator {
    color: #7d7d7d;
    font-weight: 400px;
}

.breadcrumb-current {
    color: #7d7d7d;
    font-weight: 400px;
}

/* Product Title */
.product-title {
    font-size: 28px;
    font-weight: 410;
    color: #000000;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

/* Product Info Box */
.product-info-box {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 40px;
    margin-top: 20px;
}

.price-label {
    font-size: 13px;
    color: #000000;
    font-weight: 400;
    line-height: 18px;
    padding: 7px 5px 6px 0;
    vertical-align: middle;
    width: 95px;
    text-align: left;
}

.product-price {
    font-size: 13px;
    color: #000000;
    font-weight: bold;
    line-height: 18px;
    padding: 7px 6px 8px 0;
    vertical-align: middle;
    text-align: left;
}

/* Order Quantity Info */
.order-quantity-info {
    font-size: 12px;
    color: #7d7d7d;
    font-weight: 400;
    padding: 15px 0 0 0;
    margin: 0;
}

.shipping-label {
    display: table-cell;
    font-size: 13px;
    color: #000000;
    font-weight: 400;
    line-height: 18px;
    padding: 7px 5px 6px 0;
    vertical-align: middle;
    width: 95px;
    text-align: left;
}

.shipping-value {
    display: table-cell;
    font-size: 13px;
    color: #000000;
    font-weight: 400;
    line-height: 18px;
    padding: 7px 6px 8px 0;
    vertical-align: middle;
    text-align: left;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 0;
}

.btn-buy-now,
.btn-cart,
.btn-wish-list {
    flex: 1;
    padding: 15px 30px;
    font-size: var(--font-size-14);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-buy-now {
    background-color: var(--bg-black);
    color: var(--text-white);
}

.btn-buy-now:hover {
    background-color: var(--text-secondary);
}

.btn-cart,
.btn-wish-list {
    background-color: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border-dark);
}

.btn-cart:hover,
.btn-wish-list:hover {
    background-color: var(--bg-light);
}

/* Detail Images Section */
.product-detail-images {
    padding: 60px 0;
    background-color: var(--bg-white);
    border-top: 1px solid #e5e5e5;
}

.detail-images-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.detail-image-item {
    width: 100%;
    overflow: hidden;
    background-color: #fff;
}

.detail-image-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Responsive Design */

/* 1919px ~ 1440px */
@media (max-width: 1919px) {
    .zoom-result {
        display: none !important; /* 줌 기능 비활성화 */
    }

    .zoom-lens {
        display: none !important;
    }

    .main-image-container {
        cursor: default;
    }
}

/* 1439px ~ 1024px */
@media (max-width: 1439px) {
    .product-detail-wrapper {
        grid-template-columns: 500px 1fr;
        gap: 40px;
    }

    .main-image-container {
        width: 500px;
        height: 500px;
    }
}

/* 1023px ~ 768px */
@media (max-width: 1023px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

/* 767px ~ 425px */
@media (max-width: 767px) {
    .product-detail-section {
        padding: 40px 0;
    }

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

/* 424px ~ 0px */
@media (max-width: 424px) {
    .product-detail-section {
        padding: 30px 0;
    }

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

    .product-info-box {
        font-size: 12px;
    }
}