/* ============================================================
   엘엔케이샵 (L&K SHOP) - 상품 상세 & 상품 목록 스타일시트
   ============================================================ */

.product-detail-section {
    padding: 32px 20px 72px;
    background: #ffffff;
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.product-summary-grid {
    display: grid;
    grid-template-columns: minmax(360px, 480px) 1fr;
    gap: 48px;
    margin-bottom: 40px;
    align-items: start;
}

.product-image-section {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

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

.product-info-section {
    padding: 8px 0;
}

.product-category-badge {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.product-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.35;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.product-description-text {
    font-size: 15.5px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.product-price-section {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 24px 28px;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-price-large {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

.product-price-won {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.product-specs {
    margin-bottom: 32px;
    border-top: 1px solid var(--border-color);
}

.spec-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14.5px;
}

.spec-label {
    font-weight: 600;
    min-width: 130px;
    color: var(--text-light);
}

.spec-value {
    color: var(--text-dark);
    font-weight: 500;
}

.spec-badge {
    display: inline-block;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.product-quantity {
    margin-bottom: 28px;
}

.product-quantity label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-soft);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.quantity-input {
    width: 72px;
    height: 42px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    outline: none;
}

.quantity-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.product-actions {
    display: flex;
    gap: 14px;
}

.btn-large {
    flex: 1;
    padding: 16px 20px;
    font-size: 15.5px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    word-break: keep-all;
}

.btn-cart {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-cart:hover {
    background: var(--primary-soft);
    transform: translateY(-2px);
}

.btn-buy {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-buy:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

/* Tabs & Detailed Info */
.product-detailed-info {
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 36px;
}

.info-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
}

.info-tab {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.info-tab:hover {
    color: var(--text-dark);
}

.info-tab.active {
    color: var(--primary-color);
}

.info-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.info-content {
    display: none;
    padding: 20px 0;
    line-height: 1.8;
    color: var(--text-muted);
}

.info-content.active {
    display: block;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.info-table th,
.info-table td {
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    font-size: 14px;
}

.info-table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--text-dark);
    width: 200px;
}

.delivery-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.delivery-notice h4 {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-notice ul {
    list-style-position: inside;
    color: #1e3a8a;
    font-size: 14px;
}

.delivery-notice li {
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .product-detail-section {
        padding: 20px 14px 56px;
    }

    .product-summary-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 28px;
    }
    
    .product-image-section {
        max-width: 440px;
        margin: 0 auto;
    }
    
    .product-title {
        font-size: 20px;
        line-height: 1.4;
    }
    
    .product-price-large {
        font-size: 26px;
    }

    .product-specs {
        margin-bottom: 22px;
    }

    .spec-item {
        padding: 12px 0;
        font-size: 13.5px;
    }

    .spec-label {
        width: 85px;
        min-width: 85px;
        flex-shrink: 0;
        font-size: 13px;
    }

    .spec-value {
        font-size: 13.5px;
        word-break: break-all;
    }

    .product-quantity {
        margin-bottom: 22px;
    }

    .product-actions {
        gap: 10px;
    }

    .btn-large {
        padding: 14px 10px;
        font-size: 14.5px;
        gap: 6px;
        white-space: nowrap !important;
        letter-spacing: -0.3px;
    }

    .product-detailed-info {
        padding-top: 28px;
    }

    .info-tabs {
        gap: 8px;
        margin-bottom: 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .info-tab {
        padding: 12px 16px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .info-table th,
    .info-table td {
        padding: 12px 14px;
        font-size: 13px;
    }

    .info-table th {
        width: 95px;
        min-width: 95px;
    }

    .info-table td {
        word-break: break-all;
    }

    .delivery-notice {
        padding: 18px 16px;
    }
}

@media (max-width: 480px) {
    .product-actions {
        gap: 8px;
    }

    .btn-large {
        padding: 13px 6px;
        font-size: 13.5px;
        gap: 5px;
        letter-spacing: -0.4px;
    }

    .btn-large i {
        font-size: 13px;
    }

    .info-tab {
        padding: 10px 12px;
        font-size: 13px;
    }
}
